Skip to content

Commit

Permalink
Add usage for app_auto_grant_permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed May 27, 2024
1 parent 42b4457 commit 314e7eb
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ Empty
- **[Stop an app](#stop-an-app)**
- **[Stop all running apps](#stop-all-running-apps)**
- **[Push and pull files](#push-and-pull-files)**
- **[Auto click permission dialogs](#auto-click-permission-dialogs)**
- **[Open Scheme](#open-scheme)**
- **[Other app operations](#other-app-operations)**
```
cheme)**
**[UI automation](#basic-api-usages)**
- **[Shell commands](#shell-commands)**
Expand Down Expand Up @@ -353,27 +354,18 @@ d.app_wait("com.example.android", timeout=20.0) # 最长等待时间20s(默认
d.pull("/sdcard/some-file-not-exists.txt", "tmp.txt")
```


### ~~Auto click permission dialogs~~ (Removed)
**注意注意** `disable_popups`函数,检测发现很不稳定,暂时不要使用,等候通知。
<!--
Import in version 0.1.1
### Other app operations

```python
d.disable_popups() # automatic skip popups
d.disable_popups(False) # disable automatic skip popups
```
# grant all the permissions
d.app_auto_grant_permissions("io.appium.android.apis")
![popup](docs/img/popup.png) -->

### Open Scheme

```python
# open scheme
d.open_url("appname://appnamehost")
# same as
# adb shell am start -a android.intent.action.VIEW -d "appname://appnamehost"
```

等价于 `adb shell am start -a android.intent.action.VIEW -d "appname://appnamehost"`

## Basic API Usages
This part showcases how to perform common device operations:

Expand Down

0 comments on commit 314e7eb

Please sign in to comment.