Tips & Tricks on Android

Sunday, January 18, 2009

Using ADP1 without sim card

You know that Android Dev Phone 1 is fully unlocked.  But if you've just opened your box and don't have a sim with a working data plan, you'll be greeted with a "No sim card" "Emergency dial" screen on first boot. Now, if you had a sim card with a working data plan, it'd allow you to go ahead and and sign in with your Google account, but you don't. So you cannot do anything at the "No sim card" screen.

There's a workaround, however. You can use wifi to setup your account. It requires you to use the adb tool available from the android sdk.
  • Connect the device to your computer using the USB cable. You should be able to see a listing for your device if you run adb devices. Then execute the following commands.
  • adb shell
  • $ su
  • $ cd /data/data/com.android.providers.settings/databases
  • $ sqlite3 settings.db
  • INSERT INTO system (name, value) VALUES ('device_provisioned', 1);
  • .exit
  • $ reboot
After reboot:
  • $ adb shell
  • am start -a android.intent.action.MAIN -n com.android.settings/.Settings
Go ahead and setup your wifi and then sign up using your Google account.

14 comments:

shani said...

on my mac, i am not seeing any devices when i connect my g1 to it (im using adb and have had it work properly before on windows)

any ideas?

JakeTheTechnician said...

I tried this and it worked perfectly. I used my asus eee pc running slax, and it took about 2 minutes to do it. you just have to make sure its typed exactly the same, even case sensitive. I've been using it 'wireless only' for a few days and haven't had any problems...of course you cant make phone calls or send txt messages until you get a sim card. ps thanks for the post ;]

Chuck Anderson said...

I am trying to connect to a new ADP1 from Fedora Core 10. dmesg shows the phone is connected by usb, but adb still reports no devices. What am I missing?

Radu Motisan said...

Chuck, you need to make sure adb daemon is running on the G1.

The CS Masta said...

how do you make sure the adb daemon is running on the g1?? i am having the same problem as Chuck is, i have the g1 connected by USB and ti recognized it as a USB mass storage drive, but it still doesnt list the device when i type adb devices

Nirnimesh said...

Settings -> Applications -> Development -> USB Debugging. Make sure this is checked.

The CS Masta said...

that's the problem i can't access any of the settings since i dont have a SIM card to begin with...i thought this was the poitn of this whole article...to skip registration WITHOUT a sim card

Danny Yoo said...

If 'adb devices' isn't showing anything, make sure that you've done the "Setting up a Device for Development" section in: http://developer.android.com/guide/developing/device.html. On my Ubuntu system, I did have to adjust a rules file before the system would see the device properly.

Bayle said...

if adb devices doesn't work, try doing the following AS ROOT:

adb kill-server
adb devices

(thanks to http://seanpfeifer.objive.com/2008/12/android-dev-phone-1-opensuse-no-sim.html)

alien said...

system is secure now.

INSERT INTO secure (name, value) VALUES ('device_provisioned', 1);

nateswana said...

I believe 'system' still worked for me.

(Just followed the above tutorial and it worked fine -- able to access settings)

Avraham said...

It still not clear to me how to do it if the adb does not run from the boot, and I do not have sim card. Did someone solved the problem?

wowtel said...

http://wowtel.in :: Wowtel Communications is a Telecom company dedicated to offering mobile solutions that keep you well connected at the lowest rates possible as you travel across the globe. The company is a premium telecommunication service brand from ACI Infocom Limited. ACI Infocom Ltd. Is the pioneer in the Indian IT industry since 1982.

zjt said...

any idea how to get past a captivator? I can't seem to get to a browser...

Post a Comment