Problem with KeystoreService
Hi. I'm new to Android, but have some Linux experience. Now I am running cm-12.1-20161016-NIGHTLY-trltexx.zip on my SM-N910F. The ROM works almost fine, except on thing: the keystore service. Below I try to provide some debug information, could you please take a glance? Also, could you please explain to me / point to proper documentation, what hardware is used by the Keystore service?
Here is the snippets from adb logcat:
Code:
D/QSEECOMAPI: ( 2721): QSEECom_get_handle sb_length = 0x2000
D/QSEECOMAPI: ( 2721): App is not loaded in QSEE
E/QSEECOMAPI: ( 2721): Error::Cannot open the file /vendor/firmware/keymaster/keymaster.mdt
E/QSEECOMAPI: ( 2721): Error::Loading image failed with ret = -1
D/QSEECOMAPI: ( 2721): QSEECom_get_handle sb_length = 0x2000
D/QSEECOMAPI: ( 2721): App is not loaded in QSEE
E/QSEECOMAPI: ( 2721): Error::Cannot open the file /firmware/image/keymaste.mdt
E/QSEECOMAPI: ( 2721): Error::Loading image failed with ret = -1
E/QCOMKeyMaster( 2721): Loading keymaster app failed
E/keystore( 2721): could not open keymaster device in keystore (Operation not permitted)
E/keystore( 2721): keystore keymaster could not be initialized; exiting
As you can see, the kernel tries to find /vaendor/firmware/keymaster/keymaster.mdt which is not there. I've checked using adb, the file is really missing. I cant believe that Cyanogen authors just forgot to include the proper firmware. Probably, the problem is unique for my device. What can it be? Does CM ROM includes proper kernel? Or does it use the kernel from my first (stock) firmware instead?
Note, that I effectively donwgraded the Android version by flashing CM-12. The stock firmware was based on 6.x, while CM is 5.x
Thanks in advance
**Solution**
Code:
mount -o remount,rw /firmware
cd /firmware/image
cp skeymast.mdt keymaste.mdt
cp skeymast.b00 keymaste.b00
cp skeymast.b01 keymaste.b01
cp skeymast.b02 keymaste.b02
cp skeymast.b03 keymaste.b03
Thanks to this post
https://xdaforums.com/note-4-tmobile/orig-development/rom-dirty-unicorns-10-5-t3438728/page11