From 478868826f5807e05c85ee557dbc4f050fb26991 Mon Sep 17 00:00:00 2001 From: SzuWei Lin Date: Tue, 12 Jan 2021 12:11:55 +0800 Subject: [PATCH] Deprecate /factory After Treblized, AOSP do not handle /factory folder. Also, AOSP does not mount any partition to /factory. /factory has no possibility to have any content. For factory purpose, it can be implemented in vendor. Bug: 177280838 Test: na Change-Id: I0a2537336c2ef1efbad3e4f9e876aeaa607bc737 --- init/property_service.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/init/property_service.cpp b/init/property_service.cpp index e71c38656..64d4edc2f 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp @@ -957,8 +957,6 @@ void PropertyLoadBootDefaults() { load_properties_from_partition("odm", /* support_legacy_path_until */ 28); load_properties_from_partition("product", /* support_legacy_path_until */ 30); - load_properties_from_file("/factory/factory.prop", "ro.*", &properties); - if (access(kDebugRamdiskProp, R_OK) == 0) { LOG(INFO) << "Loading " << kDebugRamdiskProp; load_properties_from_file(kDebugRamdiskProp, nullptr, &properties);