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

Support for xapk #4

Open
NicolasVautrin opened this issue Aug 16, 2024 · 10 comments
Open

Support for xapk #4

NicolasVautrin opened this issue Aug 16, 2024 · 10 comments

Comments

@NicolasVautrin
Copy link

hi , do you plan to support the xapk format. I am currently on an archive of this type which contains 2 apks. These 2 apks must have the same signature, patched and not patched one.
C:\VirtualBox_SharedFiles\Tacticus>adb install-multiple patched_base.apk config.armeabi_v7a.apk
adb: failed to finalize session
Failure [INSTALL_FAILED_INVALID_APK: /data/app/vmdl859264819.tmp/config.armeabi_v7a.apk signatures are inconsistent]

@commonuserlol
Copy link
Owner

As workaround you can extract xapk to current working directory (or somewhere else) and use -i . as you do for splits. However I'll implement xapk support soon

@NicolasVautrin
Copy link
Author

C:\VirtualBox_SharedFiles\Tacticus>dir
Le volume dans le lecteur C n’a pas de nom.
Le numéro de série du volume est E2FE-5C52

Répertoire de C:\VirtualBox_SharedFiles\Tacticus

16/08/2024 22:24

.
16/08/2024 22:24 ..
16/08/2024 22:22 136 510 379 base.apk
16/08/2024 22:22 36 582 954 config.armeabi_v7a.apk
16/08/2024 22:22 414 638 icon.png
16/08/2024 22:22 3 516 manifest.json
4 fichier(s) 173 511 487 octets
2 Rép(s) 17 592 872 960 octets libres

C:\VirtualBox_SharedFiles\Tacticus>fgi -i . --config-type listen
1s - I: Merging split APKs...
1s - E: Command ['java', '-jar', WindowsPath('C:/Users/nicolasv/.fgi/apkeditor.jar'), 'm', '-i', WindowsPath('C:/Users/nicolasv/AppData/Local/Temp/Tacticus-mt'), '-o', WindowsPath('C:/Users/nicolasv/AppData/Local/Temp/.m.apk')] returned non-zero exit status: 00.000 I: [MERGE] Using: APKEditor version 1.3.9, ARSCLib version 1.3.5
00.011 I: [MERGE] Merging ...
Input: C:\Users\nicolasv\AppData\Local\Temp\Tacticus-mt
Output: C:\Users\nicolasv\AppData\Local\Temp.m.apk

00.011 I: [MERGE] Searching apk files ...

ERROR:
java.io.FileNotFoundException: No '*.apk' files in directory: C:\Users\nicolasv\AppData\Local\Temp\Tacticus-mt
at com.reandroid.apk.ApkBundle.loadApkDirectory(ApkBundle.java:129)
at com.reandroid.apkeditor.merge.Merger.run(Merger.java:61)
at com.reandroid.apkeditor.merge.Merger.execute(Merger.java:235)
at com.reandroid.apkeditor.Main.execute(Main.java:89)
at com.reandroid.apkeditor.Main.execute(Main.java:64)
at com.reandroid.apkeditor.Main.main(Main.java:36)

@commonuserlol
Copy link
Owner

Can you run dir in directory where you ran fgi

@NicolasVautrin
Copy link
Author

it's in the trace

@commonuserlol
Copy link
Owner

wdym? I guess you ran fgi in wrong directory

@NicolasVautrin
Copy link
Author

no first command is dir then i ran fgi

@commonuserlol
Copy link
Owner

Oh right, I guess it not found cuz fgi filters out config assuming its non-target one. I'll add support for xapk soon

@commonuserlol
Copy link
Owner

I've just pushed initial support, however it doesn't support XAPK with .obb (usually you call it "cache") and was blindly coded since I dont have any XAPK for test. Let me know about result

@zeroz-code
Copy link

@commonuserlol off topic. I just wanted to ask about
What happened with your frida java menu repo?

@commonuserlol
Copy link
Owner

@zeroz-code It's under rewrite cuz code quality was bad. Gonna publish it tomorrow as new repo

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

3 participants