Android.bp: use a Soong-only manifest with an explicit package attribute

Soong's manifest fixer requires package= in the manifest, but AGP 8+
derives it from the Gradle namespace and rejects the attribute in the
shared manifest — so give the AOSP build its own copy.
This commit is contained in:
oxmc
2026-07-15 15:46:33 -07:00
parent bb710f48ab
commit d9081fab59
2 changed files with 17 additions and 1 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
android_library {
name: "android-device-info",
manifest: "library/src/main/AndroidManifest.xml",
// Soong-only copy with an explicit package attribute — Gradle's manifest
// relies on `namespace` in build.gradle.kts, which Soong cannot read.
manifest: "AndroidManifest-soong.xml",
srcs: ["library/src/main/java/**/*.kt"],
asset_dirs: ["library/src/main/assets"],
sdk_version: "current",