AppVersionFetcher
public final class AppVersionFetcher
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.AppVersionFetcher |
คลาสยูทิลิตี้เพื่อรับสตริงเวอร์ชันแอปจากอุปกรณ์
ส่งคำสั่งแพ็คเกจ dumpsys ไปยังอุปกรณ์ จากนั้นแยกวิเคราะห์สตริงผลลัพธ์ที่ส่งคืน
สรุป
ผู้สร้างสาธารณะ | |
---|---|
AppVersionFetcher () |
วิธีการสาธารณะ | |
---|---|
static String | fetch ( ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info) ดึงสตริงเวอร์ชันของแอปพลิเคชันตามชื่อแพ็คเกจ |
ผู้สร้างสาธารณะ
AppVersionFetcher
public AppVersionFetcher ()
วิธีการสาธารณะ
ดึง
public static String fetch (ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info)
ดึงสตริงเวอร์ชันของแอปพลิเคชันตามชื่อแพ็คเกจ
พารามิเตอร์ | |
---|---|
device | ITestDevice : ITestDevice อินสแตนซ์ของอุปกรณ์ |
packageName | String : สตริงชื่อแพ็คเกจ |
info | AppVersionFetcher.AppVersionInfo : AppVersionInfo ประเภทข้อมูลเวอร์ชันแอป |
ส่งคืน | |
---|---|
String | สตริงเวอร์ชันของแพ็คเกจ |
พ่น | |
---|---|
DeviceNotAvailableException |