Closed Luffitys closed 2 years ago
Thanks for reporting.
The problematic code line that throws NullPointerException is:
int opcodeOffset = line.payloadOffsetMap.get(curOffset);
line
and payloadOffsetMap
seem to be always not null, so the exception should be caused by a conversion from Integer
to int
of a null value (the map has no entry for curOffset
).
@Luffitys Can you please tell use which of the linked APK files you were viewing (and which class) when the error occurred?
@jpstotz All the APKs are fundamentally the same, but with a different package name. In this case, I used “MGC_8.4.600_A10_V13_snap.apk”. In my settings, I have auto decompilation turned on, so the APK was already decompiled. I attached the debugger to my phone and started launched the app, without opening any classes.
Fixed. Issue was in code generator for debug smali, it expects switch payload after switch instruction, but this is not correct and order can be reversed. I add another instructions pass to collect this data before actual code generation.
Please describe what you did before the error occurred. Trying to debug the app, during the launch jadx had this issue. IMPORTANT! If the error occurs with a specific APK file please attach or provide link to apk file! https://www.celsoazevedo.com/files/android/google-camera/dev-bsg/f/dl92/