From 50ff674bb2d6d4aff7f5956ff82613632ceb1621 Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Tue, 12 Oct 2021 18:00:26 +0200 Subject: [PATCH] Update lineage-res definition to follow framework-res Change-Id: Ia4d8035f08a1f5c58fec05d10a9be07d0bbb6f95 --- Android.bp | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Android.bp b/Android.bp index 481b69b0..c0c50a7d 100644 --- a/Android.bp +++ b/Android.bp @@ -16,19 +16,32 @@ android_app { name: "org.lineageos.platform-res", - certificate: "platform", sdk_version: "core_platform", - manifest: "lineage/res/AndroidManifest.xml", + certificate: "platform", system_ext_specific: true, + manifest: "lineage/res/AndroidManifest.xml", + + // Disable dexpreopt and verify_uses_libraries check as the app + // contains no Java code to be dexpreopted. + enforce_uses_libs: false, + dex_preopt: { + enabled: false, + }, + + // Soong special-cases org.lineageos.platform-res to install this alongside + // the libraries at /system_ext/framework/org.lineageos.platform-res.apk. + aaptflags: [ - "--auto-add-overlay", "--private-symbols", "org.lineageos.platform.internal", // Framework doesn't need versioning since it IS the platform. "--no-auto-version", + // Allow overlay to add resource + "--auto-add-overlay", + // Tell aapt to create "extending (non-application)" resource IDs, // since these resources will be used by many apps. "--allow-reserved-package-id",