summaryrefslogtreecommitdiffstats
path: root/power/device-files/shutdown.sh
diff options
context:
space:
mode:
Diffstat (limited to 'power/device-files/shutdown.sh')
-rwxr-xr-xpower/device-files/shutdown.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/power/device-files/shutdown.sh b/power/device-files/shutdown.sh
new file mode 100755
index 0000000..2875b6a
--- /dev/null
+++ b/power/device-files/shutdown.sh
@@ -0,0 +1,5 @@
+#!/system/xbin/bash
+# References:
+# https://android.googlesource.com/platform/frameworks/base/+/android-4.1.1_r1/core/res/AndroidManifest.xml#1723
+# https://android.stackexchange.com/questions/43706/whats-the-best-way-to-restart-android-via-command-line-remotely/139139#139139
+am start -a android.intent.action.ACTION_REQUEST_SHUTDOWN