Bypass Android setup
From Kenny Root
!!! These are old instructions by I have kept them for posterity. !!!
I bought a T-Mobile G1 for testing ConnectBot, but it requires you to have an activated T-Mobile SIM card with data service to use it. I tried using two old Pay-As-You-Go cards, but they had expired. I figured there had to be a way to bypass this silly registration.
NOTE: These steps only work on phones that have RC29 and below. Newer phones are starting to ship with RC30 (or, possibly, newer revisions). If step 4 doesn't work, you will need to downgrade to RC29 (US) or downgrade to RC7 (UK).
I am on a Mac OS X machine, so the steps may vary slightly for other operating systems. Here are the steps I took:
- Install the Android SDK
- Connect your G1 to your computer via USB.
- Boot up G1 and press the android when prompted to start the setup wizard.
- Press enter on the keyboard, type the following, and press enter again: setprop persist.service.adb.enable 1
- If you didn't get a warning from your computer about improper device removal, you probably mistyped it. Try it again.
- You should be able to verify everything is working by doing adb shell to get a shell on the device.
- Now press enter, type the following on the keyboard, and press enter again: telnetd
- Using the Android SDK on your computer, type adb forward tcp:2323 tcp:23
- Now open up telnet to localhost 2323: telnet localhost 2323
- Bring up the wireless settings wizard and set up your wireless network:
- adb shell am start -a android.intent.action.MAIN -n com.android.settings/.Settings
- Use the back button to exit from Settings and get back to the Setup Wizard at which point you can register as normal.
- You're done!
I had some instructions on here before that might render your Home and Back buttons unusable because of some problem with the way Setup Wizard works. I recommend not using these because the above instructions are simpler.
Here are the OLD instructions in case the above doesn't work:
- Type the following once you're connected to the root shell:
- setprop ro.debuggable 1
- setprop app.setupwizard.disable 1
- ps
- Look at the second column of the line that ends com.android.setupwizard and use that for the next line where it says PID:
- kill PID
