[N00B FRIENDLY] [FIX] [HOWTO] Lockscreen, Search button, Menu button not working.

rajathvsm

Senior Member
Jan 25, 2009
185
30
0
30
Lost
www.rajath.co.nr
This guide attempts to solve the following problems encountered while either updating CM7(afaik) without wiping data/system or while restoring the system settings using TB:

1. The menu and search buttons' keypresses are detected but the respective actions aren't executed.
2. The lockscreen doesn't get activated.
3. The power menu has only reboot and power off as options. The rest of the options like Airplane Mode and Profiles.

NOTE:

This guide is based on Ubuntu. The procedure in other OSes is the same. You just need to add an entry called device_provisioned" to /data/data/com.android.providers/databases/settings.db with a value 1. The problem was due to this entry being missing. Use a SQLite Database manager to add it. I'm just sharing what I had to do in order to solve the problem.

PREREQUISITES:

1. ADB
2. SQLITE3

FIX:

1. Install sqlite3 if it is not present already on your computer.
2. Copy /data/data/com.android.providers.settings/databases/settings.db from your device to a folder on your computer using ADB.
[Newbie friendly steps]
a. Navigate to where your sdk is installed in Terminal.
b. Then execute this command:

Code:
./adb pull /data/data/com.android.providers.settings/databases/settings.db  ~/
3. In the terminal, navigate to the folder where you have copied the file and paste the following code.

Code:
sqlite3 settings.db "INSERT INTO secure (name,value) VALUES ('device_provisioned','1');"
[Newbie friendly steps]

Type this in terminal.

Code:
cd ~
sqlite3 settings.db "INSERT INTO secure (name,value) VALUES ('device_provisioned','1');"

4. Then put the modified settings.db back in its folder.

[Newbie friendly steps]

a. Navigate to where the SDK is installed in the Terminal on your computer.
b. Type this in the terminal

Code:
./adb remount
./adb push ~/settings.db /data/data/com.android.providers.settings/databases/settings.db
./adb reboot
5. Thank me and H:S from the CM forums. :D:p This guide is based on his post. ENJOY!

This method is surely better than doing a full wipe, reinstalling all the applications from the market and reconfiguring all the settings.:cool:


You just need to put provision.apk from the rom's zip, set permissions to rw-r--r-- and reboot...
Hope this helps :)
 
Last edited:

Keldig

Member
Dec 27, 2010
47
5
0
This guide attempts to solve the following problems encountered while either updating CM7(afaik) without wiping data/system or while restoring the system settings using TB:

1. The menu and search buttons' keypresses are detected but the respective actions aren't executed.
2. The lockscreen doesn't get activated.
3. The power menu has only reboot and power off as options. The rest of the options like Airplane Mode and Profiles.

NOTE:

This guide is based on Ubuntu. The procedure in other OSes is the same. You just need to add an entry called device_provisioned" to /data/data/com.android.providers/databases/settings.db with a value 1. The problem was due to this entry being missing. Use a SQLite Database manager to add it. I'm just sharing what I had to do in order to solve the problem.

PREREQUISITES:

1. ADB
2. SQLITE3

FIX:

1. Install sqlite3 if it is not present already on your computer.
2. Copy /data/data/com.android.providers.settings/databases/settings.db from your device to a folder on your computer using ADB.
[Newbie friendly steps]
a. Navigate to where your sdk is installed in Terminal.
b. Then execute this command:

Code:
./adb pull /data/data/com.android.providers.settings/databases/settings.db  ~/
3. In the terminal, navigate to the folder where you have copied the file and paste the following code.

Code:
sqlite3 settings.db "INSERT INTO secure (name,value) VALUES ('device_provisioned','1');"
[Newbie friendly steps]

Type this in terminal.

Code:
cd ~
sqlite3 settings.db "INSERT INTO secure (name,value) VALUES ('device_provisioned','1');"

4. Then put the modified settings.db back in its folder.

[Newbie friendly steps]

a. Navigate to where the SDK is installed in the Terminal on your computer.
b. Type this in the terminal

Code:
./adb remount
./adb push ~/settings.db /data/data/com.android.providers.settings/databases/settings.db
./adb reboot
5. Thank me and H:S from the CM forums. :D:p This guide is based on his post. ENJOY!

This method is surely better than doing a full wipe, reinstalling all the applications from the market and reconfiguring all the settings.:cool:
I'm sure there might be easier ways of doing this but this method is what I got by googling and by my own experiments. I'm a n00b myself, so any help is appreciated. If you know a better, simpler way, let me know and I'll update this guide or link to your thread/post, with due credits of course.:)

Hope this helps :)
This has been my issue after restoring via Titanium backup, haven't been able to get this to work either though.
 

DF5JT

Senior Member
Sep 15, 2010
206
60
0
Vienna
I really wish this worked for me, but, alas, it doesn't and it drives me nuts.

I did as described on my local system and I double checked the change of contents of settings.db, making sure the respective entry has actually been changed. However, this had no effect Still no lockscreen, no home button and both calendar and clock stop after some time, just as other users described this, too.

I have now spent hours googling for a solution, but other than this posting I have found nothing.

Galaxy S3 with ReVolt 4.1.2 ROM
 

vlt96

Senior Member
Oct 9, 2011
3,592
915
0
You just need to put provision.apk from the rom's zip, set permissions to rw-r--r-- and reboot... You complicated tooo much

Sent from my LG-P500
 

campersand

Member
Aug 22, 2011
5
0
0
Thank you for the guide, but I'm having trouble with step 3. When I try to pull the file from my incredible I get a ton of text in the terminal but no file shows up on my computer in the specified location. Any idea what I could be doing wrong?
 

Chuzpe

New member
May 5, 2014
1
1
0
Don't know how to do this- please help!

Hi all,
I may be giving a whole new dimension to being a noob.... well I just have no idea about this command code stuff- I never used terminal until today and I damn sure hope I will not need to anymore in the future I have to say.

so basically I fail at following the "for noobs" instructions. Well I managed to download an install this ADB thing for Mac and was able to confirm in terminal that ADB works. I also have downloaded the SQLite3 on my Mac- not sure though this thing works on Macs.

Well, when following the procedure I get stuck at 2.a. "Navigate to where your sdk is installed in Terminal." what is an SDK and how do i navigate to it in Terminal?

I suppose I will get stuck at the other steps starting with "Navigate to.." as well.

It would be just great if someone could give me a step by step guide litterally saying what I need to do where to get rid of this darn bug that keeps me from using my phone (a sony ericsson arc).

Thanks for your help!
Cheers,
Bert
 
  • Like
Reactions: bigb1234