技术标签: android
目录
1、打开stay wake(保持屏幕常亮)、OEM unlocking、USB debugging(设置-开发者选项)
手机进入开发者模式
2、连接网络
3、adb devices 查看设备是否连接上
4、插入有数据网络的SIM卡 (如有香港网络的卡插入一张)
测试项目 |
系统镜像 |
固件类型 |
设备状态 |
备注 |
CTS |
OEM’s system.img |
User |
Locked |
|
GTS |
OEM’s system.img |
User |
Locked |
|
GSI |
GSI |
User |
Locked |
|
VTS |
GSI |
User |
Unlocked |
带root权限 |
STS |
OEM’s system.img |
Userdebug |
Unlocked |
带root权限 |
先 ./cts-tradefed
run cts 测试全部
如果测了大模块,包含多测试项,有多项fail时,可以执行l r指令,查看当前最新的session_id,执行指令复测:run retry --retry <session_id> ,可以复测session_id测试时fail的项目以节省时间。
run retry --retry <session_id> 重试以前会话中失败或未执行的所有测试
run --retry 使用列表结果获取会话id
多台设备测试:run cts --shard-count 3 --serial 0123456 --serial 123456 --serial 123
更多命令参考:
Android10 GMS测试命令_gms 安卓10-程序员宅基地
以下面case为例
run cts-on-gsi -m CtsKeystorePerformanceTestCases(也可以用 armeabi-v7aCtsKeystorePerformanceTestCases 需要把中间的空格去掉) -t android.keystore.cts.performance.AttestationPerformanceTest#testEcKeyAttestation
如果test case 太多,可以不加后面的 -t 部分。
Google Mobile Services Test Suite 意为谷歌移动服务测试套件,谷歌移动服务提供了Search、 Search by Voice、Gmail、Contact Sync、 Calendar Sync、Talk、 Maps、 Steet View、 YouTube、 Android Market (Play store)等服务,当用户使用谷歌时,谷歌可以把各种广告嵌入到谷歌的服务中。
先 ./gts-tradefed
run gts 测试全部
Vendor Test Suite 意为供应商测试套件。以前Android的系统升级是很麻烦的,为了能更快的将设备升级到新的Android版本,Android O 开始新引入了 Project Treble,Project Treble 适用于搭载 Android O 及后续版本的所有新设备。Android 7.x 及更早版本中没有正式的Vendor层接口,因此每次更新系统都相对耗时和困难。Android O 之后,Treble 提供了稳定的Vendor层接口,供设备制造商访问 Android 代码中特定于硬件的部分,这样就可以只更新框架层,减少升级系统带来的成本和困难。为了确保Vendor层实现的前向兼容性,新的Vendor层接口会由供应商测试套件 (VTS) 进行验证,该套件类似于兼容性测试套件 (CTS)。
烧录步骤:
VTS :
1. Flash MTK user full load
2. Boot to home screen
3. Settings -> System -> Developer options -> OEM unlocking
4. Reboot phone into fastboot mode by "adb reboot bootloader" or "press volume up key + power key"
5. Connect phone to PC and then type following commands
6. fastboot flashing unlock (press volumn up key)
7. fastboot flash --disable-verity vbmeta vbmeta.img (vbmeta.img is MTK's vbmeta.img. Please get it from MTK load.)
Project which kernel is kernel-4.14 or kernel-4.19:
8. fastboot flash boot boot-debug.img (Please get boot-debug.img from MTK load.)
Project which kernel is kernel-5.10
8. fastboot flash vendor_boot vendor_boot-debug.img (Please get vendor_boot-debug.img from MTK load.)
9. fastboot reboot fastboot
10. fastboot flash system system.img (system.img is GSI.)
11. fastboot reboot
先 ./vts-tradefed
run vts 测试全部
Android Security Test Suite 是谷歌关于android安全补丁安装情况的一个测试套件,STS和security patch相关的,是GMS测试新增加的一项安全测试套件。STS是201808才开始测试的。Security patch日期在3个月内是GTS的一个case,如果不通过无法获得google认证。
先 ./sts-tradefed
run sts-dynamic-incremental
或者
run sts-dynamic-full
CTS-ON-GSI,GenericSystemImage,即Reference AOSP system image 意为通用系统映像上的兼容性测试套件,这个文件包也是签约获取授权后才能获取,Google也会定期更新GSI包。测试工具在Android R 之后用 CTS Tool
该模块是在CTS下跑,跑之前需要刷google的system.img
run cts-on-gsi 全部测试
run cts-on-gsi --shard-count 3 -s GSI00000001 -s GSI00000002 -s GSI00000003
重测命令:run retry -r 1 --shard-count 3 -s GSI00000001 -s GSI00000002 -s GSI00000003 STS测试(单台测试预计7小时)
GSI烧录如下图
1. Flash MTK user full load
2. Boot to home screen
3. Settings -> System -> Developer options -> OEM unlocking
4. Reboot phone into fastboot mode by "adb reboot bootloader" or "press volume up key + power key"
5. Connect phone to PC and then type following commands
6. fastboot flashing unlock (press volumn up key)
7. fastboot reboot fastboot
8. fastboot flash system system.img (system.img is GSI.)
9. fastboot reboot
机器过认证时需要让代理机构向google申请白名单和key,申请白名单前需要提供fingerprint
./gts-tradefed
run gts -m GtsEdiHostTestCases
注意:最后一轮时,fingerprint 不能变化。
文章浏览阅读1.1k次,点赞3次,收藏33次。一、需求分析1.1 数据流图1.2 数据字典学生信息表(students)学生信息包括真实姓名,性别学号,电话号码,专业以及班级字段名 字段描述 字段类型 sname 学生姓名 varchar(2000) sno 学号 varchar(2000) sex 性别 varchar(10...
文章浏览阅读5.9w次,点赞2次,收藏2次。错误日志See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************System.IO.FileNotFoundException: Co_system.io.filenotfoundexception: custom certificate bundle not found at path
文章浏览阅读199次。本程序摘自网上,本人留着备用,具体哪个网址忘记了。 Java代码 import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util_final static long[] lunarinfo = new long[]
文章浏览阅读3k次。1.1操作系统的目标和作用1.1.1 操作系统的目标方便性使用操作系统来简化用户的操作,有了操作系统就可以将用户使用高级语言1编写的程序翻译成机器语言2,或者直接通过OS提供的各种命令3操纵计算机系统有效性有效性包含两层含义,一种是提高系统资源利用率,一种是提高系统吞吐量。#mermaid-svg-lKRMwmnIQZUZmPfD {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#_简述操作系统的目标和作用。
文章浏览阅读467次。from __future__ import absolute_importfrom __future__ import divisionfrom __future__ import print_functionimport sysimport mathimport numpy as npimport torchimport torch.nn as nnimport torch.optim as optimfrom torch.autograd import Variableimpor_conversion not implemented for op_type=filteredlrelu.
文章浏览阅读333次。用到命令 1. 克隆代码 git clone https://github.com/mrxiaoyu100001/Android-.git 2. git add . // 添加本地缓存区 3. git commit -m ‘备注’ //推送到本地库 4. git push origin //推送到远程库 5. git log -p -2 // 查看最近两次提交版本的日...
文章浏览阅读947次。Grad Normhttps://mp.weixin.qq.com/s/RIxxtMqdb6yJKLorg_WjrAhttps://www.cnblogs.com/douzujun/p/14633524.html多任务学习的多个权重改如何调节梯度修剪
文章浏览阅读392次,点赞3次,收藏7次。参考:S50非接触式IC卡性能简介(M1)(常用的感应芯片_IC卡快印-上海佐衡信息科技有限公司-M1卡定制IC卡印刷收银机销售安装维修售后服务-佐衡云会员管理系统--上海收银机,餐饮收银机,零食烘焙生鲜收银一体秤,上海收银一体机,会员收银机,IC会员卡制作,票据打印机耗材
文章浏览阅读473次。liandong.php mysql_connect("localhost","root","123");mysql_select_db("china");mysql_query("set names utf8");$val=$_POST['val'];$table=$_POST['table'];if($table=="t_province"){ $sql_ajax三级联动
文章浏览阅读199次。TFA :收集日志的工具ORAchk/EXAchk : 检查系统的工具AHF :Oracle在2019年10月18日发布自治健康框架Autonomous Health Framework (AHF) 19.3,将ORAchk,EXAchk,TFA三种诊断工具合并入AHF,作为一个单一的安装软件被称作AHF。AHF可以使用root或者非root用户安装,而且所有的命令行指令和之前版本..._ahf-linux_v22.2.3.zip下载
文章浏览阅读15次。全文下载链接:http://tecdat.cn/?p=23681线性混合效应模型与我们已经知道的线性模型有什么不同(点击文末“阅读原文”获取完整代码数据)?相关视频线性混合模型(有时被称为 "多层次模型 "或 "层次模型",取决于上下文)是一种回归模型,它同时考虑了(1)被感兴趣的自变量(如lm())所解释的变化--固定效应,以及(2)不被感兴趣的自变量解释的变化--随机效应。由于该模型包括固定效...
文章浏览阅读1.5k次,点赞2次,收藏5次。最近的学习越来越虚浮,对于框架了解,仅存在于怎么用,但是至于为什么会这样,却一无所知.趁现在有点空闲的时间,将cas分析了一遍.cas的诞生是为了解决单点登录问题,本质还是为了解决session的共享问题.假设我的spring security不整合cas,那么怎么解决单点登录,也许你会想到许多类似cas的框架,但是若是没有这些框架,你要怎么实现:1.将session复制到每一个服务器?那么..._cas tgc