Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70385f30 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Remove the emulator special case from the "adb root" code."

parents 17f26790 abd6773b
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -108,13 +108,6 @@ static bool should_drop_privileges() {
#if defined(ALLOW_ADBD_ROOT)
    char value[PROPERTY_VALUE_MAX];

    // The emulator is never secure, so don't drop privileges there.
    // TODO: this seems like a bug --- shouldn't the emulator behave like a device?
    property_get("ro.kernel.qemu", value, "");
    if (strcmp(value, "1") == 0) {
        return false;
    }

    // The properties that affect `adb root` and `adb unroot` are ro.secure and
    // ro.debuggable. In this context the names don't make the expected behavior
    // particularly obvious.