Merge "Fix: vendor and odm are restricted to use public platform properties"

am: 337cd8e493

Change-Id: I04004cae3d6ee11eb4cd359a395a50b6493a6575
This commit is contained in:
Jiyong Park
2019-12-05 18:04:54 -08:00
committed by android-build-merger

View File

@@ -375,8 +375,8 @@ func syspropLibraryHook(ctx android.LoadHookContext, m *syspropLibrary) {
if isProduct {
// product can't own any sysprop_library now, so product must use public scope
scope = "public"
} else if isVendor && !isOwnerPlatform {
// vendor and odm can't use system's internal property.
} else if isVendor && isOwnerPlatform {
// vendor and odm can only use the public properties from the platform
scope = "public"
}