/// <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)); } }
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; }
/// <summary> /// 创建DeviceSoftwareInfoGetter的新实例 /// </summary> /// <param name="serial"></param> public DeviceSoftwareInfoGetter(DeviceSerialNumber serial) { this.serial = serial; }
/// <summary> /// 构建 /// </summary> /// <param name="serial"></param> public DeviceBuildPropGetter(DeviceSerialNumber serial) { executer = new CommandExecuter(); Serial = serial; }
/// <summary> /// 构建实例 /// </summary> /// <param name="serial"></param> public DeviceImageFinder(DeviceSerialNumber serial) { this.serial = serial; }
/// <summary> /// 构造 /// </summary> /// <param name="deviceSerial"></param> public DeviceHardwareInfoGetter(DeviceSerialNumber deviceSerial) { this.serial = deviceSerial; }
/// <summary> /// 创建DeviceInfoGetterInFastboot的新实例 /// </summary> /// <param name="serial">具体的设备</param> public DeviceInfoGetterInFastboot(DeviceSerialNumber serial) { executer = new CommandExecuter(); this.serial = serial; }