예제 #1
0
 /// <summary>
 /// 获取目标设备的指定image路径
 /// </summary>
 /// <param name="serial"></param>
 /// <param name="imageType"></param>
 /// <returns></returns>
 public static string PathOf(DeviceSerialNumber serial, DeviceImage imageType)
 {
     using (DeviceImageFinder _o = new DeviceImageFinder(serial))
     {
         return(_o.PathOf(imageType));
     }
 }
예제 #2
0
 public DeviceBuildPropSetter(DeviceSerialNumber serial)
 {
     this.DeviceSerial = serial;
     shellAsSu         = new AndroidShell(serial);
     shellAsSu.Connect();
     if (!shellAsSu.Switch2Su())
     {
         throw new DeviceHaveNoRootException();
     }
     ReloadFromDevice();
 }
 /// <summary>
 /// 创建DeviceHaveNoRootException的新实例并说明设备
 /// </summary>
 public DeviceHaveNoRootException(DeviceSerialNumber dev)
 {
     this.Device = dev;
 }
예제 #4
0
 /// <summary>
 /// 创建DeviceSoftwareInfoGetter的新实例
 /// </summary>
 /// <param name="serial"></param>
 public DeviceSoftwareInfoGetter(DeviceSerialNumber serial)
 {
     this.serial = serial;
 }
예제 #5
0
 /// <summary>
 /// 构建
 /// </summary>
 /// <param name="serial"></param>
 public DeviceBuildPropGetter(DeviceSerialNumber serial)
 {
     executer = new CommandExecuter();
     Serial   = serial;
 }
예제 #6
0
 /// <summary>
 /// 构建实例
 /// </summary>
 /// <param name="serial"></param>
 public DeviceImageFinder(DeviceSerialNumber serial)
 {
     this.serial = serial;
 }
예제 #7
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="deviceSerial"></param>
 public DeviceHardwareInfoGetter(DeviceSerialNumber deviceSerial)
 {
     this.serial = deviceSerial;
 }
예제 #8
0
 /// <summary>
 /// 创建DeviceInfoGetterInFastboot的新实例
 /// </summary>
 /// <param name="serial">具体的设备</param>
 public DeviceInfoGetterInFastboot(DeviceSerialNumber serial)
 {
     executer    = new CommandExecuter();
     this.serial = serial;
 }