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

Commit 66af09cc authored by Tom Marshall's avatar Tom Marshall
Browse files

adb: Changes for factory mode

 * Always insecure in factory mode

Change-Id: Ic5b6e83ef816240521424814d66294fd786966cd
parent 3b29a757
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1326,8 +1326,12 @@ int adb_main(int is_daemon, int server_port)
        exit(1);
    }
#else
    // Override auth in factory test mode
    property_get("ro.boot.ftm", value, "0");
    if (!strcmp(value, "0")) {
        property_get("ro.adb.secure", value, "0");
        auth_enabled = !strcmp(value, "1");
    }
    if (auth_enabled)
        adb_auth_init();