Codes Phone
Codes Phone
Codes Phone
FRP C#
------------------
string str = "/c Others\\adb shell am start -n com.google.android.gsf.login";
string str1 = "/c Others\\adb shell am start -n
com.google.android.gsf.login.LoginActivity";
string str2 = "/c Others\\adb shell content insert --uri content://settings/secure
--bind name:s:user_setup_complete --bind value:s:1";
string str3 = "/c Others\\adb reboot";
------------------
REBOOT C#
------------------
// REBOOT NORMAL
processcommand.SendCmd("/c Others\\adb reboot");
// REBOOT RECOVERY
processcommand.SendCmd("/c Others\\adb reboot recovery");
// REBOOT FASTBOOT
processcommand.SendCmd("/c Others\\adb reboot fastboot");
// REBOOT BOOTLOADER
processcommand.SendCmd("/c Others\\adb reboot bootloader");
// REBOOT SIDELOAD
processcommand.SendCmd("c/ Others\\adb reboot sideload");
// POWER OFF
processcommand.SendCmd("/c Others\\adb shell reboot -p");
// SLEEP
processcommand.SendCmd("/c Others\\adb shell input keyevent POWER");
// REBOOT USERSPACE
processcommand.SendCmd("/c Others\\adb reboot userspace");
// POWER REBOOT
processcommand.SendCmd("/c Others\\adb shell svc power reboot userspace");
-----------------
UNLOCK SCREEN C#
-----------------
string str = "/c Others\\adb shell su -c 'mount -o remount r-w /system'";
string str1 = "/c Others\\adb shell su -c 'rm data/system/gesture.key'";
string str2 = "/c Others\\adb shell su -c 'rm data/system/password.key'";
string str3 = "/c Others\\adb shell su -c 'rm data/system/gatekeeper.pattern.key'";
string str4 = "/c Others\\adb shell su -c 'rm
data/system/gatekeeper.password.key'";
string str5 = "/c Others\\adb shell su -c 'rm data/system/locksettings.db'";
string str6 = "/c Others\\adb reboot";
------------------
BACKUP DEVICE C#
------------------
(new Processcommand()).SendCmd(string.Concat(new string[] { "/c Others\\adb shell
su -c 'dd if=/dev/block/", this.block.Text, " of=/data/local/tmp/", this.name.Text,
".img'" }));
this.textbox1.AppendText(string.Concat(this.name.Text, ".ing Copy....",
Environment.NewLine));
(new Processcommand()).SendCmd(string.Concat("/c Others\\adb shell su -c 'chmod 777
/data/local/tmp/", this.name.Text, ".img'"));
this.textbox1.AppendText(string.Concat(this.name.Text, ".img chnod 777 ",
Environment.NewLine));
(new Processcommand()).SendCmd(string.Concat(new string[] { "/c Others\\adb pull
/data/local/tmp/", this.name.Text, ".img D:", this.name.Text, ".img" }));
this.textbox1.AppendText(string.Concat("Pulling ", this.name.Text, ".img to DISK D
done...", Environment.NewLine));
(new Processcommand()).SendCmd(string.Concat("/c Others\\adb shell su -c 'rm
/data/local/tmp/", this.name.Text, ".img'"));
this.textbox1.AppendText(string.Concat(new string[] { "Backup ", this.block.Text,
".img as ", this.name.Text, ".img done!", Environment.NewLine }));
------------------
LOCK BOOTLOADER C#
------------------
(new Processcommand()).SendCmd("/c Others\\fastboot oem lock");
------------------
ADB ENABLE C#
------------------
Form1._serialPort.Write("AT+KSTRINGB=0,3\r\n");
Thread.Sleep(250);
MessageBox.Show(string.Concat("Go to emergency dialer enter *#0*#, or some times
work *#06# or *#*#88*#*# click ok when done", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Activating ADB for older devices.",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Step 1..", Environment.NewLine));
Form1._serialPort.Write("AT+SVCIFPGM=1,1\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 2..", Environment.NewLine));
Form1._serialPort.Write("AT+REACTIVE=1,0,0\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 3..", Environment.NewLine));
Form1._serialPort.Write("AT+SWATD=0\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 4..", Environment.NewLine));
Form1._serialPort.Write("AT+DEVCONINFO\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 5..", Environment.NewLine));
Form1._serialPort.Write("AT+SVCIFPGM=1,1\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 6..", Environment.NewLine));
Form1._serialPort.Write("AT+CFUN=1\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 7..", Environment.NewLine));
Form1._serialPort.Write("ATE0\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 8..", Environment.NewLine));
Form1._serialPort.Write("AT+ACTIVATE=0,0\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 9..", Environment.NewLine));
Form1._serialPort.Write("AT+ACTIVATE=0,0,0\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 10..", Environment.NewLine));
Form1._serialPort.Write("AT+SWATD=2\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 11..", Environment.NewLine));
Form1._serialPort.Write("AT+SWATD=1\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 12..", Environment.NewLine));
Form1._serialPort.Write("AT+KSTRINGB=0,2\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 13..", Environment.NewLine));
Form1._serialPort.Write("AT+KSTRINGB=0,3 \r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 14..", Environment.NewLine));
Form1._serialPort.Write("ATE0\r\n");
Thread.Sleep(250);
Form1._serialPort.Write("AT+DUMPCTRL=1,0\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("Step 15..", Environment.NewLine));
Form1._serialPort.Write("AT+DEBUGLVC=0,5\r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("For old device....",
Environment.NewLine));
Form1._serialPort.Write("AT+USBDEBUG \r\n");
Thread.Sleep(250);
this.textbox1.AppendText(string.Concat("ADB Enale done!", Environment.NewLine));
---------------------
SHOW SYSTEM PARTS C#
---------------------
process.StartInfo.Arguments = "/c Others\\adb shell su -c 'ls -l /dev/block/by-
name'";
process.StartInfo.Arguments = "/c Others\\adb shell su -c 'ls -l
/dev/block/platform/cpu_name/by-name'";
process.StartInfo.Arguments = "/c Others\\adb shell su -c 'ls -l
/dev/block/platform/*/by-name'";
---------------------
Samsung Disable OTA C#
---------------------
string str = "/c Others\\adb shell pm disable-user --user 0
com.sec.android.soagent";
string str1 = "/c Others\\adb shell pm disable-user --user 0 com.wssyncmldm";
string str2 = "/c Others\\adb shell pm disable-user --user 0 com.samsung.sdm";
string str3 = "/c Others\\adb shell pm disable-user --user 0
com.samsung.sdm.sdmviewer";
string str4 = "/c Others\\adb shell pm disable-user --user 0
com.samsung.sdm.sdmviewer";
---------------------
Wireless test assistant off C#
---------------------
(new Processcommand()).SendCmd("/c Others\\adb shell dumpsys engineer --
execute_power_off");
---------------------
Activating ADB C#
---------------------
Form1._serialPort.Write("AT+KSTRINGB=0,3\r\n");
Thread.Sleep(1000);
MessageBox.Show(string.Concat("Go to emergency dialer enter *#0*#, or some times
work *#06# or *#*#88*#*# click ok when done", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Activating ADB for older devices.",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Step 1..", Environment.NewLine));
Form1._serialPort.Write("AT+DUMPCTRL=1,0\r\n");
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("Step 2..", Environment.NewLine));
Form1._serialPort.Write("AT+DEBUGLVC=0,5\r\n");
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("Activating ADB for newer devices.",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Step 1..", Environment.NewLine));
Form1._serialPort.Write("AT+SWATD=0\r\n");
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("Step 2..", Environment.NewLine));
Form1._serialPort.Write("AT+ACTIVATE=0,0,0\r\n");
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("Step 3..", Environment.NewLine));
Form1._serialPort.Write("AT+SWATD=1\r\n");
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("Step 4..", Environment.NewLine));
Form1._serialPort.Write("AT+DEBUGLVC=0,5\r\n");
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("For old device....",
Environment.NewLine));
Form1._serialPort.Write("AT+USBDEBUG \r\n");
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("ADB Enale done!", Environment.NewLine));
--------------------
Change CSC C#
--------------------
Form1._serialPort.Write("AT+SWATD=0\r\n");
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("Step 2....", Environment.NewLine));
Form1._serialPort.Write("AT+ACTIVATE=0,0,0\r\n");
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("Step 3....", Environment.NewLine));
Form1._serialPort.Write("AT+SWATD=1\r\n");
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("Step 4....", Environment.NewLine));
Form1._serialPort.Write(string.Concat("AT+PRECONFG=2,", upper, "\r\n"));
Thread.Sleep(1000);
this.textbox1.AppendText(string.Concat("Step 5....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Rebooting your pos self.",
Environment.NewLine));
Form1._serialPort.Write("AT+CFUN=1,1\r\n");
this.textbox1.AppendText(string.Concat("Done!", Environment.NewLine));
-------------------
Factory Reset C#
-------------------
Form1._serialPort.Write("AT+FACTORST=0,0\r\n");
-------------------
Enable Diag Mode C#
-------------------
(new Processcommand()).SendCmd("/c Others\\adb shell su -c 'setprop sys.usb.config
diag,adb'");
-------------------
Enable Diag Mode 2 C#
-------------------
(new Processcommand()).SendCmd("/c Others\\adb shell setprop sys.usb.config diag");
-------------------
Erase NVRAM C#
-------------------
(new Processcommand()).SendCmd("/c Others\\fastboot erase nvram");
-------------------
Erase NVDATA C#
-------------------
(new Processcommand()).SendCmd("/c Others\\fastboot erase nvdata");
-------------------
Wipe EFS C#
-------------------
(new Processcommand()).SendCmd("/c Others\\fastboot erase modemst1");
(new Processcommand()).SendCmd("/c Others\\fastboot erase modemst2");
(new Processcommand()).SendCmd("/c Others\\fastboot erase fsg");
-------------------
REBOOT C#
-------------------
// REBOOT NORMAL
processcommand.SendCmd("/c Others\\fastboot reboot");
// REBOOT RECOVERY
processcommand.SendCmd("/c Others\\fastboot reboot recovery");
// REBOOT FASTBOOT
processcommand.SendCmd("/c Others\\fastboot reboot fastboot");
// REBOOT BOOTLOADER
processcommand.SendCmd("/c Others\\fastboot reboot-bootloader");
// REBOOT EDL WHEN BOOTLOADER UNLOCKED
processcommand.SendCmd("/c Others\\fastboot oem edl");
// REBOOT EDL
processcommand.SendCmd("/c Others\\fastboot reboot-edl");
// REBOOT EMERGENCY
processcommand.SendCmd("/c Others\\fastboot reboot emergency");
// REBOOT CONTINUE
processcommand.SendCmd("/c Others\\fastboot continue");
// REBOOT FTM
processcommand.SendCmd("/c Others\\fastboot oem reboot-ftm");
// REBOOT RUU
processcommand.SendCmd("/c Others\\fastboot oem rebootRUU");
// REBOOT DOWNLOAD
processcommand.SendCmd("/c Other\\fastboot oem reboot-download");
-------------------
UNLOCK BOOTLOADER C#
-------------------
(new Processcommand()).SendCmd("/c Others\\fastboot oem unlock-go");
-------------------
DEVICE STATE C#
-------------------
(new Processcommand()).SendCmd("/c Others\\adb get-state");
-------------------
DEVICES C#
-------------------
(new Processcommand()).SendCmd("/c Others\\fastboot devices");
-------------------
FRP RESET C#
-------------------
processcommand.SendCmd("/c Others\\fastboot erase config ");
processcommand.SendCmd("/c fastboot reboot");
-------------------
FRP RESET 2 C#
-------------------
processcommand.SendCmd("/c Others\\fastboot -i 0x2a96 erase config");
processcommand.SendCmd("/c fastboot reboot");
-------------------
FRP UNLOCK 2 C#
-------------------
(new Processcommand()).SendCmd(string.Concat("/c Others\\fastboot oem frp-unlock ",
this.commandTbox.Text));
-------------------
GET SERIAL NUMBER 2 C#
-------------------
(new Processcommand()).SendCmd(string.Concat("/c Others\\adb get-serialno ",
this.commandTbox.Text));
-------------------
HUAWEI Build Number 2 C#
-------------------
(new Processcommand()).SendCmd(string.Concat("/c Others\\fastboot oem get-build-
number ", this.commandTbox.Text));
-------------------
HUAWEI Vendor country 2 C#
-------------------
(new Processcommand()).SendCmd(string.Concat("/c Others\\fastboot getvar
vendorcountry ", this.commandTbox.Text));
-------------------
HUAWEI Android version C#
-------------------
(new Processcommand()).SendCmd(string.Concat("/c Others\\fastboot oem oeminforead-
ANDROID_VERSION ", this.commandTbox.Text));
-------------------
HUAWEI System version C#
-------------------
(new Processcommand()).SendCmd(string.Concat("/c Others\\fastboot oem get-bootinfo
", this.commandTbox.Text));
-------------------
HUAWEI BOOTINFO version C#
-------------------
(new Processcommand()).SendCmd(string.Concat("/c Others\\fastboot oem
battery_present_check ", this.commandTbox.Text));
-------------------
Battery present version C#
-------------------
(new Processcommand()).SendCmd(string.Concat("/c Others\\fastboot oem get-psid ",
this.commandTbox.Text));
-------------------
Huawei Factory Reset C#
-------------------
Form1._serialPort.Write("AT+FACTORY_RESET");
-------------------
LG hiden menu C#
-------------------
(new Processcommand()).SendCmd("/c Others\\adb shell su -с am start -a
android.intent.action.MAIN -n com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu");
-------------------
LG Factory Reset C#
-------------------
Form1._serialPort.Write("AT%FRST");
-------------------
Moto Network Enable C#
-------------------
string str = "/c Others\\adb shell settings put global airplane_mode_on 1";
string str1 = "/c Others\\adb shell am broadcast -a
android.intent.action.AIRPLANE_MODE --ez state true";
string str2 = "/c Others\\adb shell sleep 3";
string str3 = "/c Others\\adb shell pm clear com.android.providers.telephony";
string str4 = "/c Others\\adb shell settings put global preferred_network_mode 9";
string str5 = "/c Others\\adb shell settings put global preferred_network_mode1 9";
string str6 = "/c Others\\adb shell settings put global preferred_network_mode2 9";
string str7 = "/c Others\\adb shell settings put global airplane_mode_on 0";
string str8 = "/c Others\\adb shell am broadcast -a
android.intent.action.AIRPLANE_MODE --ez state false";
string str9 = "/c Others\\adb shell sleep 3";
string str10 = "/c Others\\adb shell reboot";
------------------
Enable MTP Mode C#
------------------
new Processcommand()).SendCmd("/c Others\\adb shell su -c 'setprop sys.usb.config
mtp,adb'");
------------------
Unlock Pixel 3A XL C#
------------------
string str = "/c Others\\adb shell pm uninstall -k--user 0
com.google.android.apps.work.oobconfig";
string str1 = "/c Others\\adb reboot";
------------------
Reset USB C#
------------------
(new Processcommand()).SendCmd("/c Others\\adb usb");
------------------
Samsung FRP 2022 C#
------------------
this.execute("adb.exe", "kill-server");
this.execute("adb.exe", "wait-for-device");
this.execute("adb.exe", "push frp.bin /data/local/tmp/temp");
this.execute("adb.exe", "shell chmod 777 /data/local/tmp/temp");
this.execute("adb.exe", "shell /data/local/tmp/temp");
-----------------
Samsung Enter Download Mode C#
-----------------
Form1._serialPort.Write("AT+FUS?");
Form1._serialPort.Write("AT+FUS");
-----------------
TWRP Device INFO C#
-----------------
adb shell getprop ro.product.brand
adb shell getprop ro.product.model
adb shell getprop ro.build.version.release
adb get-serialno
----------------
AntiRollBack C#
----------------
fastboot getvar anti
----------------
Wipe Xiaomi C#
----------------
xadb format-data-storage
(new Processcommand()).SendCmd("/c Others\\adb reboot");
----------------
Reset Lock Xiaomi C#
----------------
string str = "/c Others\\adb shell pm hide com.miui.cloudservice";
string str1 = "/c Others\\adb shell pm hide com.xiaomi.finddevice";
string str2 = "/c Others\\adb shell pm uninstall -k --user 0
com.xiaomi.finddevice";
string str3 = "/c Others\\adb shell pm uninstall -k --user 0 com.xiaomi.account";
string str4 = "/c Others\\adb shell am set-debug-app -w --persistent
com.xiaomi.finddevice";
----------------
Samsung Qualcom FRP C#
----------------
private void SamsFrpQcom_btn_Click(object sender, EventArgs e)
{
DateTime now;
string str = "Others\\Loader\\emmcdl.exe";
string str1 = "Others\\Loader\\SM-A015F_loader_8937.mbn";
string str2 = "Others\\Loader\\SM-A025F_loader_8937.mbn";
string str3 = "Others\\Loader\\SM-A115A_loader_8953.mbn";
string str4 = "Others\\Loader\\SM-A115F_loader_8953.mbn";
string str5 = "Others\\Loader\\SM-A115U_loader_8953.mbn";
string str6 = "Others\\Loader\\SM-J415F_loader_8917.mbn";
string str7 = "Others\\Loader\\SM-J610F_loader_8917.mbn";
string str8 = "Others\\Loader\\SM-M025F_loader_8953.mbn";
string str9 = "Others\\Loader\\SM-M115F_loader_8953.mbn";
string str10 = "Others\\Loader\\mido_ prog_emmc_firehose_8953_ddr.mbn";
string str11 = "Others\\Loader\\
redmi5_prog_emmc_firehose_8953_ddr.mbn";
if (this.modelSelector.SelectedIndex == -1)
{
this.textbox1.AppendText(string.Concat(" Poert or model is empty.
Please select PORT and MODEL manually.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat(new string[] { " You selected
", this.modelSelector.Text, " connected it on port ", this.samsQcomPotr.Text,
Environment.NewLine }));
switch (this.modelSelector.SelectedIndex)
{
case 0:
{
this.textbox1.AppendText(string.Concat(new string[] { "Samsung
", this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking SM-A015F
loader file.....", Environment.NewLine));
if (!(new FileInfo(str1)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process = new Process();
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.FileName = "cmd.exe";
process.StartInfo.Arguments = string.Concat(new string[]
{ "./c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", " SM-A015F_loader_8937.mbn
", " -e persistent " });
process.StartInfo.WorkingDirectory = "Others\\Loader\\";
process.Start();
process.WaitForExit();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox = this.textbox1;
now = DateTime.Now;
textBox.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
case 1:
{
this.textbox1.AppendText(string.Concat(new string[] { "Samsung
", this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking SM-A025F
loader file.....", Environment.NewLine));
if (!(new FileInfo(str2)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process1 = new Process();
process1.StartInfo.UseShellExecute = false;
process1.StartInfo.RedirectStandardOutput = true;
process1.StartInfo.RedirectStandardError = true;
process1.StartInfo.CreateNoWindow = true;
process1.StartInfo.FileName = "cmd.exe";
process1.StartInfo.Arguments = string.Concat(new string[] {
"./c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", " SM-A025F_loader_8937.mbn ",
" -e persistent " });
process1.StartInfo.WorkingDirectory = "Others\\Loader\\";
process1.Start();
process1.WaitForExit();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox1 = this.textbox1;
now = DateTime.Now;
textBox1.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception1)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
case 2:
{
this.textbox1.AppendText(string.Concat(new string[] { "Samsung
", this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking SM-A115A
loader file.....", Environment.NewLine));
if (!(new FileInfo(str3)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process2 = new Process();
process2.StartInfo.UseShellExecute = false;
process2.StartInfo.RedirectStandardOutput = true;
process2.StartInfo.RedirectStandardError = true;
process2.StartInfo.CreateNoWindow = true;
process2.StartInfo.FileName = "cmd.exe";
process2.StartInfo.Arguments = string.Concat(new string[] {
"./c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", " SM-A115A_loader_8953.mbn ",
" -e persistent " });
process2.StartInfo.WorkingDirectory = "Others\\Loader\\";
process2.Start();
process2.WaitForExit();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox2 = this.textbox1;
now = DateTime.Now;
textBox2.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception2)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
case 3:
{
this.textbox1.AppendText(string.Concat(new string[] { "Samsung
", this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking SM-A115F
loader file.....", Environment.NewLine));
if (!(new FileInfo(str4)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process3 = new Process();
process3.StartInfo.UseShellExecute = false;
process3.StartInfo.RedirectStandardOutput = true;
process3.StartInfo.RedirectStandardError = true;
process3.StartInfo.CreateNoWindow = true;
process3.StartInfo.FileName = "cmd.exe";
process3.StartInfo.Arguments = string.Concat(new string[] {
"./c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", " SM-A115F_loader_8953.mbn ",
" -e persistent " });
process3.StartInfo.WorkingDirectory = "Others\\Loader\\";
process3.Start();
process3.WaitForExit();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox3 = this.textbox1;
now = DateTime.Now;
textBox3.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception3)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
case 4:
{
this.textbox1.AppendText(string.Concat(new string[] { "Samsung
", this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking SM-A115U
loader file.....", Environment.NewLine));
if (!(new FileInfo(str5)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process4 = new Process();
process4.StartInfo.UseShellExecute = false;
process4.StartInfo.RedirectStandardOutput = true;
process4.StartInfo.RedirectStandardError = true;
process4.StartInfo.CreateNoWindow = true;
process4.StartInfo.FileName = "cmd.exe";
process4.StartInfo.Arguments = string.Concat(new string[] {
"./c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", " SM-A115U_loader_8953.mbn ",
" -e persistent " });
process4.StartInfo.WorkingDirectory = "Others\\Loader\\";
process4.Start();
process4.WaitForExit();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox4 = this.textbox1;
now = DateTime.Now;
textBox4.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception4)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
case 5:
{
this.textbox1.AppendText(string.Concat(new string[] { "Samsung
", this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking SM-J415F
loader file.....", Environment.NewLine));
if (!(new FileInfo(str6)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process5 = new Process();
process5.StartInfo.UseShellExecute = false;
process5.StartInfo.RedirectStandardOutput = true;
process5.StartInfo.RedirectStandardError = true;
process5.StartInfo.CreateNoWindow = true;
process5.StartInfo.FileName = "cmd.exe";
process5.StartInfo.Arguments = string.Concat(new string[] {
"./c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", " SM-J415F_loader_8917.mbn ",
" -e persistent " });
process5.StartInfo.WorkingDirectory = "Others\\Loader\\";
process5.Start();
process5.WaitForExit();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox5 = this.textbox1;
now = DateTime.Now;
textBox5.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception5)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
case 6:
{
this.textbox1.AppendText(string.Concat(new string[] { "Samsung
", this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking SM-J610F
loader file.....", Environment.NewLine));
if (!(new FileInfo(str7)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process6 = new Process();
process6.StartInfo.UseShellExecute = false;
process6.StartInfo.RedirectStandardOutput = true;
process6.StartInfo.RedirectStandardError = true;
process6.StartInfo.CreateNoWindow = true;
process6.StartInfo.FileName = "cmd.exe";
process6.StartInfo.Arguments = string.Concat(new string[] {
"./c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", " SM-J610F_loader_8917.mbn ",
" -e persistent " });
process6.StartInfo.WorkingDirectory = "Others\\Loader\\";
process6.Start();
process6.WaitForExit();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox6 = this.textbox1;
now = DateTime.Now;
textBox6.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception6)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
case 7:
{
this.textbox1.AppendText(string.Concat(new string[] { "Samsung
", this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking SM-M025F
loader file.....", Environment.NewLine));
if (!(new FileInfo(str8)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process7 = new Process();
process7.StartInfo.UseShellExecute = false;
process7.StartInfo.RedirectStandardOutput = true;
process7.StartInfo.RedirectStandardError = true;
process7.StartInfo.CreateNoWindow = true;
process7.StartInfo.FileName = "cmd.exe";
process7.StartInfo.Arguments = string.Concat(new string[] {
"./c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", " SM-M025F_loader_8953.mbn ",
" -e persistent " });
process7.StartInfo.WorkingDirectory = "Others\\Loader\\";
process7.Start();
process7.WaitForExit();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox7 = this.textbox1;
now = DateTime.Now;
textBox7.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception7)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
case 8:
{
this.textbox1.AppendText(string.Concat(new string[] { "Samsung
", this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking SM-M115F
loader file.....", Environment.NewLine));
if (!(new FileInfo(str9)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process8 = new Process();
process8.StartInfo.UseShellExecute = false;
process8.StartInfo.RedirectStandardOutput = true;
process8.StartInfo.RedirectStandardError = true;
process8.StartInfo.CreateNoWindow = true;
process8.StartInfo.FileName = "cmd.exe";
process8.StartInfo.Arguments = string.Concat(new string[] {
"./c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", " SM-M115F_loader_8953.mbn ",
" -e persistent " });
process8.StartInfo.WorkingDirectory = "Others\\Loader\\";
process8.Start();
process8.WaitForExit();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox8 = this.textbox1;
now = DateTime.Now;
textBox8.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception8)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
case 9:
{
this.textbox1.AppendText(string.Concat(new string[] { " ",
this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking MIDO loader
file.....", Environment.NewLine));
if (!(new FileInfo(str10)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process9 = new Process();
process9.StartInfo.UseShellExecute = false;
process9.StartInfo.RedirectStandardOutput = true;
process9.StartInfo.RedirectStandardError = true;
process9.StartInfo.CreateNoWindow = true;
process9.StartInfo.FileName = "cmd.exe";
process9.StartInfo.Arguments = string.Concat(new string[] {
"./c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", " mido_
prog_emmc_firehose_8953_ddr.mbn ", " -e config " });
process9.StartInfo.WorkingDirectory = "Others\\Loader\\";
process9.Start();
process9.StandardOutput.ReadToEnd();
process9.StandardError.ReadToEnd();
process9.WaitForExit();
process9.Close();
process9.Dispose();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox9 = this.textbox1;
now = DateTime.Now;
textBox9.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception9)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
case 10:
{
this.textbox1.AppendText(string.Concat(new string[] { " ",
this.modelSelector.Text, " selected, and connected on port ",
this.samsQcomPotr.Text, Environment.NewLine }));
if (MessageBox.Show("Do you really want erase FRP ? ", "\t\tFRP
ERASE", MessageBoxButtons.OKCancel) != DialogResult.OK)
{
this.textbox1.AppendText(string.Concat(" The user aborted
the operation.... ", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Preparing to
unlock.....", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking ROSY loader
file.....", Environment.NewLine));
if (!(new FileInfo(str11)).Exists)
{
this.textbox1.AppendText(string.Concat("Loader not exist.
OOOPS.", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("Loader exist. OK...",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("Checking emmcdl.exe
file ", Environment.NewLine));
if (!(new FileInfo(str)).Exists)
{
this.textbox1.AppendText(string.Concat(" emmcdl.exe not
exist. OOOPS...", Environment.NewLine));
return;
}
this.textbox1.AppendText(string.Concat("emmcdl.exe exist
OK...", Environment.NewLine));
this.textbox1.AppendText(string.Concat("Trying remove FRP....",
Environment.NewLine));
try
{
Process process10 = new Process();
process10.StartInfo.UseShellExecute = false;
process10.StartInfo.RedirectStandardOutput = true;
process10.StartInfo.RedirectStandardError = true;
process10.StartInfo.CreateNoWindow = true;
process10.StartInfo.FileName = "cmd.exe";
process10.StartInfo.Arguments = string.Concat(new string[]
{ "/c emmcdl.exe -p ", this.samsQcomPotr.Text, " -f ", "
redmi5_prog_emmc_firehose_8953_ddr.mbn ", " -e config" });
process10.StartInfo.WorkingDirectory = "Others\\Loader\\";
process10.Start();
process10.StandardOutput.ReadToEnd();
process10.StandardError.ReadToEnd();
process10.WaitForExit();
this.textbox1.AppendText(string.Concat("Remove FRP done!",
Environment.NewLine));
this.textbox1.AppendText(string.Concat("OK.....",
Environment.NewLine));
TextBox textBox10 = this.textbox1;
now = DateTime.Now;
textBox10.AppendText(string.Concat(now.ToString(),
Environment.NewLine));
break;
}
catch (Exception exception10)
{
this.textbox1.AppendText(string.Concat("Fail! Make sure
model loader and port correct.", Environment.NewLine));
break;
}
break;
}
default:
{
this.textbox1.AppendText(string.Concat("Select port or model
and try again.", Environment.NewLine));
break;
}
}
}