rebootFunction: Allow reboot function in ADB without root
This commit is contained in:
@@ -105,6 +105,7 @@ void reset();
|
||||
|
||||
// Checkers
|
||||
bool hasSuperUser();
|
||||
bool hasAdbPermissions();
|
||||
bool isExists(std::string_view entry);
|
||||
bool fileIsExists(std::string_view file);
|
||||
bool directoryIsExists(std::string_view directory);
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
namespace Helper {
|
||||
bool hasSuperUser() { return (getuid() == AID_ROOT); }
|
||||
bool hasAdbPermissions() { return (getuid() == AID_ADB); }
|
||||
|
||||
bool isExists(const std::string_view entry) {
|
||||
struct stat st{};
|
||||
|
||||
Reference in New Issue
Block a user