[Moto G Q&A, Help & Troubleshooting] demlak:
hi

i found the problem with system UI Crash at boot..

logcat repeated very often:

E/keystore( 6007): keystore keymaster could not be initialized; exiting
D/QSEECOMAPI: ( 6008): QSEECom_get_handle sb_length = 0x2000
D/QSEECOMAPI: ( 6008): App is not loaded in QSEE
E/QSEECOMAPI: ( 6008): Error::Cannot open the file /vendor/firmware/keymaster/keymaster.mdt
E/QSEECOMAPI: ( 6008): Error::Loading image failed with ret = -1
D/QSEECOMAPI: ( 6008): QSEECom_get_handle sb_length = 0x2000
D/QSEECOMAPI: ( 6008): App is not loaded in QSEE
E/QSEECOMAPI: ( 6008): Error::Cannot open the file /firmware/image/keymaste.mdt
E/QSEECOMAPI: ( 6008): Error::Loading image failed with ret = -1
E/QCOMKeyMaster( 6008): Loading keymaster app failed
E/keystore( 6008): could not open keymaster device in keystore (Operation not permitted)
E/keystore( 6008): keystore keymaster could not be initialized; exiting

so i checked, if those files exist.. they don´t.. there are just symlinks to non existing files..

i checked my backups.. and lucky me.. i got those files there.. i just uploaded them and systemUI does not crash anymore

(remounted /firmware rw and set files to chmod 644)

but there is also a little typo.. so you see the 8th line of the log? there is a "keymaste.mdt" without an r.. so i also copied the keymaster.mdt to keymaste.mdt

after this.. no system ui crash anymore..

so.. i don´t know anything about what i´ve done there or what these files are for.. but it worked.. so now it´s time for those developers of you =)

but there is a problem on the launcher3.. it allways crashes because of not finding a column in a database?

E/QCOM PowerHAL( 837): Failed to acquire lock.
I/ActivityManager( 837): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.cyanogenmod.trebuchet/com.android.launcher3.Launcher} from uid 1000 on display 0
I/ActivityManager( 837): Start proc com.cyanogenmod.trebuchet for activity com.cyanogenmod.trebuchet/com.android.launcher3.Launcher: pid=7362 uid=10017 gids={50017, 9997, 1028} abi=armeabi-v7a
D/Launcher.LauncherProvider( 7362): 11683562 - initializeMaxScreenId(): 5
V/Launcher( 7362): LauncherAppState inited
D/Launcher.Model( 7362): Old launcher provider: content://com.android.launcher2.settings/favorites?notify=true
D/Launcher.Model( 7362): Old launcher provider does not exist.
W/Launcher( 7362): setApplicationContext called twice! old=com.android.launcher3.LauncherApplication@29cc03fb new=com.android.launcher3.LauncherApplication@29cc03fb
D/Launcher.Model( 7362): 11683562 - loadWorkspace()
D/Launcher.Model( 7362): 11683562 - loadedOldDb: false
W/Launcher( 7362): setApplicationContext called twice! old=com.android.launcher3.LauncherApplication@29cc03fb new=com.android.launcher3.LauncherApplication@29cc03fb
E/AndroidRuntime( 7362): FATAL EXCEPTION: launcher-loader
E/AndroidRuntime( 7362): Process: com.cyanogenmod.trebuchet, PID: 7362
E/AndroidRuntime( 7362): java.lang.IllegalArgumentException: column 'restored' does not exist
E/AndroidRuntime( 7362):	at android.database.AbstractCursor.getColumnIndexOrThrow(AbstractCursor.java:303)
E/AndroidRuntime( 7362):	at android.database.CursorWrapper.getColumnIndexOrThrow(CursorWrapper.java:78)
E/AndroidRuntime( 7362):	at com.android.launcher3.LauncherModel$LoaderTask.loadWorkspace(LauncherModel.java:2024)
E/AndroidRuntime( 7362):	at com.android.launcher3.LauncherModel$LoaderTask.loadAndBindWorkspace(LauncherModel.java:1611)
E/AndroidRuntime( 7362):	at com.android.launcher3.LauncherModel$LoaderTask.run(LauncherModel.java:1716)
E/AndroidRuntime( 7362):	at android.os.Handler.handleCallback(Handler.java:739)
E/AndroidRuntime( 7362):	at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime( 7362):	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 7362):	at android.os.HandlerThread.run(HandlerThread.java:61)
W/ActivityManager( 837): Force finishing activity com.cyanogenmod.trebuchet/com.android.launcher3.Launcher

after playing around with databases.. i just added this column.. now there was an error with next column.. "hidden".. i also added this column..

now launcher3 starts without crash

(added them to /data/data/com.cyanogenmod.trebuchet/databases/launcher.db workspaceScreens and favorites.. i don´t know if this is needed for both.. i just did)

also here... please you magic developers.. fix those things =)