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)");
|
||||
|
||||
if (!Helper::hasSuperUser()) {
|
||||
if (!(FuncManager.isUsed("reboot") && Helper::hasAdbPermissions()))
|
||||
if (!(FuncManager.isUsed("rebootFunction") && Helper::hasAdbPermissions()))
|
||||
throw Error(
|
||||
"Partition Manager Tool is requires super-user privileges!\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user