public static bool Sideloadconnect() { string text = Adb.AdbCommand("get-state"); if (text.Contains("sideload")) { return(true); } return(false); }
public static bool Adbfound() { string text = Adb.AdbCommand("get-state"); if (text.Contains("device")) { return(true); } return(false); }
public static string Sideloadunfo() { string str = Adb.Miadb("getdevice"); string str2 = Adb.Miadb("getcodebase"); string str3 = Adb.Miadb("getregion"); string str4 = Adb.Miadb("getlanguage"); string str5 = Adb.Miadb("getversion"); string str6 = "Product:\t" + str; str6 = str6 + Environment.NewLine + "Version:\t" + str2; str6 = str6 + Environment.NewLine + "MIUI Ver:\t" + str5; str6 = str6 + Environment.NewLine + "Region\t:\t" + str3; return(str6 + Environment.NewLine + "Language:\t" + str4); }