mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 04:55:44 +00:00
Use the linker package when reading Lab resource IDs
This commit is contained in:
1 parent
cdd48e0aaa
commit
bd89f66077
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user