You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Superuser interface. There are three types of superusers: device admin, device owner (provided by Dhizuku) and root. Root user is the most privileged one, and device admin is the least privileged.
7
+
* Superuser interface. There are three types of superusers: device admin, Dshizuku (chooses between Shizuku and Dhizuku) and root. Root user is the most privileged one, and device admin is the least privileged.
8
8
*/
9
9
interfaceSuperUser {
10
10
/**
@@ -18,7 +18,7 @@ interface SuperUser {
18
18
/**
19
19
* Get list of all user profiles.
20
20
*
21
-
* Requirements: device owner or root. Device owner requires Android 9 and above to get profiles and can't retrieve profiles names.
21
+
* Requirements: shizuku, dhizuku or root. Dhizuku requires Android 9 and above to get profiles and can't retrieve profiles names.
22
22
* @return list of profiles
23
23
*/
24
24
@Throws(SuperUserException::class)
@@ -27,7 +27,7 @@ interface SuperUser {
27
27
/**
28
28
* Remove specified user profile.
29
29
*
30
-
* Requirements: device owner or root.
30
+
* Requirements: dhizuku or root.
31
31
* @param id id of profile to remove
32
32
*/
33
33
@Throws(SuperUserException::class)
@@ -36,7 +36,7 @@ interface SuperUser {
36
36
/**
37
37
* Uninstall app with specified packageName. App leave numerous traces in android system even after uninstallation, it's recommended to clear app's data instead of deletion.
38
38
*
39
-
* Requirements: device owner or root. **Android can show notification if app was deleted using Dhizuku, making work of application obvious to adversary.**
39
+
* Requirements: root or shizuku.
40
40
* @param packageName name of package to uninstall
41
41
*/
42
42
@Throws(SuperUserException::class)
@@ -45,7 +45,7 @@ interface SuperUser {
45
45
/**
46
46
* Hide app with specified packageName.
47
47
*
48
-
* Requirements: device owner or root. The function can work with bugs if hiding apps is done using Dhizuku.
48
+
* Requirements: dhizuku or root. The function can work with bugs if hiding apps is done using Dhizuku.
49
49
* @param packageName name of package to hide.
50
50
*/
51
51
@Throws(SuperUserException::class)
@@ -54,7 +54,7 @@ interface SuperUser {
54
54
/**
55
55
* Clear data of app with specified packageName.
56
56
*
57
-
* Requirements: device owner or root. Device owner requires Android 9 or higher.
57
+
* Requirements: dhizuku or root. Dhizuku requires Android 9 or higher.
58
58
* @param packageName name of package to clear.
59
59
*/
60
60
@Throws(SuperUserException::class)
@@ -63,7 +63,7 @@ interface SuperUser {
63
63
/**
64
64
* Run [TRIM](https://en.wikipedia.org/wiki/Trim_(computing)) command to mark unused blocks for clearing. Use it to reduce the likelihood of deleted data recovery.
65
65
*
66
-
* Requirements: root.
66
+
* Requirements: root or shizuku.
67
67
*/
68
68
@Throws(SuperUserException::class)
69
69
suspendfunrunTrim()
@@ -85,6 +85,11 @@ interface SuperUser {
85
85
@Throws(SuperUserException::class)
86
86
suspendfunstopLogd()
87
87
88
+
/**
89
+
* Call callback when power button clicked
90
+
* @return callback to stop listening to power button
* Enable or disable safe boot. For unknown reason there may be problems with enabling safe boot if it was disabled.
132
+
* Enable or disable safe boot.
128
133
*
129
-
* Adversary may use safe boot to circumvent device protection offered by the app. However, disabling safe boot may raise suspicions. Try to make Android Antiforensics Tools a system app instead.
134
+
* Adversary may use safe boot to circumvent device protection offered by the app.
130
135
*
131
-
* Requirements: device owner or root.
136
+
* Requirements: dhizuku or shizuku or root.
132
137
* @param status enable or disable safe boot.
133
138
*/
134
139
@Throws(SuperUserException::class)
@@ -137,7 +142,7 @@ interface SuperUser {
137
142
/**
138
143
* Get status of safe boot.
139
144
*
140
-
* Requirements: device owner or root.
145
+
* Requirements: dhizuku or shizuku or root.
141
146
* @return is safe boot enabled or disabled.
142
147
*/
143
148
@Throws(SuperUserException::class)
@@ -146,7 +151,7 @@ interface SuperUser {
146
151
/**
147
152
* Enable or disable UI for switching between users. May be helpful if this UI is disabled or, in contrast, can't be disabled in android settings. It's recommended to disable UI for switching between users every time you don't need it, because adversary may use it to get list of your profiles from lockscreen.
148
153
*
149
-
* Requirements: root, Android 10+.
154
+
* Requirements: root or shizuku, Android 10+.
150
155
* @param status enable or disable user switcher UI.
151
156
*/
152
157
@Throws(SuperUserException::class)
@@ -155,7 +160,7 @@ interface SuperUser {
155
160
/**
156
161
* Get status of UI for switching between users
157
162
*
158
-
* Requirements: root, Android 10+.
163
+
* Requirements: root or shizuku, Android 10+.
159
164
* @return is UI for switching between users enabled or disabled.
160
165
*/
161
166
@Throws(SuperUserException::class)
@@ -164,7 +169,7 @@ interface SuperUser {
164
169
/**
165
170
* Enable or disable switching between users and corresponding UI. May be helpful if this UI is disabled or, in contrast, can't be disabled in android settings. It's recommended to disable UI for switching between users every time you don't need it, because adversary may use it to get list of your profiles from lockscreen.
166
171
*
167
-
* Requirements: root, Android 9+.
172
+
* Requirements: root or dhizuku, Android 9+.
168
173
* @param status allow or prohibit switching between users.
169
174
*/
170
175
@Throws(SuperUserException::class)
@@ -173,42 +178,72 @@ interface SuperUser {
173
178
/**
174
179
* Get status of switching between users
175
180
*
176
-
* Requirements: root, Android 9+.
181
+
* Requirements: root or dhizuku, Android 9+.
177
182
* @return is switching between users enabled or disabled.
178
183
*/
179
184
@Throws(SuperUserException::class)
180
185
suspendfungetSwitchUserRestriction(): Boolean
181
186
182
187
/**
183
188
* Reboot device
189
+
* Requirements: root or shizuku or dhizuku
184
190
*/
185
191
@Throws(SuperUserException::class)
186
192
suspendfunreboot()
187
193
188
194
/**
189
195
* Logout specified user. Moves user to SHUTDOWN state, evicts encryption keys. Can't be called for primary user.
196
+
* Requirements: root or shizuku or dhizuku with Android 9 or higher
0 commit comments