问题描述
最近,我从使用keypairgeneratorspec迁移了我的应用程序(日期加密),以将keyGenParameterSpec Api用于设备API级别> = 23 ...
Recently I migrated my application (date encryption) from using keypairgeneratorspec to use keyGenParameterSpec Api for devices API level >= 23 ...
之后,我的应用程序在除华为p8和p8 lite之外的所有设备上均可正常运行当用户启动我的应用程序时,手机将重新启动...我搞不清楚是什么原因.我无法访问此华为模型进行调试,因此我尝试使用firebase testlab测试我的应用程序……最终我无法弄清楚这些模型上发生了什么.
after that my app works fine on all devices except huawei p8 and p8 litewhen 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.
请帮助...
推荐答案
我找到了答案...问题是在华为设备中实现密钥库.特别是在P系列e.x(P8,P8 lite,P9 ....)以及华为的其他几种型号中在更新的模型中已修复.要解决此问题,您必须为keyGenParameterSpec构建器设置开始日期和结束日期.
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 huaweiwhich is fixed in newer models .to fix this issue you have to set start date and end date for keyGenParameterSpec builder.
这篇关于华为p8或p8 Lite密钥库加密有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!