Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mikebgrep opened this issue Apr 13, 2024 · 3 comments
Closed

Comments

@mikebgrep
Copy link

mikebgrep commented Apr 13, 2024

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 mikebgrep changed the title [BUG] [BUG] Pull split apk from device lead to missing drawable resource Apr 13, 2024
@mikebgrep
Copy link
Author

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
Copy link
Owner

ax commented Apr 14, 2024

Glad. :) Which command did the trick?

@mikebgrep
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants