FORUMS
Remove All Ads from XDA

[Guide] Enable mobile data\WiFi to login to gmail account after getting locked out

86 posts
Thanks Meter: 7
 
By nizzle1, Member on 30th September 2012, 03:42 PM
Post Reply Email Thread
Okay, So just today my girlfriends room mate at uni decided it would be funny to lock her out of her Galaxy S II
I Tried every available method to me to try and get it unlocked but it wouldn't work.

After some time of scratching my head at this, I found the answer

These are the steps you have to follow in order to make this work
1.Make sure USB Debugging is on [Sorry to those of you who haven't got it turned on :\]

2. Make a folder called adb anywhere you like and place the files in the zip called adb (needs to be extracted) you can use WinRAR, 7zip
etc) attached to the bottom of this post.

3. Attach your phone to your PC and make sure all drivers are installed

4. Open up a command window (this can be done by pressing the start button on your keyboard and r together, then typing cmd) and navigate to the adb folder you created. The command : cd C;\Users\%userprofile%\%yourdirectory%\adb (replace userprofile with your username and yourdirectory with the directory you chose to place adb, don't forget to remove %!!)

5.Now type this command exactly and when done hit enter: adb pull /data/data/com.android.providers.settings/databases/settings.db

6.Don't close Command, but go to the folder where you extracted adb, there should be a new file there called settings.db

7. What I did was transferred the file to my Galaxy S3, and I used an SQlite editor

8.Using an SQlite Editior, go to the tab that says files and scroll down to your sdcard or external sdcard wherever you put it, open the settings.db.

9. There are 6 Options; android_metadata, bluetooth_devices, bookmarks, secure, sqlite_sequence, system. Go to the option that says secure and navigate down to mobile_data or wifi_on.

10. These options either have a 1 or a 0 under the value column, 0 for being off, 1 for being on. Let's assume both are 0. Now if you don't have mobile data, leave this at 0, if you do have it change it to 1, the same with wifi change it to one and you should save the changes you make when you exit.

11. Plug the device back to your computer and copy the new settings.db to the adb folder and overwrite any existing files.

12. Use the command and once done hit enter: adb push ./"settings.db" /data/data/com.android.providers.settings/databases

You should get an immediate response if not just reboot and then your data or wifi should be on and you are able to login to your gmail without a problem

Hope this helps anyone who gets stuck like this
Attached Thumbnails
Click image for larger version

Name:	cmd.jpg
Views:	365
Size:	36.1 KB
ID:	1365585   Click image for larger version

Name:	cmd enter.jpg
Views:	307
Size:	36.7 KB
ID:	1365586   Click image for larger version

Name:	enter command.jpg
Views:	299
Size:	32.3 KB
ID:	1365587   Click image for larger version

Name:	Screenshot_2012-09-30-15-23-34[1].jpg
Views:	240
Size:	33.7 KB
ID:	1365588   Click image for larger version

Name:	Screenshot_2012-09-30-15-24-27[1].jpg
Views:	232
Size:	36.8 KB
ID:	1365593   Click image for larger version

Name:	Screenshot_2012-09-30-15-25-02[1].jpg
Views:	195
Size:	25.3 KB
ID:	1365594   Click image for larger version

Name:	Screenshot_2012-09-30-15-26-26[1].jpg
Views:	175
Size:	17.8 KB
ID:	1365595   Click image for larger version

Name:	Screenshot_2012-09-30-15-27-00[1].jpg
Views:	185
Size:	62.7 KB
ID:	1365596   Click image for larger version

Name:	adb push.jpg
Views:	180
Size:	38.9 KB
ID:	1365597  
Attached Files
File Type: rar adb.rar - [Click for QR Code] (154.1 KB, 222 views)
The Following User Says Thank You to nizzle1 For This Useful Post: [ View ] Gift nizzle1 Ad-Free
 
 
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes