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
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Soong-only manifest. Gradle derives the package from `namespace` in
library/build.gradle.kts and AGP 8+ rejects a package attribute there,
but Soong's manifest fixer requires one — so the AOSP build uses this
copy instead of library/src/main/AndroidManifest.xml.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.oxmc.androiddeviceinfo">
<!-- The library does not require any specific permissions, but if you want to auto update the db, you will need the INTERNET permisson. -->
<uses-permission android:name="android.permission.INTERNET" />
</manifest>