google / bundletool

Bundletool is a command-line tool to manipulate Android App Bundles
https://g.co/androidappbundle
Apache License 2.0
3.5k stars 384 forks source link

Merge splitted APK to single APK #117

Closed ghost closed 5 years ago

ghost commented 5 years ago

Is your feature request related to a problem? Please describe. Yes because you can't install APK normally anymore. You need 3rd party app
Split APKs Installer (SAI) to be able to install split APK but it's not working with some devices like MIUI or FlymeOS This is the stupidest technology I ever seen in my life

Describe the solution you'd like Be able to merge splitted APK to single APK without bundles

Describe alternatives you've considered Extract or decompile files and put into base.apk. Compile and resign. It is complicated Using Apkpure to download single APK

Additional context Nothing

kvafy commented 5 years ago

You can run the build-apks command with --mode=universal to build an APK that contains your whole app (without modules that are explicitly excluded from fusing using the dist:fusing attribute).

ghost commented 5 years ago

But it ask me for bundle file which I don't have. Where to find it in split apk?

kvafy commented 5 years ago

Can you explain your use case in greater detail? What is your relation to the app, are you the owner?

plecesne commented 5 years ago

Note: You don't need a third-party tool to install split APKs. adb (shipped as part of Android SDK Tools) supports the installation of split APKs as well through the command install-multiple, e.g.

adb install-multiple base-master.apk base-en.apk base-xxxhdpi.apk
ghost commented 5 years ago

No i'm not the owner of the app. I needed to install apps and games that is not compatible anymore due to app bundles but SAI is not working with my friends phone due to firmware issue Apkcombo finally give us links to download split APK but i still don't like it But thanks for the adb command though. My friends will be forced to bring laptop just to install split APKs. Again this is the stupidest technology I ever seen that making the life harder. Please come with solution with install split apk and merging apks without bundle file, we can't afford to buy compatible phones

plecesne commented 5 years ago

First of all, thank you for your feedback. There is no easy way to merge split APKs once they have been generated and we have no current plan on adding support for it.

In the middle of all your generous feedback, I still fail to see the flow that is failing for you. Are you trying to sideload an app? Without a laptop? Where does the app come from then? I am not familiar with SAI, Apkpure or Apkcombo and we are not maintaining any of those, so you will have to contact the maintainers of those tools if they're not working for you.

ghost commented 5 years ago

Yes i'm trying to sideload an app. As said i'm getting split APK from 3rd party websites. Maintainers or developers of SAI can't do anything if the installation issue is from the firmware and app developers decided to switch to stupid bundle thing If you won't add support merging APK then add option to install/sideload split APK or remove the option entirely from Android 10 if this is what you want. We are considering to move to iOS due to Android being complicated

megapro17 commented 4 years ago

On ios you can't even install app without external apps, and you call this not complicated?

AndnixSH commented 4 years ago

You can merge split APKs to one using SAP tool. It was created by release-apk.com but I reshared it on my website so anyone can download without registration with safe download links ;) https://www.andnixsh.com/2020/06/sap-split-apks-packer-by-kirlif-windows.html

faizan1947 commented 3 years ago

You can merge split APKs to one using SAP tool. It was created by release-apk.com but I reshared it on my website so anyone can download without registration with safe download links ;) https://www.andnixsh.com/2020/06/sap-split-apks-packer-by-kirlif-windows.html

THANKS

wefalltomorrow commented 3 years ago

You can merge split APKs to one using SAP tool. It was created by release-apk.com but I reshared it on my website so anyone can download without registration with safe download links ;) https://www.andnixsh.com/2020/06/sap-split-apks-packer-by-kirlif-windows.html

@AndnixSH This is great, but you may want to add the latest version to your site :)

AndnixSH commented 3 years ago

@wefalltomorrow updated as requested

AndnixSH commented 3 years ago

Btw, you can use apkcombo.com to download single APK

Tutorial https://www.andnixsh.com/2019/08/how-to-download-single-apk-with-lib.html

sakibguy commented 2 years ago

thanks all for your input and efforts

fzyzcjy commented 2 years ago

You can merge split APKs to one using SAP tool. It was created by release-apk.com but I reshared it on my website so anyone can download without registration with safe download links ;) https://www.andnixsh.com/2020/06/sap-split-apks-packer-by-kirlif-windows.html

Sounds promising! Unfortunately it seems not to be open sourced... I need to use command line and it only has GUI, so not open-sourced means I cannot make a PR to create command line for it.

related: https://github.com/google/bundletool/issues/260

AndnixSH commented 2 years ago

Yeah, I needed command line too for my automation script. I have asked the author to provide it

fzyzcjy commented 2 years ago

@AndnixSH Does the author respond?

AndnixSH commented 2 years ago

@AndnixSH Does the author respond?

Sorry for late reply. Sadly no reply from him yet. Feel free to ask him too on this page https://forum.release-apk.com/viewtopic.php?t=99023

ghost commented 2 years ago

Sorry for late reply. Sadly no reply from him yet. Feel free to ask him too on this page https://forum.release-apk.com/viewtopic.php?t=99023

He has a public email, I sent him email directly

AndroidMaster24 commented 2 years ago

Any alternatives? really needed cmd for my scripting too

muelli commented 2 years ago

yeah, there should be non-interactive, headless solution.

ax commented 1 year ago

Take a look at https://github.com/ax/apk.sh.

kikfox commented 1 year ago

Check this tool:

https://github.com/REAndroid/APKEditor

adeii commented 1 year ago

AntiSplit-X apk works when sometimes SAP 6.9.0 can not build APK till the end. https://deedomk.itch.io/antisplit-x You just have to pack all APKs to .zip or .apks

nimaid commented 10 months ago

In case anyone finds this like I did through Google, here is SAP 6.9.9, I made an account on the forum to get the latest version: https://drive.google.com/file/d/1UnKr1SnX14RL_e9IpcpQhA6AnYwB0fjL/view?usp=sharing

ajburley commented 2 weeks ago

I'm looking into this today and I'm similarly disappointed that bundletool doesn't have this feature out of the box. I'm in a situation where I can't use bundletool install-apks or adb install-multiple because I'm using MDM solutions which require binaries to be uploaded in APK format.

Using mode=universal is also not really good, as it totally defeats the point of using AAB in the first place by putting everything into one APK.

Above mentioned APKEditor at https://github.com/REAndroid/APKEditor looks promising. I was not able to figure out how to use apk.sh referred to above to do this operation.

Here's another potential solution: https://github.com/LuigiVampa92/merge-apks