- Download the RC29 NBH file if you are in the US or the RC7 NBH file if you are in the UK.
- Place this file on your sd card (it is best if you format the card to FAT32 before this step, if you run into errors try that).
- Turn the device power off and make sure your sd card is inserted.
- Hold down the camera button while you turn on your phone to enter bootloader.
- Press the power button to start flashing the image file.
- After it finishes, press the trackball and perform a soft reset by pressing "Call" + "Menu" + "End" to reboot.
- Once your phone boots to the desktop hit the
key twice and then type "telnetd" and press again. - Download Android Telnet client (ConnectBot, other telnet clients do not seem to work properly when initially gaining root), run it and connect to "localhost". If you are unable to connect, try steps 1 and 2 over again until you can. Also, you can try doing a factory wipe (alt+w in the recovery menu) and retrying if all else fails.
- Download JF's US G1 Cupcake 1.51 ROM for US users or JF's UK G1 Cupcake 1.51 ROM for UK users or JF's ADP Cupcake 1.51 ROM if you have an ADP1 to /sdcard and rename it to update.zip (when you are done it should be "/sdcard/update.zip").
- To make sure the update is named correctly, in the terminal you opened earlier, type
- ls /sdcard/update*
- If you see a file named update.zip, then it is named correctly. However, if you see a file named update.zip.zip, type the following command
- mv /sdcard/update.zip.zip /sdcard/update.zip
- To make sure the update is named correctly, in the terminal you opened earlier, type
- Download the modified recovery and unzip it. Place the file "recovery_testkeys.img" in /sdcard
- In the terminal you opened earlier (with root access) Enter the following commands in to flash the modified recovery
- mount -o remount,rw /dev/block/mtdblock3 /system
- rm -f /system/recovery.img
- flash_image recovery /sdcard/recovery_testkeys.img
- Reboot your phone (completely, do not enter recovery yet or your neighbors dog might die)
- Once fully rebooted, power off your phone (hold power and select "Power Off"), and hold down home while you turn the power back on.
- When you enter the recovery console (which should say "using test keys" if your modified recovery was flashed correctly) hit "alt+L" and then "alt+S" on your keyboard. This will flash the update.zip file that you downloaded and placed there. If you have any problems with this step you missed something above.
Wednesday, June 10, 2009
Howto: Quickly Root your Android G1 Phone in 14 Steps
Saturday, November 22, 2008
New: RC30 Mod v1.2 Firmware
The primary new features in this version are
- adb shell now works in recovery mode
- a real su (instead of the setuid copy of sh in the last version)
- lots of new goodies in /system/xbin and /system/modules
Other things that have changed from v1.1
- This version has a kernel compiled by Saurik, with more core stuff "turned on", to support more modules (Specifically, /dev/mem and /dev/kmem are available now)
- new features in init
- support for mounting to loop devices- Changed the init.rc so that it will include /system/init.rc and /data/init.rc, so you can easily add new startup stuff, without having to rebuild/reflash boot.img
- move flag for mount
- mknod that can wait for a device
- chdir, chroot, usleep, include, trigger
- Changed the boot-up recovery flash to look for a file at /data/recovery.img instead of /system/recovery.img, and also to delete recovery.img after a successful flash
- changed the "mount" symlink to be busybox's mount instead of toolbox's mount
- added an /etc/fstab file that busybox's mount can use, that lists the standard system partitions.
- changed the fingerprint back to the official RC30 fingerprint (don't want to let google know you're using a modified build)
- using a newer version of busybox
- moved busybox from /system/bin to /system/xbin
Note: A big thanks to Saurik (the "debian on Android" guy
It also includes the changes that were made in v1.0 and v1.1. namely
- set ro.secure=0, ro.debugable=1, and persist.service.adb.enable=1 in /default.prop, to enable adb to run as root
- Added the ability to mount to a loop in init
- Mount /system/xbin/xbin.cramfs into /system/xbin in init.rc
- Looks for a recovery image to flash at /data/recovery.img instead of /system/recovery.img, and deletes the recovery image after a successful flash
- added back in the telnetd command from RC29
Download Here or Here
you must have the modified recovery image to do this update:
http://forum.xda-developers.com/showthread.php?t=443713
Howto Install:
rename update_TC4-RC30_full_xda-dev_v1.2.zip to update.zip, place this file on your sdcard, reboot by pressing the call button then menu then the off button, holding them all in.
Enter Recovery mode
- reboot your phone with the Boot Modifier home+power (hold home, press power, keep holding home)
- press alt+s on the keyboard to apply the update.zip file (or press alt+l then alt+s to see details during the update)
Wednesday, November 12, 2008
Howto: Stream .mp3's with your Android G1 browser!
Try it out:
Click here within your G1 Browser
Howto: Download Mp3's with your Gmail App
If you want to get around this you need to download one of the terminal apps like Terminal Emulator in the market. Once Downloaded start it up and type:
cd /cacheNow list the files
ls -lNow you will see a file named downloadfile.mpga which is your mp3 file.
Now lets copy it to the cd card:
cat downloadfile.mpga >/sdcard/music/mysong.mp3Now thats all you gotta do, if you download multiple mp3's they will be named like downloadfile-1.mpga, downloadfile-2.mpga.. etc
(edit) Ha well found that their is a playmp3 command on the g1 and I simply issued:
playmp3 /cache/downloadfile.mpga and it plays for 20-30 secs from the command line
Howto: Encode Video for the Android G1 with Avidemux using Windows/Ubuntu/Linux/MacOSX
Within a debian/ubuntu distro simply:
apt-get install avidemuxOr For other linux distro's, Windows, MacOSX click here for Avidemux for your specific os
Open any video you want to encode for you G1 Via "Open"
Video Configuration:
Anyways Install Avidemux, then click on the video dropdown on the left and select MPEG-4 ASP (lavc)
Then Click Configure->Encoding Mode->Single Pass - Bitrate
Enter in any bitrate up to 384 to be safe, then click ok.
Now click Filters->MPlayer Resize->Double Click on it->
Width:480
Height:270
Click Ok, then close.
Audio Configuration:
Ok I heard that mp3/lame worked but i tried and it failed with the "Video Player" app, so what works is this:
Click Audio->AAC (FAAC)
Configure->Bitrate 96
Now Click Format->MP4
Click Save and specify a name.mp4 for your video, then once its done encoding, plug in your G1 via USB and transfer the video to your G1, I made a folder called "Videos", the name doesn't matter.
Anyways I hope this works for you, I would suggest downloading a sample xvid video and experimenting, let me know how things go!
Tuesday, November 11, 2008
Howto: Tether your Android G1 phone with iptables (no proxy needed)
Download Here
Then push the binary to your android G1 device:
./adb push iptables /data/local/iptablesNow lets mount /system read/write and copy iptables to /system/bin/iptables
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cat /data/local/iptables >/system/bin/iptables
chmod 4755 /system/bin/iptablesNow Disable wifi menu->settings->Wireless Control's Then Uncheck wifi
Either use ./adb Shell or telnet or Terminal Emulator to issue these commands, it is preferrable to use a telnet shell or ./adb with the SDK because you can copy/paste faster:
insmod /system/lib/modules/wlan.ko
wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /system/etc/wifi/tiwlan.ini
cd /data/local/tmp
wpa_supplicant -f -Dtiwlan0 -itiwlan0 -c/data/misc/wifi/wpa_supplicant.conf &
sleep 5
ifconfig tiwlan0 192.168.2.30 netmask 255.255.255.0
ifconfig tiwlan0 up
We just used a static ip, so make sure to change your ip to a ip in your lan:
Now lets enable/configure ip forwarding
iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -I FORWARD -s 192.168.2.0/24 -j ACCEPT
iptables -P FORWARD DROP
iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
Monday, November 10, 2008
Howto: Prevent Future OTA Updates on Your Android G1
Then Follow these directions
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /systemThen move the otakeys.zip file which prevents the update:
mv /system/etc/security/otacerts.zip /system/etc/security/otacerts.zip.nothankyouThat one line will move the otakeys to a location the updater can't
check for it - and once the OTA update is downloaded, it will be unable
to apply.
Howto: Install the Latest Mod RC30 Update!
First…. You need to install a google android usb driver so you can use the adb program. (It lets you push and pull files to/from the phone, and you can open up a shell with it to).
(you dont need to do this if your in linux)
Download the driver file (http://dl.google.com/android/android_usb_windows.zip) and
unzip it to the desktop.
On ur G1… Go menu > Settings > Applications > Development then enable the
USB debugging button.
Then connect your Android device via USB. When the Found New Hardware Wizard
appears, you'll be asked if you'd like Windows Update to search for software,
select No, not this time and click Next. Select Install from a list or specified location
and click Next. Select Search for the best driver in these locations. Browse and
select the unzipped file (android usb windows.zip). Click Finish.
Second…. Setting up the SDK
Go to http://code.google.com/android/download_list.html and download the
SDK
Make a folder called SDK on the desktop
Unzip the files to the folder SDK
Open your command prompt (Windows Key and R)
Type “cmd” (Without the quotations)
Then “cd sdk”
Next “cd tools”
Now type “adb devices
After that it should say some thing like… List of devices attached HT845GZ21370
Device. If u see this abd sees your device.
Third…. Writing JesusFreke’s Recovery image
Download the zip file from this thread... http://forum.xda-developers.com/showthread.php?t=443041)
Unzip the files to the SDK tools folder
Now, in the command window, type
"adb push recovery_testkeys.img /data/local/recovery.img"
(This will copy the recovery image files to the phone)
Fourth…. Get Root working on ur G1
Download the Android Telnet Client from the Market or get it here…
http://www.koushikdutta.com/2008/11/...et-client.html
Turn on your phone's WiFi. This gives your phone an IP you can reach it at.
Restart your phone
Once restarted type telnetd at the home screen and press enter – Yes….. it will
start up a Contact search, do not worry about this, just type “telnetd” and press
enter (the enter button on the keypad).
Now press connect to localhost……. (You now have root!)
Now put in this command….
“mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system”
Then “cd /system”
Then “cat /data/local/recovery.img > recovery.img”
Finally “flash_image recovery recovery.img” (Your Recovery Image is no writen)
*To make sure your Recovery Image was written…. Reboot your phone in Recovery
mode and press Alt+L. At the top it should say "using test keys" If so its written. Go
ahead and Reboot your phone by pressing the Home and Back buttons.*
Fifth…Apply JesusFreke’s modified RC30
Go here http://rapidshare.com/files/162035634/update-RC30-fullupdate-modified-testkeys-v1.1.zip and Download the ZIP
Now once the ZIP is downloaded rename it to “UPDATE”
Put it on the storage card
Last but not least Reboot you phone in recovery
Press Alt+L (to turn on text)
Press Alt+S (to update)
And Bam you have yourself a modded RC30 G1 !!!!!!!!
Complements to usmc2k for writing this howto
Sunday, November 9, 2008
Friendfeed Iphone and Real-Time Works in the g1 Browser
Open these links within your browser, bookmark them for future use:
Friendfeed iphone iface
Friendfeed Realtime feed
Howto: Internet Relay Chat (IRC) Client On your Android G1 phone!
Friday, November 7, 2008
Howto: Prevent OTA Update for the G1 Phone to retain Root access
OTA updates are all cryptographically signed to prevent you from spoofing the update and installing something on your phone that you shouldn't. Ironically, this signature checking makes it relatively easy for you to prevent OTA updates from being applied once you have gotten root access on your phone.
To prevent OTA updates, you can simply move the otakeys.zip file from the expected location to another location on your device.
mv /system/etc/security/otacerts.zip /system/etc/security/otacerts.zip.nothankyou
That one line will move the otakeys to a location the updater can't check for it - and once the OTA update is downloaded, it will be unable to apply.
Note, however, the OTA update will say "failed" and then immediately restart downloading it once the signature check fails - so this fix is less than ideal but will at least prevent you from waking up one day to a phone that doesn't love you as much as it did the day before.
It should also be noted that the "recovery mode" of the phone does NOT use the otakeys.zip to check for the signature - currently it uses a compiled-in list of signatures to check for - so moving the otakeys.zip has no effect at all on doing an SD Card update.
Original content for this was originally found here
Thursday, November 6, 2008
Howto: Install Non-Market (.apk) Apps on your Android G1
Steps:
1. Download and install the Google Android SDK. The tool you need is adb.exe. Just typing adb in a command shell will display all the options. I'm not going to cover adb in detail, it's the SDK tool you use to install applications and interface with the device.
http://code.google.com/android/intro/installing.html
2. Download the USB driver for Windows. You need it for adb to inteface with an actual device using the included USB cable. Install it later after connecting the G1 to your computer using the USB cable.
http://dl.google.com/android/android_usb_windows.zip
3. Go to Settings/SD card & phone storage and disable Use for USB storage. You can enable it again later after you installed your third-party application.
4. Go to Settings/Application settings and enable Unknown sources.
5. Connect the G1 to your computer using the USB cable and install the driver you downloaded in step 2. After installing the driver you should see ADB Inteface in Windows Device Manager.
6. If you made it this far, download the APK file to a local folder on your computer, something like C:\MyAPKs will work fine and install it using ADB. The command would be adb install c:\myapks\
Howto: Install Android Apps(.apk) Via your Android G1 Browser
Monday, November 3, 2008
Howto: Tether Your G1 to your PC or laptop
What is this?
Updated howto: here
This is a HIGHLY EXPERIMENTAL proxy application that should allow you to browse the web via a USB connected T-Mobile G1.
Use at your own risk!
This does seem to be pretty slow when relaying the EDGE data network, however i think T-Mobile are having issues in my neighborhood tonight. I've done most of my testing on Wifi. There's no 3G network here yet, but there's no reason why it won't work.
What is this not?
It's not really a "tethering" app. Right now it only allows web access, you can't use it as a general purpose internet tool
I do think I can use this approach to tunnel SSH and maybe VPN traffic - so if you have your own server somewhere then it could come in pretty handy
Ok, I've read all the caveats above
Really..?
Yes... where do i start
- Install the app on your android phone, by clicking here (from your phone browser of course)
You might have to change your settings to permit apps that don't come from the Google Market by going to your home screen and choosing MENU > Settings > Applications > Unknown Sources. - Turn USB debugging on on your phone
On your G1 go to the home screen, press MENU > Settings > Applications > Development, then enable USB debugging. - Follow the instructions here to install the Android driver - you'll need to do this on Windows & Linux but apparently not on the Mac.
- Download and install the Android SDK for your computer platform. Alternatively if you are on Windows and don't want a 100 meg download, just get the ADB utility from here
- Plug your phone into your computer
- Choose Proxy App from your phone's menu
- Press the "Start Proxy" button on your phone
- Move to the directory that has the adb utility, using inside the Sdk Tools folder and run
Windows: adb forward tcp:8080 localabstract:Proxy
Linux/Mac: ./adb forward tcp:8080 localabstract:Proxy - Now you should have a proxy server running on port 8080 of your own computer that will relay the information over the Android Debug Bridge to the Proxy App which will relay it on to the internet.
- Set your firefox proxy : Options > Advanced > Network > Manual Proxy Configuration
HTTP Proxy: localhost
Leave the others blank
Port: 8080 - Enjoy the slow slow EDGE network, or let me know if you have glorious fast 3g coverage!
- Remember to disable your proxy settings in firefox if you want to stop using your phone.
Thursday, October 30, 2008
Howto: Easily Switch between apps
Facebook on the Android G1
Hopefully this will happen soon, or just a better web interface
Useful Android G1 Tricks
Holding the home button brings up your 6 most recent apps.
To activate the magnify glass on the browser click the trackball twice.
To make ringtones, alerts, and notifications make a folder inside your memory card each one containing there own name such as “ringtones” “alarms” “notifications”
Turning off the GPS saves battery life to do so go to Menu, Settings, Security and Location.
To rename a folder on the homescreen click and hold the dock at the top of the folders name.
When you want to change a setting just about anywhere on the phone hit menu, it’ll give you options.
Long press the phone key for voice dial.
In browser, and also in pic gallery-
when the zoom + - shows up- you can hold the + down and it will smoothly keep panning in.
To Cut, press Menu and x.
To Copy, press Menu and c
To Paste, press Menu andv
Switch phone orientation to landscape:
In web browser, go to menu>more>flip orientation. This will change the phone orientation to landscape so that you don’t have to open the screen to get it to flip.
Clear your Cache!
If you’ve been using streetview or the browser alot, the cache can quickly get big. I’ve only had the phone for two days and got 20MB back by clearing the cache on these two.
Settings > Applications > Manage Applications > Browser > Clear Data
Settings > Applications > Manage Applications > Streetview > Clear Data
-1
Saving pictures from the web:
Press and hold the image for 3 seconds, a selection will pop-up either to save image or view image. It may contain more selections if the image contains a link.
In the browser, hold down ALT key and roll trakball for fast scrolling.( Or press space bar for a fast scroll down)
To forward picture and text messages: Press and hold the message.
Use AnyCut (Application in Android Market) to put important contacts on your desktop, I usually use the text one because it’s also useful if you want to call them, just pull up the text screen then hold your finger on their phone number and you can view contact and call them from there, of course you can use AnyCut to make it go straight to their contact info, but I usually am texting people so that’s why I used text.
-in browser, long press trackball/pearl on image to bring up “save image/view image”
-in browser, long press trackball/pearl over url to bring up “open/open in new window/bookmark link/save link/share link/copy link url”
-in browser, press menu to bring up browser menu (go to url/search/bookmarks/…etc); long-press menu to temporarily flash the shortcuts
Howto: Fix the alarm on your Android G1
For now
Go to Menu->Settomgs->Sd card & phone Storage->Uncheck use for usb storage.
Howto: Reboot and Reset your Android G1 Phone
Home+Back reboot system now - (Soft Reboot)
Alt+L - Toggle log text display - (Toggles between the exclamation and menu options)
Alt+S - apply sdcard:update.zip - (Not brave enough yet)
Alt+W - Wipe data/factory reset - (What I chose, had to re-register, out of the box settings)
Also you can do a factory reset via Settings->SD card & phone storage-> Factory data reset