Monday, November 7, 2016
How to disable OTA upgrades LG G3 TMO D851 Guide
How to disable OTA upgrades LG G3 TMO D851 Guide
Hit the "show content" button below for a FAQ, info on how to disable OTAs, backing up EFS, restoring your phone to stock, resetting the root flag and more...
Q: Im running the Windows .bat as administrator and its closing/not working.
A: There is no need to run the .bat as admin. Just double-click and run.
Q: I get the "Windows cannot find .assetswindows inmintty.exe." error.. watdo?
A: Try just double-clicking on the .bat instead of running as admin.
Also make sure the script is extracted properly first before running.
Q: I [used Flashify and] am stuck in fastboot.. how can I get out?
A: Be cautious using Flashify as it seems its not working right.. or people are hitting the wrong buttons with it.
HERE are the stock TMO D851 partitions.
Use fastboot to flash recovery(TWRP or stock) and stock boot. This will install TWRP and fix booting into rom.
If on Windows you will need fastboot drivers. Use Google to find fastboot binaries and drivers.
Code:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot reboot
Place TWRP on the root of your internal /sdcard/ using MTP, downloading it directly to phone or using ADB push.
Code:
adb push name_of_file.img /sdcard/Disable OTA:
adb shell
su
dd if=/sdcard/name_of_file.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
(This worked on LG G2.. hopefully work on G3 but wont be confirmed until OTA comes out)
Look, instead of rushing to take an OTA to get the latest software.. think for a moment.
We do no know if the TMO D851 boot loader will stay unlocked in future updates. OTAs can update not only software..
but the boot stack as well.. enabling features to block downgrades.. close exploits.. and all sorts of fun stuff.
so.. instead of taking an OTA.. wait for the files to get posted so we can look at things first.. possibly only updating /system, /boot, modem (maybe tz/rpm)
without updating the rest of the boot stack. ya... do that.
EFS Backup:
Backup EFS after jailbreaking your G3. EFS is split into 2 partitions modemst1 and modemst2.
img files will be on root of internal sdcard. Save the .img files somewhere else besides the sdcard... email, cloud, etc..
DO NOT FLASH OTHER PEOPLES EFS OR FLASH YOUR OWN BACKUPS ONTO ANOTHER PHONE.
THIS WILL BREAK EFS ON THE PHONE YOU ARE FLASHING TO. EFS BACKUPS ARE FOR THE PHONE THEY CAME FROM ONLY.
HERE is an EFS backup .zip that can be flashed in TWRP.
the zip creates a new flashable zip in /sdcard/efs_backup
you can flash this new flashable zip in TWRP any time you need to restore your EFS.
Or you can do it manually...
Backup:
adb shell
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img
Restore:
adb shell
su
dd if=/sdcard/modemst1.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst1
dd if=/sdcard/modemst2.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst2
Restoring Stock / Remove root flag:
Download the tmo .tot file and use lg flash to restore it to stock. itll format everything on internal sdcard so backup anything u may need off it.
T-Mobile firmware can be found here. Thanks to @wolfgart for the files and @thecubed for codefire hosting.
*Step by step picture guide - http://imgur.com/W83hMPE
install the drivers.
put phone into Download Mode (power off. unplug USB. pull battery. put battery back in. press/hold Volume Up then plug in USB cable.)
In Windows Device Manager set the phones serial COM port to #41. (*see picture guide for help)
Install LG Flash. In "C:LGLG Flash" folder delete megalock dll. Replace with .dll below.
new megalock dll - http://bit.ly/1cQADXm (this site includes a "download manager.. UNCHECK THE BOX before downloading dll file.)
Run LG Flash in the "C:LGLG Flash" folder. Select korean factory if asked.
When LG Flash opens you will see a box to select firmware and dll.
Select LG Flash .dll
Select (.tot)
Hit OK (*see picture guide for help)
Hit yellow start button. If you get Milkyway error click ok. LG Flash will then run a crc check on the tot file. Takes a bit.
After crc check finishes unplug the phone. plug phone back in. it should now be seen in LG Flash and start flashing.
Phone will reboot when finished. You may end up on a screen with s "2"... let it sit there for a minute or two.
If stuck on "2" try unplugging the usb cable from the phone.. wait 10 seconds.. then plug the usb cable back in. now wait 30 seconds and hopefully it changes to a "3"
Once the phone says "3" you can unplug the USB.. remove the battery and plug back in.. boot back up... you are now 100% stock.
T-Mobile firmware can be found here. Thanks to @wolfgart for the files and @thecubed for codefire hosting.
*Step by step picture guide - http://imgur.com/W83hMPE
install the drivers.
put phone into Download Mode (power off. unplug USB. pull battery. put battery back in. press/hold Volume Up then plug in USB cable.)
In Windows Device Manager set the phones serial COM port to #41. (*see picture guide for help)
Install LG Flash. In "C:LGLG Flash" folder delete megalock dll. Replace with .dll below.
new megalock dll - http://bit.ly/1cQADXm (this site includes a "download manager.. UNCHECK THE BOX before downloading dll file.)
Run LG Flash in the "C:LGLG Flash" folder. Select korean factory if asked.
When LG Flash opens you will see a box to select firmware and dll.
Select LG Flash .dll
Select (.tot)
Hit OK (*see picture guide for help)
Hit yellow start button. If you get Milkyway error click ok. LG Flash will then run a crc check on the tot file. Takes a bit.
After crc check finishes unplug the phone. plug phone back in. it should now be seen in LG Flash and start flashing.
Phone will reboot when finished. You may end up on a screen with s "2"... let it sit there for a minute or two.
If stuck on "2" try unplugging the usb cable from the phone.. wait 10 seconds.. then plug the usb cable back in. now wait 30 seconds and hopefully it changes to a "3"
Once the phone says "3" you can unplug the USB.. remove the battery and plug back in.. boot back up... you are now 100% stock.
Original Source Xda-developers
Go to link download