Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

AppVersionFetcher

public final class AppVersionFetcher
extends Object

java.lang.Object
com.android.tradefed.util.AppVersionFetcher


Kelas utilitas untuk mendapatkan string versi aplikasi dari perangkat.

Kirim perintah paket dumpsys ke perangkat, lalu parsing string hasil yang dikembalikan.

Ringkasan

Kelas bertingkat

enum AppVersionFetcher.AppVersionInfo

Jenis info versi aplikasi.

Konstruktor publik

AppVersionFetcher ()

Metode publik

static String fetch (ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info)

Ambil string versi aplikasi berdasarkan nama paket.

Konstruktor publik

AppVersionFetcher

public AppVersionFetcher ()

Metode publik

mengambil

public static String fetch (ITestDevice device, 
                String packageName, 
                AppVersionFetcher.AppVersionInfo info)

Ambil string versi aplikasi berdasarkan nama paket.

Parameter
device ITestDevice : ITestDevice, contoh perangkat

packageName String : String, nama paket

info AppVersionFetcher.AppVersionInfo : AppVersionInfo, jenis info versi aplikasi

Kembali
String string versi paket

Melempar
DeviceNotAvailableException