Shutdown

Last updated: 2025-05-14

Related products: Software

Usage

Installation

Install the latest version of the app for your device on the bottom of this page.

Basic usage

The actions are triggered by sending an intent to the service. From there, the commands are executed with system-level permissions. Depending on the commands you want to run you’ll have to add permissions to your app’s manifest file.

See below for possible commands you can use.

1
public void shutdown() {
2
Intent intent = new Intent();
3
intent.setAction("com.handheldgroup.shutdown.SHUTDOWN");
4
intent.setPackage("com.handheldgroup.shutdown");
5
startService(intent);
6
}
7

8
// Reboot the device. Requires com.handheldgroup.shutdown.SHUTDOWN permission
9
public void reboot() {
10
Intent intent = new Intent();
11
intent.setAction("com.handheldgroup.shutdown.SHUTDOWN");
12
intent.setPackage("com.handheldgroup.shutdown");
13
intent.putExtra("reboot", true);
14
startService(intent);
15
}
16

17
// Turn off screen / lock the device. Requires com.handheldgroup.shutdown.SHUTDOWN permission
18
public void lockScreen() {
19
Intent intent = new Intent();
20
intent.setAction("com.handheldgroup.shutdown.SLEEP");
21
intent.setPackage("com.handheldgroup.shutdown");
22
startService(intent);
23
}
24

25
// Install apk file. Requires com.handheldgroup.shutdown.INSTALL permission
26
public void installApp() {
27
Intent intent = new Intent();
28
intent.setAction("com.handheldgroup.shutdown.INSTALL");
29
intent.setPackage("com.handheldgroup.shutdown");
30
intent.putExtra("path", (new File(Environment.getExternalStorageDirectory(), "your-app.apk")).getAbsolutePath());
31
startService(intent);
32
}
33

34
// Enables or disables a app by its package. Requires com.handheldgroup.shutdown.ACTIVATE permission
35
public void deactivateApp() {
36
Intent intent = new Intent();
37
intent.setAction("com.handheldgroup.shutdown.ACTIVATE");
38
intent.setPackage("com.handheldgroup.shutdown");
39
intent.putExtra("package", "com.android.calculator2");
40
intent.putExtra("enable", false);
41
startService(intent);
42
}
43

44
// Enables or disables usb debugging. Requires com.handheldgroup.shutdown.USB permission
45
public void disableUsbdebug() {
46
Intent intent = new Intent();
47
intent.setAction("com.handheldgroup.shutdown.USB");
48
intent.setPackage("com.handheldgroup.shutdown");
49
intent.putExtra("activate", false);
50
startService(intent);
51
}
52

53
// Sets the screen rotation
54
// value can be -1 for automatic rotation, 0 for 0┬░, 1 for 90┬░, 2 for 180┬░ or 3 for 270┬░
55
public void setScreenRotation() {
56
Intent intent = new Intent();
57
intent.setAction("com.handheldgroup.shutdown.SCREEN_ROTATION");
58
intent.setPackage("com.handheldgroup.shutdown");
59
intent.putExtra("rotation", value);
60
startService(intent);
61
}
62

63
// Sets the screen timeout
64
// value can be -1 for never, 0 for 15 sec, 1 for 30 sec, 2 for 1 min, 3 for 2 min, 4 for 10 min or 5 for 30 min
65
public void setScreenTimeout() {
66
Intent intent = new Intent();
67
intent.setAction("com.handheldgroup.shutdown.SCREEN_TIMEOUT");
68
intent.setPackage("com.handheldgroup.shutdown");
69
intent.putExtra("timeout", value);
70
startService(intent);
71
}
72

73
// Sets the screen brightness
74
// value can be any percentage between 0-100 or -1 for automatic brightness
75
public void setScreenBrightness() {
76
Intent intent = new Intent();
77
intent.setAction("com.handheldgroup.shutdown.SCREEN_BRIGHTNESS");
78
intent.setPackage("com.handheldgroup.shutdown");
79
intent.putExtra("brightness", value);
80
startService(intent);
81
}
82

83
// Enabled or disables NFC
84
// value can true or false
85
public void setNfcEnabled() {
86
Intent intent = new Intent();
87
intent.setAction("com.handheldgroup.shutdown.NFC");
88
intent.setPackage("com.handheldgroup.shutdown");
89
intent.putExtra("enable", value);
90
startService(intent);
91
}
92

93
// Enabled or disables Airplane mode
94
// value can true or false
95
public void setAirplaneEnabled() {
96
Intent intent = new Intent();
97
intent.setAction("com.handheldgroup.shutdown.AIRPLANE_MODE");
98
intent.setPackage("com.handheldgroup.shutdown");
99
intent.putExtra("enable", value);
100
startService(intent);
101
}
Changelog

Version 1.6.0

  • Added support for controlling NFC
  • Added support for controlling airplane mode

Version 1.5.0

  • Added support for screen timeout, rotation and brightness

Version 1.4.2

  • Initial public for Algiz RT7
Supported Devices

See below for the service/app download for each device. If support for a device is missing, feel free to contact us here.

DeviceVersion
Algiz RT71.7.0
Nautiz X21.7.0
Nautiz X61.7.0
Nautiz X91.7.0