Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Ambrosial
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Jun 2011
Default [Q] Permanently Change Folder Permission

I am trying to change the folder permission of the "data/gps" folder to "rwx rwx rwx", by default, it's set to "rwx --- ---".

I can do this by using ES File Explorer but the folder permission gets reverted to the default upon reboot. So I'm guessing ES File Explorer can't change it permanently.

My question is, is there any method that I can use to change it permanently? I have Terminal Emulator installed, but I've never used it before so I don't want to go around messing with it just yet (unless if I can get a confirmation that it'll do what I need it to do).

I would appreciate any help on this. Thanks.
 
Ambrosial
Old
(Last edited by Ambrosial; 8th February 2012 at 12:42 PM.) Reason: Update: Resolved
#2  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Jun 2011
Update:

I tried it with Terminal Emulator, "chmod 777 /data/gps". No luck, the permissions still reverted to default upon reboot.

I was informed that all scripts placed within "/etc/init.d" folder are executed on boot. So I created a shell script file and placed it in that folder.

Quote:
#Change folder permission
chmod 777 /data/gps
Unfortunately, that didn't work either. I don't know if the script above is incorrect or incomplete. One thing I can't figure out though, are all the scripts in the folder executed with superuser privilege? Correct me if I'm wrong but in order to change the permission for "/data/gps" folder, superuser privilege is required. I have tried the following scripts, nothing works.

Quote:
#Change folder permission
su chmod 777 /data/gps
Quote:
#Change folder permission
sudo chmod 777 /data/gps
Quote:
#Change folder permission
sudo su chmod 777 /data/gps
Anyone with ideas?


UPDATE: I have got this fixed! Turns out that there was nothing wrong with the script. Placing the script in the init.d folder does the trick, it's just that I couldn't get it to work with CM9, it works perfectly on OneCosmic ROM. Maybe CM9 doesn't support init.d?
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...