Jump to content

  1. 0
  2. 0
  3. 0/5

Rate this Topic

- - - - -

Lock Screen Pattern

  • Please log in to reply

OP akidd420

akidd420

Average Android

  • 3 posts

Posted 13 February 2012 - 01:56 PM #1

I just updated from CM7 to CM9 and now at the homescreen its asking for a lock screen pattern. I tried activating this feature when I had cm7 but it didnt work. Is it possible that it has now activated or turn this feature on due to my update from cm7 to cm9?
I tried so many patterns it asks if I forgot my pattern. I click on that it asks for a google account verification, but it will not accept my login and password there either......what can I do with out losing my apps and data?
  • 0 Likes

Dubi

Dubi

Super User

  • 304 posts

Posted 13 February 2012 - 02:08 PM #2

you can try putting back the CM7 update.zip and if it doesnt work a restore will be the faster way
  • 1 Likes

OP akidd420

akidd420

Average Android

  • 3 posts

Posted 13 February 2012 - 03:01 PM #3

can you walk me through a restore.......? I really dont want to have to revert back to cm7 if I don't have to. I alos am trying not to lose my data within my apps...
  • 0 Likes

Dubi

Dubi

Super User

  • 304 posts

Posted 14 February 2012 - 06:32 AM #4

If you did a backup before updating to CM9 should be just going to recovery and restore it.
If you forgot (which sometimes I do ;) ) I presume that just updating using the updatexxxxx.zip from the CM7 will overwrite all keeping your app/data intact.
(A wipe cache and fix permission will be a good idea)

Then , when you are back in CM7, make sure you "know" whatever lock password you have (pin/word) and then back to CM9.


If you have USB debug enable, you could always try disabling the lock with adb.
Try to connect the TP to the computer and see if adb can connect, if it does, you may try these:

# sqlite3 data/data/com.android.providers.settings/databases/settings.db
sqlite3 data/data/com.android.providers.settings/databases/settings.db
SQLite version 3.7.4
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
sqlite> select * from secure where name like "%lock%";
select * from secure where name like "%lock%";
47|facelock_detection_threshold|0.0
52|lockscreen.options|enable_facelock
151|lockscreen.patterneverchosen|1
152|lockscreen.password_type|65536
153|lock_pattern_autolock|1
154|lock_pattern_visible_pattern|1
155|lock_pattern_tactile_feedback_enabled|0
sqlite>
sqlite> update secure set value=0 where _id='153';
update secure set value=0 where _id='153';
sqlite>
sqlite> select * from secure where _id=153;
select * from secure where _id=153;
153|lock_pattern_autolock|0
sqlite>
sqlite>.exit
#

I just did that on my HD2 (don't have the TP here) and it does disable the lock after a reboot.
It should work on the same way on the TP.

What you are doing is changing a Setting directly into the sqlite database rather than going through the Settings gui.
Note that the ID may be not "153" on the TP.
The "select * from secure ..." will tell you which number you should use in the "update" command to disable the lock.

(I could give you an "update ..... where name matches ...." but it's better that way) so you understand what you are changing ;)

Edited by Dubi, 14 February 2012 - 06:53 AM.

  • 2 Likes

OP akidd420

akidd420

Average Android

  • 3 posts

Posted 14 February 2012 - 06:58 AM #5

I did a nandroid backup in CM7 prior to updating to CM9 and when I select to restore that file it gives me an error MD5 mismatch.......in CM9 I made a back up as well and it will allow me to restore to that file. I tested this by doing a wipe data/factor reset. Then chose restore and it worked restoring CM9. I have been running ADB on my TP, I am able to connect to my pc with it in WebOS should I look for ADB when I can open the files on my TP there? Or do I need to install ADB on my pc and look for my TP? Sorry I am alittle confused.......Lehmans terms would be awesome......this is actually for my sons TP I have a identical one with no issues, its just he activated a lock screen pattern and it started using it when I updated to CM9 from CM7 (it wasnt working) the google account verification wont work because I have no internet connection while I am at the home screen.
  • 0 Likes

Dubi

Dubi

Super User

  • 304 posts

Posted 14 February 2012 - 07:13 AM #6

Ummm, next time try to use new lines hehehehehe 8)

If you boot into CM9 and connect the USB cable it should say something like "USB debugging"
If it does, it means you have it enabled, so you should be able to open a shell session with adb.

You need adb on your computer.

Unzip this file somewhere in your computer (I used "D:\android\projects\adb")
http://www.zen24223.zen.co.uk/ADB.zip

Then open a CMD (Start->Run->"cmd") and go to the directory "cd d:\Android\Projects\adb"

from there you are going to run "adb shell" which will connect to the TP
If it connects, you will have a "#" prompt. run the following commands:

# sqlite3 data/data/com.android.providers.settings/databases/settings.db
select * from secure where name like "lock_pattern_autolock";
update secure set value=0 where name like "lock_pattern_autolock";
select * from secure where name like "lock_pattern_autolock";


Like this:


d:\Android\Projects\adb>adb shell
adb server is out of date.  killing...
* daemon started successfully *
# sqlite3 data/data/com.android.providers.settings/databases/settings.db
sqlite3 data/data/com.android.providers.settings/databases/settings.db
SQLite version 3.7.4
Enter ".help" for instructions
Enter SQL statements terminated with a ";"

sqlite> select * from secure where name like "lock_pattern_autolock";
select * from secure where name like "lock_pattern_autolock";
153|lock_pattern_autolock|1

sqlite> update secure set value=0 where name like "lock_pattern_autolock";
update secure set value=0 where name like "lock_pattern_autolock";

sqlite> select * from secure where name like "lock_pattern_autolock";
select * from secure where name like "lock_pattern_autolock";
153|lock_pattern_autolock|0

sqlite> .exit
.exit
#

Here you are changing the "value" from 1 to 0, so basically, you are disabling the Lock password option.

Reboot the TP (type "reboot" and press enter) and it shouldnt not be there afer booting.
  • 1 Likes

KPluto

KPluto

Average Android

  • 1 posts

Posted 16 February 2012 - 01:41 PM #7

same problem! Thanks for posting this thread!
  • 0 Likes

Dubi

Dubi

Super User

  • 304 posts

Posted 17 February 2012 - 06:31 AM #8

I like breaking into stuff ;)

Edited by Dubi, 17 February 2012 - 06:32 AM.

  • 0 Likes