Android N – how to check if apk is signed with schema v2
Run apksigner verify -v <apk> and look for Verified using v2 scheme (APK Signature Scheme v2): true in the output. apksigner can be found in Android SDK build tools 24.0.3. apksigner’s source code is here: https://android.googlesource.com/platform/tools/apksig/. For an already installed package on Android Nougat: adb shell pm dump <package name> | grep apkSigningVersion. 1 means … Read more