Showing posts with label Howto. Show all posts
Showing posts with label Howto. Show all posts

Wednesday, June 10, 2009

Howto: Quickly Root your Android G1 Phone in 14 Steps

The first step is to downgrade so you can obtain root access.
  1. Download the RC29 NBH file if you are in the US or the RC7 NBH file if you are in the UK.
  2. 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).
  3. Turn the device power off and make sure your sd card is inserted.
  4. Hold down the camera button while you turn on your phone to enter bootloader.
  5. Press the power button to start flashing the image file.
  6. After it finishes, press the trackball and perform a soft reset by pressing "Call" + "Menu" + "End" to reboot. 
  7. Once your phone boots to the desktop hit the key twice and then type "telnetd" and press again.
  8. 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.
  9. 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
  10.  Download the modified recovery and unzip it. Place the file "recovery_testkeys.img" in /sdcard
  11. 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
  12. Reboot your phone (completely, do not enter recovery yet or your neighbors dog might die)
  13. Once fully rebooted, power off your phone (hold power and select "Power Off"), and hold down home while you turn the power back on.
  14. 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. 

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)

Wednesday, November 12, 2008

Howto: Stream .mp3's with your Android G1 browser!

Ok I just got done with the Gmail Mp3 tutorial. As a test I wanted to see if the Android G1 Browser would download mp3's to my suprise it actually streams the mp3's
Try it out:
Click here within your G1 Browser

Howto: Download Mp3's with your Gmail App

Well I got allot of mp3's stored in my gmail account, I simply sent mp3's to myself. Anyways you are able to "Preview" MP3 files from your gmail account, but not "Save As" with the 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 /cache
Now list the files
ls -l
Now 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.mp3

Now 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

Well I searched all over for a solution on encoding video on the G1, everything I ran across was for the windows platform which I really dont care for any more since im a Ubuntu Guru, see ubuntu-unleashed.com
Within a debian/ubuntu distro simply:
apt-get install avidemux
Or 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)

First grab the iptables binary for you G1:
Download Here
Then push the binary to your android G1 device:
./adb push iptables /data/local/iptables
Now 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/iptables


Now 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

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

Sunday, November 9, 2008

Friendfeed Iphone and Real-Time Works in the g1 Browser

I love friendfeed, as you see I have an embeded widget on the sidebar of my site, im so glade I can keep up with friendfeed via the iphone interface and also view the realtime ajax feed, here is how:

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!

w00t just figured this out, now we don't have to wait for a android g1 irc client, just head over to www.mibbit.com and login to any irc network from there! Or you can Bookmark this post with your g1 for a better optimized client for your g1 screen!

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\ and that's about it.

Howto: Install Android Apps(.apk) Via your Android G1 Browser

Here is a nice Youtube Video that shows you how to download/install non-market apps on your G1:

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
    Port: 8080
    Leave the others blank
  • 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

Simply hold in the home key, (the little house) for a few secs, and all the running apps will show, you can use the trackball or your finger to select a running app to quickly switch between them.

Facebook on the Android G1

If you are a Facebook user you can use http://iphone.facebook.com to access Facebook on the G1. This is not as nice as the app that runs on Facebook, but is a very usable way to access Facebook from the G1 until some 3rd party creates a Facebook app.
Hopefully this will happen soon, or just a better web interface

Useful Android G1 Tricks

I found these tricks on the android community forum and thought they were useful enough to publish.

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

Well yesterday I set my alarm to wake up but it sounded off silently, I found a quick fix for this issue. It seems that the usb charger or usb cable is bugged out right now, and this will soon be fixed with an OTA update

For now
Go to Menu->Settomgs->Sd card & phone Storage->Uncheck use for usb storage.

Howto: Reboot and Reset your Android G1 Phone

Now all you have to do is pop open that pretty QWERTY keyboard and there are several keyboard shortcuts you can use to accomplish what you want to do:

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