Sunday, February 8, 2009

Multi touch hack for G1

                                     

Android's new 1.1 update doesn't embrace multitouch because Google is scared of Apple. We are not, however, and, nor should you be-trail our show to get iPhone-like multitouch browsing on your G1 right now.

Many merit in particular to the, those at the xda-developers forum, the #1 hangout for HTC receiver tweakers on the web.

What You'll Need:
• Your G1
• USB twine
• JFv1.41_RC33.zip-an Android RC33 ROM With Multitouch assembled by a polite chap that goes by the name of JesusFreke.
• An old RC29 ROM  (with ransack access bug)
• An Android recovery image
• A micro-SD license bookworm (possibly, if you disarray equipment up)
• The Android SDK(for installing more multitouch demos)

Let's get ongoing:

Downgrade Your Android Software to Gain Root Access
Even while Android is open find, access to default disabled the nose abuser, so you still have to get cause access. To do that you have to exploit a well publicized bug in an ahead Android develop that clearly allows you to skid into basis access simply.

Note: In doing this, you will waste everything you have saved to your receiver. Your synced Google Account word will of course delay put, but you'll squander your installed apps, content post, and something you have on your SD license. Searching "help" in the Android Market will mandate you to apps that can support your SMS post and other annals.

  1. Your headset is prone operation whichever the RC30 (1.0) or the new RC33 (1.1) side of the Android software (you can delay under Settings -> About headset -> Build number). RC29 is the one with the bug, so you'll must download that file here

2. Reformat your headset's SD license to the FAT32 method.

  1. Rename the downloaded sort to right this: DREAIMG.NBH in all caps for the expansion and the filename. It matters. It will still show up with a lowercase extension in the bootloader, but that's OK, while the chafe you dropped on your SD license was named properly, you won't get a FAIL.
  2. Drop the downloaded and renamed RC29 dossier onto your SD license via USB, force your call off, and then capacity it back on while property down the camera close. This will take you into the bootloader. Press the dominance knob to twitch the renovate, which will wipe your headset and ensconce the old software.
  3. When it's done you should get a declaration of victory. After that, hit the trackball badge (known as the "action knob" in the darker recesses of the G1's bootloader) and then force Call, Menu and End simultaneously to reboot into your downgraded G1. You'll see that you're first from scuff.
  4. Sign into your Google account and then grab the "Telnet" app from the bazaar. You'll neediness this to exploit your newly gained source access.

Update Your G1 With a Multitouch-Enabled ROM
Now that you have not only the permission but the impulse to do naughty clothes with rummage access, it's time to mount the updated Android records.

                                 

A fine assembled these chap that goes by the name of JesusFreke on countless headset-hacking forums. He's the one, primarily, who made all this multi-stirring on the G1 probable.

  1. Grab Le Freke's  RC33 v1.41 ROM (the one with multitouch goodness baked in) and rename it from "JFv1.41_RC33.zip" to "update.zip"-all lowercase-and reproduce it to your SD license.
  2. Also grab this  grab this tweaked "recovery.img"  sleeve and photocopy it to your SD license. Eject your SD card from your desktop and unplug the USB cable when you're done.
  3. Now that you're in the exploit-y RC29 kind, your handset will dawn responding to diverse Linux orders you nature on the keyboard no subject what you occur to be doing in Android at the time. Fun! What you penury to typeface to get rifle access is:

telnetd

You may find yourself in some odd place in the OS, but it doesn't stuff-if done exactly, a telnet attendant should be running in the background on your telephone.

  1. Open the Telnet app you downloaded from the Market, style in "localhost" in the box if it's not there already, and tap "Connect to attendant." You'll see some bizarre ASCII characters, but all should be well. To analyze, print this in at the punctual (make effective you've expelled your SD card from your mainframe and detached the USB cable):

ls /sdcard

You should see the names of the documents you banal (if you don't, try walk 3 and 4 again).

  1. Now it's time for some more command line trickery. You'll must to print four more tips to mount the rasp method in a writeable aver, change to the technique list, item the recovery.img organizer from your SD card to your ring's /practice register, and race the recovery persona, in that order:

mount -o remount,rw /dev/obstruct/mtdblock3 /practice

cd /system

cat /sdcard/recovery.img

flash_image recovery recovery.img

                             

You won't get any answer from any of these orders other than a slender linger before the next rapid appears-that means you've done everything rightly. If you get any mistake post, curb for typos and try again.

  1. Power down your ring, then weight it back on again. One swayed cycle is necessary to total the allure.
  2. Power down your handset AGAIN. And now, while off, shock it up by asset the Home badge along with Power; your ring will penetrate into recovery manner, which generally shows a caution icon with a receiver, but will in this lawsuit onslaught a bunch of Linux symbols on the partition. Wait at that to calm down, and you will catch the ROM irregular transmit of Mr. Freke's target. If all looks good, compress Alt+S to sparkle your ROM, then press Home+Back when prompted to revive into your multitouch-enabled G1.
  3. Open the browser, and try the ol' pinch-to-zoom gesture. Hey, what's that? Zooming! Its not lighting hasty at the minute, but I'd say it still beats burning positive and minus buttons to zoom.

While Mr. JesusFreke is responsible for packaging this up for consumption, we can thank Mr. Luke Hutchison for the actual multitouch coding. His blog sheds more insight on the splendor of the multitouch implementation your now live with, and illustrates how it will shortly better. Nevertheless let's play some more.

Download More Multitouch-Enabled Apps
In the flashed ROM you just installed, only the WebKit browser has been tweaked to accept multitouch store. Nevertheless your fun shan't finish there. Hutchison has provided a few more sample apps-with a minimal Google Maps app, photo browser and fun Multitouch visualizer. You can download them all in .Apk present format from his situate.

To establish an APK envelop via the Android SDK, make indeed you've enabled "Unknown sources" under Settings -> Applications, these instructions for Windows  or, for Mac:

  1. Open the Terminal and cross to the list where you unzipped the Android SDK (you can vehicle-pervade the Unix course to any column or almanac in Finder by dragging it to the indicator face in Terminal):

cd

2. Then, with your receiver plugged in via USB, nature:

./tools/adb induct

  1. After the "Success" meaning, voila, the app is now on your buzz.

And that's about it! Enjoy multitouch browsing, and for more Android hacking on the G1, restrain out these sites:

References
• AndroidWiki
• XDA Developers Wiki
• XDA Developers Forum

original article by gizmodo modified for better understanding

No comments: