Advertisement
alexforsale

Untitled

Dec 24th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #!/system/bin/sh
  2. # Permission script
  3.  
  4.  
  5. logFile=/data/perms.log
  6. if [ -f $logFile ]; then
  7. rm $logFile
  8. fi
  9. touch $logFile
  10.  
  11. mount -o rw,remount /dev/block/mmcblk0p12 /system
  12. echo "Setting permissions" >> $logFile
  13. for file in /system/app/* /system/framework/* /data/app/*; do
  14. echo " setting permissions (644) for $file" >> $logFile
  15. chmod 644 $file
  16. done
  17.  
  18. echo "chmodding init.d folder"
  19. chmod 777 /system/etc/init.d
  20.  
  21. for file in /system/etc/init.d/*; do
  22. echo " setting permissions (777) for $file" >> $logFile
  23. chmod 777 $file
  24. done
  25. echo "Permissions set" >> $logFile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement