In order to get a specific visa, I need to verify my ɪᴅ using a government official app. I went on the play store and it first showed as not being compatible because it requires ɴꜰᴄ which my phone doesn’t have.
So I manually downloaded the app and obtained an xapk because the single app consists of several .apk. So far no problems using adb install-multiple. I then launched that app to verify my ɪᴅ and then the app complained it wasn’t installed from the Google’s play store.
The solution to this situation is normally to simply install the apk using pm -i com.android.vending apk.
But how do that when the same app ɪᴅ consist of several .apk ?
Please also note it uses com.android.vending.CHECK_LICENSE for the same purpose so that setting the installer after isn’t enough.
pm,adbdoesn’t have a full way to fake the installer. This means the app complains I should only download it for free from Google Play for my security… – user2284570 Jun 10 '23 at 20:07CHECK_LICENSEwork when installed from APK?" while Y is "How to install multiple APK usingpm?" since there's a possibility that Play Store sets something on the server when installing from Play Store, thuspmmay be irrelevant since it will just do the same installation process like from ADB (which you have successfully done). Your follow-up question is perhaps a more reasonable way to solve this issue. – Andrew T. Jun 11 '23 at 00:55pmitself is certainly on-topic, which @Robert 's comment has answered (the link mentioned ADB only foradb shell, but the main topic is usingpm). Thus, consider trying that guide and let us know the result, or post it as a proper answer! – Andrew T. Jun 11 '23 at 01:33adb install-multipleis how I got the app to complain it wasn’t installed from the Google’s Play Store. Thepm/cmd packagetool can fake the installer, but I don’t see how to use them on split ᴀᴘᴋs… App is supposed to be started off‑line so without accessing Google’s servers… – user2284570 Jun 12 '23 at 01:09CHECK_LICENSEfetches the result of the license online from Google Play, so I'm not sure if the method to install the APK is still relevant... – Andrew T. Jun 12 '23 at 01:40pm set-installer "PACKAGE" "com.android.vending"? Or just read the pm help text then you will see thatpm install-createalso has the-ioption. – Robert Jun 12 '23 at 07:21set-installercan’t be used as root and thus can’t be used at all (ᴜɪᴅ 0 unsupportederror message). – user2284570 Jun 12 '23 at 10:32