Esempio n. 1
0
        public void getApkShow()
        {
            GC.Collect();
            if (getApk.ShowDialog() == DialogResult.OK)
            {
                but_getapk.Enabled = false;
                file = getApk.FileName.ToString();

                DeBackDelegate deCallBack = callBack;
                Thread         t          = new Thread(decompile);
                t.Start(deCallBack);
            }
            getApk.Dispose();
        }
Esempio n. 2
0
        public void decompile(object o)
        {
            string         to       = envConfig.temp_decompile;
            bool           ret      = apkTool.d(this.glog, file, to);
            DeBackDelegate callback = o as DeBackDelegate;

            if (ret)
            {
                callback("success");
            }
            else
            {
                callback("error");
            }
        }