Skip to content

Commit 183f3f1

Browse files
vincent0425copybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 739557324
1 parent 482d5cd commit 183f3f1

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

src/java/com/google/devtools/deviceinfra/ext/devicemanagement/device/platform/android/realdevice/AndroidRealDeviceDelegate.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,14 @@ private void setUpFastbootModeDevice() throws MobileHarnessException, Interrupte
329329
if (!Strings.isNullOrEmpty(sbdpArUpdate)) {
330330
device.updateDimension(Dimension.Name.SBDP_AR_UPDATE, Ascii.toLowerCase(sbdpArUpdate));
331331
}
332+
String arNs = fastboot.getVar(deviceId, FastbootProperty.AP_AR_NS);
333+
if (!Strings.isNullOrEmpty(arNs)) {
334+
device.updateDimension(Dimension.Name.AP_AR_NS, Ascii.toLowerCase(arNs));
335+
}
336+
String arS = fastboot.getVar(deviceId, FastbootProperty.AP_AR_S);
337+
if (!Strings.isNullOrEmpty(arS)) {
338+
device.updateDimension(Dimension.Name.AP_AR_S, Ascii.toLowerCase(arS));
339+
}
332340

333341
try {
334342
String serialno = fastboot.getVar(deviceId, FastbootProperty.SERIALNO);

src/java/com/google/devtools/deviceinfra/platform/android/sdk/fastboot/Enums.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public enum Partition {
4848

4949
/** Android device properties in fastboot mode. */
5050
public enum FastbootProperty {
51+
AP_AR_NS,
52+
AP_AR_S,
5153
CURRENT_SLOT,
5254
DEVKEY_ALLOW,
5355
HARDWARE,

src/java/com/google/devtools/mobileharness/platform/android/sdktool/adb/AndroidProperty.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public enum AndroidProperty {
6767
MEMORY_CLASS("dalvik.vm.heapgrowthlimit", "dalvik.vm.heapsize"),
6868
MODEL("ro.product.model"),
6969
NATIVE_BRIDGE("ro.dalvik.vm.native.bridge"),
70+
NONSEC_AR("ro.boot.hw.soc.nonsec-ar"),
7071
PREVIEW_SDK_VERSION("ro.build.version.preview_sdk"),
7172
@DoNotAddToDimension
7273
PRODUCT("ro.build.product"),
@@ -78,6 +79,7 @@ public enum AndroidProperty {
7879
SCREEN_DENSITY("qemu.sf.lcd_density", "ro.sf.lcd_density"),
7980
SDK_VERSION("ro.build.version.sdk"),
8081
SECURE_BOOT("ro.boot.secure_boot"),
82+
SEC_AR("ro.boot.hw.soc.sec-ar"),
8183
@KeepDimensionValueCase
8284
SERIAL("ro.serialno"),
8385
SIGN("ro.build.tags"),

src/java/com/google/wireless/qa/mobileharness/shared/constant/Dimension.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ public enum Name {
186186
ABI,
187187
/** Customized dimension: Android Google Search App version */
188188
AGSA_VERSION,
189+
/** The Pixel bootloader Non-Secure AP Anti-Rollback counter */
190+
AP_AR_NS,
191+
/** The Pixel bootloader Secure AP Anti-Rollback counter */
192+
AP_AR_S,
189193
/** The brand of the device. */
190194
BRAND,
191195
/** The build name of the device. */
@@ -244,6 +248,8 @@ public enum Name {
244248
MEMORY_CLASS_IN_MB,
245249
/** Moreto lab version for Moreto remote control protocol backward compatibility. */
246250
MORETO_LAB_VERSION,
251+
/** The Pixel bootloader Non-Secure AP Anti-Rollback counter. */
252+
NONSEC_AR,
247253
/** Number of CPUs on the android device */
248254
NUM_CPUS,
249255
/** The oem unlock statue of the device. Only used in fastboot mode. */
@@ -259,6 +265,8 @@ public enum Name {
259265
SCREEN_DENSITY,
260266
/** The screen size. */
261267
SCREEN_SIZE,
268+
/** The Pixel bootloader Secure AP Anti-Rollback counter. */
269+
SEC_AR,
262270
/**
263271
* Serial no of the device. For normal Android device, SERIAL = ID. For Arc++, SERIAL is the
264272
* value of Build.SERIAL while ID is the ip of the device

0 commit comments

Comments
 (0)