Tuesday, December 27, 2011

Dalvik Cache

It does explain everything but too late for me as I have crash my hp restore !

http://forum.xda-developers.com/showthread.php?t=519495

Simple explanation:

When Android starts up, the DalvikVM looks thru all of your applications (.apk files) and frameworks, and builds a tree of dependencies. It uses this dependency tree to optimize the bytecode for every application and stores it in the Dalvik cache. The applications are then run using the optimized bytecode. This is why when you install a new ROM, sometimes it takes a very long time to boot for the first time. Any time an application (or framework library) changes, it's reoptimized and the cache is updated.



If my CJ HD9 able to recover again, please do this frist

If I have another second/third chances to recover my HD9 again, I swear to do the following:

Please refer to http://androidforums.com/viewsonic-tablets/345625-how-backup-viewpad-7-original-rom.html#post2755471

Please find the ADB driver or software
(my viewpad adb.exe seem work for HD9 too)

Same thing to be done for HD9

Please refer to http://forum.xda-developers.com/showthread.php?t=1015005&highlight=viewpad+7

2.5 Or using Run ADB shell
Here is some of my trials 

C:\viewpad>adb shell
$ su

Compare with viewpad ROM the files are differences
so you have to edit the "script" for different models
# cat /proc/mtd
cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00020000 "preloader"
mtd1: 00300000 00020000 "nvram"
mtd2: 00020000 00020000 "seccnfg"
mtd3: 00060000 00020000 "uboot"
mtd4: 00600000 00020000 "boot"
mtd5: 00600000 00020000 "recovery"
mtd6: 00120000 00020000 "secstatic"
mtd7: 00060000 00020000 "misc"
mtd8: 0aa00000 00020000 "system"
mtd9: 03c00000 00020000 "cache"
mtd10: 00300000 00020000 "logo"
mtd11: 000a0000 00020000 "expdb"
mtd12: 10540000 00020000 "userdata"

repeat this for all image and in fact you can copy the following to the root comand prompt
and it will execute the following "script" in sequence
#

cat /dev/mtd/mtd0 > /sdcard/preloader.img
cat /dev/mtd/mtd1 > /sdcard/nvram.img
cat /dev/mtd/mtd2 > /sdcard/seccnfg.img
cat /dev/mtd/mtd3 > /sdcard/uboot.img
cat /dev/mtd/mtd4 > /sdcard/boot.img
cat /dev/mtd/mtd5 > /sdcard/recovery.img
cat /dev/mtd/mtd6 > /sdcard/secstatic.img
cat /dev/mtd/mtd7 > /sdcard/misc.img
cat /dev/mtd/mtd8 > /sdcard/system.img
cat /dev/mtd/mtd9 > /sdcard/cache.img
cat /dev/mtd/mtd10 > /sdcard/logo.img
cat /dev/mtd/mtd11 > /sdcard/expdb.img
cat /dev/mtd/mtd12 > /sdcard/userdata.img

copy all these *.img into another safe place and you able to restore your own ROM stock files
(the other ways is seem to be do a full files backup under MyPhoneExplorer)

Please check out
http://www.blogger.com/blogger.g?blogID=306898071928546559#editor/target=post;postID=5403924616325731377
to install ClcokWorkMod recovery

remember to do in the C:\viewpad>adb shell
#chmod 755 /system/bin/flash_image
and 
#flash_image recovery /sdcard/cwrecovery.img

You can do another CWM backup (and restore) when in the recovery mode menu

But I did encounter another MD5 error so the above manual backup still prefer

Monday, December 26, 2011

It is a roller coaster

one day after Christmas
I still struggling to restore the CJ HD9

Then in the morning, as I tried to switch on CJ HD9
it boot up

I was so happy and excited

I called up YS to meet up and want to redo Titanium backup installation

But YS reject my suggestion

Then in the afternoon

I was trying to rebuild all application one by one

I remove duplicate superuser and titanium apk
under \system\app

Then I could have done another Dalvik cache wipe
(how can I do the same stupid thing twice)

All the while, I do remind myself to do another CWM backup or flash CWM recovery
(I going to write the process in next blog)

Then the ANDROID logo appear then boot up seem to repeat in a loop

I wait for five minutes but it could be too short

I done the disaster thing -

I take out the battery to stop the process

Again my hp crash and end up not able to boot up from recovery for the three times !!

Oh Santa please help me again ...

Friday, December 16, 2011

Root Explorer

Root Explorer (of course you need root privilege)
Shows it advantage when I was trying to search for LatinIMe.apk and .odex that
I have installed for google keyboard
It was transfer via bluetooth from YS Koh
Then most of other users application apk are being stored under \system\app

Wednesday, December 14, 2011

How to update outlook contact to hp

For my case with 1000 over address

I used MyPhoneExplorer and Outlook contacts sub folder

Here are some of the steps to be aware of
0. Go settting, Acct and sync, uncheck google or yahoo contact sync
1. Go hp application, run look for contact storage and clear data
2. connect to MPE
3. Mark all entries to delete
4. Select to "download" with down arrow key in MPE

5. Go MPE setting F2, sync, outlook to check the right folder
6. under Advance, Choose to Force outlook to phone

Must use USB 3.0 port or it will take very long