コード例 #1
0
 public clsActions(clsDevice device)
 {
     this.device = device;
 }
コード例 #2
0
 public clsAuxiliary(clsDevice device)
 {
     this.device = device;
 }
コード例 #3
0
ファイル: clsSIM_Info.cs プロジェクト: jerry0914/dev_pc_tools
 public clsSIM_Info(clsDevice device)
     : this(device, 0)
 {
 }
コード例 #4
0
ファイル: clsSIM_Info.cs プロジェクト: jerry0914/dev_pc_tools
 public clsSIM_Info(clsDevice device, int simSlotNumber)
 {
     this.device        = device;
     this.simSlotNumber = simSlotNumber;
 }
コード例 #5
0
 public clsProductInfo(clsDevice device)
 {
     try
     {
         this.device = device;
         String refResult = "";
         ADB_Process.RunAdbCommand(" -s " + device.ID + " shell cat /system/build.prop | grep \"product\"", ref refResult, false);
         foreach (String lineTemp in refResult.Split('\n'))
         {
             String line = lineTemp.Trim();
             try
             {
                 if (line.Contains("model"))
                 {
                     Model = line.Split('=')[1];
                 }
                 else if (line.Contains("brand"))
                 {
                     Brand = line.Split('=')[1];
                 }
                 else if (line.Contains("name"))
                 {
                     Name = line.Split('=')[1];
                 }
                 else if (line.Contains("board"))
                 {
                     Board = line.Split('=')[1];
                 }
                 else if (line.Contains(".abi2="))
                 {
                     CPU_ABI2 = line.Split('=')[1];
                 }
                 else if (line.Contains(".abi="))
                 {
                     CPU_ABI = line.Split('=')[1];
                 }
                 else if (line.Contains("manufacturer"))
                 {
                     Manufacturer = line.Split('=')[1];
                 }
                 else if (line.Contains("language"))
                 {
                     Language = line.Split('=')[1];
                 }
                 else if (line.Contains("region"))
                 {
                     Region = line.Split('=')[1];
                 }
             }
             catch
             {
             }
         }
         ADB_Process.RunAdbCommand(" -s " + device.ID + " shell cat /system/build.prop | grep \"rild.libpath\"", ref LibPath, false);
         LibPath   = LibPath.Trim();
         refResult = LibPath.ToLower();
         if (refResult.Length > 0)
         {
             if (refResult.Contains("qc") || refResult.Contains("qualcomm"))
             {
                 SolutionVendor = "Qualcomm";
             }
             else if (refResult.Contains("mtk") || refResult.Contains("mediatek"))
             {
                 SolutionVendor = "MTK";
             }
         }
     }
     catch
     {
     }
 }
コード例 #6
0
 public clsUiAutomator(clsDevice device)
 {
     this.device = device;
 }
コード例 #7
0
ファイル: clsWifi.cs プロジェクト: jerry0914/dev_pc_tools
 public clsWifi(clsDevice device)
 {
     this.device = device;
 }
コード例 #8
0
 public clsTelephony(clsDevice device)
 {
     this.device = device;
 }
コード例 #9
0
 public clsAirplaneMode(clsDevice device)
 {
     this.device = device;
 }