private void button1_Click(object sender, EventArgs e) { selectITEM.apkPath = System.Environment.CurrentDirectory + "\\app-release.apk"; //读版本信息//并建立目录 apkreader reader = new apkreader(selectITEM.apkPath); var list = reader.androidInfos; //list[0].Settings[1].Value string buildname = "build_" + list[0].Settings[1].Value; selectITEM.function.init(selectITEM.deviceID,selectITEM.apkPath); selectITEM.function.setLogRT(this.richTextBox1); selectITEM.function.setResultPath(ConfigurationManager.AppSettings["ResultPath"] + "//" + buildname + "//"); Thread t = new Thread(new ThreadStart(selectITEM.function.Run)); t.Start(); //selectITEM.function.Run(); }
private void button1_Click(object sender, EventArgs e) { selectITEM.apkPath = System.Environment.CurrentDirectory + "\\app-release.apk"; //读版本信息//并建立目录 apkreader reader = new apkreader(selectITEM.apkPath); var list = reader.androidInfos; //list[0].Settings[1].Value string buildname = "build_" + list[0].Settings[1].Value; selectITEM.function.init(selectITEM.deviceID, selectITEM.apkPath); selectITEM.function.setLogRT(this.richTextBox1); selectITEM.function.setResultPath(ConfigurationManager.AppSettings["ResultPath"] + "//" + buildname + "//"); Thread t = new Thread(new ThreadStart(selectITEM.function.Run)); t.Start(); //selectITEM.function.Run(); }
private void 解apk包ToolStripMenuItem_Click(object sender, EventArgs e) { if (DialogResult.OK == this.openFileDialog1.ShowDialog()) { string filename = this.openFileDialog1.FileName; apkreader reader = new apkreader(filename); var list = reader.androidInfos; StringBuilder builder = new StringBuilder(); foreach (var androidInfo in list) { builder.Append(string.Format("{0}:", androidInfo.Name)); foreach (var setting in androidInfo.Settings) { builder.Append("{"); builder.Append(string.Format("'{0}':'{1}'", setting.Name, setting.Value)); builder.Append("},"); } builder.Append("\n\n"); } this.richTextBox1.Text = builder.ToString(); } }