Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP tliebeck

View First Unread
17th March 2014, 09:05 AM   |  #1  
tliebeck's Avatar
OP Senior Member
Flag Southern California
Thanks Meter: 2,376
 
10
1,138 posts
Join Date:Joined: Sep 2010
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 02:02 PM. Reason: Updated revision to r7 (direct download link)
The Following 152 Users Say Thank You to tliebeck For This Useful Post: [ View ]
17th March 2014, 05:04 PM   |  #2  
tliebeck's Avatar
OP Senior Member
Flag Southern California
Thanks Meter: 2,376
 
10
1,138 posts
Join Date:Joined: Sep 2010
(Reserved)
The Following 7 Users Say Thank You to tliebeck For This Useful Post: [ View ]
17th March 2014, 07:07 PM   |  #3  
erdal67's Avatar
Senior Member
Flag Venlo
Thanks Meter: 261
 
1,083 posts
Join Date:Joined: Nov 2012
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 07:18 PM.
The Following 2 Users Say Thank You to erdal67 For This Useful Post: [ View ]
17th March 2014, 08:51 PM   |  #4  
tliebeck's Avatar
OP Senior Member
Flag Southern California
Thanks Meter: 2,376
 
10
1,138 posts
Join Date:Joined: Sep 2010
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 8 Users Say Thank You to tliebeck For This Useful Post: [ View ]
18th March 2014, 02:45 AM   |  #5  
Senior Member
Thanks Meter: 16
 
269 posts
Join Date:Joined: Nov 2008
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 User Says Thank You to hongkongtom For This Useful Post: [ View ]
18th March 2014, 04:37 AM   |  #6  
maxilick's Avatar
Senior Member
Thanks Meter: 128
 
458 posts
Join Date:Joined: Jun 2008
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, 09:05 AM   |  #7  
tliebeck's Avatar
OP Senior Member
Flag Southern California
Thanks Meter: 2,376
 
10
1,138 posts
Join Date:Joined: Sep 2010
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, 09:44 AM   |  #8  
Account currently disabled
Thanks Meter: 2
 
1 posts
Join Date:Joined: Dec 2013
Thanks for this free app.
I'm going to visit your other apps.
18th March 2014, 01:31 PM   |  #9  
Member
Flag Montreal
Thanks Meter: 6
 
30 posts
Join Date:Joined: Jun 2012
More
Nice work !!
Nice work !! Working on my S4 I337M
18th March 2014, 01:37 PM   |  #10  
mdalacu's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 191
 
874 posts
Join Date:Joined: Dec 2006
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 User Says Thank You to mdalacu For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread