I have a corrupted Settings app in CyanogenMod and have a possible idea to restore a backup of it (App and Data) in Titanium Backup. But it's currently set to not allow "unknown sources" so Titanium cannot actually restore the old Settings over the current (corrupted) one.
I have a Terminal app installed on the phone. Is there a command in Terminal to essentially 'tick' that "unknown sources" setting, since I can't open the Settings app itself? (It gives this.)
data/data/com.android.providers.settings/databases/settings.db
and is an SQL file, and you can edit the SQL tables by using an sql editing app like Sqlite Editor. For instructions see: forum.xda-developers.com/showthread.php?t=2784173. I'm too busy doing other things to make this into an official answer, if someone does (and preferably tests themselves to confirm), I'll gladly upvote it and mark as accepted answer! :)