Required Fields
The minimum required parameters to set up a configuration file from the app are:
- appPackage
- appActivity
- udid
- platformVersion
The parameters can be obtained depending on the source of the app (self-app, downloaded from the app store)
Refer to Creating a Mobile Configuration File for information on how to build a file configuration.
Getting parameters from ADB
Parameters can be found using adb:
-
Navigate to the adb path. See Android Studio Setup for information on the adb location.
-
Install the app in the emulator or physical device (the emulator can be downloaded from the app store or just drag and drop apk to the emulator).
-
Open the app in the Emulator/Physical Device
-
In the console/Terminal type:
adb shell pm list packages
to obtain the package name “appPackage“ ( search for it in the list with a name similar to the app, for instance,com.mobile.myapp
). -
For main activity “appActivity“ type:
adb shell dumpsys package com.mobile.myapp
Example result: adb shell dumpsys package com.overdrive.mobile.android.libby
Activity Resolver Table:
Schemes:
dewey-oauth:
3969bfc com.overdrive.mobile.android.libby/com.overdrive.mobile.android.nautilus.ui.Activity_Main filter f2f78a6
Action: "android.intent.action.VIEW"
Category: "android.intent.category.DEFAULT"
Category: "android.intent.category.BROWSABLE" ……extractNativeLibs=false
primaryCpuAbi=null
secondaryCpuAbi=null
cpuAbiOverride=null
versionCode=520000 minSdk=21 targetSdk=33
minExtensionVersions=[]
versionName=5.2.0
usesNonSdkApi=false
splits=[base]
apkSigningVersion=2……
UDID can be found just by typing: adb devices
Example: adb devices
List of devices attached
emulator-5554 device