Example #1
0
 private void materialButtonFirmwareServer_Click(object sender, EventArgs e)
 {
     oConfigMng.LoadConfig();
     cAppend("FIRMWARE: Opening " + oConfigMng.Config.DeviceFirmware + " firmware server...");
     if (oConfigMng.Config.DeviceFirmware == oConfigMng.Config.DeviceFirmware)
     {
         MotoFirmware.FirmwareServer(oConfigMng.Config.DeviceCodenmae + "/official/", oConfigMng.Config.DeviceFirmware);
         cAppend("FIRMWARE: Opening " + oConfigMng.Config.DeviceFirmware + " firmware server... {OK}");
     }
 }
Example #2
0
        public void CreateFirmwareFolder()
        {
            oConfigMng.LoadConfig();

            if (oConfigMng.Config.DeviceFirmware == "---" && oConfigMng.Config.DeviceFirmware == "")
            {
                return;
            }
            if (oConfigMng.Config.DeviceFirmware == oConfigMng.Config.DeviceFirmware)
            {
                cAppend(@"Creating firmware folder: C:\\adb\\Firmware\\" + oConfigMng.Config.DeviceFirmware);
                MotoFirmware.CreateFolders(@"C:\\adb\\Firmware\\" + oConfigMng.Config.DeviceFirmware);
                cAppend(@"Setting firmware folder: C:\\adb\\Firmware\\" + oConfigMng.Config.DeviceFirmware);
                Directory.SetCurrentDirectory(@"C:\\adb\\Firmware\\" + oConfigMng.Config.DeviceFirmware);
            }
        }