2012-11-30

Updating Galaxy Nexus (JP) from stock 4.0 to CM10 with SIM unlocking

Finally got latest Android world.

Before

  • Device: Galaxy Nexus (JP, locked to docomo)
  • Android 4.0.0
  • SIM: SoftBank

    • Unlocked Using F*ckDocomo

Update this to CyanogenMod 10 (Android 4.2.)

Lock again

"Unlock → Lock again." on F*ckDocomo.apk.

Backup /factory/nv_data.bin.

Backup

$ adb backup -f backup.ab -apk -all

Then enter your password on the device.

$ fastboot boot recovery-clockwork-…

Get latest clockworkmod and boot it, then run nandroid backup.

Update

Apply CM10 and gapps zip.

then, reboot and edit backup'd nv_data.bin by seeing this entry.

$ adb push nv_data.bin /sdcard/nv_data.bin # push edited nv_data.bin
$ adb shell
$ su
# mount -o remount,rw -t ext4 /dev/block/mtdblock0 /factory
# cd /factory
# cp /sdcard/nv_data.bin .
# chown radio.radio nv_data.bin
# chmod 700 nv_data.bin
# cp nv_data.bin /data/radio/
# reboot

after reboot, your device is still locked, so:

$ adb shell
$ su
# cat /data/radio/log/nv.log
...
Fri Nov 30 00:44:45 2012: MD5 fail. orignal md5 'aaa' computed md5 'bbb' (rild)
Fri Nov 30 00:44:45 2012: Backup NV restored.(GED)
# mount -o remount,rw -t ext4 /dev/block/mtdblock0 /factory
# cd /factory
# echo -n 'bbb' > nv_data.bin.md5
# chown radio.radio nv_data.bin.md5
# chmod 700 nv_data.bin.md5
# cp nv_data.bin.md5 /data/radio/
# reboot

finally your device is unlocked.

Restore

$ adb restore backup.ab
Published at 2012-11-30 01:11:28 +0900 | Permalink