Close Mobile App
Command description
Close the specified app immediately without using the recent-apps screen. An Android package name is a dot-separated identifier; for example, Douyin uses com.ss.android.ugc.aweme. You can find an app's package name in the device's application settings.
You can also capture an element from the mobile app and view its package attribute in the element editor.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Mobile Device Object | Phone | Connected mobile object |
| App Package Name | str | Android package name of the app to close, such as com.ss.android.ugc.aweme |
Command Output Parameters
None
Type definition reference
tip
Enable Developer options on the mobile device, then connect it to the computer with a USB cable. See Connect Mobile Device