Priyank Sharma
loading...

Mac users, install Android 6 Marshmallow on your Nexus 5!

Oct 14, 2015

[dropcap]T[/dropcap] he last time I wrote about installing Lollipop on your Nexus 5, the article helped a lot of Mac users out there. Though there are endless articles on how to do it on Windows, there is none that specifically focuses on OS X. Though this time the Marshmallow update was pushed pretty much on time, there are still a bunch of users who are unable to either get the update, or get an installation error while updating. So here goes…

[alert type=”danger” close=”false” heading=”Warning”]I do not take any responsibility whatsoever in the unlikely event that your device gets bricked. By following these instructions, you agree to take full responsibility of the consequences.[/alert]

[custom_headline type=”left” level=”h2″ looks_like=”h5″ accent=”true”]Step 1: Initial Setup[/custom_headline]

On your Mac, head into System Preferences and select [highlight type=”dark”]Keyboard > Shortcuts > Services[/highlight]. Find the “New Terminal at Folder” in [highlight type=”dark”]Services > Files and Folders[/highlight] and check the box. This enables us to launch Terminal in a specific folder.

[image src=”https://priyanksharma.com/images/mac-users-install-android-6-marshmallow-on-your-nexus-5-2.jpg” alt=”System Preferences” type=”rounded” float=”none” title=”System Preferences”]

On your Nexus 5, enable USB Debugging by opening [highlight type=”dark”]Settings > About Phone[/highlight] and tapping “Build number” seven times. You will be prompted and ‘Developer Options’ will be enabled after your seventh tap in Settings right above ‘About Phone’. Go in and check “USB debugging”.

[image src=”https://priyanksharma.com/images/mac-users-install-android-6-marshmallow-on-your-nexus-5-3.jpg” alt=”Developer Options” type=”rounded” float=”none” title=”Developer Options”]

[custom_headline type=”left” level=”h2″ looks_like=”h5″ accent=”true”]Step 2: Download Files[/custom_headline]

[button type=”flat” shape=”pill” size=”mini” href=”https://dl.google.com/dl/android/aosp/hammerhead-mra58k-factory-52364034.tgz” title=”Nexus 5 System Image”]Download[/button] the Nexus 5 System Image considering your Build number is MRA58K. File size should be around 593 MB.

Next, [button type=”flat” shape=”pill” size=”mini” href=”http://priyanksharma.com/downloads/fastboot.zip” title=”ADB & Fastboot Files”]Download[/button] the ADB & Fastboot Files as well, which is a minuscule 158 KB.

[custom_headline type=”left” level=”h2″ looks_like=”h5″ accent=”true”]Step 3: Terminal Setup[/custom_headline]

Connect your Nexus 5 via USB and extract the ADB & Fastboot Files archive, and navigate to the folder – in my case [highlight type=”dark”]fastboot[/highlight].

Extract files in the Nexus 5 System Image archive and place it in our fastboot folder. Open “flash-all.sh” in a text editor and add “./” before the term “fastboot” on lines 17, 18, 20, 21 and 23. This will ensure that Terminal executes files in the same folder.

[image src=”https://priyanksharma.com/images/mac-users-install-android-6-marshmallow-on-your-nexus-5-4.jpg” alt=”flash-all.sh” type=”rounded” float=”none” title=”flash-all.sh”]

Go one level up in the folder heirarchy, right-click on the fastboot folder and select “New Terminal at Folder”. This will launch Terminal for that folder.

[image src=”https://priyanksharma.com/images/mac-users-install-android-6-marshmallow-on-your-nexus-5-5.jpg” alt=”Terminal” type=”rounded” float=”none” title=”Terminal”]

[custom_headline type=”left” level=”h2″ looks_like=”h5″ accent=”true”]Step 4: Installation[/custom_headline]

Start the device in fastboot mode: press and hold Volume Down + Power as the device begins booting up. Type the below and Terminal will return your device as a string of alphanumeric characters. This means you are okay to move ahead with installation.

[code]./adb devices[/code]

Finally, type the below and you will see a percentage progress of your files being sent to your handset. Now sit and wait while Marshmallow is being installed. The entire process will take anywhere from 5-10 minutes.

[code]./adb flash-all.sh[/code]

Your device will automatically reboot you will be done.

[alert type=”info” close=”false” heading=”Important”]Please note that the first boot will take over 7 minutes and an additional 5-10 minutes will be taken for your apps to optimise.[/alert]

That’s it. You are done! Do share your feedback/experience in the comment section below.

[gap size=”50px”]

[author title=”About the Author”]

You might also like these articles:

[recent_posts category="tech" count="4"]
recent posts
Oct 14, 2015
Oct 14, 2015
Oct 14, 2015