Wednesday, May 22, 2013

Updating Android JellyBean 4.2

Updating Android JellyBean 4.2 using ClockworkMod CWM & cyanogenmod for Android Developers.

If you are a Mac user you might be frustrated that there is no ODIN3 (Window software).
Actually, it is very easy with adb tool that every Android developer uses.

I am starting with stock Samsung Galaxy Tab 10.1 Android 3.0.1 (from Google I/O).




STEP 1)

Get cyanogenmod for your SPECIFIC device, get most stable version there is:

http://wiki.cyanogenmod.org/w/Devices#vendor=;




Examples:
Galaxy Tab 10.1 Wi-Fi only model
http://wiki.cyanogenmod.org/w/P4wifi_Info
I got cm-10.1-20130522-NIGHTLY-p4wifi.zip

Samsung Galaxy Tab 7 T-Mobile:
http://get.cm/?device=p1
http://download.cyanogenmod.org/?type=stable&device=p1
Stable cm-9.1.0-p1.zip

Motorola Droid2
http://download.cyanogenmod.org/?type=stable&device=droid2
cm-7.2.0-droid2.zip 

STEP 2)

Get Google Apps for your version of above
- cm-10 == Android 4.2.2
- cm-9 == ICS
- cm-7 == Gingerbread

you can easily find by searching "gapps-jb-2013"
http://rapidshare.com/files/3580601868/gapps-jb-20130301-signed.zip



STEP 3)
Get ClockworkMod CWM recovery.img

http://www.clockworkmod.com/rommanager


EXAMPLES:
Samsung Galaxy Tab (T-Mobile)


STEP 4) For Samsung: Inspect if there is no update in Kies (USB Debugging OFF), you can use thier for file transfer, too



STEP 5) Transfer there 2 ZIP files to /sdcard/  (USB Debugging ON)
- gApps
- cm-
Example:
uki:platform-tools uki$ adb push ~/Documents/Android/Samsung_Galaxy_Tab_7_TMobile/cm-9.1.0-p1.zip /sdcard/
3038 KB/s (144260310 bytes in 46.360s)
uki:platform-tools uki$ adb push ~/Documents/Android/Samsung_Galaxy_Tab_7_TMobile/gapps-ics-20120317-signed.zip /sdcard/
3263 KB/s (54485532 bytes in 16.304s)
uki:platform-tools uki$


I am showing 3 zip files because I tried older gApps previously.



STEP 6)
Turn OFF tablet by holding POWER button

STEP )
START device in fast boot mode (USB icon):
- hold VOLUME-DOWN (closer to power button) and press POWER button until device boots,
- select Fastboot, NOT download by pressing volume-down, make selection by pressing VOLUME-UP

STEP )
See if you can see your device
uki:platform-tools uki$ fastboot devices 
288420043805517 fastboot

If you see similar (number) line as above, you are good to proceed.

STEP )
Install ClockworkMod CWM tool

uki:platform-tools uki$ fastboot -u -S 0 flash recovery /Users/uki/Downloads/recovery-clockwork-6.0.3.1-p4wifi.img 
sending 'recovery' (4844 KB)...
OKAY [  0.341s]
writing 'recovery'...
OKAY [  0.605s]
finished. total time: 0.946s
uki:platform-tools uki$


STEP ) 
uki:platform-tools uki$ fastboot reboot
rebooting...

finished. total time: 0.000s

The Tablet should start and be healthy.

STEP )
uki:platform-tools uki$ adb reboot recovery  

The Tablet should start with ClockworkMod Recovery menu. If is does not start it same as bafore (POWER + VOLUME DOWN) and select recovery (icon with box expanding)



STEP )
select  - backup and restore (move with Volume UP, select with pressing Power button)
select  - backup (will take a while, but it is VERY IMPORTANT)
...
Backup complete!
*** Go Back ***

STEP )
wipe data/factory reset

*** Yes...

STEP )
select advanced
select - wipe Dalvik cache

*** Yes
*** Go Back ***

STEP)
select install zip from sdcard
choose..   cm-10.1-2013......-p4wifi.zip from sdcard
*** Yes...


STEP )
install gapps-jb-2013.....zip from sdcard

STEP )
restart, press POWER button for 10 seconds
- unplug,

If it fails recover backup (should not happen)

STEP)
IMPORTANT!!! To enable "USB Debugging" and other {} Developer options:
Settings -> About tablet -> CLICK "Build number" line 6 times!!!!!!

I guess the last one is for the code gurus that spent 6 years in the high mountains writing this, one click per year. :)


STEP )
Update Android SKD Manager to versions 16 & 17


SUCCESS!


KNOWN BUG:

The keyboard closes after first character typed, which makes impossible to use the keyboard. 

To fix it go to: 
settings -> language & input  -> click on settings icon next to "Android Keyboard (AOSP)" -> under TEXT CORRECTION
  • set 'Auto-correction' to 'Off' 
  • set 'Show correction options' to 'Always hide'.
The SWYPE will still work, but it will not show auto-correction words on top, it is a minor setback. When I don't get a correct word in Swype mode, I have to type it character-by-character.