概述
Suite / Plan | VTS / vts |
Suite / Build | 9.0_R10 / 5774513 |
Host Info | Result/@start cw (Linux - 4.15.0-72-generic) |
Start time / End Time | Wed Dec 25 14:42:35 CST 2019 / Wed Dec 25 14:44:13 CST 2019
|
Module | Passed | Failed | Total Tests | Done |
---|---|---|---|---|
arm64-v8a VtsHalGatekeeperV1_0Target | 7 | 2 | 9 | true |
armeabi-v7a VtsHalGatekeeperV1_0Target | 7 | 2 | 9 | true |
arm64-v8a VtsHalGatekeeperV1_0Target | ||
Test | Result | Details |
---|---|---|
VtsHalGatekeeperV1_0Target#GatekeeperHidlTest.DeleteAllUsersTest(default)_64bit | fail | hardware/interfaces/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp:172 |
VtsHalGatekeeperV1_0Target#GatekeeperHidlTest.DeleteUserTest(default)_64bit | fail | hardware/interfaces/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp:172 |
armeabi-v7a VtsHalGatekeeperV1_0Target | ||
Test | Result | Details |
---|---|---|
VtsHalGatekeeperV1_0Target#GatekeeperHidlTest.DeleteAllUsersTest(default)_32bit | fail | hardware/interfaces/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp:172 |
VtsHalGatekeeperV1_0Target#GatekeeperHidlTest.DeleteUserTest(default)_32bit | fail | hardware/interfaces/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp:172 |
log 分析:死活解决不了啊。。好难啊。。为什么呢? 还是美格的兄弟有经验,感谢刚刚~~
<Failure message="hardware/interfaces/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp:172">
<StackTrace>hardware/interfaces/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp:172
Expected equality of these values:
GatekeeperStatusCode::ERROR_GENERAL_FAILURE
Which is: 4-byte object <FF-FF FF-FF>
rsp.code
Which is: 4-byte object <00-00 00-00>
hardware/interfaces/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp:173
Expected equality of these values:
0U
Which is: 0
rsp.data.size()
Which is: 69
hardware/interfaces/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp:362
Expected equality of these values:
GatekeeperStatusCode::ERROR_GENERAL_FAILURE
Which is: 4-byte object <FF-FF FF-FF>
verifyRsp.code
Which is: 4-byte object <00-00 00-00></StackTrace>
</Failure>
最后解决办法: 就是key 没有用正确的办法写入!
IMEI 和key 要对应,要用 qseecom_sample_client -v sampleapp 14 1的这个方法写入!
D:>adb root
每个SN号刷入对应的keybox文件
D:>adb push D: _CW_P80keyboxattest.keybox data
D: _CW_P80keyboxattest.keybox: 1 file pushed. 0.3 MB/s (13416 bytes in 0.049s)
D:>adb shell
P80:/ # setenforce 0
P80:/ # qseecom_sample_client -v sampleapp 14 1
Note: Command line arguments do not belong to legacy test
-------------------------------------------------------
WARNING!!! You are about to provision the RPMB key.
This is a ONE time operation and CANNOT be reversed.
-------------------------------------------------------
0 -> Provision Production key
1 -> Provision Test key
2 -> Check RPMB key provision status
-------------------------------------------------------
Select an option to proceed: 1
RPMB key provisioning completed
SN对应的号需要替换
P80:/ # LD_LIBRARY_PATH=/vendor/lib64/hw KmInstallKeybox data/862576043000112.xml 862576043000112 false
如果成功 有下面的 文件
P80:/mnt/vendor/persist/data/keymaster64 # ls
keymaster64 y93fUIxIk+fRKZCdBG-LYpuk2QLhU3SVZhHnOrMYW2 zbLJ5+aDXgnjXGETF6tPu-ueAuX-YY5LRSObN3BGX0
keymaster64.bak y93fUIxIk+fRKZCdBG-LYpuk2QLhU3SVZhHnOrMYW2.bak zbLJ5+aDXgnjXGETF6tPu-ueAuX-YY5LRSObN3BGX0.bak
P80:/ # reboot
----------------------------------------------------------------------------------------------------------------------------------------------
attest.keybox是 以下格式的内容,截取每个不同的devicesID 里面的内容
<?xml version="1.0"?>
<AndroidAttestation>
<NumberOfKeyboxes>100000</NumberOfKeyboxes>
<Keybox DeviceID="HP800A1909000000"><Key algorithm="ecdsa"><PrivateKey format="pem">
-----BEGIN EC PRIVATE KEY-----
.......
</AndroidAttestation>
重写key的步骤
adb root
adb shell
qseecom_sample_client v smplap64 15 1 choose y
恢复出厂设置
adb root
adb push attest.keybox data
adb shell
qseecom_sample_client -v sampleapp 14 1 choose 1
LD_LIBRARY_PATH=/vendor/lib64/hw KmInstallKeybox data/attest.keybox IMIE false
最后
以上就是粗心飞鸟为你收集整理的android 9.0 中 VTS 中关于 key的测试fail项 VtsHalGatekeeperV1_0Target的全部内容,希望文章能够帮你解决android 9.0 中 VTS 中关于 key的测试fail项 VtsHalGatekeeperV1_0Target所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复