Android13 GMS过程中的指令记录

本文介绍了如何使用ADB工具进行CTS(CompatibilityTestSuite)安装与权限设置,SMR(SoftwareMaintenanceRelease)测试的执行步骤,以及S+T项目中的VTS(VendorTestSuite)测试,包括GSI刷机命令和Android系统版本确认。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. CTSV安装

adb install -g CtsVerifier.apk

adb shell appops set com.android.cts.verifier android:read_device_identifiers allow

adb shell appops set com.android.cts.verifier MANAGE_EXTERNAL_STORAGE 0

adb shell settings put global hidden_api_policy 1

2. SMR测试内容

CTS: run cts -m CtsSecurityTestCases

GTS: run gts-smr

STS: run sts-dynamic-incremental

BTS

另外需要注意

ro.build.version.base_os的值必须是 approved new device或 MR 的 fingerprint, 不能是之前 SMR的 fingerprint1.adb shell getprop ro.build.version.base_os取得 base_os fingerprint
2.确认 base_os fingerprint之前有被 approved
3.确认 base_os fingerprint版本不是 SMR
ro.product.first_api_level 在软体中必须设置1.adb shell getprop ro.product.first_api_level
2.结果不为空

3. S+T项目VTS测试中,gsi刷机命令

打开OEM unlock

adb reboot bootloader

fastboot flashing unlock

fastboot flash vendor_boot vendor_boot-debug.img

fastboot reboot fastboot

fastboot flash system system.img

fastboot reboot

2025-03-21 11:42:09.766 1885-5459 ActivityTaskManager system_server I START u0 {act=com.google.android.gms.auth.NO_IMPL hwFlg=0x10 pkg=smartconnection.com.smartconnect cmp=smartconnection.com.smartconnect/com.google.android.gms.auth.api.signin.internal.SignInHubActivity (has extras)} from uid 10306 2025-03-21 11:42:09.766 1885-5459 ActivityTaskManager system_server I ActivityRecord info: ActivityInfo{80b4cc2 com.google.android.gms.auth.api.signin.internal.SignInHubActivity} 2025-03-21 11:42:09.767 1885-5459 ActivityTaskManager system_server D TaskLaunchParamsModifier:task=null activity=ActivityRecord{36f4610 u0 smartconnection.com.smartconnect/com.google.android.gms.auth.api.signin.internal.SignInHubActivity} mVisible=false mOccludesParent=false display-area-from-source=DefaultTaskDisplayArea@22530010 display-id=0 display-windowing-mode=1 suggested-display-area=DefaultTaskDisplayArea@22530010 2025-03-21 11:42:09.767 1885-5459 ActivityTaskManager system_server D TaskLaunchParamsModifier:task=Task{9cd2537 #704 type=standard A=10306:smartconnection.com.smartconnect U=0 visible=true visibleRequested=true mode=fullscreen bound=Rect(0, 0 - 1080, 2388) translucent=false sz=2 embedded=false} activity=ActivityRecord{36f4610 u0 smartconnection.com.smartconnect/com.google.android.gms.auth.api.signin.internal.SignInHubActivity} mVisible=false mOccludesParent=false t-1 mode=undefined boundsRect(0, 0 - 0, 0)} display-area-from-source=DefaultTaskDisplayArea@22530010 display-id=0 display-windowing-mode=1 suggested-display-area=DefaultTaskDisplayArea@22530010 inherit-from-source=fullscreen activity-options-fullscreen=Rect(0, 0 - 0, 0) non-freeform-display display-area=DefaultTaskDisplayArea@22530010 2025-03-21 11:42:09.768 1885-5459 WindowManager system_server I addWindowToken: displayid:0 binder:Token{e19e509 ActivityRecord{36f4
最新发布
03-22
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值