{"id":1261,"date":"2015-06-07T10:12:45","date_gmt":"2015-06-07T17:12:45","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1261"},"modified":"2015-06-10T21:05:45","modified_gmt":"2015-06-11T04:05:45","slug":"android-m-on-a-nexus-6-general-nexus-6-android-installation","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1261","title":{"rendered":"Android M on a Nexus 6 &#8211; General Nexus 6 Android Installation"},"content":{"rendered":"<p>OS: Mac OS Mavericks<\/p>\n<p>If you want to flash your Android 5 device with a new system image, you will more than likely need to unlock the bootloader. This is done by enabling the OEM unlock. <\/p>\n<p>You will need the developer&#8217;s SDK for the tools needed: <a href=\"https:\/\/developer.android.com\/sdk\/index.html\" target=\"_blank\">https:\/\/developer.android.com\/sdk\/index.html<\/a><\/p>\n<p>After you install the SDK, it will make things easier if you add the location of the tools needed to your PATH variable.  Note: you will probably need to create the .bash_profile file. One does not exist by default in Mavericks.<\/p>\n<blockquote><p>$ cat ~\/.bash_profile<br \/>\nexport PATH=$PATH:\/Users\/username\/Library\/Android\/sdk\/platform-tools <\/p><\/blockquote>\n<p>Plug your phone in using the USB cable.  Note: I have had some issues with different micro USB cables.  I would use the one that came with phone if possible.<\/p>\n<p>You can try the OEM unlock by issuing the following command.  This did not work for me with a Nexus 6.  Instead, I unlocked it from the Developer options.<\/p>\n<blockquote><p>\n$ fastboot oem unlock<\/p><\/blockquote>\n<p>Enabling Developer options:<\/p>\n<p>Go to &#8220;Settings&#8221; and then &#8220;About Phone&#8221;, and tap the firmware version several times.  You will get a countdown for the number of taps to get you into Developer mode.  Go back to &#8220;Settings&#8221; and notice that you now have a &#8220;Developers options&#8221; option.  Select it and turn on OEM unlocking.  You might have enter your phone unlock PIN and then confirm to enable.<\/p>\n<p>Turn off the phone.  Hold down volume button on the volume rocker and power button at the same time.  This will put your phone into transfer mode.  <\/p>\n<p>Download the Android M preview system image from: <a href=\"https:\/\/developer.android.com\/preview\/download.html\" target=\"_blank\">https:\/\/developer.android.com\/preview\/download.html<\/a><br \/>\nOther available system images for when you want to switch back: <a href=\"https:\/\/developers.google.com\/android\/nexus\/images\" target=\"_blank\">https:\/\/developers.google.com\/android\/nexus\/images<\/a><\/p>\n<p>Uncompress the downloaded shamu-MPZ44Q-preview-c1d6506a.tgz file by double clicking it in Finder.<\/p>\n<p>Using Terminal go to the location where you saved and uncompressed the download. The directory will be called shamu-MPZ44Q.  In that directory, unzip image-shamu-MPZ44Q.zip.<\/p>\n<p>Install Android M:<\/p>\n<blockquote><p>.\/flash-base.sh<br \/>\nfastboot flash recovery recovery.img<br \/>\nfastboot flash boot boot.img<br \/>\nfastboot flash system system.img<br \/>\nfastboot flash cache cache.img<br \/>\nfastboot flash userdata userdata.img<br \/>\nfastboot reboot\n<\/p><\/blockquote>\n<p>Here is what the output should look like:<\/p>\n<p>flash_base.sh:<\/p>\n<blockquote><p>$ .\/flash-base.sh<br \/>\ntarget reported max download size of 536870912 bytes<br \/>\nsending &#8216;bootloader&#8217; (3807 KB)&#8230;<br \/>\nOKAY [  0.187s]<br \/>\nwriting &#8216;bootloader&#8217;&#8230;<br \/>\n(bootloader) flashing partition &#8230;<br \/>\n(bootloader) This may take a few seconds if a<br \/>\n(bootloader) different partition table is being<br \/>\n(bootloader) flashed since we need to backup<br \/>\n(bootloader) and restore a few partitions<br \/>\n(bootloader) Flashing primary GPT image&#8230;<br \/>\n(bootloader) Flashing backup GPT image&#8230;<br \/>\n(bootloader) flashing aboot &#8230;<br \/>\n(bootloader) flashing sbl1 &#8230;<br \/>\n(bootloader) flashing rpm &#8230;<br \/>\n(bootloader) flashing tz &#8230;<br \/>\n(bootloader) flashing sdi &#8230;<br \/>\n(bootloader) flashing logo &#8230;<br \/>\nOKAY [  0.358s]<br \/>\nfinished. total time: 0.545s<br \/>\nrebooting into bootloader&#8230;<br \/>\nOKAY [  0.001s]<br \/>\nfinished. total time: 0.001s<br \/>\ntarget reported max download size of 536870912 bytes<br \/>\nsending &#8216;radio&#8217; (67556 KB)&#8230;<br \/>\nOKAY [  2.965s]<br \/>\nwriting &#8216;radio&#8217;&#8230;<br \/>\n(bootloader) flashing modem &#8230;<br \/>\n(bootloader) flashing mdm1m9kefs1 &#8230;<br \/>\n(bootloader) flashing mdm1m9kefs2 &#8230;<br \/>\n(bootloader) flashing mdm1m9kefs3 &#8230;<br \/>\n(bootloader) flashing versions &#8230;<br \/>\nOKAY [  0.739s]<br \/>\nfinished. total time: 3.704s<br \/>\nrebooting into bootloader&#8230;<br \/>\nOKAY [  0.001s]<br \/>\nfinished. total time: 0.001s<\/p><\/blockquote>\n<p>recovery.img:<\/p>\n<blockquote><p>$ fastboot flash recovery recovery.img<br \/>\ntarget reported max download size of 536870912 bytes<br \/>\nsending &#8216;recovery&#8217; (8877 KB)&#8230;<br \/>\nOKAY [  0.444s]<br \/>\nwriting &#8216;recovery&#8217;&#8230;<br \/>\nOKAY [  0.118s]<br \/>\nfinished. total time: 0.562s<\/p><\/blockquote>\n<p>boot.img:<\/p>\n<blockquote><p>jimsmac:temp jgz$ fastboot flash boot boot.img<br \/>\ntarget reported max download size of 536870912 bytes<br \/>\nsending &#8216;boot&#8217; (8161 KB)&#8230;<br \/>\nOKAY [  0.406s]<br \/>\nwriting &#8216;boot&#8217;&#8230;<br \/>\nOKAY [  0.087s]<br \/>\nfinished. total time: 0.493s<\/p><\/blockquote>\n<p>system.img:<\/p>\n<blockquote><p>$ fastboot flash system system.img<br \/>\ntarget reported max download size of 536870912 bytes<br \/>\nsending sparse &#8216;system&#8217; (517183 KB)&#8230;<br \/>\nOKAY [ 31.545s]<br \/>\nwriting &#8216;system&#8217;&#8230;<br \/>\nOKAY [  5.282s]<br \/>\nsending sparse &#8216;system&#8217; (523718 KB)&#8230;<br \/>\nOKAY [ 32.352s]<br \/>\nwriting &#8216;system&#8217;&#8230;<br \/>\nOKAY [  5.009s]<br \/>\nsending sparse &#8216;system&#8217; (522246 KB)&#8230;<br \/>\nOKAY [ 31.508s]<br \/>\nwriting &#8216;system&#8217;&#8230;<br \/>\nOKAY [  4.846s]<br \/>\nsending sparse &#8216;system&#8217; (370015 KB)&#8230;<br \/>\nOKAY [ 23.730s]<br \/>\nwriting &#8216;system&#8217;&#8230;<br \/>\nOKAY [  3.407s]<br \/>\nfinished. total time: 137.691s\n<\/p><\/blockquote>\n<p>cache.img:<\/p>\n<blockquote><p>$ fastboot flash cache cache.img<br \/>\ntarget reported max download size of 536870912 bytes<br \/>\nerasing &#8216;cache&#8217;&#8230;<br \/>\nOKAY [  0.035s]<br \/>\nsending &#8216;cache&#8217; (6248 KB)&#8230;<br \/>\nOKAY [  0.329s]<br \/>\nwriting &#8216;cache&#8217;&#8230;<br \/>\nOKAY [  0.083s]<br \/>\nfinished. total time: 0.447s<\/p><\/blockquote>\n<p>userdata.img:<\/p>\n<blockquote><p>$ fastboot flash userdata userdata.img<br \/>\ntarget reported max download size of 536870912 bytes<br \/>\nerasing &#8216;userdata&#8217;&#8230;<br \/>\nOKAY [  2.290s]<br \/>\nsending &#8216;userdata&#8217; (138868 KB)&#8230;<br \/>\nOKAY [  6.092s]<br \/>\nwriting &#8216;userdata&#8217;&#8230;<br \/>\nOKAY [  2.058s]<br \/>\nfinished. total time: 10.440s<\/p><\/blockquote>\n<p>reboot:<\/p>\n<blockquote><p>$ fastboot reboot<br \/>\nrebooting&#8230;<\/p>\n<p>finished. total time: 0.022s\n<\/p><\/blockquote>\n<p>You can use the same procedure to downgrade your phone back to Lollipop using one of the downloads at https:\/\/developers.google.com\/android\/nexus\/images.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OS: Mac OS Mavericks If you want to flash your Android 5 device with a new system image, you will more than likely need to unlock the bootloader. This is done by enabling the OEM unlock. You will need the developer&#8217;s SDK for the tools needed: https:\/\/developer.android.com\/sdk\/index.html After you install the SDK, it will make [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1261","post","type-post","status-publish","format-standard","hentry","category-documentation"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1261"}],"version-history":[{"count":10,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1261\/revisions"}],"predecessor-version":[{"id":1280,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1261\/revisions\/1280"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}