Monday, March 28, 2016

Recently I wanted to update my Nexus Android OS version 5.1.1 LMY48M to Android N. I downloaded a system image from Google website and could not update since I got unlock denying error when using "fastboot oem unlock" or "fastboot flashing unlock". So I followed the instructions provided by dsclee1to update LMY48M to Android N.

1. Reboot into HBOOT with "adb reboot bootloader"
2. Press Volume Down to highlight Recovery, then press the Power Button to enter it.
3. Wait until the Google logo goes away, and you should see a picture of an Android laying on it’s back. Hold down the Power Button + Volume Up (very important to hold Power FIRST)
4. Download Nexus 9 (Wi-Fi) LMY48T from LMY48M
5. If you don’t have it already, download and install “Minimal ADB and Fastboot”: when it’s installed let it run straight away, and leave the command prompt open you’ll need it in a min
6. Copy the OTA update file you downloaded to the folder that Minimal ADB was installed in (usually C:\Program Files (x86)\Minimal ADB and Fastboot\)
7. Back on your device use Volume down to get to “Wipe Cache Partition”, and press the Power Button to activate it. If you want to be really sure this will work you should do a “Wipe data/factory reset” too, but be aware you will definitely lose your data.
8. Use Volume up to go to “Apply update from ADB”, and press the Power Button to enter it
9. On your PC, in the Minimal ADB Command Prompt (that you should still have open from earlier) enter “adb sideload {NAMEOFOTAFILE}”
10. Reboot
11. Go to the Settings->About->Software Update, and the device will update it self to Android N 6.0.1.

Or in the 4 step, directly update it from MRA58K from LMY48M if we can find the OTA firmware but I did not find it.

If you get any errors trying to run the following code then try reinserting the SD card and trying again after unmounting the disk, or try formatting it first with DiskUtilities

Windows (XP/Vista/7)

Download the image and extract it using WinZip or some other archive utility. Then use Win32ImageWriter to write the unzipped img file to your flash device.

This is a Windows program for saving and restoring images from removable drives (USB drives, SD Memory cards, etc). It can be used to write boot images (i.e. ubuntu-12.04-preinstalled-desktop-armhf+omap.img) to a SD Flash device or USB flash device, making it bootable.

Win32DiskImager supports writing an ISO image to USB too, which is very valuable right now with the Ubuntu releases 14.04 LTS - 15.10, because there are problems with the Ubuntu Startup Disk Creator.

This tutorial subpage with screenshots illustrates how to create a USB boot drive from a Lubuntu ISO file. It works in the same way for all current Ubuntu family iso files including the Ubuntu mini.iso version 14.04 LTS (but mini.iso version 12.04 LTS is the only exception).

Booting the image

On Pandaboard and BeagleXM just switch on the board with the SD card inserted.