Hi,

I am writing a secure application that makes heavy use of hardware-backed 
android keystore. Unsurprisingly, performance is of concern and I'd like to 
optimize the application where possible. The issue I am facing is whenever 
I am interfacing with android keystore, I get A LOT of log messages in 
logcat. Such as:


*08-08 15:48:13.640  3007  3007 W keymaster_mdfpp: entered 
get_key_characteristics function.*
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_qualcomm.c:221) trustlet returned for command 9, err 0*
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:112) *******hw_enforced**********
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:36) *********print_params************
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:37) params->length = 6 *
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:43)  tc_KM_TAG_KEY_SIZE params->params[0].tag = 
0x30000003 *
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:60) tc_KM_UINT 256 0x00000100*
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:43)  tc_KM_TAG_ALGORITHM params->params[1].tag = 
0x10000002 *
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:48) tc_KM_ENUM 3 0x00000003*
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:43)  tc_KM_TAG_PURPOSE params->params[2].tag = 
0x20000001 *
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:52) tc_KM_ENUM_REP 2 0x00000002*
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:43)  tc_KM_TAG_DIGEST params->params[3].tag = 
0x20000005 *
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:52) tc_KM_ENUM_REP 4 0x00000004*
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:43)  tc_KM_TAG_ORIGIN params->params[4].tag = 
0x100002be *
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:48) tc_KM_ENUM 0 0x00000000*
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:43)  tc_KM_TAG_CREATION_DATETIME 
params->params[5].tag = 0x600002bd *
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:87) tc_KM_DATE 0*
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:107) **************************************
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:114) *******sw_enforced**********
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:36) *********print_params************
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:37) params->length = 1 *
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:43)  tc_KM_TAG_NO_AUTH_REQUIRED 
params->params[0].tag = 0x700001f7 *
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:56) tc_KM_BOOL 1 0x00000001*
*08-08 15:48:13.640  3007  3007 D keymaster_tee: [DEBUG]: 
(nwd_keymaster_packing.c:107) **************************************


Is there a way to disable this logging by android keystore? I can't find an 
answer anywhere and this IO is unnecessary IMO.


-- 
*This message (including any attachments) may contain confidential, 
proprietary, privileged and/or private information. The information is 
intended to be for the use of the individual or entity designated above. If 
you are not the intended recipient of this message, please notify the 
sender immediately, and delete the message and any attachments. Any 
disclosure, reproduction, distribution or other use of this message or any 
attachments by an individual or entity other than the intended recipient is 
prohibited.*

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/9490e91a-c8ff-407f-b137-d50e0cd81588%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to