Showing posts with label adb. Show all posts
Showing posts with label adb. Show all posts

Friday, December 11, 2009

Installing Updates for Google Maps & Voice on Cyanogen Mod

I've worked out a way that let's me get the latest Google apps and then install them on my HTC Magic running Cyanogen Mod. It's so simple it hurts me that it took me a couple of days to work it out.

I have an image of the original load on one of my two HTC Magic phones. But even if you only have one phone, if I want the latest update of a "problem" app (Google Maps, Google Search by Voice...etc...), all I would (likely) need to do is:

  1. Restore the original un-rooted image to phone, then update the relevant app.

  2. Once updated, I then use "adb pull" from /system/app to grab the apk I want off the official load onto my linux PC.

  3. Then put the phone in fastboot mode and fastboot Cyanogen's recovery image (cm-recovery-1.4.img) and use that to restore Cyanogen Mod onto my phone from a nandroid backup taken previously.

  4. Then boot the phone normally and use "adb push" the push the new app into /system/app of the CM version of the phone.

  5. The app will then crash...as maps did (instant force close - every time)....but I found I could THEN uninstall it (couldn't do that to the real one)...and just install the real Maps.apk from the market, over the top.....on Cyanogen...with no signing issues.  
I hadn't expected it to work out that way....but that's what happened. The issue I was trying to get around was obtained a copy of the new Maps.apk to transfer to the other phone.

I'm sure this isn't the easiest, most direct way.....but it is another way...and it worked for me.

Now I just have to work out where the VoiceSearch.apk is located.