앱버전 가져오기 프로그램
public final class AppVersionFetcher
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.AppVersionFetcher |
기기에서 앱 버전 문자열을 가져오는 유틸리티 클래스입니다.
dumpsys 패키지 명령을 장치로 보낸 다음 반환 결과 문자열을 구문 분석합니다.
요약
중첩 클래스 | |
---|---|
enum | AppVersionFetcher.AppVersionInfo 앱 버전 정보 유형. |
공개 생성자 | |
---|---|
AppVersionFetcher () |
공개 메소드 | |
---|---|
static String | fetch (ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info) 패키지 이름을 기준으로 애플리케이션 버전 문자열을 가져옵니다. |
공개 생성자
앱버전 가져오기 프로그램
public AppVersionFetcher ()
공개 메소드
술책
public static String fetch (ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info)
패키지 이름을 기준으로 애플리케이션 버전 문자열을 가져옵니다.
매개변수 | |
---|---|
device | ITestDevice : ITestDevice, 장치 인스턴스 |
packageName | String : 문자열, 패키지 이름 |
info | AppVersionFetcher.AppVersionInfo : AppVersionInfo, 앱 버전 정보 유형 |
보고 | |
---|---|
String | 패키지의 버전 문자열 |
던지기 | |
---|---|
DeviceNotAvailableException |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2023-12-01(UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]