{"id":1553,"date":"2016-08-09T22:20:36","date_gmt":"2016-08-10T05:20:36","guid":{"rendered":"http:\/\/yan.lalife.net\/?p=1553"},"modified":"2026-01-20T05:08:20","modified_gmt":"2026-01-20T05:08:20","slug":"flash-nexus-5-with-android-6-0-1-and-root","status":"publish","type":"post","link":"http:\/\/www.lalife.net\/?p=1553","title":{"rendered":"Flash Nexus 5 with Android 6.0.1 and root"},"content":{"rendered":"<p>Rooted my Nexus 5 android following <a href=\"http:\/\/wccftech.com\/flash-and-root-nexus-5-on-android-6-0-1-mmb29k\/\">this<\/a> instruction.<\/p>\n<p>1. Backup the phone (Rooting will erase all setting and personal files on the phone &#038; SD card)<\/p>\n<p>2. Enable USB debugging:<br \/>\n   \tGo to phone&#8217;s Setting -> About Phone, then keep tapping on &#8220;Build Number&#8221; until it shows &#8220;You are now a developer&#8221;<\/p>\n<p>3. Unlock the bootloader &#038; Flash Nexus 5 with the factory image<\/p>\n<li>connect the phone to Mac by USB cable<\/li>\n<li>Boot into Fastboot mode by &#8220;Volume Up + Volume Down + Power&#8221; <\/li>\n<li>download the image.<br \/>\n   Factory images can be found <a href=\"https:\/\/developers.google.com\/android\/nexus\/images\">here<\/a>.<br \/>\n   Extract the downloaded file hammerhead-mob30y-factory-7f05cd7f.tgz<\/li>\n<li>According to the instructions, normally running .\/flash-all.sh will be enough. However this version might have a problem which cause the reboot after this stucks (or maybe just takes really long to boot up). The following way, which is to manually running the scripts, seemed helpful.(Found the solution from <a href=\"https:\/\/www.reddit.com\/r\/Nexus5\/comments\/3nltmm\/stuck_in_bootloop_after_flashing_60\/?st=irmg29vs&#038;sh=49732c4c\">here<\/a>)\n<li>\n<p>Open a terminal on my MAC and ran the following commands,<\/p>\n<p>fastboot oem unlock<br \/>\nfastboot erase boot<br \/>\nfastboot erase recovery<br \/>\nfastboot erase system<br \/>\nfastboot erase userdata<br \/>\nfastboot erase cache<\/p>\n<p>fastboot flash bootloader bootloader-hammerhead-hhz20h.img<br \/>\nfastboot reboot-bootloader<\/p>\n<p>fastboot flash radio radio-hammerhead-m8974a-2.0.50.2.29.img<br \/>\nfastboot reboot-bootloader<\/p>\n<p>fastboot flash boot boot.img<br \/>\nfastboot flash recovery recovery.img<br \/>\nfastboot flash system system.img<br \/>\nfastboot flash userdata userdata.img<br \/>\nfastboot flash cache cache.img<br \/>\nfastboot reboot-bootloader<\/p>\n<p>4. Get Android-studio from <a href=\"https:\/\/developer.android.com\/studio\/index.html\">here<\/a><br \/>\n   twrp from <a href=\"https:\/\/dl.twrp.me\/hammerhead\/twrp-3.0.2-0-hammerhead.img\">here<\/a>. This is a better recovery tool.<br \/>\n   SuperSu from <a href=\"https:\/\/download.chainfire.eu\/969\/SuperSU\/UPDATE-SuperSU-v2.76-20160630161323.zip?retrieve_file=1\">here<\/a><\/p>\n<p>5. Install custom recovery<br \/>\n   Go to directory which contains the Andriod-studio files (on Mac)<br \/>\n   #which fastboot<br \/>\n   \/Users\/myuser\/android-sdk\/android-sdk-macosx\/platform-tools\/fastboot<br \/>\n   #cd \/Users\/myuser\/android-sdk\/android-sdk-macosx\/platform-tools\/fastboot<br \/>\n   #fastboot flash recovery twrp-3.0.2-0-hammerhead.img<br \/>\n   #fastboot reboot-bootloader<br \/>\n   Power-off the phone and enter the Fastboot mode again, switch to Recovery mode and proceed, then the custom recovery will be shown.<\/p>\n<p>6. Root the phone<br \/>\n   On Mac terminal:<br \/>\n   #adb push UPDATE-SuperSU-v2.76-20160630161323.zip \/sdcard\/<br \/>\n   Boot the phone into Fastboot mode then switch to recovery mode as before.<br \/>\n   Click on install, then choose  SuperSu zip file and click &#8220;Install image&#8221;.<br \/>\n   Reboot.<\/p>\n<p>7. The phone couldn&#8217;t get connection from carrier(Sprint) after the changes above, ran the following code on the dial pad, then the problem got fixed.<\/p>\n<p>   *#*#72786#*#* <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rooted my Nexus 5 android following this instruction. 1. Backup the phone (Rooting will erase all setting and personal files on the phone &#038; SD card) 2. Enable USB debugging: Go to phone&#8217;s Setting -> About Phone, then keep tapping &hellip; <a href=\"http:\/\/www.lalife.net\/?p=1553\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-1553","post","type-post","status-publish","format-standard","hentry","category-unix-command"],"_links":{"self":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/1553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1553"}],"version-history":[{"count":1,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/1553\/revisions"}],"predecessor-version":[{"id":1845,"href":"http:\/\/www.lalife.net\/index.php?rest_route=\/wp\/v2\/posts\/1553\/revisions\/1845"}],"wp:attachment":[{"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1553"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.lalife.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}