ax / apk.sh

apk.sh makes reverse engineering Android apps easier, automating some repetitive tasks like pulling, decoding, rebuilding and patching an APK.
GNU General Public License v3.0
3.34k stars 189 forks source link

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

Closed mikebgrep closed 6 months ago

mikebgrep commented 6 months ago

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

mikebgrep commented 6 months ago

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 6 months ago

Glad. :) Which command did the trick?

mikebgrep commented 6 months ago

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.