[Moto G Android Development] durrellb:
Anyone know why this is happening, and apparently only to me with this rom? The files it apparently can't open are in the folder it's trying to open them from, and they've all got 0644 permissions. It produces this error on every build, and I'm at a complete loss as to why :(

Found the relevant errors in the logcat file:

11-26 17:27:00.532 9540: 9540 D/QSEECOMAPI: ]
App is not loaded in QSEE
[ 11-26 17:27:00.532 9540: 9540 E/QSEECOMAPI: ]
Error::Cannot open the file /vendor/firmware/keymaster/keymaster.mdt
[ 11-26 17:27:00.532 9540: 9540 E/QSEECOMAPI: ]
Error::Loading image failed with ret = -1
[ 11-26 17:27:00.533 9540: 9540 E/QCOMKeyMaster ]
Loading keymaster app failed
[ 11-26 17:27:00.533 9540: 9540 E/keystore ]
could not open keymaster device in keystore (Operation not permitted)
[ 11-26 17:27:00.533 9540: 9540 E/keystore ]
keystore keymaster could not be initialized; exiting
[ 11-26 17:27:02.109 9493: 9493 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.android.systemui, PID: 9493
java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.zero()' on a null object reference
at android.os.Parcel.readException(Parcel.java:1546)
at android.os.Parcel.readException(Parcel.java:1493)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.requireSecureKeyguard(IDevicePolicyManager.java:4627)
at android.app.admin.DevicePolicyManager.requireSecureKeyguard(DevicePolicyManager.java:3491)
at com.android.internal.widget.LockPatternUtils.getActiveProfileLockMode(LockPatternUtils.java:1506)
at com.android.keyguard.KeyguardSecurityModel.getSecurityMode(KeyguardSecurityModel.java:96)
at com.android.keyguard.KeyguardSecurityContainer.showPrimarySecurityScreen(KeyguardSecurityContainer.java:293)
at com.android.keyguard.KeyguardViewBase.onFinishInflate(KeyguardViewBase.java:108)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:814)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:916)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:802)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at com.android.systemui.statusbar.phone.KeyguardBouncer.inflateView(KeyguardBouncer.java:166)
at com.android.systemui.statusbar.phone.KeyguardBouncer.ensureView(KeyguardBouncer.java:160)
at com.android.systemui.statusbar.phone.KeyguardBouncer.prepare(KeyguardBouncer.java:155)
at com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager.showBouncerOrKeyguard(StatusBarKeyguardViewManager.java:115)
at com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager.reset(StatusBarKeyguardViewManager.java:147)
at com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager.show(StatusBarKeyguardViewManager.java:99
at com.android.systemui.keyguard.KeyguardViewMediator.handleShow(KeyguardViewMediator.java:1272)
at com.android.systemui.keyguard.KeyguardViewMediator.access$1700(KeyguardViewMediator.java:116)
at com.android.systemui.keyguard.KeyguardViewMediator$4.handleMessage(KeyguardViewMediator.java:1103)
at android.os.Handler.dispatchMessage(Handler.java:102
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
[ 11-26 17:27:02.111 887: 1111 W/ActivityManager ]
Process com.android.systemui has crashed too many times: killing!