ax/apk.sh

[BUG] Pull split apk from device lead to missing drawable resource

mikebgrep opened this issue · 3 comments

Information

  1. apk.sh version : 1.0.6
  2. Operating System (Mac, Linux, Windows) : Linux Ubuntu 20.4
  3. 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:

  1. I copy all the drawable from the split file and paste them in the drawable of the base.apk #Does not work
  2. 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

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?

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.