FORUMS
Remove All Ads from XDA

[Q] write on sd card permissions Android 5.0.2 Lollipop

3 posts
Thanks Meter: 1
 
By Chavalesko, Junior Member on 22nd April 2015, 07:01 PM
Post Reply Email Thread
Hello guys,
as we all know with the newest Android update( version 5) the write to sd card permissions have been changed allowing developers and regular users to grant write to sd card permissions for specific apps and folders.
I managed to do that installing new file explorers , and when I tried to create a new file / folder on the sd card with the newly installed file manager (the native one already suported write to sd even in 4.4.4) whoala the option poped out:

choosing the sd card option I was able to create and modify files on the sd.
However I still don`t know how to enter in this menu and grant write to sd permissions for a specific app without having to ``trigger`` this menu with the specific app, I want to know this because I cant ``trigger`` this with the app I most need to have it on, It is called aTorrent and as the name already suggests its for downloading torrents , if I manage to give the app write to sd card permissions I wont have to manualy cut and paste the downloaded files to my sd card.
I have already tried to ``trigger`` the pop up menu with the app trying to modify the download location and it just tells me that the app doesnt have write permissions for sd card , I tried to start downloading a torrent file located in the sd card and it showed the same message but I was able to start the download afterall this wasnt a write but a read access.
I`ve searched all over my device and couldnt find this menu, the most look alike menu is the Google Settings one , but i cant find any option to do this in that menu.
I hope there is a simple solution for this , without having to use developer console,
I look forward for your answers
Thank you in advance.
(and no my device is not rooted)
 
 
29th April 2015, 01:39 AM |#2  
sublinker's Avatar
Senior Member
Flag Cape Coast
Thanks Meter: 193
 
More
Quote:
Originally Posted by Chavalesko

Hello guys,
as we all know with the newest Android update( version 5) the write to sd card permissions have been changed allowing developers and regular users to grant write to sd card permissions for specific apps and folders.
I managed to do that installing new file explorers , and when I tried to create a new file / folder on the sd card with the newly installed file manager (the native one already suported write to sd even in 4.4.4) whoala the option poped out:

choosing the sd card option I was able to create and modify files on the sd.
However I still don`t know how to enter in this menu and grant write to sd permissions for a specific app without having to ``trigger`` this menu with the specific app, I want to know this because I cant ``trigger`` this with the app I most need to have it on, It is called aTorrent and as the name already suggests its for downloading torrents , if I manage to give the app write to sd card permissions I wont have to manualy cut and paste the downloaded files to my sd card.
I have already tried to ``trigger`` the pop up menu with the app trying to modify the download location and it just tells me that the app doesnt have write permissions for sd card , I tried to start downloading a torrent file located in the sd card and it showed the same message but I was able to start the download afterall this wasnt a write but a read access.
I`ve searched all over my device and couldnt find this menu, the most look alike menu is the Google Settings one , but i cant find any option to do this in that menu.
I hope there is a simple solution for this , without having to use developer console,
I look forward for your answers
Thank you in advance.
(and no my device is not rooted)

You need root access for this to work.
Look for platform.xml in

/system/etc/permissions/platform.xml

Open it with text editor and add the green line to this
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
    <group gid="sdcard_r" />
    <group gid="sdcard_rw" />
</permission>
So that it looks like this
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
    <group gid="sdcard_r" />
    <group gid="sdcard_rw" />
    <group gid="media_rw" />
</permission>
Now save it and set the file permissions to 0644 that is, rw-r–r.
Reboot and that's all.
The Following 8 Users Say Thank You to sublinker For This Useful Post: [ View ] Gift sublinker Ad-Free
29th April 2015, 05:49 PM |#3  
OP Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by sublinker

You need root access for this to work.
Look for platform.xml in

/system/etc/permissions/platform.xml

Open it with text editor and add the green line to this

Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
    <group gid="sdcard_r" />
    <group gid="sdcard_rw" />
</permission>
So that it looks like this
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
    <group gid="sdcard_r" />
    <group gid="sdcard_rw" />
    <group gid="media_rw" />
</permission>
Now save it and set the file permissions to 0644 that is, rw-r–r.
Reboot and that's all.

Thank you for answering sublinker, could you clear a bit more the `` set the file permissions to 0644 that is, rw-r–r`` part in case i decide to root ?Thank you.
The Following User Says Thank You to Chavalesko For This Useful Post: [ View ] Gift Chavalesko Ad-Free
29th April 2015, 07:08 PM |#4  
sublinker's Avatar
Senior Member
Flag Cape Coast
Thanks Meter: 193
 
More
Quote:
Originally Posted by Chavalesko

Thank you for answering sublinker, could you clear a bit more the `` set the file permissions to 0644 that is, rw-r–r`` part in case i decide to root ?Thank you.

Get root explorer and navigate to the file. Long press on it and select permission, and you will see what I'm talking about. Here are screenies.


Final settings, 0644 or rw r r should look like this picture

The Following User Says Thank You to sublinker For This Useful Post: [ View ] Gift sublinker Ad-Free
29th April 2015, 10:23 PM |#5  
OP Junior Member
Thanks Meter: 1
 
More
Thanks
10th May 2015, 10:17 PM |#6  
Junior Member
Flag St Austell
Thanks Meter: 0
 
More
Help
I think i may have messed up a bit, I wrote the line and set the permissions, but now not only can i still not access my media in doubletwist but random apps keep crashing including titanium backup. have you any idea what might have caused this?
28th May 2015, 03:53 PM |#7  
Junior Member
Thanks Meter: 1
 
More
Just use an app
You can just install an app which will take care of it.
Just enter "sd fix" in google play aka market.
One app which takes care of the sd-card writing permission problem is "SDFix: KitKat Writable MicroSD".
It worked for me (I'm using an Xperia Z3 Compact with a rooted 5.0.2 stock ROM).

Of course you need root.
Then again, changing system files in /etc/ or any other sytem folder also requires root, the app just does it for all apps because it adds the removed permission.

How-To:
1. Root your device.
2. Install a root app (for example super su) to actually grant apps root permission.
2. Download a sd-card permission fix app (for example "SDFix: KitKat Writable MicroSD")
3. Start the downloaded sd-card fix app and grant it root permission when your super user app asks for it. Apply the patch.
3. Restart your phone (obviously you need to restart for any permission setting changes to take effect).
4. Enjoy all apps having back their good old sd-card writing privileges like they had before 4.4.4.
The Following User Says Thank You to The_Unseen For This Useful Post: [ View ] Gift The_Unseen Ad-Free
8th June 2015, 03:50 PM |#8  
Junior Member
Thanks Meter: 0
 
More
Excellent information.

Can you supply links for the How-To

Cheers
11th June 2015, 02:30 PM |#9  
dennnic93's Avatar
Member
Thanks Meter: 7
 
More
Hello,

I have tried all methods mentioned above. None of them completely work.
I can make new folders on sd card and copy whatever into them for the first 15 minutes after restarting the device. After that, it becomes useless again. When the device is restarted again, all data on sd card is lost.
12th June 2015, 09:06 AM |#10  
sublinker's Avatar
Senior Member
Flag Cape Coast
Thanks Meter: 193
 
More
Quote:
Originally Posted by dennnic93

Hello,

I have tried all methods mentioned above. None of them completely work.
I can make new folders on sd card and copy whatever into them for the first 15 minutes after restarting the device. After that, it becomes useless again. When the device is restarted again, all data on sd card is lost.

Make sure you have full root and also update your busybox install.
27th June 2015, 07:03 AM |#11  
Junior Member
Thanks Meter: 0
 
More
No need for this
Just download bittorrent and move it to sd card using an app that moves other apps to sd card. Then everything you download will be in your sd. Simple as that!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes