Showing posts with label Hacking The Android G1. Show all posts
Showing posts with label Hacking The Android G1. Show all posts

Saturday, November 22, 2008

New: RC30 Mod v1.2 Firmware

JesusFreke has not updated his famous RC30 update to include a ton of new features, check em out:

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
- move flag for mount
- mknod that can wait for a device
- chdir, chroot, usleep, include, trigger
- 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
- 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 ) for all the changes to init and the kernel, as well as the modules in /system/modules. He also tweaked and recompiled a newer version of busybox. He recently posted his own update that I shamelessly stole this stuff from (with his permission )


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
  1. reboot your phone with the Boot Modifier home+power (hold home, press power, keep holding home)
  2. 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)

Monday, November 10, 2008

Howto: Prevent Future OTA Updates on Your Android G1

First Get r00t
Then Follow these directions
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Then move the otakeys.zip file which prevents the update:
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.

Howto: Install the Latest Mod RC30 Update!

Well Google/T-Mobile is sending out a brand new RC30 update and you will be screwed out of root access if you install it, here is step by step directions to keep your r00t access to your G1:

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

Thursday, November 6, 2008

Some Command Line Apps for your Android G1

Here are some statically linked android apps for your Android G1 that work in the command line once you get root access.

If you dont already have root access click here

Once root and your /system is writable via the instructions on the above link you can download these files to your /system directory

Bash Borne Again Shell
BusyBox Busy Box
GdbServer
SSH Client
SSH Server

Make sure you then chmod the files once in /system:
chmod 4755

Tuesday, November 4, 2008

Howto: Get ROOT on your Android G1 and Telnet to your phone!

Grab pTerminal from the market, reboot your phone, open pterminal quickly, cd to /system/bin/
then enter telnetd 2 or 3 times, then type telnet "your phone ip"

Take a look:
kyle@ion:~$ telnet 192.168.0.88
Trying 192.168.0.88...
Connected to 192.168.0.88.
Escape character is '^]'.
# id
uid=0(root) gid=0(root)
# cd proc
# cat version
Linux version 2.6.25-01843-gfea26b0 (android-build@apa27.mtv.corp.google.com) (gcc version 4.2.1) #6 PREEMPT Mon Oct 6 14:13:36 PDT 2008