Showing posts with label Tips and Tricks. Show all posts
Showing posts with label Tips and Tricks. Show all posts

Saturday, November 8, 2008

Thursday, November 6, 2008

Tether Your Android G1 to Your Laptop or PC with Tetherbot

This is an experimental SOCKS proxy and Port Bouncer that should allow you to connect your laptop to the internet using the internet connection (EDGE, 3G or Wifi) of your T-Mobile G1 Cellphone.

Installation

Read the bit above about no warranty again. This shouldn't damage your phone, but if it does, it's your own fault!

  • 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

Using the Socks Proxy

The SOCKS proxy will let you connect things like firefox to the internet

  • Choose Tetherbot from your phone's menu
  • Press the "Start Socks" 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:1080 tcp:1080
    Linux/Mac: ./adb forward tcp:1080 tcp:1080
  • Now you should have a socks proxy running on port 1080 that you can use to configure firefox
  • Set your firefox proxy : Options > Advanced > Network > Manual Proxy Configuration
    Socks Proxy: localhost
    Port: 1080
    Leave the others blank
  • Remember to disable your proxy settings in firefox if you want to stop using your phone.

Using the Port Bouncer

The port bouncer will let you connect to a single port on a remote host. This works well if you need to establish an SSH tunnel to your home machine.

This should work for TCP only vpns (openvpn can be configured in this mode) but it wont work for Microsoft PPTP (because it's GRE based) or most typical openvpn setups (because they are UDP based).

  • Choose Tetherbot from your phone's menu
  • Enter the hostname of the server you wish to connect to on your phone
  • Enter the port you wish to use
  • Press the "Start Tunnel" 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:4444 localabstract:Tunnel
    Linux/Mac: ./adb forward tcp:4444 localabstract:Tunnel
  • Now you should have a tunnel connecting from port 4444 on your local host to the port on the host of your choice
  • To establish an ssh connection, type something like
    ssh -p 4444 user@localhost
    and you should be routed through to the server in question

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.

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

Thursday, October 30, 2008

Howto: Save Contact from Call Log to Contact List

Press and hold for a couple of seconds on the number in the call log. A pop up will come up where you can do different things including add to contacts

Display Only Contacts with phone numbers in your G1

By default, the contact list displays all your gmail contacts (which can be an issue if you have been a long-time gmail user).

From that list Menu->Display Group->Contacts with phone numbers only displays well... contacts with phone numbers.

Find shortcut keys on your own

Whenever you press the menu button and then the available options pop up, if you then press menu again(hold in menu) you will see the short cut keys for those options for future reference

Howto Quick Launch apps with your G1 and keyboard open

On any screen:

[SEARCH] button and the following letters will quickly jump from one app to another:

L - Calender
P - Music Player
I - Instant Messengers
E - E-Mail
G - G-Mail
Y - YouTube
S - SMS/MMS
M - Maps
B - Browser

These are the defaults, and can be changed by going to [MENU] -> Settings -> Applications -> Quick Launch

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.

Howto: Focus your Android G1 Camera Before you Take a photo

Start up the camera app by holding the camera button for a few seconds.

Press the camera button half way down to auto focus on the subject. A green dot should appear on the screen after the focus is successful. Click to capture.

Howto: Put your Android G1 on Silent Mode or Vibrate only

Decrease the volume all the way using the dedicated buttons on the right.

Increase the volume one step to put the phone in vibrate mode.

The phone can also be put in silent mode by keeping the “end call” button and selecting silent mode. But the phone will not vibrate when you get calls though.

You can set your phone to go to silent mode in your office using the Locale app too.

Howto: Quickly Find Contacts

Open the keyboard from the home screen and start typing. The screen should switch to the contacts page.

Howto: Change the Default Alarm Clock

Open alarm app, press and hold down on the clock. You can now select from a range of clocks.

Boot up Your Android G1 in Safe Mode!

Hold down Menu when powering on, the phone goes into safe mode.