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

AppVersionFetcher

public final class AppVersionFetcher
extends Object

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


Kelas utilitas untuk mendapatkan string versi aplikasi dari perangkat.

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

Ringkasan

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, turunan perangkat

packageName String : String, nama paket

info AppVersionFetcher.AppVersionInfo : AppVersionInfo, tipe info versi aplikasi

Pengembalian
String string versi paket

Melempar
DeviceNotAvailableException