Exemple #1
0
        public async Task InstallGpu()
        {
            if (await phone.GetModel() != PhoneModel.Cityman)
            {
                var ex = new InvalidOperationException("This phone is not a Lumia 950 XL");
                Log.Error(ex, "Phone isn't a Lumia 950 XL");

                throw ex;
            }

            Log.Information("Installing GPU");
            await phone.EnsureBootPartitionIs(PartitionType.Basic);

            IList <Sentence> sentences = new List <Sentence>()
            {
                new Sentence(new Command(nameof(GitHubUnpack), new[] { new Argument("https://github.com/gus33000/MSM8994-8992-NT-ARM64-Drivers"), })),
                new Sentence(new Command(nameof(CopyDirectory), new[]
                {
                    new Argument(@"Downloaded\MSM8994-8992-NT-ARM64-Drivers-master\Supplemental\GPU\Cityman"),
                    new Argument(@"WindowsARM\Users\Public\OEMPanel"),
                })),
            };

            await scriptRunner.Run(new Script(sentences));
        }
Exemple #2
0
        public async Task Deploy()
        {
            var dict = new Dictionary <PhoneModel, string>
            {
                { PhoneModel.Talkman, Path.Combine("Scripts", "950.txt") },
                { PhoneModel.Cityman, Path.Combine("Scripts", "950xl.txt") },
            };

            var phoneModel = await phone.GetModel();

            var path = dict[phoneModel];

            await scriptRunner.Run(parser.Parse(File.ReadAllText(path)));
        }
Exemple #3
0
        public async Task Deploy()
        {
            var dict = new Dictionary <PhoneModel, string>
            {
                { PhoneModel.Talkman, Path.Combine("Scripts", "950.txt") },
                { PhoneModel.Cityman, Path.Combine("Scripts", "950xl.txt") },
            };

            var phoneModel = await phone.GetModel();

            Log.Verbose("{Model} detected", phoneModel);
            var path = dict[phoneModel];

            await scriptRunner.Run(parser.Parse(File.ReadAllText(path)));

            await PreparePhoneDiskForSafeRemoval();
        }