[Android Software Development] rufus.wilson:
Disclaimer: I am not responsible for anything bad that may occur from the use of this zip, but I will take all the credit you can give if it works for you.

[IMG="Logo"]http://xdaforums.com/devdb/project/dl/?id=16289&task=get[/IMG]

ExtSD Fix​

Download latest stable - MD5 checksum​

Download latest dev - MD5 checksum​

In KitKat, Lollipop and Marshmallow, policies on writing permissions for external SD cards have been changed. This flashable recovery file automatically appends the correct permissions to the file as explained in many tutorials on the web (here or here) or as what many apps do (here).

Advantages

The advantage of this flashable zip over the other methods is that:

you don't need to install any apps,

you can revert by reflashing (not tested for marshmallow),

it does not require you to have root (

needs to be confirmed

),

[*]you don't need a custom recovery (

needs to be confirmed

).

Installation

It can insert

and

remove the permission to write on the external sdcard. To install follow these steps:

Turn off phone,

Boot into recovery,

Backup your system and data partition,

Flash this zip file once,

Reboot phone normally.

To revert the changes, follow the same steps again. This means that flashing it twice will have no effect.

Marshmallow is not supported yet, implementation is in progress.

Note:

On Marshmallow, busybox will be installed if not already present. It can also be installed as a standalone app. You should an also add init.d support to your phone if not already available using an app.

How to report a bug

Check if someone else reported that it did/didn't work,

Backup, clean flash, reinstall all apps and then flash ExtSD Fix,

Submit a bug report here with both the original and modified packages.xml and the recovery log file as suggested here.

Changelog

v2.9b - 2016-06-09

Added double flashing revert for MM.

v2.8b - 2016-06-09

Added more logging to:

during flashing: /data/ExtSD_Fix_RW_inst.log

during boot: /data/ExtSD_Fix_RW_initd.log

v2.7b - 2016-06-08

Renamed script,

Changed permissions.

v2.6b - 2016-06-07

Changed permissions.

v2.5b - 2016-06-07

Changed permissions,

Added support for limited backup files.

v2.4b - 2016-06-05

Corrected bugs.

v2.3b - 2016-06-02

Included debug messages.

v2.2b - 2016-06-02

Corrected bugs. "ERROR:2" should be fixed.

V2.1b - 2016-05-19

Implemented solution from here and here.

V1.9b - 2016-05-04

Implemented solution from here. PLEASE TEST AND REPORT.

V1.8b - 2016-02-04

Corrected bug for Marshmallow.

V1.7b - 2016-02-02

Added support for Marshmallow.

V1.6b - 2016-01-27

Added revert on second run.

V1.5b - 2016-01-26

Corrected bug in check for API version.

V1.4b - 2016-01-26

Changed format of backed up filename.

Added check for API version ( 19<= API <= 22 ).

V1.3b - 2016-01-22

Backed up file is renamed with time and date.

V1.2b - 2016-01-21

Moved code into update-binary.

V1.1b - 2016-01-19

Removed testing commands.

V1.0b - 2016-01-18

Initial submission

XDA:DevDB Information

ExtSD Fix, Tool/Utility for all devices (see above for details)

Contributors

rufus.wilson

Version Information

Status: Testing

Current Beta Version: v2.9b

Beta Release Date: 2016-06-09

Created 2016-01-18

Last Updated 2016-06-15