yashsingh1/xdaforums huggingface dataset:
[G1 General] Vazguard:
Hey guys:

I have followed the guide and a rewrite of it to try and activate WiFi in order to register my service-less G1 (I won it and already have a Sprint phone, so I am trying not to pay for any more).

I have what I think is correct: my downgraded the phone (the reboot "trick" works) and have the adb shell active - it lists an HTC number under the adb devices command.

I am having trouble and need some clarification and a bit of help on my way. Reading another guide that uses this thread as a base, I have gotten as far as the forced settings command in the command prompt. But this other guide mentions nothing about the need for root access. I have tried entering the settings command multiple times, without success - all it says is as follows:

C:\android-sdk-windows-1.1_r1\tools>adb shell

$ am start -a android.intent.action.MAIN -n com.android.settings/.Settings

am start -a android.intent.action.MAIN -n com.android.settings/.Settings

Starting: Intent { action=android.intent.action.MAIN comp={com.android.settings/

com.android.settings.Settings} }

Nothing changes on the phone's screen.

The guide here says root access is required first, yet the other guide I found does not mention the need.

As far as root access goes, the sqlite commands don't work either, returning with permission denied. I also attempted to push the busybox file, but that is also denied.

I am using Windows 7, but that hasn't seemed to be a problem.

Thanks,

Vaz
[G1 General] RasDeglee:
Found this in another thread and worked for me to install busybox which allowed the telnetd cmd to work

-- Alternatively if you have adb installed, you can use adb to forward a local port on your linux host to a port on the phone. This avoids the need to install a terminal on the phone:

1. At your phones desktop hit the <enter> key twice and then type "telnetd" and press <enter> again, then on your desktop:

adb forward tcp:9988 tcp:23

telnet localhost 9988

Add busybox

1. download busybox by tapping and holding (long pressing) this file and choosing save link to your sd card (using android browser)

2. remount system as read-write

*

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

3. copy and rename busybox.asc to /system/bin/busybox

*

dd if=/sdcard/download/busybox.asc of=/system/bin/busybox

**my edit-- use this one if busybox is stored in root of memory card**

dd if=/sdcard/busybox.asc of=/system/bin/busybox

4. make it executable

*

chmod 4755 /system/bin/busybox

5. go there

*

cd /system/bin/

6. this gives you cp (great for making more symlinks)

*

busybox cp -s busybox cp

7. start sh (this is busybox sh and has more commands and is easier to use)

*

busybox sh

You will not need to create any more symlinks if you plan on installing any recent JF update as he has done this for you.

P.S. If you have adb running you can paste this in to do all of the previous commands at once (much faster).

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

dd if=/sdcard/busybox.asc of=/system/bin/busybox

chmod 4755 /system/bin/busybox

cd /system/bin/

busybox cp -s busybox cp

busybox sh

my problem now is using wifi to complete google registration fails...

have tried the disable registration cmd

... setprop app.setupwizard.disable 1

also tried it as

setprop app.setupwizard.disable 0

without success

am running jf 1.42 do i have to downgrade to rc29 to get this command to work?

UPDATE FIXED MY PROBLEM

GOODLUCK
[G1 General] Vazguard:
I managed to push busybox onto the phone and run it successfully using a guide that gives you the exact commands, also written by JesusFreke.

My problem now is that I cannot access the sqlite3 file. It says the file is not found.
[G1 General] RasDeglee:
i installed jf 1.43 which gave the sqite access and other problems sorted there after
[G1 General] Vazguard:
Would it be possible to get a copy of the binary file posted here so I (and others) can download and use it?

I'm gonna try the JF 1.43 update then. I'm still at the No SIM screen, but it seems to me that this doesn't matter? The only reason the home screen is mentioned is that it tells you to install a terminal from the Market, but I can use the busybox telnet terminal.

UPDATE: Why? Why must this be soooo hard?! I tried to apply the JF update, and now my phone sits on the Android loading screen. AAAAHHH!!

UPDATE 2: Well, I tried reapplying the JF 1.43 update after wiping the data (the Alt + W command) and it booted up, and sidestepped the No SIM screen! The root command to force open the Settings menu worked, and I'm finally in business! W00t!
[G1 General] Vazguard:
Sorry for the double post, but I figured an update to my previous entry wouldn't bump this thread.

I updated to the JF 1.51 firmware, but at the home screen the phone would force quit some Google scripts, which seemed to prevent me from using the Market, Contacts, and didn't seem to let GMail refresh over WiFi.

So I redownloaded the update, booted to recovery like usual, and wiped before updating (I ran the integrated Nandroid command before, but I'm not really sure how I can us that). Now I am back where I started before - sitting at the No SIM screen.

I can still open the shell and access root directly (a nice perk from JF), and running the sqlite command seems to work. But when I reboot, the phone still sits at the No SIM window.

Any thoughts?

UPDATE: I managed to borrow a friend's AT&T SIM card just to get past the No SIM screen, and proceeded with the guide as normal. G1 is now a happy WiFi device!
[G1 General] senzanohm:
**Nevermind** For some reason my phone wasn't retaining root, but I reflashed to RC29 and started the process again telnet'ing through my Win CMD prompt to the G1, and set up root.

As an FYI, I am going to work up a simpler how-to for the Windows-based folks.

Basically, after rooting, I flashed directly to JF v1.51 and was able to A) skip right by the no sim thing, and B) set up wifi and register my phone to Google.

No special commands other than the rooting part it. Pretty slick...now I have a portable web-toy until I actually need to use it as a phone.

----------------------------------

Okay, I bought a used T-Mob G1 and the owner factory reset it.

I do not have a sim card because I won't need it until I go overseas.

I downgraded to RC29 and I'm able to follow all the steps to connect to my phone with ADB, use telnet via localhost, etc.

My phone does not appear to have the SQLite3 binary. How/where do I get it? How do I push it to the phone?

I tried updating to RC33 with the JFv1.42_RC33.zip (renamed to update.zip) to try to get SQLite3, but I constantly get the following error:

E: No signature (392 files)

E: Verification failed

Finally, can I bypass this process by getting a T-Mob prepaid activation kit? I just want to get wifi set up on the phone.

Any help would be appreciated.
[G1 General] h4z:
Props

Jesus Freke, thank you! One step closer to root...
[G1 General] horizontalkev:
ive downloaded the SDK file and i cant figure out how to use/install this, when go into the folder i unzipped it into i see a folder named "android-sdk-windows-1.5_r2" and in that floder are files "ADD-ONS" "DOCS" "PLATFORMS" "TOOLS" "USB_DRIVER" "DOCUMENTATION.HTML" and "RELEASE_NOTES.HTML" what do i do?

im trying to use it so i can bypass my registration because my service is cancelled and i foolishly wiped my phone in hunt for a rooted G1, but it backfired. thanks.
[G1 General] aznlovshrimp:
will this trick work on jacshero's new 2.3.3 rom?
[G1 General] alainstatus:
My phones been disconnected for about month and I accidentally did a factory reset when trying to add the HTC Hero theme. I'm trying to setup my gmail in the phone without a daa connection and I ned someone to maybe walk me through it. And I see some method worked for you. Do you think you can pass that on to me??
[G1 General] suninthyhands532:
You should totally make a video out of this one!
[G1 General] isikh:
Please..I'm getting confused at the part where you say to install adb =\
[G1 General] isikh:
Actually how do i connect my phone with adb shell
[G1 General] Diceman4:
search for the adb for dummies thread, it will walk you through the whole setup
[G1 General] deedee307:
i have downloaded all ADB USB and SDK. In command all i keep getting is not recognized as a internal or external command when trying 2 open up Adb shell
[G1 General] alritewhadeva:
are you on windows? Go to the DreamQ&A section. Look at the stickies.
[G1 General] remiks3:
1. Connect your phone to the PC

2. Open command line (Start -> Run -> type CMD and press enter)

3. Via command line go to directory where adb.exe exists (typically in a folder titled sdk, then go into tools)

4. type "adb shell" without the quotes

5. Done!
[G1 General] wielkimanitou:
Hi,

I will write all steps, correctly.

I need your's help

Is this ok?

Mark
[G1 General] deedee307:
OMG i got it working thank u so much i luv u!!!!
[G1 General] streetrideF1:
Phone not detected

I've followed all instructions down to the letter twice in both xp and windows 7. My g1 which is not unlocked is still detected as a storage device no matter what i type on the phone or what drivers I install. The result for adb devices comes up blank. Please someone help i've been at this for hours with no luck. THanks guys.
[G1 General] streetrideF1:
I think the problem is that since i cannot get to the settings to switc the usb debugging option the phone will only be detected as storage and nothing else, is thee a way to fix tis, plz help thanks
[G1 General] texanman:
I started to freak out too when I could not figure this same issue out but that will solve it
[G1 General] horizontalkev:
i need help if someone will please help.

i have JF ( rooted cupcake) firmware and i factory reset my phone (without data plan or service) and now i cant get past the google sign in screen.

my problem is im trying to follow jesusfrek's instruction (BTW great work youve done) but i9m lost at the part where the eclipse and ADP shell and all of that im completely lost i have no idea what to do..

ive downloaded the eclipse program and i start it up and from there i have no clue what to do.. please help thanks.
[G1 General] chicano707:
No service?

Hello,

Thanks everyone for contributing into this post. This was a pretty difficult thing to go through, I'm used to the Windows Mobile not android. Anyhow, The process went well, but I got a problem, when I finally register my Google account and get to the home screen, I get NO reception at all. I even called Tmo to see what they had to say, they couldn't help me, they said the phone seems to have been hacked. I did all the steps found on this thread, but I noticed that when I downgrade to RC29 and get to the "Touch the android to begin" I had ZERO reception, is this normal? What can I do? I was able to successfully register my phone to my gmail account using WiFi.

Thanks in advance.
[G1 General] CountX:
Just got my g1 today, about 3 hours ago. And ive been at this relentlessly to root and update the phone to hero's rom. So far i can connect with adb shell, but none of the commands seem to have any effect. I tried su, for kicks, to see if i could reboot remotely. Only to find out "permission denied", i think you do need root....to root the phone. I was just wondering if anyone could help, i would be willing to go on IM of your choice. I have been going at this as much as i can on my own and reading. But i fear i need someone with more experience to help me out a bit. I dont have sim currently, and wont for a bit, even when i do i wont be able to afford the data plan....

Breakdown:

adb shell works, i have drivers and such working

i can enter commands, they dont give error or anything

the command to bring up settings menu has absolutely no effect on the phone

*note* seems as others i dont get the "touch here" screen first, i go straight to "no sim" screen. i think once i saw the android guy flash for 1/2 a sec before the "no sim". could this be related...?

please do help me, im at wits end

EDIT: if i run the settings window command a 2nd time, even though it has no effect on phone i get this "warning"

"Warning: Activity not started, its current task has been brought to the front"

EDIT: progress mentaly made, i need to get past the "no sim" window before i can enable the settings menu...

progress halted when i finaly did get a root telnet, it doesnt recognize the sqlite3 command, so i either need to get that from someone, or i need to figure out why i need root permission to pull the .db file and do the mod manually

Bold to make it clear what my problem atm is:

"sqlite3: not found" when i try and run the step to skip the "no sim" screen, been over 40 mins bashing head against this issue

SOLVED: http://blog.vgod.tw/tutorial-activate-g1-via-wifi-without-a-sim-card/ has sqlite3 file in his pack
[G1 General] kimbokrn:
hello hello everyone!

I've purchased an unlocked G1 from ebay, and it came today! I have been struggling for many hours with a common problem that people seem to be having, after reading twenty something pages in this thread and many others. The problem that many and I have encountered was that the G1 was being recognized only as a disk drive and not also as ADB interface. After entering

"<enter>setprop persist.service.adb.enable 1<enter>" numerous times, I still couldn't install the correct driver and establish the ADB interface.

So here's what I did differently..

I just simply went to bottom right corner and safely removed the G1. Basically, I've unmounted it, and my computer recognized the ADB interface right away! I was able to install the driver in seconds and activate my phone!

i hope this helps..

can't believe this took me hours to figure out >_>
[G1 General] :
HELP

Okay i installed drivers once. than unistalled them ,well i believe i did, cause it would say in the command, when i typed adb shell it said no device. I wanted to install the drivers again so i hooked in my phone and it automatically installed my driver. how do i get the right driver and is this why it wont appear in adb devices? im running stock rc29
[G1 General] :
THANK U

I read the whole thing more carefully and u guys made it easy. thanks now i have my phone working again. u guys are the best!!
[G1 General] superlinkx:
HELP!

I have tried everything in this forum. I cannot get my G1 to be recognized as an adb device. I tried inputing the <enter>setprop persist.service.adb.enable 1<enter> command many times. It always shows up as a mass storage device. I tried unmounting, but nothing happens. I can't even figure out how to manually install the drivers. Please help.
[G1 General] dhester92:
Dude after hours of messing with it I finally got my phone registered through wifi! Thnx sooooooo much man!!!
[G1 General] Jayziac:
Summary or FAQ?

I have a HTC MyTouch 3G on order without contract (through ebay), just wondering if there are any additional steps or modifications to make it work.

My understanding is that:

<enter>setprop persist.service.adb.enable 1<enter>

is so the windows machine can detect the device as an adb device and not generic mass storage device. But this only works on RC29 and older phones, the myTouch is a newer phone, so what is the workaround then?
[G1 General] volcomnator999:
i finally got adb installed and all that stuff...and i have my wifi turned on the phone but i still get "there is a problem communicating with the google servers" what gives? i followed all the steps correctly ive been at this alll day and i just want to use my phone. thanks
[G1 General] Jayziac:
I remember reading somewhere that you have to turn off the automatic synching that some of the google apps do in the background. So were you able to run the adb shell on the phone even though you can't get past the activation page to turn on the application debugging? In other words everything was done on the computer side, since the phone is kinda non-functional being stuck at the activation page?
[G1 General] volcomnator999:
im able to run adb shell on the computer...but instead of getting a # i get a $ when i enter adb shell. idk where i went wrong. also i noticed it wont reboot when i do (enter)reboot (reboot)..any help would be appreciated.
[G1 General] jsajnani79:
hey jesusfreke,

i read your post on registering the g1 through wifi and was wondering if you could help me with a similar problem. after entering the unlock pattern too many times, i tried to enter my gmail user/pass to unlock my phone. sadly, the phone wont recognize it and says its invalid. i was wondering if i could use a similar process to enter the phone through sdk and turn off the security features and turn on the wifi as i dont have data as well. i am new to all this and was hoping you could help. thanks.
[G1 General] endolith:
So if we want to register with Google, but we don't have a data plan, there's no way to just enable Wi-Fi without installing "adb" on a computer and connecting to it remotely?

We can't just type something into the hidden root prompt that will enable Wi-Fi?

Can we type "telnetd" and then connect to the phone over USB from a computer?

The page you linked to does not say anything about "adb". How is it installed? Where do we get it from? What is it?
[G1 General] Jayziac:
I've discovered that you can't connect to a new tmobile android phone even with adb without turning on "debug mode" which is inside the OS. Because without debug mode, the USB driver can't be installed since it's functioning as a USB drive instead of an android device.

Only viable methods I think are:

1) get a sim card with data plan (or enable data for 1 day on a postpaid SIM account)

2) root (reflash the ROM) using the long and complicated method (not the single-click version)

Correct me if I'm wrong.
[G1 General] shaolinx:
Yes you will have to flash to an older version for your phone that has root.

Follow this guide.

http://android-simplicity.blogspot.com/2009/08/how-to-2-how-to-root.html

adb is a way for you to control your phone through your computer. This is a very simple process and requires root.

http://android-simplicity.blogspot.com/2009/08/how-to-3-how-to-control-android-through.html
[G1 General] endolith:
I figured it out last night and wrote it up here. Thanks for these instructions!
[G1 General] Dysengaged:
ADB dissapearing

EDIT: i realised i dont need adb.exe to run.. Anyways i opened up cmd prompt and ran the adb through that. but it seems that my phone isnt being recognised as an ADB device because when i try to run adb shell it says "no devices". i know people have probably asked this 100 times but it would really help me if someone could explain how I make it be seen as an ADB device.

Cheers,

Dysengaged:)
[G1 General] Dysengaged:
wait, what drivers do you install? it seems that my problem is my computer wont recognise my phone as a ADB device, just as a usb mass storage device.

when i go into device manager, it is recognised as a portable device>android phone.

so confused, my head is spinning! grr lol
[G1 General] maek_it_happen:
ok i downgrade but am unsure where to get adb and wut drivers i need my sim card has no data plan so im stuck
[G1 General] Dysengaged:
Adb is in the sdk. Didbyou download that? If you did just move the tools folder to your desktop. Go into command promt. Type:

'cd desktop'

'cd tools'

'adb'

Then a huge list of things should show up. Next type:

'adb devices'

it should show your device. Mine doesn't, so I'm at the same place you are right about now:(

if it DOES show your device. You show type

'adb shell'

then your back on track to type that prompt on the first post to open up settings:)
[G1 General] ghost_deini:
trying to register without a sim.

i press enter telnet enter on phone, then go into adb shell and type:

$ chmod 755 /data/local/busybox

chmod 755 /data/local/busybox

$ /data/local/busybox telnet 127.0.0.1

/data/local/busybox telnet 127.0.0.1

telnet: cannot connect to remote host (127.0.0.1): Connection refused

solved with:

adb forward tcp:9988 tcp:23

telnet localhost 9988

in the command prompt
[G1 General] MasterCATZ:
Really having problems getting the phone into dev mode for adb as well

I have been typing

setprop persist.service.adb.enable 1

who knows how many times

( verified many times flawlessly in G Docs on my other phone )

I have been doing first thing after reboot

with / without sim / without clicking on the damn robot .. clicking on robot ...

tpying in reboot command after trying ADB/Telnet .. guess what it reboots

it allways ends with nothing hapening with ADB or TELNET

Yet ((Reboot)) always works

I have now downgraded 4 phones to 29 and can not get ADB to enable

I need some way to do registration with out sim or data plan

nothing wrong with pc because the one phone I do still have Activated in Dev mode picks up fine

*edit I found Solution that worked for me *

Download usbdeview

remove ALL android related drivers ... let them reinstall again

because phones had been in pre Dev mode windows kept using old driver settings

Going to add a mini guide to help me later on here

Hidden Shell

setprop persist.service.adb.enable 1

telnetd

command for busy box to push it with adb

( another missing part of tut from what i can see )

adb -d push busybox /data/local/busybox

adb shell

cd /data/local/

chmod 755 busybox

./busybox telnet 127.0.0.1

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

cd sdcard

flash_image recovery recovery.img

cat recovery.img > /system/recovery.img

*edit* or flash_image recovery /sdcard/cm-recovery-1.4.img

( reboot and update.zip it ) Home+Power / Alt + L

adb shell

am start -a android.intent.action.MAIN -n com.android.settings/.Settings

fastboot flash system system.img

fastboot flash userdata data.img

fastboot flash boot boot.img

fastboot reboot
[G1 General] Jayziac:
I activated my MyTouch 3G by first getting the unlock code for free from Tmobile by requesting it and saying I wanted to use it overseas. Then was able to use a friend's AT&T sim card with data plan to get past the google signup, (had to change APN settings to AT&T). Then put in my prepaid Tmobile SIM card to use regularly with wifi for data. Turned off autosyncing of google apps and everything works like a champ.
[G1 General] ajaycuteboy:
hi i did what u wrote above but when i type adb shell it says no device found plz help my ID is ajay_makol@yahoo.com
[G1 General] :
hows this work on newer G1 phones with JACxHeroski, i tried

sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO system VALUES (54, 'device_provisioned', 1);"

that works, but after reboots i seem to get the sim message and dialer lock again. i have a sim, im just trying to set up a friends phone.
[G1 General] ole_rascal:
thanks dude! i was having this same problem, uninstall/reinstall drivers and i got it rollin'! now my wife won't kill me for breaking her phone. :)
[G1 General] hunt112:
Hi JesusFreke,

Thanks by the way for this great tutorial.

My Phone now is downgraded to RC29. It reboots when i type reboot on my phone keyboard. I did the steps and able to access/detect my G1 thru adb shell. Btw, i'm doing the "no sim" G1.

I normally do search first and try to figure it as i can but this time i really need help. It's been 2 days now and still can't find any answer. I have this $ sign when i enter adb shell and by the time i enter the sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO system (name, value) VALUES ('device_provisioned', 1);" it gives me a permission denied. do i miss something? i heard this busybox binary, do i need to install it first? cuz when i do the adb push it still gets me the permission denied.

Hoping for some favorable responds. Thanks.
[G1 General] hunt112:
@ajay,

did you successfully install the "android_usb_driver"?

i had this problem that my pc read it as mass storage.

Here's what i do: (with SDK and adb installed)

1. unplug g1

2. go to control panel -> system -> device manager

3. removed/uninstall the "USB mass storage device"

4. Then plug again the phone.

It should now prompt for new driver for G1. Point it to "android_usb_driver".

when you hit the adb shell, it should work and see your device now.