Beispiel #1
0
 private void buttonLockBootloader_Click(object sender, EventArgs e)
 {
     if (isConnected())
     {
         cAppend("Locking bootloader...");
         string locck = Fastboot.ExecuteFastbootCommand(Fastboot.FormFastbootCommand(" flashing lock"));
         cAppend(locck.ToString());
         cAppend("Locking bootloader... {OK}");
     }
     else
     {
         cAppend("{LockBootloader} Please connect your device...");
         return;
     }
 }
Beispiel #2
0
 private void buttonUnlockCritical_Click(object sender, EventArgs e)
 {
     if (isConnected())
     {
         cAppend("Unlocking critical...");
         string unlock = Fastboot.ExecuteFastbootCommand(Fastboot.FormFastbootCommand(" flashing unlock_critical"));
         cAppend(unlock.ToString());
         cAppend("Unlocking critical... {OK}");
     }
     else
     {
         cAppend("{UnlockCriticalBootloader} Please connect your device...");
         return;
     }
 }
Beispiel #3
0
        private void buttonBOOTTWRP_Click(object sender, EventArgs e)
        {
            openFileDialog1.InitialDirectory = exePath;
            openFileDialog1.Title            = "Select your TWRP img!";
            openFileDialog1.Filter           = @"img Files|*.img";
            if (openFileDialog1.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            string twrp = openFileDialog1.FileName.ToString();

            if (isConnected())
            {
                cAppend("Booting " + twrp + "...");
                Fastboot.ExecuteFastbootCommand(Fastboot.FormFastbootCommand(" flash boot " + twrp));
                cAppend("Booting " + twrp + "... {OK}");
                Fastboot.ExecuteFastbootCommand(Fastboot.FormFastbootCommand(" reboot recovery"));
            }
            else
            {
                cAppend("{BootTWRP} Please connect your device...");
                return;
            }
        }