Some experience with adb and fastboot preferred (they are part of android SDK)
Download latest factory image from https://developers.google.com/android/nexus/images#occamkrt16o and untar them. The extracted images ends up in occam-krt16o directory. tar xvf occam-krt16o-factory-75ccae7a.tgz
Backup
- SMS/call log etc. using SMS backup+ to Gmail.
- All apks using adb backup -f ashishb_nov_15_backup.ab -apk -obb -noshared -all -nosystem (I mistakenly backed up and restored with -system and that was a bad idea). This takes a bit of time, my total backup size was ~550MB.
Install the new image
- Boot into boot loader mode. adb reboot-bootloader
- Unlock the bootloader, this will delete all data in device (that’s why we took backup in the first place). This takes about 30 seconds. fastboot oem unlock
- Install the new boot loader image. fastboot flash bootloader bootloader-mako-makoz20i.img
- Reboot to use the new bootloader fastboot reboot-bootloader
- Install the new radio image. This takes about 5 seconds. fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.84.img
- Install the new system, recovery and boot image. This takes about 80 seconds. fastboot -w update image-occam-krt16o.zip
Restore
- All apks (I use Nova Launcher so, it restores my launcher screens as well) adb restore ashishb_nov_15_backup.ab
- Restore SMS and phone calls.