From 00e0991f702751098fe95c0dfce5cd3725659abf Mon Sep 17 00:00:00 2001 From: Jeongik Cha Date: Tue, 23 Apr 2024 05:07:13 +0900 Subject: [PATCH] PackageFile for permission/*.xml for sdk_library Bug: 333311683 Test: build android.bp system image and then check if there is permission xml file for sdk_library Change-Id: If5ac1975a7db10d85a1b11c1cd666051e3da546e --- java/sdk_library.go | 1 + 1 file changed, 1 insertion(+) diff --git a/java/sdk_library.go b/java/sdk_library.go index bb5730db1..113071fbb 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -3316,6 +3316,7 @@ func (module *sdkLibraryXml) GenerateAndroidBuildActions(ctx android.ModuleConte android.WriteFileRuleVerbatim(ctx, module.outputFilePath, xmlContent) module.installDirPath = android.PathForModuleInstall(ctx, "etc", module.SubDir()) + ctx.PackageFile(module.installDirPath, libName+".xml", module.outputFilePath) } func (module *sdkLibraryXml) AndroidMkEntries() []android.AndroidMkEntries {