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 as shown in this example:
adb shell pm path com.example.someapp
package:/data/app/com.example.someapp-5Vnt5z8Kiyfka4DG7cFr3Q==/base.apk
package:/data/app/com.example.someapp-5Vnt5z8Kiyfka4DG7cFr3Q==/split_config.en.apk
package:/data/app/com.example.someapp-5Vnt5z8Kiyfka4DG7cFr3Q==/split_config.x86.apk
package:/data/app/com.example.someapp-5Vnt5z8Kiyfka4DG7cFr3Q==/split_config.xxhdpi.apk
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?