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

This commit is contained in:
Yi-yo Chiang 2022-06-10 12:08:34 +00:00 committed by Gerrit Code Review
commit 155bba8b0c
1 changed files with 5 additions and 0 deletions

View File

@ -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;