converting a .tar file for flashing

converting a .tar file for flashing

PostPosted by Gillsfankev » Tue Feb 04, 2014 1:18 pm

Right.

In preparation for 4.4.3 being released I need to go back to stock.

Google supplies it in .tar files.

How the hell do I flash this on my nexus?
Yooooooooouu Arrrrrrrrreeeeee
User avatar
Gillsfankev
Global Mod
 
Posts: 2863
Joined: Thu Jun 13, 2013 4:47 pm
Location: Is Everything

Re: converting a .tar file for flashing

PostPosted by MI5 » Tue Feb 04, 2014 1:28 pm

Unzip the downloaded factory image file with .tgz extension. Please note that downloaded with some browsers, the factory image file is saved to your computer as a .tar file. In that case, you should change the file extension to .tgz so that you might extract it.
Open the extracted factory image folder. You would find a zip file inside. Unzip it too.
Now copy all the contents of the image directory to the Platform-tools directory under C:/Program Files/Android/sdk.
Also copy the contents of the zip file to the same directory. See the screenshot below to get a clearer idea of the path of the files and also the image files that need to be flashed using fastboot commands.nexus 5 factory image files
Now it’s time to turn off your device and boot it into Bootloader/Fastboot mode. You can do it by holding the Volume Down+Power buttons for 2-3 seconds.nexus-5-fastboot-mode
Connect your Nexus 5 to computer using USB cable.
Now open the platform-tools folder where you have copied the factory image files and launch a command window. You can do this by pressing the Shift+Right-click on the mouse at an empty space from within the platform-tools folder.restore nexus 5 to stock-factory-image-flash
It’s time now to begin the flashing business. Start typing the following commands one by one, allowing each to finish before moving onto the next. If you are a Mac user, make sure to add ./ in front of all commands (eg.- ./fastboot flash boot boot.img). Note: do not forget to replace the file names highlighted in red to replace with the ones that you have downloaded.
fastboot flash bootloader bootloader-hammerhead-hhz11k.img
fastboot reboot-bootloader
fastboot flash radio radio-hammerhead-m8974a-1.0.25.0.23.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot reboot-bootloader
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot erase cache
fastboot flash cache cache.img
When the Nexus 5 factory images are installed to your phone, it will be on 100% stock firmware, like when you bought it. However, it’ll still have unlocked bootloader. If you want to lock the bootloader again, issue the following command:
fastboot oem lock
If you wish to keep your Nexus 5 with unlocked bootloader, skip Step 9 and press the Power button on phone when its screen shows START.
Most Nexus factory images come with some flash scripts. By running them, you can easily install all required files to your phone in a single hit. However, we still recommend that you use the fastboot command method given above. If you choose to use the flash scripts you can launch a command prompt window and issue the following command:

flash-all.bat (for Windows)
./flash-all.sh (for Mac)
Grammar. The difference between knowing your shit and knowing you're shit.
S3 i9305, Rooted, CM 12.1, Lycamobile.
Xperia Z5 Dual Sim, EE & O2.
Xperia Z3 Compact Tablet LTE, Three.

Imitation. The sincerest form of flattery
http://giffgaff.com/orders/affiliate/psl184
User avatar
MI5
Site Admin
 
Posts: 13303
Joined: Thu Jun 13, 2013 1:31 pm
Location: Sunny Nunny

Re: converting a .tar file for flashing

PostPosted by MI5 » Tue Feb 04, 2014 1:29 pm

Grammar. The difference between knowing your shit and knowing you're shit.
S3 i9305, Rooted, CM 12.1, Lycamobile.
Xperia Z5 Dual Sim, EE & O2.
Xperia Z3 Compact Tablet LTE, Three.

Imitation. The sincerest form of flattery
http://giffgaff.com/orders/affiliate/psl184
User avatar
MI5
Site Admin
 
Posts: 13303
Joined: Thu Jun 13, 2013 1:31 pm
Location: Sunny Nunny

Re: converting a .tar file for flashing

PostPosted by Gillsfankev » Tue Feb 04, 2014 1:36 pm

Cheers!

Why can't someone just zip it for flash in recovery!
Yooooooooouu Arrrrrrrrreeeeee
User avatar
Gillsfankev
Global Mod
 
Posts: 2863
Joined: Thu Jun 13, 2013 4:47 pm
Location: Is Everything

Re: converting a .tar file for flashing

PostPosted by MI5 » Tue Feb 04, 2014 1:42 pm

gillsfankev wrote:Cheers!

Why can't someone just zip it for flash in recovery!

Easy would be too much like iOS - We boys like to have to think for ourselves :arse :lmao
Grammar. The difference between knowing your shit and knowing you're shit.
S3 i9305, Rooted, CM 12.1, Lycamobile.
Xperia Z5 Dual Sim, EE & O2.
Xperia Z3 Compact Tablet LTE, Three.

Imitation. The sincerest form of flattery
http://giffgaff.com/orders/affiliate/psl184
User avatar
MI5
Site Admin
 
Posts: 13303
Joined: Thu Jun 13, 2013 1:31 pm
Location: Sunny Nunny

Re: converting a .tar file for flashing

PostPosted by pdmoulsher » Tue Feb 04, 2014 2:08 pm

MI5 wrote:fastboot flash bootloader bootloader-hammerhead-hhz11k.img
fastboot reboot-bootloader
fastboot flash radio radio-hammerhead-m8974a-1.0.25.0.23.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot reboot-bootloader
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot erase cache
fastboot flash cache cache.img

You appear to have quoted the lyrics from Beyonces' forthcoming collaberation with JZ :o
The only way is Android!
Samsung Galaxy S8
Samsung Galaxy Tab S2 9.7
Vodafone Red 4G
Any way the wind blows
User avatar
pdmoulsher
Global Mod
 
Posts: 4710
Joined: Thu Jun 13, 2013 5:51 pm
Location: the Seventh Sea of Rhye

Re: converting a .tar file for flashing

PostPosted by MI5 » Tue Feb 04, 2014 2:12 pm

:lmao
Grammar. The difference between knowing your shit and knowing you're shit.
S3 i9305, Rooted, CM 12.1, Lycamobile.
Xperia Z5 Dual Sim, EE & O2.
Xperia Z3 Compact Tablet LTE, Three.

Imitation. The sincerest form of flattery
http://giffgaff.com/orders/affiliate/psl184
User avatar
MI5
Site Admin
 
Posts: 13303
Joined: Thu Jun 13, 2013 1:31 pm
Location: Sunny Nunny

Re: converting a .tar file for flashing

PostPosted by O2MACH2 » Tue Feb 04, 2014 4:13 pm

pdmoulsher wrote:
MI5 wrote:fastboot flash bootloader bootloader-hammerhead-hhz11k.img
fastboot reboot-bootloader
fastboot flash radio radio-hammerhead-m8974a-1.0.25.0.23.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot reboot-bootloader
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot erase cache
fastboot flash cache cache.img

You appear to have quoted the lyrics from Beyonces' forthcoming collaberation with JZ :o


Can't wait to see her video of that :dance :heart :heart :heart
User avatar
O2MACH2
Established Member
 
Posts: 4804
Joined: Thu Jun 13, 2013 2:19 pm
Location: Near J1 M32/J19 M4

Re: converting a .tar file for flashing

PostPosted by Cleoriff » Tue Feb 04, 2014 4:35 pm

TUT TUT!!...Off Topic AGGGAAAIIINNN...this time with Beyonce..GAWD! :halo
The Game Is On....
User avatar
Cleoriff
Global Mod
 
Posts: 24108
Joined: Thu Jun 13, 2013 2:02 pm
Location: Warwickshire

Re: converting a .tar file for flashing

PostPosted by Gillsfankev » Tue Feb 04, 2014 6:14 pm

Is anything sacred?

:angry :arse
Yooooooooouu Arrrrrrrrreeeeee
User avatar
Gillsfankev
Global Mod
 
Posts: 2863
Joined: Thu Jun 13, 2013 4:47 pm
Location: Is Everything

Next

Return to Rooting & Custom ROM's

Who is online

Users browsing this forum: No registered users and 1 guest