When using adb install something.apk, does the Android Package Manager verify the signature of the APK? adb install seems to bring up nothing up on the phone's screen, so it's hard for me to know if it does.
I like the idea of using APK mirror websites to download APK files with a phone that does not have Google Play Services, but because I can't trust any of those APK mirror websites, I want to make sure that the app's data is not at risk if using adb install when upgrading to a new APK version.
A couple of questions:
- If
adb installdoes do signature verification, what does it do if the signature does not match? Does it fail the install, pop up a question on the phone's screen, or automatically erase the app's existing data? - What if using the
-roption withadb install? - If I use
adb uninstall -kbefore installing the app upgrade, does signature verification occur from the previous installation before the old app data will be shared with the new install? - Bonus: We have the option
adb install -l, where-lstands for "forward-lock the app". What does this "forward-lock" mean, and does it have anything to do with signature verification and app data access?