Eventually other features (app thinning?) got prioritized and this is no longer possible.
[1]https://www.theverge.com/2020/4/21/21229943/epic-games-fortn...
edit: just tried to back up an app that was definitely installed as a bundle, and yes, the result was a regular apk
Now, as far as my own knowledge of apk signing goes, v1 signature should definitely be fine because it operates on files inside the archive, so naturally merging multiple apks signed with the same certificate would keep it valid. But v2 signs the archive itself, which means merely repacking it would render the signature invalid. I don't have much of an idea about v3. Maybe there's some algorithm to merge multiple apks such that signatures remain valid.
Related question that needs research: how are bundle apps stored after installation? I know that installing a regular apk copies it into /data/app, extracts native libraries from it, and adds its metadata to some XML files I forgot names of. Again, it's been too much time since I did something serious for Android, so I'm not quite up to date on this stuff.
(are you the guy behind Cydia btw?)
edit again: apparently it doesn't back up the additional parts
$ pm path com.vanced.android.youtube
package:/data/app/~~JVhMJHpiRhB5U1ZM1MHNmw==/com.vanced.android.youtube-iqpVMVaXRD4XezgeqdjBHQ==/base.apk
package:/data/app/~~JVhMJHpiRhB5U1ZM1MHNmw==/com.vanced.android.youtube-iqpVMVaXRD4XezgeqdjBHQ==/split_config.arm64_v8a.apk
package:/data/app/~~JVhMJHpiRhB5U1ZM1MHNmw==/com.vanced.android.youtube-iqpVMVaXRD4XezgeqdjBHQ==/split_config.en.apk
package:/data/app/~~JVhMJHpiRhB5U1ZM1MHNmw==/com.vanced.android.youtube-iqpVMVaXRD4XezgeqdjBHQ==/split_config.ru.apk
The apk I backed up earlier is base.apk, so that mystery is solved. It probably just adds them all to the classpath in runtime like regular JVM does with a bunch of jars.as far as I've gathered bundles are a way of adding multiple ABI's into a smaller shared apk that then is split into per abi by google but I may be entirely off base here
https://www.apkmirror.com/apk/apkmirror/apkmirror-installer-...
Curiously enough by the way, Google themselves only recently added a feature to the Play Store which officially allows directly sharing (free) apps with nearby devices. I wonder how that is supposed to work going forward when app bundles will become more and more widespread – can you then only share apps with somebody having the same screen density and language setting? Or can apps at least still fall back to dynamically using the assets for whatever language/screen density was available just like they would today with a monolithic APK?
[1] As a perhaps more trustworthy alternative, there's SAI on FDroid (https://f-droid.org/de/packages/com.aefyr.sai.fdroid/), which a quick search indicates that it might be able to read and install APKMirror's bundle format, too.
[2] Also the fact that it makes Titanium Backup semi-useless for those apps, even though in other respects I still like it better than any of the other alternative backup apps I've tried.
[3] CPU architecture at least, although there's less variation there because almost everything will be either 32- or 64-bit ARM, and even before App Bundles some apps would already ship separate APKs for different CPU architectures.
What does this have to do with backing up your apps? You can still install APKs even if they do that.
It's horrible but it may work, I haven't paid attention to whether apps are restored to a previous state or just data.
Someone after my own heart!