Howto: Multitouch + Tethering + Task Manager for Android G1

Published on February 3, 2009 in General by Rami Taibah

g1-android-jailbreak

Recently the web was buzzing about how multitouch technology was implemented unofficially on the G1 Android. While admittedly it’s still not as smooth as I like it to be, its just a proof of concept and will probably be optimized over time. There are a lot of guides on how to implement it out there, am not bringing you anything new. But I haven’t seen one that actually explains the reasoning behind each step, and most guides are fragmented over multiple pages and links.

Before I start this howto, I must tell you that this hack doesn’t just give you multitouch, it actually opens up the possibilities wide open for you. You can change your theme, tether (use your phone as a wireless modem), auto-rotate, get a fully operable task manager…and much much more! So if you aren’t really interested in multitouch, this guide might also be of great value for you :)

Rolling Back From Version RC30 to RC29

g1-android-jailbreak-1

In order to get all these goodies, you need to have ‘root’ access, or in other words FULL control over your phone as an administrator. Understandably, T-Mobile has taken away root from us; because one can inadvertently ruin the whole system.

However, version RC29 had a very weird and curios bug: anything you type on the keyboard is passed onto the command shell as root! It literally interprets everything you type as command-line operations. So if you type the word reboot in an SMS and then press enter, your phone WILL reboot!
Google quickly pushed out an update (RC30) to patch up this vulnerability; but this same bug is the basis of almost all hacking going on right now on the Android. So before you can really get down and dirty with your phone, you will need to roll back to RC29 and “root your phone”.

***If you are already on RC29 then you can skip this step.***

WARNING: rolling back will erase ALL your data, settings, applications..etc. Basically you will end up with a factory phone. So I would recommend that you backup everything on your phone using an application readily available in the market called MyBackup. Backup your call log, bookmarks, SMS, MMS, system settings, and home shortcuts using the ‘Backup Data’ option. I don’t think you really need to backup your contacts since they are already available on your Google account (the cloud), plus I read complaints that restoring contacts would result in duplication, so I would just steer away from it. Also backup your applications using the ‘Backup Applications’ option. Finally backup everything on your sdcard, just drag and drop everything there on a folder on your desktop.

Once backed up,

  • You will need format your sdcard, so fire up Gparted (or any other partitioner). Delete the partition on your sdcard (in my case /dev/sdh) and create a new FAT32 partition, hit apply.  If you are on Windows you can just right click on the sdcard in My Computer and format as FAT32.
  • Download the RC29 NBH file if your phone is from the US or the RC7 NBH file if your phone is from the UK.
  • Unzip RC29NBH.zip/RC7NBH.zip and place DREAIMG.nbh file on your sdcard’s root
  • Turn the device power off
  • Hold Camera button, and press Power button to enter Boot loader mode
  • After it finishes, press the trackball and perform a soft reset by pressing “Call” + “Menu” + “End” to reboot.

Once loaded, you will have the phone rolled back to RC29 and have the basic desktop you had once you bought the phone. Now remember the bug that I told you about earlier? This is where it comes in handy, press <enter> twice anywhere, then type <telnetd> and then <enter> again. You just launched the telnet daemon on the phone! All you need is to install a telnet client and you are the God of your phone :) !

Multitouch Courtesy of Lukehutch and Co

Lukehutch is credited for hacking the Android and getting multitouch, you can read more about it over here. But, in order to get multitouch and other goodies, you need to upgrade your RC29 phone to something called JesusFreke V1.4. It is basically the same Google operating system with a few added hacks here and there packaged into its own ‘image’ by JesusFreke. Lets start shall we?

  • Download JF’s RC30 v1.41 ROM for US users or JF’s RC8 v1.41 ROM for UK users. Do NOT unzip it! Just rename it to ‘update.zip’ (NOT update.zip.zip) and place it in /sdcard.
  • Download the modified recovery and unzip it. Place the file “recovery_testkeys.img” in /sdcard
  • In the telenet terminal we opened earlier type the following (Double check everything! You are root!)

mount -o remount,rw /dev/block/mtdblock3 /system
rm -f /system/recovery.img
flash_image recovery /sdcard/recovery_testkeys.img

  • Turn off your phone and turn it on again and wait until you are fully booted onto your desktop (you must do this)
  • Turn it off again, then press the Home button and the Power button (keep holding the home button until the recovery console appears)
  • When you enter the recovery console, press ‘alt+L’ then ‘alt+s’. This will flash the update.zip file that you downloaded and placed there. Wait until it finishes and prompts you to restart. Home + Back should reboot.

Thats it! Now you got a fully modded phone with multi-touch, full root access, the full power of Busybox, and the flexibility to do much much more!

Bring Out the Task Manager

One of the main gripes I had with the unmodded version of the G1 was my inability to terminate apps that am done using. No one likes a stray app hogging their memory, and we couldn’t do anything about it! It was like having our hands tied to our backs. Not anymore! With JesusFreke image, you can install a task manager straight from the Android market! Just search for “Task Manager”

Tether The Hell Out of Your Phone

Tethering is just simply using your phone’s 3G connection on your laptop. It can be done via USB, Bluetooth, or even wireless. Here is the method I use:

  • Turn off wireless on your phone
  • Download tether-1.6.tar and place it in /sdcard via USB cable
  • Unmount the sdcard and disconnect the USB
  • In your terminal type:

su
tar xf /sdcard/tether-1.6.tar
tether start
Now go to your laptop or wireless device and search for new wireless networks. Connect to ‘G1′!

To stop tethering:
tether stop

Reading Arabic

Arabic text (and Hebrew I believe) is very troublesome. First of all Arabic is a right-to-left language, plus the way letters are drawn differ depending on the letter’s location in a word.

On the G1, Arabic text would appear as boxes and isn’t understandable at all. However, Rashed2020, a Qatari developer managed to get the G1 to recognize the text, but not the changing shapes. As a result each letter is printed separately, but at least this way you can understand what the text is saying!

  • Download Update.zip
  • Unzip and place it /sdcard
  • Turn off your phone, and turn it back on while pressing home
  • Install the image by pressing “alt+L” and then “alt+s”

More and more goodies

About

Rami Taibah the founder of The Linuxologist and a self proclaimed geek and Linux aficionado. This fall, he will be pursuing an MIMS degree at UC Berkeley, California. You can follow him on Twitter @rtaibah.

«

»

  • http://linuxologist.com Rami Taibah

    Am really sorry guys, bear with me. Am gonna investigate this tonight :)

  • http://linuxologist.com Rami Taibah

    Am really sorry guys, bear with me. Am gonna investigate this tonight :)

  • Pingback: Connect your laptop to the internet using the G1 as a modem « Hydtech’s Blog

  • http://linuxologist.com Rami Taibah

    So Rajush, Drewbie, and Horus, did you figure it out yet??

    I might need to chat with one of you guys to figure out whats going on….

  • http://linuxologist.com Rami Taibah

    So Rajush, Drewbie, and Horus, did you figure it out yet??

    I might need to chat with one of you guys to figure out whats going on….

  • http://linuxologist.com Rami Taibah

    So Rajush, Drewbie, and Horus, did you figure it out yet??

    I might need to chat with one of you guys to figure out whats going on….

    • http://mypaidfocusgroups.com/ David

      I am having the exact same problem too. Could it be the format of the SD card?

  • http://hehe2.net Rami Taibah

    So Rajush, Drewbie, and Horus, did you figure it out yet??

    I might need to chat with one of you guys to figure out whats going on….

  • http://mypaidfocusgroups.com/ David

    I am having the exact same problem too. Could it be the format of the SD card?

  • http://mypaidfocusgroups.com/ David

    I am having the exact same problem too. Could it be the format of the SD card?

  • http://mypaidfocusgroups.com/ David

    I am having the exact same problem too. Could it be the format of the SD card?

  • shadowlight

    so i tried the wifi tethering, and i got “wlan.ko, file exists” so i deleted the file, tried again, and got “cannot open file: wlan.ko”. wtf? well it seems i realy shouldn't have deleted theat file, coz now the wifi on my G1 is not working at all. It won't even switch on.
    Just wondering if it is possible to download a replacement wlan.ko from someware, or wether it is just a script, and anyone knows the contents of it.

    Thanks.

  • shadowlight

    Sorry, the full file path is:
    /system/lib/modules/wlan.ko

    Thanks
    btw, i'm using the custom JF1.41 firmware, which probably voids my warrent, so i can't take it back to the T-Mobile shop.

  • http://linuxologist.com Rami Taibah

    Why not just install image again? That should fix it…

  • shadowlight

    Thanks, that worked.
    I already tried reflashing it, but obviously i didn't do it properly somehow.

    working now anyways.

  • shadowlight

    so i tried the wifi tethering, and i got “wlan.ko, file exists” so i deleted the file, tried again, and got “cannot open file: wlan.ko”. wtf? well it seems i realy shouldn't have deleted theat file, coz now the wifi on my G1 is not working at all. It won't even switch on.
    Just wondering if it is possible to download a replacement wlan.ko from someware, or wether it is just a script, and anyone knows the contents of it.

    Thanks.

  • shadowlight

    Sorry, the full file path is:
    /system/lib/modules/wlan.ko

    Thanks
    btw, i'm using the custom JF1.41 firmware, which probably voids my warrent, so i can't take it back to the T-Mobile shop.

  • http://linuxologist.com Rami Taibah

    Why not just install image again? That should fix it…

  • shadowlight

    Thanks, that worked.
    I already tried reflashing it, but obviously i didn't do it properly somehow.

    working now anyways.

  • shadowlight

    so i tried the wifi tethering, and i got “wlan.ko, file exists” so i deleted the file, tried again, and got “cannot open file: wlan.ko”. wtf? well it seems i realy shouldn't have deleted theat file, coz now the wifi on my G1 is not working at all. It won't even switch on.
    Just wondering if it is possible to download a replacement wlan.ko from someware, or wether it is just a script, and anyone knows the contents of it.

    Thanks.

    • shadowlight

      Sorry, the full file path is:
      /system/lib/modules/wlan.ko

      Thanks
      btw, i'm using the custom JF1.41 firmware, which probably voids my warrent, so i can't take it back to the T-Mobile shop.

    • http://linuxologist.com Rami Taibah

      Why not just install image again? That should fix it…

      • shadowlight

        Thanks, that worked.
        I already tried reflashing it, but obviously i didn't do it properly somehow.

        working now anyways.

  • shadowlight

    so i tried the wifi tethering, and i got “wlan.ko, file exists” so i deleted the file, tried again, and got “cannot open file: wlan.ko”. wtf? well it seems i realy shouldn't have deleted theat file, coz now the wifi on my G1 is not working at all. It won't even switch on.
    Just wondering if it is possible to download a replacement wlan.ko from someware, or wether it is just a script, and anyone knows the contents of it.

    Thanks.

  • shadowlight

    Sorry, the full file path is:
    /system/lib/modules/wlan.ko

    Thanks
    btw, i'm using the custom JF1.41 firmware, which probably voids my warrent, so i can't take it back to the T-Mobile shop.

  • http://hehe2.net Rami Taibah

    Why not just install image again? That should fix it…

  • shadowlight

    Thanks, that worked.
    I already tried reflashing it, but obviously i didn't do it properly somehow.

    working now anyways.

  • Stephen

    can you still access the android market with a rooted g1?
    been reading about dev phone being blocked does it also block standart rooted g1s?

    • http://linuxologist.com Rami Taibah

      I can access the market normally, no problem here :)

  • Stephen

    can you still see paid apps or just free ones the dev phones with root access can only see free apps

  • max cuevas

    yes i was wondering in the final step when i try to connect to the wireless it ask for a network key?

  • eric lofton

    I read through this whole page and I have no clue what the purpose of rooting is. I'm not so computer literate but I would like to be. Can u help me better understand it all so I can get the most of my phone.

  • roy

    Where has the free task manager gone from the market? Does any one know?

  • Pingback: My G1 « James Farr’s Blog

  • Malik Al-Shayeb

    Hi
    I have a G1 Dev i have followed your steps as is and every thing is working fine , now i want to go back to my basic dev 1.1 , so i repeated the first step and now im back to RC 29 firmware 1.0 , and i already have the 1.1 , i have coped the radio image
    “ota-radio-1_22_14_11.zip” to the card as update rebooted the device with home key , and give it a go with alt+s i got the following error

    Installing from sdcard…
    Finding update package…
    Opening update package…
    Verifying update package…
    E:No signature (5 files)
    E:Verification failed
    Installation aborted

    and i have tried to skip the radio and go for the image directly which is “signed-dream_devphone-ota-142608.zip” i got the same error

  • http://www.facebook.com/profile.php?id=502339865 facebook-502339865

    Hi,
    thanks a lot for the great HowTo :-)
    BTW, do you know if it's possible to find free Task Manager for modified Android? The only one i found on Market is “Advanced Task Manager” ver 1.1 by Arron La , but this is not free application. It seems to be the only one available, at least as far as i know. Which one you use?

    Is there any way known way (without installing payed applications) to terminate unused application, besides turn off/on the phone?

    And also, may be you know anything about possible support for ad hoc networks in future android versions? So far, afaik, it can work only with access points and can't see any ad hoc networks…

    Thanks for any advise!
    Leo

  • Pingback: Posts about Android Hacks as of June 11, 2009 | Androidtastic!

  • http://twitter.com/JohnnyRokkit john lopez

    Greetings. I am also stuck with the “rm failed for -f, No such file or directory” issue.

    I have rolled back to RC29 3 times now, with the same result once I get into telnet.

    How was this solved? Many thanks in advance for your help.

    Cheers,
    John

    • http://linuxologist.com Rami Taibah

      I remember I ran through some problems at that stage. Try using a different SD Card if you have one.

      • http://twitter.com/JohnnyRokkit john lopez

        Thanks, I think I have another I can try.

        Just curious how that might impact access to a directory that is on the phone, not on the SD?

        Appreciate the help. It never ceases to amaze me how much time is put into the community by guys like you that know so much more than the rest of us! :)

        Cheers,
        John

        • http://linuxologist.com Rami Taibah

          Honestly, I did this hack for myself.But I am no expert really, just followed some guides and got some help from the guys on the IRC channel, and Jesusfreke himself. All I did is write up my experience in a blogpost :D

          But yeah your problem doesn't seem to be with the SD card, it doesn't make any sense to change them. But I remember I had some problem that didn't make sense to me (or the guys at the IRC channel), I switched my SD card and it worked.

          • http://twitter.com/JohnnyRokkit john lopez

            Thanks again!

            FYI, I couldn't find another SD, so I did some hunting, and found a method that worked without the error.

            http://tinyurl.com/5yfeks

            A bit more involved than what you outlined, but somehow gets around the problem some of us seem to have with the “rm failed for -f, No such file or directory” error.

            Best!
            John

  • j_miller

    I'm pretty much sold on going root. These instructions have you check the “build number” when getting started. My phone's build is “CRC1″. Can I still follow these steps? If not, can anyone provide me with a link to the instructions I need?

  • Pingback: Google’s Voice Search and Latitude Now on Android G1! | The Linuxologist Google’s Voice Search and Latitude Now on Android G1! | Bringing Linux to the Masses