GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildTools/ApkSigner.cs
/// <summary>
/// Synchronously calls the apksigner tool to verify whether the specified APK uses APK Signature Scheme V2.
/// </summary>
/// <returns>true if the specified APK uses APK Signature Scheme V2, false otherwise</returns>
Synchronously calls the apksigner tool to verify whether the specified APK uses APK Signature Scheme V2.
Synchronously calls the apksigner tool to verify whether the specified APK uses APK Signature Scheme V2 .
public virtual bool Verify(string apkPath)
        {
            var arguments = string.Format(
                "-jar {0} verify {1}",
                CommandLine.QuotePath(GetApkSignerJarPath()),
                CommandLine.QuotePath(apkPath));
            var result = CommandLine.Run(_javaUtils.JavaBinaryPath, arguments);
            if (result.exitCode == 0)
            {
                Debug.Log("Verified APK Signature Scheme V2.");
                return true;
            }
            Debug.LogFormat("APK Signature Scheme V2 verification failed: {0}", result.message);
            return false;
        }
public virtual bool Verify ( string apkPath ) { var arguments = string . Format ( " " , CommandLine . QuotePath ( GetApkSignerJarPath ( ) ) , CommandLine . QuotePath ( apkPath ) ) ; var result = CommandLine . Run ( _javaUtils . JavaBinaryPath , arguments ) ; if ( result . exitCode == 0 ) { Debug . Log ( " " ) ; return true ; } Debug . LogFormat ( " " , result . message ) ; return false ; }
Synchronously calls the apksigner tool to verify whether the specified APK uses APK Signature Scheme V2.
Synchronously calls the apksigner tool to verify whether the specified APK uses APK Signature Scheme V2 .
// Logging at info level since the most common failure (V2 signature missing) is normal.
true if the specified APK uses APK Signature Scheme V2, false otherwise
true if the specified APK uses APK Signature Scheme V2 false otherwise
apkPath
string