private void button_uninstallApk_Click(object sender, EventArgs e)
{
 if (listView_main.Items.Count == 0)
 {
  MessageBox.Show("所有連接裝置不能為空", "資訊", MessageBoxButtons.OK, MessageBoxIcon.Information);
  return;
 }
 Thread uninstallApkThread = new Thread(delegate() { UninstallAllApk(); });
 uninstallApkThread.Start();
}
private void UninstallAllApk()
{
 int testCount = listView_main.Items.Count;
 List<string> content = new List<string>();
 string phoneID = string.Empty;
 string serialNumber = string.Empty;
 string reportName = string.Empty;
 string reportFullName = string.Empty;
 
 for (int i = 0; i < testCount; i++)
 {
  phoneID = GetPhoneID(i);
  serialNumber = GetSerialNum(i);
  Execute("-s " + serialNumber + " uninstall com.asus.vd.alt.testapp");
 }
 SetControlEnable(button_uninstallApk, true);
 MessageBox.Show("所有手機程式已經關閉", "資訊", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
2011年1月13日 星期四
使用adb批次反安裝APK
在文字的世界裡尋找心靈的共鳴,遠山藍以溫柔的筆觸分享書籍的力量與生活的智慧。無論是細膩的書評、深刻的人生感悟,還是技術與創新的新奇發現,每篇文章都是一次內心的療癒旅程。希望透過閱讀,帶領讀者在忙碌的生活中找到一片寧靜與啟發。讓我們一起,在書香中遇見更好的自己!
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言