Advertisement
v1ral_ITS

auto run.sh

Mar 30th, 2019
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. #!/system/bin/sh
  2.  
  3. if busybox [ ! -d /system/bin/autorun ]
  4. then
  5. exit 1;
  6. fi
  7.  
  8. echo $$ >/dev/cpuctl/apps/bg_non_interactive/tasks
  9.  
  10. scripts=`ls /system/bin/autorun`
  11.  
  12.  
  13. for exe in $scripts
  14. do
  15.     echo "run $exe"
  16.     /system/bin/autorun/$exe>>/cache/logs/logcat/$exe-log.txt 2>&1 &
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement