appium-adb 14.0.4 → 14.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/lib/tools/app-commands.d.ts +125 -150
- package/build/lib/tools/app-commands.d.ts.map +1 -1
- package/build/lib/tools/app-commands.js +194 -234
- package/build/lib/tools/app-commands.js.map +1 -1
- package/lib/tools/{app-commands.js → app-commands.ts} +279 -294
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [14.0.5](https://github.com/appium/appium-adb/compare/v14.0.4...v14.0.5) (2025-12-04)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* Migrate app commands to typescript ([#843](https://github.com/appium/appium-adb/issues/843)) ([8993e7c](https://github.com/appium/appium-adb/commit/8993e7c5fcbabda3796b8246ecac39046bf6fe3f))
|
|
6
|
+
|
|
1
7
|
## [14.0.4](https://github.com/appium/appium-adb/compare/v14.0.3...v14.0.4) (2025-12-04)
|
|
2
8
|
|
|
3
9
|
### Miscellaneous Chores
|
|
@@ -1,257 +1,237 @@
|
|
|
1
|
+
import type { ADB } from '../adb.js';
|
|
2
|
+
import type { StringRecord, InstallState, ResolveActivityOptions, IsAppInstalledOptions, StartUriOptions, StartAppOptions, AppInfo, PackageActivityInfo } from './types.js';
|
|
3
|
+
export declare const APP_INSTALL_STATE: StringRecord<InstallState>;
|
|
1
4
|
/**
|
|
2
5
|
* Verify whether the given argument is a
|
|
3
6
|
* valid class name.
|
|
4
7
|
*
|
|
5
|
-
* @
|
|
6
|
-
* @
|
|
7
|
-
* @return {boolean} The result of Regexp.exec operation
|
|
8
|
+
* @param classString - The actual class name to be verified.
|
|
9
|
+
* @returns The result of Regexp.exec operation
|
|
8
10
|
* or _null_ if no matches are found.
|
|
9
11
|
*/
|
|
10
|
-
export function isValidClass(this:
|
|
12
|
+
export declare function isValidClass(this: ADB, classString: string): boolean;
|
|
11
13
|
/**
|
|
12
14
|
* Fetches the fully qualified name of the launchable activity for the
|
|
13
15
|
* given package. It is expected the package is already installed on
|
|
14
16
|
* the device under test.
|
|
15
17
|
*
|
|
16
|
-
* @
|
|
17
|
-
* @param
|
|
18
|
-
* @
|
|
19
|
-
* @return {Promise<string>} Fully qualified name of the launchable activity
|
|
18
|
+
* @param pkg - The target package identifier
|
|
19
|
+
* @param opts - Options for resolving the activity
|
|
20
|
+
* @returns Fully qualified name of the launchable activity
|
|
20
21
|
* @throws {Error} If there was an error while resolving the activity name
|
|
21
22
|
*/
|
|
22
|
-
export function resolveLaunchableActivity(this:
|
|
23
|
+
export declare function resolveLaunchableActivity(this: ADB, pkg: string, opts?: ResolveActivityOptions): Promise<string>;
|
|
23
24
|
/**
|
|
24
25
|
* Forcefully stops the app and puts it in the "stopped" state.
|
|
25
|
-
* Android treats a
|
|
26
|
+
* Android treats a "stopped" app as if it was never launched since boot:
|
|
26
27
|
* - It cannot receive broadcast intents (except for explicit ones).
|
|
27
28
|
* - Scheduled jobs, alarms, and services are cancelled.
|
|
28
|
-
* - The app won
|
|
29
|
-
* It
|
|
29
|
+
* - The app won't restart until the user explicitly launches it again.
|
|
30
|
+
* It's the same as when a user swipes an app away from Settings → Apps → Force Stop.
|
|
30
31
|
*
|
|
31
|
-
* @
|
|
32
|
-
* @
|
|
33
|
-
* @return {Promise<string>} The output of the corresponding adb command.
|
|
32
|
+
* @param pkg - The package name to be stopped.
|
|
33
|
+
* @returns The output of the corresponding adb command.
|
|
34
34
|
*/
|
|
35
|
-
export function forceStop(this:
|
|
35
|
+
export declare function forceStop(this: ADB, pkg: string): Promise<string>;
|
|
36
36
|
/**
|
|
37
|
-
* Gracefully kills the app
|
|
37
|
+
* Gracefully kills the app's process, similar to how Android would do it
|
|
38
38
|
* automatically when low on memory.
|
|
39
|
-
* It only kills the process, without changing the app
|
|
39
|
+
* It only kills the process, without changing the app's "stopped" state.
|
|
40
40
|
* Background services or broadcast receivers may restart soon after,
|
|
41
41
|
* if they are still scheduled or registered.
|
|
42
42
|
* No data or state (like alarms, jobs, etc.) are cleared.
|
|
43
43
|
*
|
|
44
|
-
* @
|
|
45
|
-
* @
|
|
46
|
-
* @return {Promise<string>} The output of the corresponding adb command.
|
|
44
|
+
* @param pkg - The package name to be stopped.
|
|
45
|
+
* @returns The output of the corresponding adb command.
|
|
47
46
|
*/
|
|
48
|
-
export function killPackage(this:
|
|
47
|
+
export declare function killPackage(this: ADB, pkg: string): Promise<string>;
|
|
49
48
|
/**
|
|
50
49
|
* Clear the user data of the particular application on the device
|
|
51
50
|
* under test.
|
|
52
51
|
*
|
|
53
|
-
* @
|
|
54
|
-
* @
|
|
55
|
-
* @return {Promise<string>} The output of the corresponding adb command.
|
|
52
|
+
* @param pkg - The package name to be cleared.
|
|
53
|
+
* @returns The output of the corresponding adb command.
|
|
56
54
|
*/
|
|
57
|
-
export function clear(this:
|
|
55
|
+
export declare function clear(this: ADB, pkg: string): Promise<string>;
|
|
58
56
|
/**
|
|
59
57
|
* Grant all permissions requested by the particular package.
|
|
60
58
|
* This method is only useful on Android 6.0+ and for applications
|
|
61
59
|
* that support components-based permissions setting.
|
|
62
60
|
*
|
|
63
|
-
* @
|
|
64
|
-
* @param
|
|
65
|
-
* @param {string} [apk] - The path to the actual apk file.
|
|
61
|
+
* @param pkg - The package name to be processed.
|
|
62
|
+
* @param apk - The path to the actual apk file.
|
|
66
63
|
* @throws {Error} If there was an error while granting permissions
|
|
67
64
|
*/
|
|
68
|
-
export function grantAllPermissions(this:
|
|
65
|
+
export declare function grantAllPermissions(this: ADB, pkg: string, apk?: string): Promise<void>;
|
|
69
66
|
/**
|
|
70
67
|
* Grant multiple permissions for the particular package.
|
|
71
68
|
* This call is more performant than `grantPermission` one, since it combines
|
|
72
69
|
* multiple `adb shell` calls into a single command.
|
|
73
70
|
*
|
|
74
|
-
* @
|
|
75
|
-
* @param
|
|
76
|
-
* @param {Array<string>} permissions - The list of permissions to be granted.
|
|
71
|
+
* @param pkg - The package name to be processed.
|
|
72
|
+
* @param permissions - The list of permissions to be granted.
|
|
77
73
|
* @throws {Error} If there was an error while changing permissions.
|
|
78
74
|
*/
|
|
79
|
-
export function grantPermissions(this:
|
|
75
|
+
export declare function grantPermissions(this: ADB, pkg: string, permissions: string[]): Promise<void>;
|
|
80
76
|
/**
|
|
81
77
|
* Grant single permission for the particular package.
|
|
82
78
|
*
|
|
83
|
-
* @
|
|
84
|
-
* @param
|
|
85
|
-
* @param {string} permission - The full name of the permission to be granted.
|
|
79
|
+
* @param pkg - The package name to be processed.
|
|
80
|
+
* @param permission - The full name of the permission to be granted.
|
|
86
81
|
* @throws {Error} If there was an error while changing permissions.
|
|
87
82
|
*/
|
|
88
|
-
export function grantPermission(this:
|
|
83
|
+
export declare function grantPermission(this: ADB, pkg: string, permission: string): Promise<void>;
|
|
89
84
|
/**
|
|
90
85
|
* Revoke single permission from the particular package.
|
|
91
86
|
*
|
|
92
|
-
* @
|
|
93
|
-
* @param
|
|
94
|
-
* @param {string} permission - The full name of the permission to be revoked.
|
|
87
|
+
* @param pkg - The package name to be processed.
|
|
88
|
+
* @param permission - The full name of the permission to be revoked.
|
|
95
89
|
* @throws {Error} If there was an error while changing permissions.
|
|
96
90
|
*/
|
|
97
|
-
export function revokePermission(this:
|
|
91
|
+
export declare function revokePermission(this: ADB, pkg: string, permission: string): Promise<void>;
|
|
98
92
|
/**
|
|
99
93
|
* Retrieve the list of granted permissions for the particular package.
|
|
100
94
|
*
|
|
101
|
-
* @
|
|
102
|
-
* @param
|
|
103
|
-
* @param {string?} [cmdOutput=null] - Optional parameter containing command output of
|
|
95
|
+
* @param pkg - The package name to be processed.
|
|
96
|
+
* @param cmdOutput - Optional parameter containing command output of
|
|
104
97
|
* _dumpsys package_ command. It may speed up the method execution.
|
|
105
|
-
* @
|
|
98
|
+
* @returns The list of granted permissions or an empty list.
|
|
106
99
|
* @throws {Error} If there was an error while changing permissions.
|
|
107
100
|
*/
|
|
108
|
-
export function getGrantedPermissions(this:
|
|
101
|
+
export declare function getGrantedPermissions(this: ADB, pkg: string, cmdOutput?: string | null): Promise<string[]>;
|
|
109
102
|
/**
|
|
110
103
|
* Retrieve the list of denied permissions for the particular package.
|
|
111
104
|
*
|
|
112
|
-
* @
|
|
113
|
-
* @param
|
|
114
|
-
* @param {string?} [cmdOutput=null] - Optional parameter containing command output of
|
|
105
|
+
* @param pkg - The package name to be processed.
|
|
106
|
+
* @param cmdOutput - Optional parameter containing command output of
|
|
115
107
|
* _dumpsys package_ command. It may speed up the method execution.
|
|
116
|
-
* @
|
|
108
|
+
* @returns The list of denied permissions or an empty list.
|
|
117
109
|
*/
|
|
118
|
-
export function getDeniedPermissions(this:
|
|
110
|
+
export declare function getDeniedPermissions(this: ADB, pkg: string, cmdOutput?: string | null): Promise<string[]>;
|
|
119
111
|
/**
|
|
120
112
|
* Retrieve the list of requested permissions for the particular package.
|
|
121
113
|
*
|
|
122
|
-
* @
|
|
123
|
-
* @param
|
|
124
|
-
* @param {string?} [cmdOutput=null] - Optional parameter containing command output of
|
|
114
|
+
* @param pkg - The package name to be processed.
|
|
115
|
+
* @param cmdOutput - Optional parameter containing command output of
|
|
125
116
|
* _dumpsys package_ command. It may speed up the method execution.
|
|
126
|
-
* @
|
|
117
|
+
* @returns The list of requested permissions or an empty list.
|
|
127
118
|
*/
|
|
128
|
-
export function getReqPermissions(this:
|
|
119
|
+
export declare function getReqPermissions(this: ADB, pkg: string, cmdOutput?: string | null): Promise<string[]>;
|
|
129
120
|
/**
|
|
130
121
|
* Stop the particular package if it is running and clears its application data.
|
|
131
122
|
*
|
|
132
|
-
* @
|
|
133
|
-
* @param {string} pkg - The package name to be processed.
|
|
123
|
+
* @param pkg - The package name to be processed.
|
|
134
124
|
*/
|
|
135
|
-
export function stopAndClear(this:
|
|
125
|
+
export declare function stopAndClear(this: ADB, pkg: string): Promise<void>;
|
|
136
126
|
/**
|
|
137
127
|
* Get the package info from the installed application.
|
|
138
128
|
*
|
|
139
|
-
* @
|
|
140
|
-
* @
|
|
141
|
-
* @return {Promise<import('./types').AppInfo>} The parsed application information.
|
|
129
|
+
* @param pkg - The name of the installed package.
|
|
130
|
+
* @returns The parsed application information.
|
|
142
131
|
*/
|
|
143
|
-
export function getPackageInfo(this:
|
|
132
|
+
export declare function getPackageInfo(this: ADB, pkg: string): Promise<AppInfo>;
|
|
144
133
|
/**
|
|
145
134
|
* Fetches base.apk of the given package to the local file system
|
|
146
135
|
*
|
|
147
|
-
* @
|
|
148
|
-
* @param
|
|
149
|
-
* @
|
|
150
|
-
* @returns {Promise<string>} Full path to the downloaded file
|
|
136
|
+
* @param pkg - The package identifier (must be already installed on the device)
|
|
137
|
+
* @param tmpDir - The destination folder path
|
|
138
|
+
* @returns Full path to the downloaded file
|
|
151
139
|
* @throws {Error} If there was an error while fetching the .apk
|
|
152
140
|
*/
|
|
153
|
-
export function pullApk(this:
|
|
141
|
+
export declare function pullApk(this: ADB, pkg: string, tmpDir: string): Promise<string>;
|
|
154
142
|
/**
|
|
155
143
|
* Activates the given application or launches it if necessary.
|
|
156
144
|
* The action literally simulates
|
|
157
145
|
* clicking the corresponding application icon on the dashboard.
|
|
158
146
|
*
|
|
159
|
-
* @
|
|
160
|
-
* @param {string} appId - Application package identifier
|
|
147
|
+
* @param appId - Application package identifier
|
|
161
148
|
* @throws {Error} If the app cannot be activated
|
|
162
149
|
*/
|
|
163
|
-
export function activateApp(this:
|
|
150
|
+
export declare function activateApp(this: ADB, appId: string): Promise<void>;
|
|
164
151
|
/**
|
|
165
152
|
* Check whether the particular package is present on the device under test.
|
|
166
153
|
*
|
|
167
|
-
* @
|
|
168
|
-
* @param
|
|
169
|
-
* @
|
|
170
|
-
* @return {Promise<boolean>} True if the package is installed.
|
|
154
|
+
* @param pkg - The name of the package to check.
|
|
155
|
+
* @param opts - Options for checking installation
|
|
156
|
+
* @returns True if the package is installed.
|
|
171
157
|
*/
|
|
172
|
-
export function isAppInstalled(this:
|
|
158
|
+
export declare function isAppInstalled(this: ADB, pkg: string, opts?: IsAppInstalledOptions): Promise<boolean>;
|
|
173
159
|
/**
|
|
174
160
|
* Start the particular URI on the device under test.
|
|
175
161
|
*
|
|
176
|
-
* @
|
|
177
|
-
* @param
|
|
178
|
-
* @param
|
|
179
|
-
* @param {import('./types').StartUriOptions} [opts={}]
|
|
162
|
+
* @param uri - The name of URI to start.
|
|
163
|
+
* @param pkg - The name of the package to start the URI with.
|
|
164
|
+
* @param opts - Options for starting the URI
|
|
180
165
|
*/
|
|
181
|
-
export function startUri(this:
|
|
166
|
+
export declare function startUri(this: ADB, uri: string, pkg?: string | null, opts?: StartUriOptions): Promise<void>;
|
|
182
167
|
/**
|
|
183
168
|
* Start the particular package/activity on the device under test.
|
|
184
169
|
*
|
|
185
|
-
* @
|
|
186
|
-
* @
|
|
187
|
-
* @return {Promise<string>} The output of the corresponding adb command.
|
|
170
|
+
* @param startAppOptions - Startup options mapping.
|
|
171
|
+
* @returns The output of the corresponding adb command.
|
|
188
172
|
* @throws {Error} If there is an error while executing the activity
|
|
189
173
|
*/
|
|
190
|
-
export function startApp(this:
|
|
174
|
+
export declare function startApp(this: ADB, startAppOptions: StartAppOptions): Promise<string>;
|
|
191
175
|
/**
|
|
192
176
|
* Helper method to call `adb dumpsys window windows/displays`
|
|
193
|
-
*
|
|
194
|
-
* @returns
|
|
177
|
+
*
|
|
178
|
+
* @returns The output of the dumpsys command
|
|
195
179
|
*/
|
|
196
|
-
export function dumpWindows(this:
|
|
180
|
+
export declare function dumpWindows(this: ADB): Promise<string>;
|
|
197
181
|
/**
|
|
198
182
|
* Get the name of currently focused package and activity.
|
|
199
183
|
*
|
|
200
|
-
* @
|
|
201
|
-
* @return {Promise<import('./types').PackageActivityInfo>}
|
|
184
|
+
* @returns The focused package and activity information
|
|
202
185
|
* @throws {Error} If there is an error while parsing the data.
|
|
203
186
|
*/
|
|
204
|
-
export function getFocusedPackageAndActivity(this:
|
|
187
|
+
export declare function getFocusedPackageAndActivity(this: ADB): Promise<PackageActivityInfo>;
|
|
205
188
|
/**
|
|
206
189
|
* Wait for the given activity to be focused/non-focused.
|
|
207
190
|
*
|
|
208
|
-
* @
|
|
209
|
-
* @param
|
|
210
|
-
* @param {string} activity - The name of the activity, belonging to that package,
|
|
191
|
+
* @param pkg - The name of the package to wait for.
|
|
192
|
+
* @param activity - The name of the activity, belonging to that package,
|
|
211
193
|
* to wait for.
|
|
212
|
-
* @param
|
|
194
|
+
* @param waitForStop - Whether to wait until the activity is focused (true)
|
|
213
195
|
* or is not focused (false).
|
|
214
|
-
* @param
|
|
215
|
-
* @throws {
|
|
196
|
+
* @param waitMs - Number of milliseconds to wait before timeout occurs.
|
|
197
|
+
* @throws {Error} If timeout happens.
|
|
216
198
|
*/
|
|
217
|
-
export function waitForActivityOrNot(this:
|
|
199
|
+
export declare function waitForActivityOrNot(this: ADB, pkg: string, activity: string, waitForStop: boolean, waitMs?: number): Promise<void>;
|
|
218
200
|
/**
|
|
219
201
|
* Wait for the given activity to be focused
|
|
220
202
|
*
|
|
221
|
-
* @
|
|
222
|
-
* @param
|
|
223
|
-
* @param {string} act - The name of the activity, belonging to that package,
|
|
203
|
+
* @param pkg - The name of the package to wait for.
|
|
204
|
+
* @param act - The name of the activity, belonging to that package,
|
|
224
205
|
* to wait for.
|
|
225
|
-
* @param
|
|
226
|
-
* @throws {
|
|
206
|
+
* @param waitMs - Number of milliseconds to wait before timeout occurs.
|
|
207
|
+
* @throws {Error} If timeout happens.
|
|
227
208
|
*/
|
|
228
|
-
export function waitForActivity(this:
|
|
209
|
+
export declare function waitForActivity(this: ADB, pkg: string, act: string, waitMs?: number): Promise<void>;
|
|
229
210
|
/**
|
|
230
211
|
* Wait for the given activity to be non-focused.
|
|
231
212
|
*
|
|
232
|
-
* @
|
|
233
|
-
* @param
|
|
234
|
-
* @param {string} act - The name of the activity, belonging to that package,
|
|
213
|
+
* @param pkg - The name of the package to wait for.
|
|
214
|
+
* @param act - The name of the activity, belonging to that package,
|
|
235
215
|
* to wait for.
|
|
236
|
-
* @param
|
|
237
|
-
* @throws {
|
|
216
|
+
* @param waitMs - Number of milliseconds to wait before timeout occurs.
|
|
217
|
+
* @throws {Error} If timeout happens.
|
|
238
218
|
*/
|
|
239
|
-
export function waitForNotActivity(this:
|
|
219
|
+
export declare function waitForNotActivity(this: ADB, pkg: string, act: string, waitMs?: number): Promise<void>;
|
|
240
220
|
/**
|
|
241
221
|
* Builds command line representation for the given
|
|
242
222
|
* application startup options
|
|
243
223
|
*
|
|
244
|
-
* @param
|
|
245
|
-
* @param
|
|
246
|
-
* @returns
|
|
224
|
+
* @param startAppOptions - Application options mapping
|
|
225
|
+
* @param apiLevel - The actual OS API level
|
|
226
|
+
* @returns The actual command line array
|
|
247
227
|
*/
|
|
248
|
-
export function buildStartCmd(startAppOptions: StartCmdOptions, apiLevel: number): string[];
|
|
228
|
+
export declare function buildStartCmd(startAppOptions: StartCmdOptions, apiLevel: number): string[];
|
|
249
229
|
/**
|
|
250
230
|
* Parses the name of launchable package activity
|
|
251
231
|
* from dumpsys output.
|
|
252
232
|
*
|
|
253
|
-
* @param
|
|
254
|
-
* @returns
|
|
233
|
+
* @param dumpsys - The actual dumpsys output
|
|
234
|
+
* @returns Either the fully qualified
|
|
255
235
|
* activity name as a single list item or an empty list if nothing could be parsed.
|
|
256
236
|
* In Android 6 and older there is no reliable way to determine
|
|
257
237
|
* the category name for the given activity, so this API just
|
|
@@ -259,61 +239,56 @@ export function buildStartCmd(startAppOptions: StartCmdOptions, apiLevel: number
|
|
|
259
239
|
* with the expectation that the app manifest could be parsed next
|
|
260
240
|
* in order to determine category names for these.
|
|
261
241
|
*/
|
|
262
|
-
export function parseLaunchableActivityNames(dumpsys: string): string[];
|
|
242
|
+
export declare function parseLaunchableActivityNames(dumpsys: string): string[];
|
|
263
243
|
/**
|
|
264
244
|
* Check if the given string is a valid component name
|
|
265
245
|
*
|
|
266
|
-
* @param
|
|
267
|
-
* @
|
|
246
|
+
* @param classString - The string to verify
|
|
247
|
+
* @returns The result of Regexp.exec operation
|
|
268
248
|
* or _null_ if no matches are found
|
|
269
249
|
*/
|
|
270
|
-
export function matchComponentName(classString: string): RegExpExecArray | null;
|
|
250
|
+
export declare function matchComponentName(classString: string): RegExpExecArray | null;
|
|
271
251
|
/**
|
|
272
252
|
* Retrieves the list of permission names encoded in `dumpsys package` command output.
|
|
273
253
|
*
|
|
274
|
-
* @param
|
|
275
|
-
* @param
|
|
276
|
-
* @param
|
|
254
|
+
* @param dumpsysOutput - The actual command output.
|
|
255
|
+
* @param groupNames - The list of group names to list permissions for.
|
|
256
|
+
* @param grantedState - The expected state of `granted` attribute to filter with.
|
|
277
257
|
* No filtering is done if the parameter is not set.
|
|
278
|
-
* @returns
|
|
258
|
+
* @returns The list of matched permission names or an empty list if no matches were found.
|
|
279
259
|
*/
|
|
280
|
-
export function extractMatchingPermissions(dumpsysOutput: string, groupNames: string[], grantedState?: boolean | null): string[];
|
|
260
|
+
export declare function extractMatchingPermissions(dumpsysOutput: string, groupNames: string[], grantedState?: boolean | null): string[];
|
|
281
261
|
/**
|
|
282
262
|
* Broadcast a message to the given intent.
|
|
283
263
|
*
|
|
284
|
-
* @
|
|
285
|
-
* @
|
|
286
|
-
* @throws {error} If intent name is not a valid class name.
|
|
264
|
+
* @param intent - The name of the intent to broadcast to.
|
|
265
|
+
* @throws {Error} If intent name is not a valid class name.
|
|
287
266
|
*/
|
|
288
|
-
export function broadcast(this:
|
|
267
|
+
export declare function broadcast(this: ADB, intent: string): Promise<void>;
|
|
289
268
|
/**
|
|
290
269
|
* Get the list of process ids for the particular package on the device under test.
|
|
291
270
|
*
|
|
292
|
-
* @
|
|
293
|
-
* @
|
|
294
|
-
* @returns {Promise<number[]>} The list of matched process IDs or an empty list.
|
|
271
|
+
* @param pkg - The package name
|
|
272
|
+
* @returns The list of matched process IDs or an empty list.
|
|
295
273
|
*/
|
|
296
|
-
export function listAppProcessIds(this:
|
|
274
|
+
export declare function listAppProcessIds(this: ADB, pkg: string): Promise<number[]>;
|
|
297
275
|
/**
|
|
298
276
|
* Check whether the process with the particular name is running on the device
|
|
299
277
|
* under test.
|
|
300
278
|
*
|
|
301
|
-
* @
|
|
302
|
-
* @param {string} pkg - The id of the package to be checked.
|
|
279
|
+
* @param pkg - The id of the package to be checked.
|
|
303
280
|
* @returns True if the given package is running.
|
|
304
281
|
*/
|
|
305
|
-
export function isAppRunning(this:
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
optionalIntentArguments?: string | undefined;
|
|
318
|
-
};
|
|
282
|
+
export declare function isAppRunning(this: ADB, pkg: string): Promise<boolean>;
|
|
283
|
+
export interface StartCmdOptions {
|
|
284
|
+
user?: number | string;
|
|
285
|
+
waitForLaunch?: boolean;
|
|
286
|
+
pkg?: string;
|
|
287
|
+
activity?: string;
|
|
288
|
+
action?: string;
|
|
289
|
+
category?: string;
|
|
290
|
+
stopApp?: boolean;
|
|
291
|
+
flags?: string;
|
|
292
|
+
optionalIntentArguments?: string;
|
|
293
|
+
}
|
|
319
294
|
//# sourceMappingURL=app-commands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-commands.d.ts","sourceRoot":"","sources":["../../../lib/tools/app-commands.
|
|
1
|
+
{"version":3,"file":"app-commands.d.ts","sourceRoot":"","sources":["../../../lib/tools/app-commands.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,OAAO,EACP,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAGpB,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,YAAY,CAMxD,CAAC;AAa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