system/core
修订版 | b36b54cf796d722653ad9bea11284815a3f5eda5 (tree) |
---|---|
时间 | 2019-05-23 11:13:26 |
作者 | Bowgo Tsai <bowgotsai@goog...> |
Commiter | Android (Google) Code Review |
Merge "Moving /odm/build.prop to /odm/etc/buid.prop" into qt-dev
@@ -883,8 +883,12 @@ void property_load_boot_defaults(bool load_debug_prop) { | ||
883 | 883 | load_properties_from_file("/system/build.prop", nullptr, &properties); |
884 | 884 | load_properties_from_file("/vendor/default.prop", nullptr, &properties); |
885 | 885 | load_properties_from_file("/vendor/build.prop", nullptr, &properties); |
886 | - load_properties_from_file("/odm/default.prop", nullptr, &properties); | |
887 | - load_properties_from_file("/odm/build.prop", nullptr, &properties); | |
886 | + if (SelinuxGetVendorAndroidVersion() >= __ANDROID_API_Q__) { | |
887 | + load_properties_from_file("/odm/etc/build.prop", nullptr, &properties); | |
888 | + } else { | |
889 | + load_properties_from_file("/odm/default.prop", nullptr, &properties); | |
890 | + load_properties_from_file("/odm/build.prop", nullptr, &properties); | |
891 | + } | |
888 | 892 | load_properties_from_file("/product/build.prop", nullptr, &properties); |
889 | 893 | load_properties_from_file("/product_services/build.prop", nullptr, &properties); |
890 | 894 | load_properties_from_file("/factory/factory.prop", "ro.*", &properties); |
@@ -159,8 +159,9 @@ static const struct fs_path_config android_files[] = { | ||
159 | 159 | { 00750, AID_ROOT, AID_SHELL, 0, "data/nativetest64/*" }, |
160 | 160 | { 00600, AID_ROOT, AID_ROOT, 0, "default.prop" }, // legacy |
161 | 161 | { 00600, AID_ROOT, AID_ROOT, 0, "system/etc/prop.default" }, |
162 | - { 00600, AID_ROOT, AID_ROOT, 0, "odm/build.prop" }, | |
163 | - { 00600, AID_ROOT, AID_ROOT, 0, "odm/default.prop" }, | |
162 | + { 00600, AID_ROOT, AID_ROOT, 0, "odm/build.prop" }, // legacy; only for P release | |
163 | + { 00600, AID_ROOT, AID_ROOT, 0, "odm/default.prop" }, // legacy; only for P release | |
164 | + { 00600, AID_ROOT, AID_ROOT, 0, "odm/etc/build.prop" }, | |
164 | 165 | { 00444, AID_ROOT, AID_ROOT, 0, odm_conf_dir + 1 }, |
165 | 166 | { 00444, AID_ROOT, AID_ROOT, 0, odm_conf_file + 1 }, |
166 | 167 | { 00444, AID_ROOT, AID_ROOT, 0, oem_conf_dir + 1 }, |