I need to change the permission of the /data/gps folder to rwx-rwx-rwx and I can obviously do this using ES File Explorer or Terminal Emulator but whatever changes I make will be reverted upon reboot.
So I made a shell script to have the folder permission changed at boot (I have no idea if the script is correct though).
Quote
#!/system/bin/sh
chmod 777 /data/gps
chmod 777 /data/gps
I've seen people saying that whatever scripts placed within the init.d folder will be executed automatically upon boot. I have tried putting my script in the init.d folder but it didn't work.
On a separate occasion, I have also tried putting the script in /system/etc and adding the following lines into init.rc file to start the service on boot.
Quote
#testscript
service myscript /system/etc/testscript.sh
oneshot
service myscript /system/etc/testscript.sh
oneshot
Obviously, that didn't work as well because whatever lines I add into the init.rc file will be reverted upon reboot. This should be a simple task but I don't have any knowledge on Linux or Android system and I don't know what else to try. If I did anything wrong, could somebody please help me with it. I'm a retard sigh.
Edited by bluegodzilla, 05 February 2012 - 11:53 AM.
















