pmt: fix getting adb status for reboot function
This commit is contained in:
@@ -113,7 +113,7 @@ int Main(int argc, char **argv) {
|
|||||||
"(--search-path)");
|
"(--search-path)");
|
||||||
|
|
||||||
if (!Helper::hasSuperUser()) {
|
if (!Helper::hasSuperUser()) {
|
||||||
if (!(FuncManager.isUsed("reboot") && Helper::hasAdbPermissions()))
|
if (!(FuncManager.isUsed("rebootFunction") && Helper::hasAdbPermissions()))
|
||||||
throw Error(
|
throw Error(
|
||||||
"Partition Manager Tool is requires super-user privileges!\n");
|
"Partition Manager Tool is requires super-user privileges!\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user