テストモード
ここで設定した値は、コンテンツプロバイダーを介して他のアプリに返されます。自動テスト中に分析を無効にするために使用できます。 Android 11アプリは、しばらくすると、または再起動するとこのコンテンツプロバイダーの表示が失われる可能性があるため、テストを実行する直前にこのアプリを起動して、権限が新たに付与されていることを確認してください。サンプル統合
content://com.sengami.appium_test_helper_android.provider/
乾杯
以下のコマンドをADBで使用すると、「This \ is \ a \ sample \ text」というテキストのトーストが表示されます。
adb shell am Broadcast -a com.sengami.appium_test_helper_android.toast--esメッセージ「これはサンプルテキストです」-ncom.sengami.appium_test_helper_android / .ToastBroadcastReceiver
振動
以下のコマンドをADBで使用すると、デバイスが2秒間振動します。
adb shell am Broadcast -a com.sengami.appium_test_helper_android.vibration --el duration 2000 -n com.sengami.appium_test_helper_android / .VibrationBroadcastReceiver