cannot write to sdcard or internal storage after editing platform.xml

andykais

New member
Aug 16, 2016
2
0
0
Hi, I edited the /system/etc/permissions/platform.xml after an attempt to use ssh to copy files to my sdcard. I followed the instructions on arachnoid.com/android/SSHelper/ under External Storage Access. After rebooting unfortunately many apps began giving popups e.g.
Unfortunately Google Play Services has stopped working
in fact after looking around I think no apps dealing with the internet or having storage of some kind work (no files in the MyFiles manager). After reading another tutorial I believe the problem was that the permissions on the platform.xml file were incorrect so I used adb shell to
Code:
chmod 644 /system/etc/permissions/platform.xml
which set them correctly. After another reboot I the popups still remain and I still cannot see any files within the MyFiles file manager.

This is an at&t phone and I have heard there are extra security measures taken by their phones so perhaps that has something to do with it? Also in order to root this phone I needed to downgrade the firmware and then re-upgrade to lollipop 5.0.1.

Running a rooted at&t Galaxy S4 active SGH-i537 stock ROM
 

Devo7v

Senior Member
Oct 12, 2010
1,871
675
133
Washington, D.C.
Hi, I edited the /system/etc/permissions/platform.xml after an attempt to use ssh to copy files to my sdcard. I followed the instructions on arachnoid.com/android/SSHelper/ under External Storage Access. After rebooting unfortunately many apps began giving popups e.g.

in fact after looking around I think no apps dealing with the internet or having storage of some kind work (no files in the MyFiles manager). After reading another tutorial I believe the problem was that the permissions on the platform.xml file were incorrect so I used adb shell to
Code:
chmod 644 /system/etc/permissions/platform.xml
which set them correctly. After another reboot I the popups still remain and I still cannot see any files within the MyFiles file manager.

This is an at&t phone and I have heard there are extra security measures taken by their phones so perhaps that has something to do with it? Also in order to root this phone I needed to downgrade the firmware and then re-upgrade to lollipop 5.0.1.

Running a rooted at&t Galaxy S4 active SGH-i537 stock ROM
Unfortunately the only suggestion I have would be to restore the original platform.xml. Other than that you're going to have to downgrade to 4.4.2 and then re-upgrade as you said above.
 

andykais

New member
Aug 16, 2016
2
0
0
Unfortunately the only suggestion I have would be to restore the original platform.xml. Other than that you're going to have to downgrade to 4.4.2 and then re-upgrade as you said above.
That's what I was afraid of. Do you have any hints as to why this is happening though? The permissions on the actual files don't appear to have changed.
example on /sdcard
Code:
drwxrwx--- root     sdcard_r          2016-08-05 12:36 DCIM
permissions on /system
Code:
drwxr-xr-x root     root              2014-05-18 15:57 system
The <group gid="media_rw" /> element was only added to the

READ_EXTERNAL_STORAGE
WRITE_EXTERNAL_STORAGE
ACCESS_ALL_EXTERNAL_STORAGE

permission elements. I believe at least some of the apps malfunctioning arent touching the external sdcard (google play services for instance)
 
Last edited: