A ResTable_map entry has a name attribute, which could be a dynamic reference if it comes from a shared library. It was not being patched with the correct package id. Bug:16795890 Change-Id: Ia8df6a943269b2fefb2132c3ed74eb1997d7701b
7 lines
189 B
Bash
Executable File
7 lines
189 B
Bash
Executable File
#!/bin/bash
|
|
|
|
aapt package -M AndroidManifest.xml -S res -F bundle.apk -f --shared-lib && \
|
|
unzip bundle.apk resources.arsc && \
|
|
mv resources.arsc lib.arsc && \
|
|
xxd -i lib.arsc > lib_arsc.h
|