My G1 locked up - Is my only option a factory reset

Ugh... I need help. My G1 locked last night due to too many pattern attempts. So now it's asking for my gmail userid (email) and password but it keeps telling me it's invalid. I logged into my gmail account from computer just fine and I know this is the one I set up the phone with. I took my battery and SIM card out and re-powered but still get the invalid userid or password. I've tried the @googlemail.com too but that didn't work either. I called TMobile and they were absolutely no help. Is my only option a factory re-set now? :-(
 
Well if that doesn't work, factory reset isn't going to help you, because once the factory reset is finished, you have to set up your phone again from scratch, and that requires you putting in your gmail account and password.
 
Same thing happened to me. As a matter of fact it was that problem that made me register on here to see if I could get any help. Anyways yea I ended up having to do a reset. You have all your stuff backed up with Astro?
 
pattern lock defeated!!
here is the solution when you got too many attempts and you can't unlock it,
I take not credit for this, it comes from our friends at XDA:

Pattern Lock.. Defeated! ???????????? ???????????? ???????????? ???????? ???????? ????????EDIT: updated with step-by-step instructions.

Step 1. Download the Android SDK (http://developer.android.com/sdk/)
Step 2. Make sure to configure the ADB usb interface drivers (search the forums for more information on this if you're confused.)
Step 3. Plug your G1 into your computer (via usb). (Settings -> Application -> Development -> USB Debugging, must be enabled [it is enabled by default in JesusFreke releases i think])
Step 4. Open command prompt and enter the following:
????Code:
????> adb -d shell
# sqlite3 data/data/com.android.providers.settings/databases/settings.db
sqlite> update system set value=0 where name='lock_pattern_autolock';
sqlite> .exit
# exit
Step 5. Now power off the phone, and turn it back on. Tada! No more pattern lock.
???????? ???????? ???????? ???????? ???????? ???????????? ????????????????__________________

credit may go to HAYKURO
BIG THANKS
 
Eh....well i have downloaded the android sdk. i dont think that i configured the adb drivers correctly( i have vista 32bit). i would just like a walk through. im computer savvy but i don't know how to do this. any help to get my phone back would be nice
 
I have Vista 32bit too. But I think you need Root on your phone to be able to run sqlite3. Getting Root will require a lot of work and I've never done it so I can't help you with that. If you KNOW you have Rooted your phone (you will know, because you'll have manually downgraded the firmware, done some stuff to get root, then manually upgraded your firmware again) then proceed. Or try anyway if you want, but I'm 99% sure you need root access for this...

After downloading the SDK as instructed in step 1 in this thread, follow the instructions for "Setting up a Device for Development" on the page linked below to set it up. This sets up your USB drivers...

Ignore step 1 on the instructions on that page (it only applies if you're making an application), just do steps 2 and 3.

Here's the link:

http://developer.android.com/guide/developing/device.html

You are now effectively at step 4 of what JuanGil said. I'll expand on what was said to make it clearer:

Open command prompt (you do this by opening the start menu in Vista, and entering CMD into the search box, and clicking the program when it finds it. This will open a small black window in Windows where you can type stuff) and enter the following:
????
adb -d shell

If the above displays some me message like "'adb' is not recognized as an internal or external command" then you will need to change directory on the command prompt to the tools directory in your android sdk directory. If there's a pause for a few seconds and you then see a # or $ symbol on the last line of the CMD window then skip to the section that starts with sqlite.

If you need to change directory, you might want to find where you installed the android SDK in windows first. For example, I can find mine using Windows by opening Computer, then double clicking on the C: drive then the android-sdk-windows-1.0_r2 folder (yours may be a slightly different name). It does depend where you installed it of course...

So, let's say you installed it in the same location as me... in the CMD window you opened, type this:

c:
cd \
cd android-sdk-windows-1.0_r2
cd tools

Press return after each line of course... The first command makes sure the CMD window is looking on the C drive, the second command goes to the root directory of the C drive, the third command goes into the android-sdk-windows-1.0_r2 folder, the fourth goes into the tools folder. Just follow through the same folder names you use to find your android sdk folder in windows by entering those folder names into the CMD window with the CD command.

Then try entring "adb -d shell" again.

sqlite section..........

At this stage, adb will run, and you should have a # symbol or $ symbol at the bottom left of the screen.

Type the long command below all on one line and hit enter:

sqlite3 data/data/com.android.providers.settings/databases/settings.db

If you see a message about not having enough permissions or privileges or something similar then this method of fixing your phone won't work - you need root access.

If the command did work, you should now see something like this at the bottom of the screen:

sqlite>

If you do see that, type this on one line:

update system set value=0 where name='lock_pattern_autolock';

You should now see:

sqlite>

Type the following two lines:

.exit
exit

And as the previous poster said... Now power off the phone, and turn it back on. Tada! No more pattern lock.

Good luck!
 
WOW! thanks so so so much. But i have a few problems. #1. When i hook up my g1 i don't get a found new hardware thing. My second problem is that i cant get into the device to enable debugging. My third problem is that i don't have root. But in spite of this i tried what you said anyway and i successfully got to where i had to type in adb -d shell the second time. it worked and said "*daemon not running. starting it now*" "*daemon started successfully*" "error: device not found. i guess its because the found new hardware wizard didnt show up. I continued after that anyway and typed in that big command. I got "SQLite version 3.5.9 enter'help' for instructions"
sqlite>
i typed in the second command and it said "unable to open dataabase file"
But thanks so much for your help. Is there any way to get that found new hardware wizard up? and can i enable debugging on my g1 some other way?.thanks
 
Hrm.... I don't think you can do it without debugging enabled. That step is included as it's part of the instructions to get ADB to connect to the phone. When debugging is enabled and you connect the phone to your computer, instead of it showing up as a new drive (your SD card), the USB driver that is installed with the SDK takes over and it allows programs like ADB to connect to the phone. If the USB driver isn't installed, you get the new hardware wizard and it asks for the drivers.

The "device not found" error is because ADB can't find your phone, and yes, you're correct, it's probably because the hardware wizard didn't appear and that the phone isn't in debug mode. I don't know of any way around this - sorry

The fact you got SQLITE to run is actually not the good news it could have been. What you're seeing there is SQLITE running on your computer, not the phone, and that's why it couldn't open the database because that database only exists on your phone.

What you're seeing here, is ADB not connecting to your phone, so the commands you entered after that we being sent to the CMD window, not the phone through ADB.

I do have some other thoughts though...

1) When you log in, I'm sure it's [email protected]. This, at least, works for me when I deliberately enter the wrong pattern too many times.

2) The phone MAY ignore all username and passwords, even if they're correct, for a while if you enter the wrong one too many times. This is a commonly used elsewhere in the industry to prevent "brute force" attacks on usernames and passwords. So try leaving it an hour and logging in with your full gmail email address and password. Don't try it too many times... just once, being 100% careful to type everything correctly.

3) Create a new gmail account, and try logging into your phone with that.

4) Never tried this - but what happens if you boot the phone in "Safe Mode"? You do this by keeping the Menu button held down when you power on the phone. It's just a long shot, but maybe you can get back into your phone with this and/or turn on debugging, and/or enter a new account.
 
Ok. ill try the safe mode thing. And it has been about 4 days since i have not been able to get into my phone......so i think iv waited enough haha. But i will def try the "safe mode" thanks so much for your help.
 
Yeah....so that was a good plan. But it didnt work!. i dont know what to do? i dont think a reset would work either because you still have to sign on. OMG! what am i gona do?!?!?!
 
I doubt there's a way round it given you don't have root and access the phone due to the pattern lock.

I would do the following one last time:

1) Log into your Google account online to verify you know the full email address and password. Make sure this *is* the account you used on your phone originally. I made a new Google account for my phone, so was just thinking this might be the same with other people.

2) On the phone try one last time to enter that user/pass. Remember to be very careful with differences in case (upper case and lower case characters), symbols, etc. A common mistake is with the shift key for example.

3) If it still won't log in try a reset. You'll lose all your apps and settings, but at least you can get your phone working again. All your contacts, etc, will sync from your Google account, so at least you'll have those.

Let us know how you get on.
 
Eh.....ok ....well ive done every thing you have said. And no luck. So it looks like a factory reset. What is the best safest way to do this? And when i reset, i still have to enter my email i hope it works. Thanks for your help
 
Back
Top