Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,940 Members 46,778 Now Online
XDA Developers Android and Mobile Development Forum

Use fastboot to flash 4.4.3 without waiting for OTA

Tip us?
 
DarsVaeda
Old
#11  
DarsVaeda's Avatar
Senior Member
Thanks Meter 47
Posts: 447
Join Date: Nov 2008
Location: Cologne
No need to do all these steps (flashboot). They included scripts that will run all things

On Windows you can just run "flash-all.bat" or on Unix "flash-all.sh".
"Time is the fire in which we burn."
Google Nexus 4 (KitKat) & ASUS Eee Pad Infinity Transformer TF700T-1B129A & Google NexusOne
The Following User Says Thank You to DarsVaeda For This Useful Post: [ Click to Expand ]
 
mashedbymachines
Old
#12  
Senior Member
Thanks Meter 21
Posts: 134
Join Date: Aug 2010
Quote:
Originally Posted by DarsVaeda View Post
No need to do all these steps (flashboot). They included scripts that will run all things

On Windows you can just run "flash-all.bat" or on Unix "flash-all.sh".
Yeah but edit it with notepad and remove the -w flag to disable the wipe also remove the recovery.img from the zip to keep the custom recovery !
-------------------------------------------------------
iPhone 2G -> HTC Desire -> Nexus 4
The Following 2 Users Say Thank You to mashedbymachines For This Useful Post: [ Click to Expand ]
 
NYZack
Old
#13  
Senior Member - OP
Thanks Meter 41
Posts: 139
Join Date: Mar 2011
Quote:
Originally Posted by mashedbymachines View Post
Yeah but edit it with notepad and remove the -w flag to disable the wipe also remove the recovery.img from the zip to keep the custom recovery !
Yeah, this is the key point - if that -w flag is not removed, you will lose all apps/data. One of the reasons I put this up is that I think the step-by-step method is interesting, instructive (you can see what's actually happening), not much more time-consuming than running the automated script, and lets you have more granular control.

(And I apologize if it's littering the forum and semi-plagiarism, but I thought a very detailed, confirmed step-by-step guide with up-to-date precise download links might be useful to people who haven't gone through the process before.)
 
Erroneus
Old
(Last edited by Erroneus; 4th June 2014 at 10:12 PM.) Reason: ****ing Notepad++
#14  
Erroneus's Avatar
Senior Member
Thanks Meter 22
Posts: 113
Join Date: Dec 2008
Location: Nyborg
What the ....

So I edited my flash-all.bat and removed the -w

It looks like this:

Quote:
@ECHO OFF

PATH=%PATH%;"%SYSTEMROOT%\System32"
fastboot flash bootloader bootloader-mako-makoz30d.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1701.02.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot update image-occam-ktu84l.zip

echo Press any key to exit...
pause >nul
And yet my phone was wiped.... sigh

** Update **
Nevermind, it was Notepad++ that screwed me over. The changes to the bat file was not written to the file, only kept in Notepad++'s temporary memory. ****ing bull**** feature.
Nexus 4 @ Android 4.4.4 - Nexus 7 (2012) @ Android 4.4.4
Moto G 4G White (XT1039) @ Android 4.4.4 - Chromecast @ v17250
 
fdg59
Old
#15  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Sep 2013
Quote:
Originally Posted by Erroneus View Post
What the ....

So I edited my flash-all.bat and removed the -w

It looks like this:



And yet my phone was wiped.... sigh

** Update **
Nevermind, it was Notepad++ that screwed me over. The changes to the bat file was not written to the file, only kept in Notepad++'s temporary memory. ****ing bull**** feature.

so in order to run this comand you only need to unzip the tar(?) file downloaded and then you are done, you don't have to unzip the actual factory image, correct?
 
pjc123
Old
(Last edited by pjc123; 21st June 2014 at 01:08 PM.)
#16  
Senior Member
Thanks Meter 39
Posts: 245
Join Date: Feb 2013
Quote:
Originally Posted by fdg59 View Post
so in order to run this comand you only need to unzip the tar(?) file downloaded and then you are done, you don't have to unzip the actual factory image, correct?
Actually, you have to run the unzip program twice:

For example, when updating to Android version 4.4.4 (Yes, a new version has already been released since this post):

Here is the downloaded file

occam-ktu84p-factory-b6ac3ad6.tar

Unzipping it will give you this:

occam-ktu84p-factory-b6ac3ad6

And unzipping that one more time will give you the directory "occam-ktu84p" containing the following files:

bootloader-mako-makoz30d.img
flash-all.bat
flash-all.sh
flash-base.sh
image-occam-ktu84p.zip
radio-mako-m9615a-cefwmazm-2.0.1701.03.img


WARNING: As was mentioned many times, remove the -w from the following line in the flash-all.bat file unless you intend to wipe your phone clean. I don't understand the issue with Notepad++ noted in a previous post, as you have to hit "save" like any other program (It is the program that I use as well).

fastboot -w update image-occam-ktu84p.zip

If what you were really asking is whether you need to unzip the file image-occam-ktu84p.zip.......The answer is no.
The Following User Says Thank You to pjc123 For This Useful Post: [ Click to Expand ]
 
fdg59
Old
#17  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Sep 2013
ah ah yes 4.4.4, that's why i am asking, because i always used to unzip everything and the flash items individually using fastboot which i always liked. The problem however was that my nexus 4 has 16gb and after flashing and wiping everything clean the memory showed up at 8gb so i had to factory reset through stock recovery which i didn't enjoy as much. thanks for all the help!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes