Share My Creation Auto Shutdown when power removed (root)

For those looking to run a tablet in their cars, I created a simple app that automatically shutdowns the tablet when the power is removed (car turns off).

Features
-Background service loads during boot
-Remove power, timer will countdown to power off
-Connect power, timer will stop or hit 'Suspend button' to stay on

** Need to be rooted to run the shutdown command. **
B4X:
"su -c reboot -p"

Also to turn on the tablet when power is applied (car turns on), there is a system file to modify.
B4X:
https://www.youtube.com/watch?v=QBKD068VIjE

Works on my Samsung Tab A 7.0 (SM-T280) with a rooted ROM

Enable.png
shutdown.png
 

Attachments

  • Shutdown.zip
    63.4 KB · Views: 352
Last edited:

MolsonB

Member
Licensed User
Longtime User
Version 2:

Fixed some user interface bugs. Added a separate StartAtBoot service and StateManager to handle saving the variables.
 

Attachments

  • Shutdown2.0.zip
    68.2 KB · Views: 317
Top