Advertisement
Guest User

LYNX Loading Script

a guest
Jun 25th, 2018
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. #!/system/bin/sh
  2.  
  3. NEW_TB_APK_PATH=/mnt/extsd/sdapp/files/TB-D1D2-v.3.1.apk
  4.  
  5. log ScriptUpdateTaskTB 'Installing the TURTLEBEACH Application/Content' started
  6. am broadcast -a com.lynxinnovation.action.TASK_STARTED --ei status 5 -e text "Installing the TURTLEBEACH Application/Content"
  7.  
  8. log Remount
  9. adb -s 127.0.0.1:5555 shell mount -o rw,remount /system
  10.  
  11. sleep 1
  12.  
  13. log Uninstalling APK
  14. adb -s 127.0.0.1:5555 uninstall com.lynxinnovation.tb.d1.us
  15.  
  16. sleep 1
  17.  
  18. log ScriptUpdateTaskTB Installing the new com.lynxinnovation.tb.d1.us package...
  19. adb -s 127.0.0.1:5555 shell pm install -r $NEW_TB_APK_PATH
  20.  
  21. sleep 1
  22.  
  23. log Setting Password
  24. adb -s 127.0.0.1:5555 shell setprop persist.lynx.passwd.admin 0c56ae7e047a17c1c9dcb437b93334fe
  25.  
  26. sleep 1
  27.  
  28. log Setting Persist
  29. adb -s 127.0.0.1:5555 shell setprop persist.lynx.autorun com.lynxinnovation.tb.d1.us
  30.  
  31. sleep 2
  32.  
  33. am broadcast -a com.lynxinnovation.action.TASK_STARTED --ei status 0 -e text "Installing Completed"
  34. log ScriptUpdateTaskTB Task 'Installing the TURTLEBEACH Application/Content' finished
  35. sleep 2
  36. am broadcast -a com.lynxinnovation.action.TASK_FINISHED --ei status 0 -e text "Installing Completed"
  37.  
  38. (sync; reboot) & # this delays and reboots in the background
  39. exit 0 # this exits the main process
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement