Sony Xperia Z3 Lollipop Framework Ported to CM12

Android 5.0 for Xperia has a unique look and feel. You don’t have to get a Sony … more

Do You Use Recents as a Task Switcher?

Google introduced a revamped Recents interface with Lollipop in the hopes of making it easier for … more

YU Yureka All-in-One ToolBox (CM12S Only)

This packed toolbox by XDA Senior Member gohel.vishal makes many useful tweaks … more

Sony Xperia Z4 Forum Now Available

Sony’s Xperia line has seen plenty of development on XDA, and now that the Xperia Z4 has been … more
Post Reply Subscribe to Thread Email Thread

lost all permissions after messing with platform.xml

20th January 2014, 10:47 PM |#1  
OP Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: Sep 2013
Hello,

I have SM-N9005 variant and recently I updated to the latest android 4.4.2 leaked version with Odin, and then rooted with CF-Auto-Root.

After that, I lost the permission to write to external sdcard.

I searched and found this: http://forum.xda-developers.com/show...php?p=49603814

I backed up /system/etc/permissions/platform.xml and then I followed the instructions there.

After restart, a lot of app stopping messages showed and I had no access to file system or network anymore.

I used adb shell to restore the original platform.xml but it didn't helped in any way.

It seems that all mounts and networks are working, but none of the applications has permission to use any of them.

How do I resolve this, without wiping all my data?

Thank you!
 
 
20th January 2014, 11:37 PM |#2  
radicalisto's Avatar
Senior Member
Flag York
Thanks Meter: 1,538
 
3,727 posts
Join Date:Joined: Nov 2013
Donate to Me
More
You need to set the correct permissions on the .xml after you overwrite it back into the /system Off the top of my head I can't think what they are (just out of bed and got to work so still sleepy!)
21st January 2014, 10:39 AM |#3  
OP Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: Sep 2013
Quote:
Originally Posted by radicalisto

You need to set the correct permissions on the .xml after you overwrite it back into the /system Off the top of my head I can't think what they are (just out of bed and got to work so still sleepy!)

I tried 644 and 777 but the problem persists.
21st January 2014, 10:45 AM |#4  
radicalisto's Avatar
Senior Member
Flag York
Thanks Meter: 1,538
 
3,727 posts
Join Date:Joined: Nov 2013
Donate to Me
More
rw-r-r which is 644 - read wrong

or chmod 666 -- forgive my lack of memory, it has been a long time since I have used chmod commands, few years since my glFTPD / site modding days.
21st January 2014, 04:09 PM |#5  
OP Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: Sep 2013
Quote:
Originally Posted by radicalisto

rw-r-r which is 644 - read wrong

or chmod 666 -- forgive my lack of memory, it has been a long time since I have used chmod commands, few years since my glFTPD / site modding days.

The problem still persist
21st January 2014, 05:46 PM |#6  
A.N.Droid's Avatar
Senior Member
Thanks Meter: 60
 
188 posts
Join Date:Joined: Dec 2013
More
Quote:
Originally Posted by DxCK

The problem still persist

i dont know if it helps in your situation but did you try the "fix permissions" from a custom recovery like twrp?
there are also scripts you can execute in a terminal, the knoxout script linked in my sig for example has a permission fixer included.
21st January 2014, 09:20 PM |#7  
OP Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: Sep 2013
Quote:
Originally Posted by A.N.Droid

i dont know if it helps in your situation but did you try the "fix permissions" from a custom recovery like twrp?
there are also scripts you can execute in a terminal, the knoxout script linked in my sig for example has a permission fixer included.

Thank you.

When i run this, no matter what are the parameters, for example: sh kn0x0ut.sh kn0x0ut

it says:

ERROR: Unknown parameter ""
Removing all temp folder /data/media/kn0x0ut_temp...
Last edited by DxCK; 21st January 2014 at 09:32 PM. Reason: spell
21st January 2014, 10:20 PM |#8  
A.N.Droid's Avatar
Senior Member
Thanks Meter: 60
 
188 posts
Join Date:Joined: Dec 2013
More
Quote:
Originally Posted by DxCK

Thank you.

When i run this, no matter what are the parameters, for example: sh kn0x0ut.sh kn0x0ut

it says:

ERROR: Unknown parameter ""
Removing all temp folder /data/media/kn0x0ut_temp...

just type sh kn0x0ut.sh to get all commands.
if you dont get this working, you can do it from twrp (i think cwm too)if you have it.
tap on "advanced" and then on "fix permissions".
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy Note 3 Q&A, Help & Troubleshooting by ThreadRank