示例#1
0
        private async Task Decode_JavaTest()
        {
            await DesktopJavaUtil.TestJavaExist();

            if (!DesktopJavaUtil.javaExist)
            {
                dataModel.AppName        = LocalizationCenter.currentDataModel.Msg_JavaNotFound_AABFail;
                dataModel.RawDumpBadging = LocalizationCenter.currentDataModel.Msg_JavaNotFound_AABFail;
            }
        }
示例#2
0
        private async Task Decode_Signature()
        {
            await DesktopJavaUtil.TestJavaExist();

            if (!DesktopJavaUtil.javaExist)
            {
                dataModel.Signature = LocalizationCenter.currentDataModel.Msg_JavaNotFound_APKSignFail;
                return;
            }

            ProcessStartInfo psiAPKSigner = new ProcessStartInfo
            {
                FileName  = "java",
                Arguments = "-jar " + pathProvider.GetAPKSignerPath() +
                            " verify --verbose --print-certs" +
                            " \"" + targetFilePath.OriginalString + "\"",
            };
            string processResult = await ProcessExecuter.ExecuteProcess(psiAPKSigner, false, false);

            dataModel.RawDumpSignature = processResult;
            DesktopCMDAPKSignerUtil.ReadAPKSignature(dataModel, processResult);
        }