コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
AppVersionFetcher
public
final
class
AppVersionFetcher
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.AppVersionFetcher
|
デバイスからアプリのバージョン文字列を取得するためのユーティリティ クラス。
dumpsys package コマンドをデバイスに送信し、返された結果の文字列を解析します。
概要
パブリック コンストラクタ
AppVersionFetcher
public AppVersionFetcher ()
パブリック メソッド
取得
public static String fetch (ITestDevice device,
String packageName,
AppVersionFetcher.AppVersionInfo info)
パッケージ名に基づいてアプリケーションのバージョン文字列を取得します。
パラメータ |
device |
ITestDevice : ITestDevice、デバイス インスタンス |
packageName |
String : 文字列、パッケージ名 |
info |
AppVersionFetcher.AppVersionInfo : AppVersionInfo、アプリのバージョン情報タイプ |
戻り値 |
String |
パッケージのバージョン文字列 |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2024-08-22 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":"その他"
}]
{"lastModified": "\u6700\u7d42\u66f4\u65b0\u65e5 2024-08-22 UTC\u3002"}