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

This commit is contained in:
Treehugger Robot 2019-12-06 02:00:11 +00:00 committed by Gerrit Code Review
commit 337cd8e493
1 changed files with 2 additions and 2 deletions

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"
}