chore(core): handle RES_TABLE_TYPE_OVERLAY#1804
Conversation
|
@jpstotz thanks! |
|
@skylot Yes that would be possible but I intentionally implemented it this way to make sure people create an issue and provide sample files. Otherwise I don't see a chance in finding matching APK files for evolving Jadx resource parsing. It is possible to learn a lot by looking at the apktool source but often the apktool source code also doesn't work so it is IMHO better to raise an error, get the sample file and thus be able to implement the necessary code base don a real-world example. |
@jpstotz agree, I like this strategy 👍🤣 |
|
@skylot may be we can make it a little bit more user friendly: parse unknown resource table chunks, show an error dialog but continue loading the other chunks. I implemented this approach as a test: The shown error dialog contains the complete chunk data base64 encoded. For common chunks that are smaller than 4KB this should be possible. Also this simplifies getting sample data in case the APK can not be shared. |
|
@jpstotz well, JadxGuiContext guiContext = root.getDecompiler().getPluginsContext().getGuiContext();
if (guiContext != null) {
// running in jadx-gui, show error dialog
guiContext.showExceptionDialog(...)
} |
|
@skylot Yes that is a bit hacky, but I have tested that it does not cause problems for jadx-cli. Of course the way JadxGuiContext is designed makes it much cleaner. I will take a look onto jadx-next... |
The implementation to parse OVERLAY chunks in resource table.
Fixes #1748