Esempio n. 1
0
        private void DecodeApk(string apkPath)
        {
            if (!File.Exists(apkPath))
            {
                return;
            }

            ApkDecoder apkDecoder = new ApkDecoder(apkPath);

            apkDecoder.InfoParsedEvent   += new Action <ApkDecoder>(apkDecoder_InfoParsed);
            apkDecoder.AaptNotFoundEvent += new MethodInvoker(apkDecoder_AaptNotFound);
        }
Esempio n. 2
0
        private void SafeInfoParsed(ApkDecoder apkDecoder)
        {
            txtApplication.Text    = apkDecoder.AppName;
            txtVersion.Text        = apkDecoder.AppVersion;
            txtVersionCode.Text    = apkDecoder.AppVersionCode;
            txtPackage.Text        = apkDecoder.PkgName;
            txtIconPath.Text       = apkDecoder.IconPath;
            txtMinSdk.Text         = apkDecoder.MinSdk;
            txtMinVersion.Text     = apkDecoder.MinVersion;
            txtScreenSize.Text     = apkDecoder.ScreenSupport;
            txtScreenSolution.Text = apkDecoder.ScreenSolutions;
            txtPermission.Text     = apkDecoder.Permissions;
            txtFeature.Text        = apkDecoder.Features;
            imgIcon.Image          = (apkDecoder.AppIcon != null) ? apkDecoder.AppIcon : this.Icon.ToBitmap();

            txtApkPath.Text = apkDecoder.ApkPath;
            txtApkSize.Text = apkDecoder.ApkSize;

            this.btnPlayStore.Enabled = !string.IsNullOrEmpty(txtPackage.Text);
        }
Esempio n. 3
0
 private void apkDecoder_InfoParsed(ApkDecoder apkDecoder)
 {
     this.Invoke(new Action <ApkDecoder>(SafeInfoParsed), apkDecoder);
 }