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

Commit 155bba8b authored by Yi-yo Chiang's avatar Yi-yo Chiang Committed by Gerrit Code Review
Browse files

Merge "Auto enable usb adb if booting with debug ramdisk"

parents 2ba3ae31 70c53f5d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1351,6 +1351,11 @@ static void HandleInitSocket() {
                InitPropertySet(persistent_property_record.name(),
                                persistent_property_record.value());
            }
            // Apply debug ramdisk special settings after persistent properties are loaded.
            if (android::base::GetBoolProperty("ro.force.debuggable", false)) {
                // Always enable usb adb if device is booted with debug ramdisk.
                update_sys_usb_config();
            }
            InitPropertySet("ro.persistent_properties.ready", "true");
            persistent_properties_loaded = true;
            break;