rebootFunction: Allow reboot function in ADB without root

This commit is contained in:
2025-08-10 22:16:12 +03:00
parent 6ccead8532
commit f9eea8aef7
6 changed files with 17 additions and 4 deletions

View File

@@ -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{};