yy1717
2021-01-12 683b1595260e638d1d3c6cc0d6543a72f6d6f925
lib/src/main/java/com/anyun/exam/lib/Upgrade.java
@@ -39,6 +39,7 @@
            synchronized (Upgrade.class) {
                if (instance == null) {
                    instance = new Upgrade(context);
                    instance.context = context;
                }
            }
        }
@@ -249,6 +250,10 @@
        handlerCheckNewVersion.postDelayed(runnableCheckNewVersion, 100);
    }
    public void ManualUpgrade(String path) {
        installUtil.InstallAppNormal(context, path);
    }
    class DMCB implements DownloadManagerCallback {
        @Override
        public void DownloadComplete(String title, String path) {
@@ -258,7 +263,11 @@
                    Signature[] sig2 = installUtil.getSignature(path);
                    if (sig != null && sig2 != null && installUtil.getFingerprint(sig[0], "SHA-1").equals(installUtil.getFingerprint(sig2[0], "SHA-1"))) {
                        installUtil.InstallApp(path);
                        if (RemoteService.mAyDevice) {
                            installUtil.InstallApp(path);
                        } else {
                            installUtil.InstallAppNormal(context, path);
                        }
                    }
                }
            }