Huawei p8 or p8 Lite has problem with Keystore Encryption

断了今生、忘了曾经 提交于 2021-01-28 08:59:43

问题


Recently I migrated my application (date encryption) from using keypairgeneratorspec to use keyGenParameterSpec Api for devices API level >= 23 ...

after that my app works fine on all devices except huawei p8 and p8 lite when user launches my app makes his phone restarts ... I confused whats the the reason. I do not have access to this huawei models for debugging and I tried to test my app with firebase testlab ... finally I can not figure out what happened on these models.

please help...


回答1:


I found the answer ... the problem is keystore implementatio in huawei devices. specially in P series e.x (P8 , P8 lite , P9 ....) and maybe few other models of huawei which is fixed in newer models . to fix this issue you have to set start date and end date for keyGenParameterSpec builder.



来源:https://stackoverflow.com/questions/63791696/huawei-p8-or-p8-lite-has-problem-with-keystore-encryption

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!