0

There is a well-known question on how to get APKs from an Android device with adb.

However, this fails for split APKs, because there, adb shell pm path com.example.someapp does list you not only one path, but many?

So how to do that? Do you need to pull all? Or is base.apk (the filename you always get for non-split-apks) e.g. enough? And how to reinstall them then later?

2

For a split APK you need all APK files present on your device if you are lucky. If the device you want to install the app on is too different it may happen that the APK files on your device do not match and you are missing a required APK file, e.g. if the source and the target device have a different architecture.

Usually a split APK consists of (can be more):

  • a base APK
  • one APK containing the native libraries for the current platform (if the app uses native libraries)
  • one APK for the preferences / config UI
  • one APK for the translation / localization texts, images,...

For installing a such a bunch of APK files as one app see this question.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.