File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1-
2-
31# Assists
42Android无障碍服务(AccessibilityService)开发框架,快速开发复杂自动化任务、远程协助、监听等
53***
6-
74## Android无障碍服务能做什么
85利用Android无障碍服务可以开发一些Android系统内的自动化任务,比如经典的微信自动抢红包、支付宝蚂蚁森林自动浇水、芭芭农场自动施肥等
96
@@ -40,7 +37,7 @@ dependencies {
4037}
4138```
4239### 主模块AndroidManifest.xml中注册服务
43-
40+ 一定要在主模块中注册服务,不然进程被杀服务也会自动被关闭需要再次开启
4441``` xml
4542<?xml version =" 1.0" encoding =" utf-8" ?>
4643<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
@@ -106,10 +103,12 @@ class OpenWechat:StepImpl {
106103``` kotlin
107104StepManager .register(OpenWechat ::class .java)
108105```
109- 3 . 开始执行` 执行前请确保无障碍服务已开启 ` ( 开始执行请使用` beginExecute() ` ,后续的步骤执行请使用` execute() ` 方法)
106+ 3 . 开始执行(执行前请确保无障碍服务已开启, 开始执行请使用` beginExecute() ` ,后续的步骤执行请使用` execute() ` 方法)
110107
111108``` kotlin
112109// 从步骤1开始执行
113110StepManager .beginExecute(OpenWechat ::class .java, 1 )
114111```
115- 具体使用可以看我的[ Demo] ( https://github.com/ven-coder/assists )
112+ ** 具体使用可以看我的[ Demo] ( https://github.com/ven-coder/assists ) **
113+
114+ <img src =" https://img-blog.csdnimg.cn/81d4d63470f9431f825aa7572d7abbdb.jpeg#pic_center " alt =" 图片描述 " width =" 200 " align =" left " >
Original file line number Diff line number Diff line change @@ -48,5 +48,5 @@ dependencies {
4848 implementation " androidx.room:room-runtime:2.4.3"
4949 implementation ' androidx.room:room-ktx:2.4.3'
5050 implementation ' com.github.mrmike:ok2curl:0.8.0'
51- // implementation 'com.github.ven-coder:assists:1.0.0 '
51+ // implementation 'com.github.ven-coder:assists:1.0.1 '
5252}
You can’t perform that action at this time.
0 commit comments