Last active
April 30, 2018 09:30
-
-
Save eyecatchup/1c43dd749ac4cc648459 to your computer and use it in GitHub Desktop.
Safe flashing of hammerhead-lpx13d-preview-f7596f51 - FOR THE "GOOGLE_EXPERIENCE" DO NOT USE flash-all.sh (or flash-all.bat)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Boot into bootloader mode | |
>adb reboot bootloader | |
# Erase old boot, cache, system & userdata partitions | |
>fastboot erase boot | |
>fastboot erase cache | |
>fastboot erase system | |
>fastboot erase userdata | |
# IGNORE THIS COMMAND, IF YOU HAVE A CUSTOM RECOVERY INSTALLED AND WANT TO KEEP IT. | |
# IF YOU HAVE THE STOCK RECOVERY, DO NOT IGNORE THE NEXT LINE. | |
>fastboot erase recovery | |
# Flash new bootloader & reboot into | |
>fastboot flash bootloader bootloader-hammerhead-hhz12d.img | |
>fastboot reboot-bootloader | |
# Flash new radio & reboot bootloader | |
>fastboot flash radio radio-hammerhead-m8974a-2.0.50.2.21.img | |
>fastboot reboot-bootloader | |
# Do wipe again. | |
>fastboot -w | |
# Flash new boot, cache, system & userdata partitions | |
>fastboot flash system image-hammerhead-lpx13d/system.img | |
>fastboot flash userdata image-hammerhead-lpx13d/userdata.img | |
>fastboot flash cache image-hammerhead-lpx13d/cache.img | |
>fastboot flash boot image-hammerhead-lpx13d/boot.img | |
# ONLY REQUIRED, IF YOU ERASED THE RECOVERY PARTITION BEFORE. | |
# USE ONLY ONE OF THE FOLLOWING TWO LINES (1. Stock, 2. TWRP)! | |
>fastboot flash recovery image-hammerhead-lpx13d/recovery.img | |
>fastboot flash recovery openrecovery-twrp-2.8.0.1-hammerhead.img | |
# Reboot the system (root doesn't work yet >>properly<<, so we straight reboot) | |
>fastboot reboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51>fastboot erase boot | |
erasing 'boot'... | |
OKAY [ 0.247s] | |
finished. total time: 0.250s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51>fastboot erase cache | |
******** Did you mean to fastboot format this partition? | |
erasing 'cache'... | |
OKAY [ 0.561s] | |
finished. total time: 0.562s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51>fastboot erase system | |
******** Did you mean to fastboot format this partition? | |
erasing 'system'... | |
OKAY [ 1.072s] | |
finished. total time: 1.074s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51>fastboot erase userdata | |
******** Did you mean to fastboot format this partition? | |
erasing 'userdata'... | |
OKAY [ 30.361s] | |
finished. total time: 30.363s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51>cd hammerhead-lpx13d | |
\ | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51\hammerhead-lpx13d>fastboot flash bootloader bootloader-hammerhead-hhz12d.img | |
sending 'bootloader' (2579 KB)... | |
OKAY [ 0.282s] | |
writing 'bootloader'... | |
OKAY [ 0.476s] | |
finished. total time: 0.762s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51\hammerhead-lpx13d>fastboot reboot-bootloader | |
rebooting into bootloader... | |
OKAY [ 0.003s] | |
finished. total time: 0.005s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51\hammerhead-lpx13d>fastboot flash radio radio-hammerhead-m8974a-2.0.50.2.21.img | |
target reported max download size of 1073741824 bytes | |
sending 'radio' (45521 KB)... | |
OKAY [ 1.568s] | |
writing 'radio'... | |
OKAY [ 3.127s] | |
finished. total time: 4.699s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51\hammerhead-lpx13d>fastboot reboot-bootloader | |
rebooting into bootloader... | |
OKAY [ 0.002s] | |
finished. total time: 0.003s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51\hammerhead-lpx13d>fastboot -w | |
Creating filesystem with parameters: | |
Size: 29236371456 | |
Block size: 4096 | |
Blocks per group: 32768 | |
Inodes per group: 8192 | |
Inode size: 256 | |
Journal blocks: 32768 | |
Label: | |
Blocks: 7137786 | |
Block groups: 218 | |
Reserved block group size: 1024 | |
Created filesystem with 11/1785856 inodes and 156120/7137786 blocks | |
target reported max download size of 1073741824 bytes | |
Creating filesystem with parameters: | |
Size: 734003200 | |
Block size: 4096 | |
Blocks per group: 32768 | |
Inodes per group: 7472 | |
Inode size: 256 | |
Journal blocks: 2800 | |
Label: | |
Blocks: 179200 | |
Block groups: 6 | |
Reserved block group size: 47 | |
Created filesystem with 11/44832 inodes and 5813/179200 blocks | |
erasing 'userdata'... | |
OKAY [ 12.826s] | |
sending 'userdata' (139109 KB)... | |
OKAY [ 4.527s] | |
writing 'userdata'... | |
OKAY [ 9.357s] | |
erasing 'cache'... | |
OKAY [ 0.561s] | |
sending 'cache' (13348 KB)... | |
OKAY [ 0.628s] | |
writing 'cache'... | |
OKAY [ 1.073s] | |
finished. total time: 37.277s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51\hammerhead-lpx13d>fastboot flash system image-hammerhead-lpx13d/system.img | |
target reported max download size of 1073741824 bytes | |
erasing 'system'... | |
OKAY [ 0.600s] | |
sending 'system' (679407 KB)... | |
OKAY [ 22.018s] | |
writing 'system'... | |
OKAY [ 47.259s] | |
finished. total time: 69.883s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51\hammerhead-lpx13d>fastboot flash userdata image-hammerhead-lpx13d/userdata.img | |
target reported max download size of 1073741824 bytes | |
erasing 'userdata'... | |
OKAY [ 12.153s] | |
sending 'userdata' (137318 KB)... | |
OKAY [ 4.618s] | |
writing 'userdata'... | |
OKAY [ 9.152s] | |
finished. total time: 25.927s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51\hammerhead-lpx13d>fastboot flash cache image-hammerhead-lpx13d/cache.img | |
target reported max download size of 1073741824 bytes | |
erasing 'cache'... | |
OKAY [ 0.483s] | |
sending 'cache' (13348 KB)... | |
OKAY [ 0.639s] | |
writing 'cache'... | |
OKAY [ 1.066s] | |
finished. total time: 2.192s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51\hammerhead-lpx13d>fastboot flash boot image-hammerhead-lpx13d/boot.img | |
target reported max download size of 1073741824 bytes | |
sending 'boot' (8888 KB)... | |
OKAY [ 0.439s] | |
writing 'boot'... | |
OKAY [ 0.757s] | |
finished. total time: 1.200s | |
C:\Users\ssc\Downloads\hammerhead-lpx13d-preview-f7596f51\hammerhead-lpx13d>fastboot reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment