Example #1
0
        public static void TWRP()
        {
            System.Threading.Thread.Sleep(2000);
            decimal  sizeb    = 50077781;
            string   fileName = @"C:\adb\TWRP\OrangeFox-R10.1_01-Stable-lavender.zip";
            FileInfo fi       = new FileInfo(fileName);

            if (fi.Length < sizeb)
            {
                Strings.MSGBOXFileCorrupted();
                Downloads.downloadcall("Downloading OrangeFox-R10.1_01-Stable-lavender...", "https://files.orangefox.tech/OrangeFox-Stable/lavender/OrangeFox-R10.1_01-Stable-lavender.zip", @"C:\adb\TWRP\OrangeFox-R10.1_01-Stable-lavender.zip");
            }
            else
            {
                Unzip.Unzippy(@"TWRP\OrangeFox-R10.1_01-Stable-lavender.zip", @"TWRP", true);
            }
        }
Example #2
0
        public static void MIUnlock()
        {
            System.Threading.Thread.Sleep(2000);
            decimal  sizeb    = 48100000;
            string   fileName = @"C:\adb\MIUnlock\miflash_unlock-en-3.5.1128.45.zip";
            FileInfo fi       = new FileInfo(fileName);

            if (fi.Length < sizeb)
            {
                Strings.MSGBOXFileCorrupted();
                Downloads.downloadcall("Downloading MI Unlock...", "http://miuirom.xiaomi.com/rom/u1106245679/3.5.1128.45/miflash_unlock-en-3.5.1128.45.zip", @"C:\adb\MIUnlock\miflash_unlock-en-3.5.1128.45.zip");
            }
            else
            {
                Unzip.Unzippy(@"MIUnlock\miflash_unlock-en-3.5.1128.45.zip", @"MIUnlock", true);
            }
        }
Example #3
0
        public static void MIFlash()
        {
            System.Threading.Thread.Sleep(2000);
            decimal  sizeb    = 75900000;
            string   fileName = @"C:\adb\MIFlash\MiFlash20181115.zip";
            FileInfo fi       = new FileInfo(fileName);

            if (fi.Length < sizeb)
            {
                Strings.MSGBOXFileCorrupted();
                Downloads.downloadcall("Downloading MI Flash...", "https://bitbucket.org/Franco28/flashtool-motorola-moto-g5-g5plus/downloads/MiFlash20181115.zip", @"C:\adb\MIFlash\MiFlash20181115.zip");
            }
            else
            {
                Unzip.Unzippy(@"MIFlash\MiFlash20181115.zip", @"MIFlash", true);
            }
        }