From f160f7ffa82e5f36c98b221a45712b303aae078e Mon Sep 17 00:00:00 2001 From: Kiyoung Kim Date: Tue, 29 Nov 2022 10:58:08 +0900 Subject: [PATCH] Add more cases to vendor-installed module Current InstallInVendor only checks vendor property, but there are more properties to check if the module will be installed in the vendor. This change adds two more cases (soc_specific and proprietary) to the function. Bug: 233294155 Test: N/A Change-Id: Ic3cb4c52f5097cdcc6231c0e85a62ce3ad6094b3 --- android/module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/module.go b/android/module.go index b41a89808..681f724b0 100644 --- a/android/module.go +++ b/android/module.go @@ -2053,7 +2053,7 @@ func (m *ModuleBase) InstallInRecovery() bool { } func (m *ModuleBase) InstallInVendor() bool { - return Bool(m.commonProperties.Vendor) + return Bool(m.commonProperties.Vendor) || Bool(m.commonProperties.Soc_specific) || Bool(m.commonProperties.Proprietary) } func (m *ModuleBase) InstallInRoot() bool {