Skip to content

Commit b98268c

Browse files
authored
feat: add mobile:listApps (#982)
1 parent 10f09ec commit b98268c

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,12 +876,27 @@ Verify whether an application is installed on the device under test.
876876
Name | Type | Required | Description | Example
877877
--- | --- | --- | --- | ---
878878
appId | string | yes | The identifier of the application package to be checked | `my.app.id`
879-
user | number or string | no | The user ID for which the package is installed.. The `current` user is used by default | 1006
879+
user | number or string | no | The user ID for which the package is installed. The `current` user is used by default | 1006
880880

881881
#### Returned Result
882882

883883
True or false
884884

885+
### mobile: listApps
886+
887+
Lists all installed packages on the Android device, optionally filtered by user.
888+
An exception will be thrown on devices running Android API below level 26.
889+
890+
#### Arguments
891+
892+
Name | Type | Required | Description | Example
893+
--- | --- | --- | --- | ---
894+
user | number or string | no | The user ID for which the package is installed. The `current` user is used by default | 1006
895+
896+
#### Returned Result
897+
898+
List of installed package names.
899+
885900
### mobile: queryAppState
886901

887902
Queries the current state of the app.
@@ -1808,6 +1823,7 @@ action | string | yes | The action to execute on the NFC adapter. The following
18081823

18091824
UiAutomator2 driver supports Appium endpoints for applications management:
18101825
- Check if app is installed ([mobile: isAppInstalled](#mobile-isappinstalled))
1826+
- Lists all installed packages ([mobile: listApps](#mobile-listapps))
18111827
- Install/upgrade app ([mobile: installApp](#mobile-installapp))
18121828
- Activate app ([mobile: activateApp](#mobile-activateapp))
18131829
- Since UIAutomator2 driver v2.2.0, the server calls `am start`/`am start-activity` to start the application on devices with API level 24+. [monkey](https://developer.android.com/studio/test/other-testing-tools/monkey) tool is called on devices below API level 24.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
"dependencies": {
6060
"appium-adb": "^14.0.0",
61-
"appium-android-driver": "^12.6.4",
61+
"appium-android-driver": "^12.7.0",
6262
"appium-uiautomator2-server": "^9.11.1",
6363
"asyncbox": "^6.0.1",
6464
"axios": "^1.12.2",

0 commit comments

Comments
 (0)