Use the linker package when reading Lab resource IDs

This commit is contained in:
Kurt Himebauch committed 2026-12-05 21:28:27 -05:00
1 parent cdd48e0aaa
commit bd89f66077
1 file changed
+3 -2
+3 -2
View File
@@ -134,7 +134,8 @@ fi
gradle=(./gradlew :app:processReleaseResources :app:mergeDexRelease --max-workers=2 -PskipRust=true -x buildVkBridgeServer
-Pandroid.aapt2FromMavenOverride=$HOME/aapt2/aapt2 -Pkotlin.compiler.execution.strategy=daemon
-Pkotlin.daemon.jvmargs=-Xmx${kotlin_heap}m -Dorg.gradle.jvmargs=-Xmx${gradle_heap}m --console=plain)
# The overlay and APK share a resource namespace, including before the activity gets its loader.
# Release package aliases rewrite the manifest but keep the resource table under the linker package.
resource_package=com.droiddeck.launcher
resource_cache=$cache/dd-lab-resource-ids
mkdir -p "$resource_cache"
resource_key=$(printf '%s\n' "$pkg" "$base" "$apk" | sha256sum | cut -d ' ' -f1)
@@ -146,7 +147,7 @@ if [ ! -s "$stable_ids" ]; then
trap 'rm -rf "$resource_work"' EXIT
adb -s "$serial" pull "$apk" "$resource_work/base.apk" >/dev/null &&
"$HOME/aapt2/aapt2" dump resources "$resource_work/base.apk" > "$resource_work/resources.txt" &&
awk -v package="$pkg" '
awk -v package="$resource_package" '
$1 == "Package" { in_package = ($2 == "name=" package) }
in_package && $1 == "resource" && $2 ~ /^0x[[:xdigit:]]+$/ {
print package ":" $3 " = " $2