APKTOOL_DUMMY (again): clarifications needed
See original GitHub issueUsing 2.4.0, decompiling and re-building the (un-modified) medium application is a smooth process, but the APK is just crashing because of some missing resources:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.medium.reader/com.medium.android.donkey.start.SplashActivity}: android.content.res.Resources$NotFoundException: Drawable com.medium.reader:drawable/splash_background with resource ID #0x7f080188
Obviously, that splash_background.xml
file is present in both the original and the rebuilt APK, but the latter is referencing an APKTOOL_DUMMY
resource:
<?xml version="1.0" encoding="utf-8"?>
...
<item android:top="@dimen/sign_in_wordmark_vertical_padding">
<bitmap android:gravity="top" android:src="@drawable/APKTOOL_DUMMY_161" />
</item>
</layer-list>
I know this has been discussed in #1773 and #1117, but I’m still not getting why apktool would be unable to decode some resources if they’re known to be both present AND used?
Sounds like an apktool bug, rather than some missing or invalid resources.
Any clarifications?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
[TOOL] Tickle My Android - Decompile & Recompile With Ease
The issue regarding apktool dummy values has been solved in apktool v2.5.0! I've seen a lot of posts here complaining about the issue,...
Read more >Why can't I get the source code by apktool? - Stack Overflow
I think you can get full source code from apk using "APK Easy Tool". Of course, it's impossible ...
Read more >apk tools - How to create alpine package without git?
Asking for help, clarification, or responding to other answers. · Making statements based on opinion; back them up with references or personal ...
Read more >Malicious Android Applications: Risks and Exploitation - GIAC
Several malicious applications, ranging from fake banking applications ... required by the application, is bundled into an Android package ...
Read more >eu-15-Lin-Androbugs-Framework-An-Android-Application ...
Repackaging APK and Hacking with AndroBugs Framework. • Conclusions ... both need to specify the same “android:sharedUserId” ... Made Again and Again…
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You need to grab splitted APK in /data/app/com.app/*.apk or export with SAI app.
<public type="drawable" name="APKTOOL_DUMMY_b" id="0x7f07000b" />
Replace to<public type="drawable" name="abc_btn_check_to_on_mtrl_000" id="0x7f07000b" />
By search from public id0x7f07000b
android:isSplitRequired="true"
atapplication
tagI know it’s a bit old, but could you elaborate here?
I wrote a script which does resolving APKTOOL_DUMMY_ names across split APK contents, and also copies all the files into base without overwriting anything, but I didn’t omit files like
values-hdpi/styles.xml
andvalues-xhdpi/drawables.xml
, and ended up with app crashing when trying to find drawables defined in the latter. Removing them solved this issue, but I don’t quite understand why, nor why these files are there at all. Were they part of original project or it’s just an artifact or quirk of apktool?