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

Commit 75801ab5 authored by Hung-ying Tyan's avatar Hung-ying Tyan
Browse files

Load /prop.default in recovery mode

Bug: 37815285
Bug: 62525809
Test: Tested with ag/2398663 and ag/2400523. Booted pixel phones,
      checked the location of prop.default, verified the symlink,
      checked a few properties via adb shell and manually tested
      a few apps.
      Booted to recovery and ran 'adb sideload' successfully.
Change-Id: I034b700fcd60b0104873131e94864b16ef4bd9f6
parent 12ea2d12
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -594,9 +594,12 @@ static void update_sys_usb_config() {

void property_load_boot_defaults() {
    if (!load_properties_from_file("/system/etc/prop.default", NULL)) {
        // legacy path
        // Try recovery path
        if (!load_properties_from_file("/prop.default", NULL)) {
            // Try legacy path
            load_properties_from_file("/default.prop", NULL);
        }
    }
    load_properties_from_file("/odm/default.prop", NULL);
    load_properties_from_file("/vendor/default.prop", NULL);