public async Task InjectDrivers() { var sut = new DismImageService(); var lowlevel = new LowLevelApi(); var volumes = await lowlevel.GetVolumes(await lowlevel.GetPhoneDisk()); var winVolume = volumes.Single(v => v.Label == "WindowsARM"); await sut.InjectDrivers(@"C:\Users\super\source\repos\Install\Application\bin\Debug\bin\Debug\Files\Drivers\Stable", winVolume); }
public async Task SetPartitionType() { var sut = new LowLevelApi(); var disk = await sut.GetPhoneDisk(); var volumes = await sut.GetVolumes(disk); var volume = volumes.Single(x => x.Label == "BOOT"); await sut.SetPartitionType(volume.Partition, PartitionType.Esp); }
public async Task <IList <Volume> > GetVolumes() { var volumes = await LowLevelApi.GetVolumes(this); return(volumes); }