我是靠谱客的博主 粗心飞鸟,最近开发中收集的这篇文章主要介绍android 9.0 中 VTS 中关于 key的测试fail项 VtsHalGatekeeperV1_0Target,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

Suite / PlanVTS / vts
Suite / Build9.0_R10 / 5774513
Host InfoResult/@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

 

 

ModulePassedFailedTotal TestsDone
arm64-v8a VtsHalGatekeeperV1_0Target729true
armeabi-v7a VtsHalGatekeeperV1_0Target729true

 

arm64-v8a VtsHalGatekeeperV1_0Target
TestResultDetails
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
TestResultDetails
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 &lt;FF-FF FF-FF&gt;
  rsp.code
    Which is: 4-byte object &lt;00-00 00-00&gt;
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 &lt;FF-FF FF-FF&gt;
  verifyRsp.code
    Which is: 4-byte object &lt;00-00 00-00&gt;</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所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(52)

评论列表共有 0 条评论

立即
投稿
返回
顶部