FORUMS

Index Project For XDA Device Subforums

Another ambitious project from the collaborative efforts of Recognized Contributors and Forum … more

The Atlas of XDA

A few weeks ago, we asked you “How Does Your Location Affect Your Life As A Power User?”. In the days that … more

New Snapdragons: Some Context & Contrast

It hasn’t been a good year for Qualcomm so far. Every device featuring the Snapdragon 810 … more

Google To Launch Next Gen Android One On July 14

The first gen of Android One devices to be launched in India in September 2014 were … more

[APP][4.4][ROOT] SDFix: Modify device permissions to allow apps to write to MicroSD

1,164 posts
Thanks Meter: 2,518
 
Post Reply Subscribe to Thread Email Thread
ROOT ACCESS IS REQUIRED.

I've written a simple app which modifies KitKat devices to allow user-installed applications to write to the MicroSD card on devices with two storage locations.

Background information on the underlying problem is available here: https://plus.google.com/+TodLiebeck/posts/gjnmuaDM8sn Please ensure you understand the problem and that your device has it before installing this app. This app is quite useless if your device doesn't suffer this issue.

[[[[ THIS IS A BETA RELEASE. WHILE I HAVE TESTED THIS ON MULTIPLE DEVICES MANY TIMES, PLEASE RESTRICT YOUR USE OF THIS APP TO DEVICES YOU HAVE THE ABILITY TO REFLASH FROM SCRATCH. I do not expect this to occur, but this is release #1 of this app, and it modifies a configuration file as root. That said, my test devices still work even when I deliberately corrupted and deleted the target file in testing. ]]]]

This app is entirely free. It doesn't have any ads, (but it does have a few Play Store links on its final screen to my other free apps).

Screenshots:




It will be going on the Play Store pending your feedback, but I wanted to post it here first. Please let me know if you encounter any issues.

How it works: The /system/etc/permissions/platform.xml is modified to specify that all applications which have the WRITE_EXTERNAL_STORAGE permission are registered as members of the Android UNIX group "media_rw". Membership in this group is necessary to write to the MicroSD card.

In Android 4.3, most all devices granted access to the media_rw group to apps. In Android 4.4, they do not. This app simply restores the old behavior. From what I've observed this method (granting permission via platform.xml), also appears to be the preferred means of restoring SD card access on XDA and elsewhere.

This app is designed to abort if it sees absolutely anything that it does not expect. Please let me know if the app does not work for you, and what type of device/ROM/etc you're using. If the modification is unnecessary (due to media_rw access being already present) this app will make no modification.

The original platform.xml will be backed up in /system/etc/permissions as "platform.xml.original-pre-sdfix" (unless that file already exists).

Download
The installed app is named "NextApp SDFix".
Last edited by tliebeck; 3rd September 2014 at 01:02 PM. Reason: Updated revision to r7 (direct download link)
The Following 176 Users Say Thank You to tliebeck For This Useful Post: [ View ]
 
 
17th March 2014, 04:04 PM |#2  
tliebeck's Avatar
OP Senior Member
Flag Southern California
Thanks Meter: 2,518
 
10
More
(Reserved)
The Following 7 Users Say Thank You to tliebeck For This Useful Post: [ View ]
17th March 2014, 06:07 PM |#3  
erdal67's Avatar
Senior Member
Flag Venlo
Thanks Meter: 268
 
More
Awesome!! Will try, hope it will work


Edit:
Sorry but how can i test it?
When downloading something from dolphin and next -browser it doesnt show sdcard1





Have a break, Have a KitKat (powered Samsung Galaxy Sē)
Last edited by erdal67; 17th March 2014 at 06:18 PM.
The Following 2 Users Say Thank You to erdal67 For This Useful Post: [ View ]
17th March 2014, 07:51 PM |#4  
tliebeck's Avatar
OP Senior Member
Flag Southern California
Thanks Meter: 2,518
 
10
More
Thumbs down
Quote:
Originally Posted by erdal67

Awesome!! Will try, hope it will work


Edit:
Sorry but how can i test it?
When downloading something from dolphin and next -browser it doesnt show sdcard1





Have a break, Have a KitKat (powered Samsung Galaxy Sē)

Most ROMs won't have this problem, it 's generally only an issue with factory firmware on KitKat (e.g. TouchWiz updates to KitKat). What ROM are you running?

The free version of FX File Explorer (links in my signature) should show both media card and internal storage if everything works, and you should be able to create a new folder under the "media card" catalog. If MicroSD access if prevented, attempting to create a new folder under "media card" will fail.
The Following 9 Users Say Thank You to tliebeck For This Useful Post: [ View ]
18th March 2014, 01:45 AM |#5  
Senior Member
Thanks Meter: 17
 
More
Got the issue on my TabPro 8.4, pending for maintenance so can't root yet, but really great thanks for saving the day.

Sent from my SM-T320 using xda app-developers app
The Following 2 Users Say Thank You to hongkongtom For This Useful Post: [ View ]
18th March 2014, 03:37 AM |#6  
maxilick's Avatar
Senior Member
Thanks Meter: 153
 
More
Thanks, all good on SM9005 stock Kit Kat
The Following User Says Thank You to maxilick For This Useful Post: [ View ]
18th March 2014, 08:05 AM |#7  
tliebeck's Avatar
OP Senior Member
Flag Southern California
Thanks Meter: 2,518
 
10
More
Now available on the Play Store: https://play.google.com/store/apps/d...=nextapp.sdfix
The Following 7 Users Say Thank You to tliebeck For This Useful Post: [ View ]
18th March 2014, 08:44 AM |#8  
Account currently disabled
Thanks Meter: 2
 
More
Thanks for this free app.
I'm going to visit your other apps.
18th March 2014, 12:31 PM |#9  
Member
Flag Montreal
Thanks Meter: 6
 
More
Nice work !!
Nice work !! Working on my S4 I337M
18th March 2014, 12:37 PM |#10  
mdalacu's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 195
 
Donate to Me
More
Exclamation
Thank you for your app, but you should modify it to clearly state that the device requires a reboot for the changes to take affect ( apop up or something because nobody will read the text after "Completed"), you can also make a button to reboot it directly.
That's my input. Thank you again.
The Following 2 Users Say Thank You to mdalacu For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread