Hide adbd service state since DroidGuard looks at it

- not currently enforced, but play it safe and spoof it by default like with USB state
This commit is contained in:
Chris Renshaw
2024-01-21 00:50:27 -04:00
committed by GitHub
parent bdcfd283f1
commit 63e4c571bf

View File

@@ -30,8 +30,10 @@ static void modify_callback(void *cookie, const char *name, const char *value, u
std::string prop(name);
// Spoof specific property values
if (prop == "sys.usb.state") {
value = "mtp"; // Hide USB Debugging
if (prop == "init.svc.adbd") {
value = "stopped";
} else if (prop == "sys.usb.state") {
value = "mtp";
}
if (jsonProps.count(prop)) {