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

Commit bf10797e authored by Colin Cross's avatar Colin Cross Committed by Android Git Automerger
Browse files

am f7ca6040: Fix infinite loop in init when debugging is turned off

* commit 'f7ca6040':
  Fix infinite loop in init when debugging is turned off
parents f1c2a735 f7ca6040
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -103,14 +103,14 @@ void handle_keychord()
    // and on user builds for users that are developers.
    debuggable = property_get("ro.debuggable");
    adb_enabled = property_get("init.svc.adbd");
    if ((debuggable && !strcmp(debuggable, "1")) ||
        (adb_enabled && !strcmp(adb_enabled, "running"))) {
    ret = read(keychord_fd, &id, sizeof(id));
    if (ret != sizeof(id)) {
        ERROR("could not read keychord id\n");
        return;
    }

    if ((debuggable && !strcmp(debuggable, "1")) ||
        (adb_enabled && !strcmp(adb_enabled, "running"))) {
        svc = service_find_by_keychord(id);
        if (svc) {
            INFO("starting service %s from keychord\n", svc->name);