Skip to content

Instantly share code, notes, and snippets.

@RayBB
Last active December 19, 2016 20:42
Show Gist options
  • Save RayBB/425c07b2d22f40b69904e06fe2a61a5a to your computer and use it in GitHub Desktop.
Save RayBB/425c07b2d22f40b69904e06fe2a61a5a to your computer and use it in GitHub Desktop.
Batch File to Automate Unlocking of Verizon Moto E
@echo off
echo Please insert sim card and connect device via usb before hitting enter
timeout /t -1
adb wait-for-device
adb shell settings put global airplane_mode_on 1
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
adb reboot bootloader
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot reboot
adb wait-for-device
adb shell pm clear com.android.providers.telephony
adb shell settings put global preferred_network_mode 9
adb shell settings put global preferred_network_mode1 9
adb shell settings put global preferred_network_mode2 9
adb reboot
echo Device rebooting
echo ONLY CONTINUE IF YOUR DESIRED SIMCARD IS IN THE PHONE. OTHERWISE CLOSE THIS
timeout /t -1
adb wait-for-device
adb shell settings put global airplane_mode_on 0
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
echo now just turn off wifi mode when sim card is in
echo http://forum.xda-developers.com/moto-e-2015/general/how-to-verizon-moto-e-2015-gsm-network-t3098953
timeout /t -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment