Loading adb/daemon/main.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ static bool should_drop_privileges() { bool drop = ro_secure; // ... except "adb root" lets you keep privileges in a debuggable build. std::string prop = android::base::GetProperty("lineage.service.adb.root", ""); std::string prop = android::base::GetProperty("service.adb.root", ""); bool adb_root = (prop == "1"); bool adb_unroot = (prop == "0"); if (ro_debuggable && adb_root) { Loading adb/daemon/restart_service.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ void restart_root_service(unique_fd fd) { #endif LOG(INFO) << "adbd restarting as root"; android::base::SetProperty("lineage.service.adb.root", "1"); android::base::SetProperty("service.adb.root", "1"); WriteFdExactly(fd.get(), "restarting adbd as root\n"); } Loading @@ -85,7 +85,7 @@ void restart_unroot_service(unique_fd fd) { } LOG(INFO) << "adbd restarting as nonroot"; android::base::SetProperty("lineage.service.adb.root", "0"); android::base::SetProperty("service.adb.root", "0"); WriteFdExactly(fd.get(), "restarting adbd as non root\n"); } Loading adb/root/adbroot_service.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ binder::Status ADBRootService::setEnabled(bool enabled) { // Turning off adb root, restart adbd. if (!enabled) { base::SetProperty("lineage.service.adb.root", "0"); base::SetProperty("service.adb.root", "0"); base::SetProperty("ctl.restart", "adbd"); } } Loading Loading
adb/daemon/main.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ static bool should_drop_privileges() { bool drop = ro_secure; // ... except "adb root" lets you keep privileges in a debuggable build. std::string prop = android::base::GetProperty("lineage.service.adb.root", ""); std::string prop = android::base::GetProperty("service.adb.root", ""); bool adb_root = (prop == "1"); bool adb_unroot = (prop == "0"); if (ro_debuggable && adb_root) { Loading
adb/daemon/restart_service.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ void restart_root_service(unique_fd fd) { #endif LOG(INFO) << "adbd restarting as root"; android::base::SetProperty("lineage.service.adb.root", "1"); android::base::SetProperty("service.adb.root", "1"); WriteFdExactly(fd.get(), "restarting adbd as root\n"); } Loading @@ -85,7 +85,7 @@ void restart_unroot_service(unique_fd fd) { } LOG(INFO) << "adbd restarting as nonroot"; android::base::SetProperty("lineage.service.adb.root", "0"); android::base::SetProperty("service.adb.root", "0"); WriteFdExactly(fd.get(), "restarting adbd as non root\n"); } Loading
adb/root/adbroot_service.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ binder::Status ADBRootService::setEnabled(bool enabled) { // Turning off adb root, restart adbd. if (!enabled) { base::SetProperty("lineage.service.adb.root", "0"); base::SetProperty("service.adb.root", "0"); base::SetProperty("ctl.restart", "adbd"); } } Loading