Easily Generate and Export Material Design Palletes

For many people, it can be pretty difficult to create a palette of complementary colors. … more

Android One Expanding to Bangladesh, Nepal, and Sri Lanka

At Google I/O 2013, Google proudly announced that the Android operating system was … more

Android 5.0.2 Fixes 2012 Nexus 7! Sony’s Making a Google Glass Competitor? – XDA TV

Android 5.0.2 Lollipop is available for the … more

Early Lollipop Ports for Micromax A116 and A117

It feels like it was only yesterday when Google announced the mysterious Android L.After … more

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

lost all permissions after messing with platform.xml

OP DxCK

20th January 2014, 11: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!
21st January 2014, 12:37 AM   |  #2  
radicalisto's Avatar
Senior Member
Flag York
Thanks Meter: 1,511
 
3,701 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, 11: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, 11:45 AM   |  #4  
radicalisto's Avatar
Senior Member
Flag York
Thanks Meter: 1,511
 
3,701 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, 05: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, 06:46 PM   |  #6  
A.N.Droid's Avatar
Senior Member
Thanks Meter: 53
 
182 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, 10: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 10:32 PM. Reason: spell
21st January 2014, 11:20 PM   |  #8  
A.N.Droid's Avatar
Senior Member
Thanks Meter: 53
 
182 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