Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/system/bin/sh
- NEW_TB_APK_PATH=/mnt/extsd/sdapp/files/TB-D1D2-v.3.1.apk
- log ScriptUpdateTaskTB 'Installing the TURTLEBEACH Application/Content' started
- am broadcast -a com.lynxinnovation.action.TASK_STARTED --ei status 5 -e text "Installing the TURTLEBEACH Application/Content"
- log Remount
- adb -s 127.0.0.1:5555 shell mount -o rw,remount /system
- sleep 1
- log Uninstalling APK
- adb -s 127.0.0.1:5555 uninstall com.lynxinnovation.tb.d1.us
- sleep 1
- log ScriptUpdateTaskTB Installing the new com.lynxinnovation.tb.d1.us package...
- adb -s 127.0.0.1:5555 shell pm install -r $NEW_TB_APK_PATH
- sleep 1
- log Setting Password
- adb -s 127.0.0.1:5555 shell setprop persist.lynx.passwd.admin 0c56ae7e047a17c1c9dcb437b93334fe
- sleep 1
- log Setting Persist
- adb -s 127.0.0.1:5555 shell setprop persist.lynx.autorun com.lynxinnovation.tb.d1.us
- sleep 2
- am broadcast -a com.lynxinnovation.action.TASK_STARTED --ei status 0 -e text "Installing Completed"
- log ScriptUpdateTaskTB Task 'Installing the TURTLEBEACH Application/Content' finished
- sleep 2
- am broadcast -a com.lynxinnovation.action.TASK_FINISHED --ei status 0 -e text "Installing Completed"
- (sync; reboot) & # this delays and reboots in the background
- exit 0 # this exits the main process
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement