[How to] Enable write permissions to external sd! - G4 Q&A, Help & Troubleshooting

We had this same problem on the G3,
solution is simple use root explorer and edit system/etc/permissions/platform.xml with the built-in editor.
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" > <---Look for this
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" /> <---Add this
</permission>
save and restart, apps will no longer require permission to write to the external sd card, or delete files from the external sd card(music players, ect.)

This does the same thing as the NextApp SDFix app from the playstore. That app also automatically backs up your original platform.xml just in case. Either way good tip, thanks for sharing! I might just edit the file myself to reduce the number of apps I have.
Sent from my VS986

Outta said:
We had this same problem on the G3,
solution is simple use root explorer and edit system/etc/permissions/platform.xml with the built-in editor.
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" > <---Look for this
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" /> <---Add this
</permission>
save and restart, apps will no longer require permission to write to the external sd card, or delete files from the external sd card(music players, ect.)
Click to expand...
Click to collapse
instead of this"<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >"
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
is wirtten in .XML
What Should I do.

Related

Move apps to external sd-card with Android 4.4.2 b510

Edit /system/etc/permissions/platform.xml file with root access rights. Find android.permission.WRITE_EXTERNAL_STORAGE and add the line <group gid="media_rw" />
find android.permission.WRITE_MEDIA_STORAGE and add the line <group gid="sdcard_rw" />
Save the platform.xml file and set the file permissions to 644.
Reboot device.
Now i can move all apps to external sd-card.
[FIN]migge said:
Edit /system/etc/permissions/platform.xml file with root access rights. Find android.permission.WRITE_EXTERNAL_STORAGE and add the line <group gid="media_rw" />
find android.permission.WRITE_MEDIA_STORAGE and add the line <group gid="sdcard_rw" />
Save the platform.xml file and set the file permissions to 644.
Reboot device.
Now i can move all apps to external sd-card.
Click to expand...
Click to collapse
Some apps are better left alone in their place, and that place is the Internal storage.
not working for me
[FIN]migge said:
Edit /system/etc/permissions/platform.xml file with root access rights. Find android.permission.WRITE_EXTERNAL_STORAGE and add the line <group gid="media_rw" />
find android.permission.WRITE_MEDIA_STORAGE and add the line <group gid="sdcard_rw" />
Save the platform.xml file and set the file permissions to 644.
Reboot device.
Now i can move all apps to external sd-card.
Click to expand...
Click to collapse
i have tried this but this isn't working for me. can you help.

[KK] Add external SD Card writing for all apps

1. Using any root explorer, navigate to
Code:
/system/etc/permissions/platform.xml
2. Find android.permission.WRITE_EXTERNAL_STORAGE and ADD
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
[COLOR="RoyalBlue"]<group gid="media_rw" />[/COLOR]
</permission>
3. Find android.permission.WRITE_MEDIA_STORAGE and ADD
Code:
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
[COLOR="RoyalBlue"]<group gid="sdcard_rw" />[/COLOR]
</permission>
4. Save, if needed set permissions to 0644 [rw-r-r] and reboot.
Also, if you're a slacker and unwilling to follow ATTACK's excellent write up ... you can install the SDFix app (Works on Stock 4.4.2 and GPE ROM)
SDFix
I'm vaguely certain that it does the same thing and it is probably not going to sell your information to China.
(But who knows!!! Live dangerously!!!)
It provides a clean one click solution and you can uninstall it when finished.
However, it DOES NOT provide an easy way to UNDO the permission change should you fall on your head and decide that you no longer want Full Read/Write access to your SD card.
I am running Carbon ROM JBBL, and never specifically noticed any issues in KK, so I went and checked what my file had (which should be default values) and it appears the devs for this custom ROM have already "corrected" this setting setting for us.:good: Now I'm tempted to reverse just it to see what all the hoo-ha is about...:cyclops:

cannot save platform.xml (tried root explorer & total commander)

I am trying to change the permissions under platform.xml so I can access the sd card with TitaniumBackup.
I installed the SDFix app and it seemed to have worked, I can delete files and stuff from the SD Card, however TitaniumBackup still couldn't backup directly into the SD Card.
I found that under the platform.xml I only had <group gid="sdcard_r" /> and <group gid="sdcard_rw" /> but not <group gid="media_rw" /> so I tried to add the media part into the file.
I am rooted and I do successfully change the file (tried with Root Explorer and Total Commander), but every time after I reboot the file changes back to the original.
I tried searching online for this but couldn't seem to find any information on this.
Thanks in advance!

How to gain normal, pre-KitKat Read & Write access to SD Card? (Android N)

Hi everyone.
I mainly rooted my device yesterday so I can use instructions like this to have a normal access to my sd card. But after root I realized that in my platform.xml file under "android.permission.WRITE_EXTERNAL_STORAGE" permission there's no gids already mentioned (as it apparently is in the instructions).
The permission looks like below in my platform.xml, including the comment:
Code:
<!-- These are permissions that were mapped to gids but we need
to keep them here until an upgrade from L to the current
version is to be supported. These permissions are built-in
and in L were not stored in packages.xml as a result if they
are not defined here while parsing packages.xml we would
ignore these permissions being granted to apps and not
propagate the granted state. From N we are storing the
built-in permissions in packages.xml as the saved storage
is negligible (one tag with the permission) compared to
the fragility as one can remove a built-in permission which
no longer needs to be mapped to gids and break grant propagation. -->
<permission name="android.permission.READ_EXTERNAL_STORAGE" />
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" />
What should I do? can I change the whole tag so it represents this:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Or do you have a better solution for what I'm intending to do?
And generally I'm curious to know how Android users deal with their sd-card considering recent restrictions to sd-card write.
Thanks.
Update:
Went for rewriting platform.xml file while waiting for answers, realized I can't mount /system rw!
I used mount -o remount,rw /system, it said not user mountable in fstab
Update2:
Managed to mount /system as r/w. But the problem persists, can't grand external storage access to all apps.

Sdcard writing permission

There is one problem with Oreo ROM.Write permission can't be given to SdCard.I have edited the lines in Root/System/etc/permission using Root Explorer by adding as follows
<permission name="android.permission.Write_EXTERNAL_STORAGE>
<group gid="sdcard_rw"/>
<group gid="sdcard_r/>
<group gid="sdcard_all"/>
After adding this I saved it and rebooted.But the write permission can't be given be to sdcard in various applications even now.What is a permanent solution for this?

Categories

Resources