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:
3. In the terminal, navigate to the folder where you have copied the file and paste the following code.
[Newbie friendly steps]
Type this in terminal.
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
5. Thank me and H:S from the CM forums. 
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.

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 ~/
Code:
sqlite3 settings.db "INSERT INTO secure (name,value) VALUES ('device_provisioned','1');"
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
This method is surely better than doing a full wipe, reinstalling all the applications from the market and reconfiguring all the settings.
Hope this helpsYou just need to put provision.apk from the rom's zip, set permissions to rw-r--r-- and reboot...
Last edited: