[BUG] Pull split apk from device lead to missing drawable resource
mikebgrep opened this issue · 3 comments
mikebgrep commented
Information
- apk.sh version : 1.0.6
- Operating System (Mac, Linux, Windows) : Linux Ubuntu 20.4
- APK From? (Playstore, ROM, Other) :
Downloaded from Playstore
apk.sh output
output is the happy path
Steps to Reproduce
I experience an issue when I pull apk from the device that contains split fule.
I got this exception
Process: com.package, PID: 8459
04-13 14:59:53.979 8459 8459 E AndroidRuntime: at com.package.ui.MainActivity.m0(Unknown Source:41)
04-13 14:59:53.979 8459 8459 E AndroidRuntime: Caused by: android.content.res.Resources$NotFoundException: Drawable com.package:drawable/APKTOOL_DUMMY_3ed with resource ID #0x7f0803ed
I try a couple of things:
- I copy all the drawable from the split file and paste them in the drawable of the base.apk #Does not work
- I tried to delete the APKTOOL_DUMMY_3ed from the drawable and properties, but still, the app searched it by ID and didn't work again
Is there any solution for this, or do I need to search for an alternative to pull APK that has split.
Questions to ask before submission
Are you using the latest apk.sh version?
Yes
mikebgrep commented
After I download the latest release, I manage to install and open the application.
@ax Thank you for the quick response. I will reopen the issue if there are any future problems.
ax commented
Glad. :) Which command did the trick?
mikebgrep commented
Just apk.sh pull [package]
but the APK to run it was needed to delete the values in requiredSplitTypes
from the base APK folder before rebuild it.