System Trigger

System Trigger is a very simple Android tool.

Currently, it does only 2 things:

  1. it can run/execute a command, and launch another Android app when the device boots up.
  2. it can run/execute a command when the device shutdowns or reboots.

Personally, I use it to run a command for shutting down my custom Android system.

Package name of Startup App :
Enter the package name of the Android app to be launched when your device boots up.
Eg. jackpal.androidterm is the package name of Android Terminal Emulator by Jack Palevich.
Click on the "Launch App" button to launch the app you have entered (for testing)

Command to execute on Startup :
Enter an absolute command to be executed when your device boots up.
Eg. to launch the same Android Terminal Emulator with the command:
/system/bin/am start --user 0 -a android.intent.action.MAIN -n jackpal.androidterm/.Term

Command to execute on Shutdown :
Enter an absolute command to be executed when your device shutdowns or reboots.
Eg. /data/local/home/undeb is the command I execute to shutdown my custom Android system. Refer to Debian Android with no Root if interested.

Click on the Check button to verify the absolute command paths are valid and they are executable by anyone.
Click on the Save button to save all the entered values.


The source code is released at https://github.com/skyleecm/systemtrigger (Apache License, Version 2.0)

Comments

blog comments powered by Disqus