Menu

#114 copying an installed split-APK app results in missing files

v1.0_(example)
open
nobody
None
1
2025-02-24
2025-01-15
bughunter2
No

Ghost Commander can be used to copy (or let's say "extract") installed apps.

This feature seems broken for split-APKs (also known as XAPK apps).
For example, let's say an XAPK file was installed (using "adb install-multiple") and consists of these parts:

org.example.apk
config.arm64_v8a.apk
config.mdpi.apk

After installing it, we use Ghost Commander to copy the Example app from the Android device. The result is a single "Example.apk" file (that's fine, of course, no problem there). However, that .apk file seems to be missing the resources from the "config.mdi.apk", for example.

May be worth looking into, because this is a very useful feature in Ghost Commander.

Cheers!

Discussion

  • zc2

    zc2 - 2025-02-16

    I've added an ability to create multiple apk files from a single application.
    To install them back select all the relevant files, then long tap to pop up the menu and choose "Install". That works on the local native filesystem only.
    Since I don't have an XAPK file and I don't know where I can get one, I cannot support it.
    Guess, if XAPK is a just a zip (I don't have a proof or a disproof for that), the user could potentially create it manually from the exported apk files.

    Please give a try:
    https://sourceforge.net/projects/ghostcommander/files/Betas/Ghost%20Commander%201.64.1b3.apk/download

     

    Last edit: zc2 2025-02-16
  • bughunter2

    bughunter2 - 2025-02-17

    Hi! It seems to work wonderfully. Good work! Thank you.

    I've tested it with some random XAPK file from apkpure.com:

    Telegram 11.7.3 xapk file: https://apkpure.com/telegram/org.telegram.messenger

    Virus scan results: https://www.virustotal.com/gui/file/69c1b159916f1cefa3667492a14d5080b129635f0a9fa9983862caccabcd4dc2

     

    Last edit: bughunter2 2025-02-17
    • zc2

      zc2 - 2025-02-23

      I've added some additional abilities:

      • Multi-apk install could be done from any location (SFTP or from inside a ZIP). Same way, select the apk files, then tap the item "Install" in the context menu.
      • On the native file system only, a file which is in fact a ZIP (such as .xapk, .xlsx, etc), could be opened as such through the context menu "Open as ZIP".
      • On the native file system only, an .xapk or .apks could be installed through the context menu "Install". All inner APK files would be installed.

      Looks like there could be cases of xapk files with OBB resource files. I don't have such file to test with and I don't know where one could be taken from.

      New beta version for testing: https://sourceforge.net/projects/ghostcommander/files/Betas/Ghost%20Commander%201.64.1b4.apk/download

       
  • bughunter2

    bughunter2 - 2025-02-24

    Sounds good. (I haven't tested it.)
    Cheers for going the extra kilometer though!

     

Log in to post a comment.

MongoDB Logo MongoDB