Comments (8)
curl -X GET 127.0.0.1:7912/version 有返回值,就说明开启了
from atx-agent.
你这样试试 am startservice --user -2 -n com.github.uiautomator/.Service
from atx-agent.
出现 同样的问题 应该是权限不顾
from atx-agent.
atx-agent理论上是有shell权限的,你这是什么手机
from atx-agent.
一加3 8.0 原生
from atx-agent.
在pixel上是可以拉起的
from atx-agent.
这个问题还存在么?用atx-agent无线拉起uiautomator我经常这么做,通常通过atxagent关闭uiautomator放出uiautomator控制权,完成后用atx-agent来重新拉起
from atx-agent.
我追加一个安装apk的问题,机型:
"version":"9", "brand":"google","model":"Pixel 2 XL"
执行脚本:
emptywalker$ curl -X POST -d url="http//skypict.alicdn.com/1-resource-folder/SKY_PICT_SYS/1555338216261/skypict-uiautomator2-server-v1.0.0.apk" http://30.5.59.214:7912/install
emptywalker$ curl -X GET http://30.5.59.214:7912/install/1
得到错误信息:
{"message":"error install","error":"avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0\nSystem server has no access to read file context u:object_r:sdcardfs:s0 (from path /sdcard/tmp/613e9e30414a12c49059dfe427ac2d4c.apk, context u:r:system_server:s0)\nError: Unable to open file: /sdcard/tmp/613e9e30414a12c49059dfe427ac2d4c.apk\nConsider using a file under /data/local/tmp/\nError: Can't open file: /sdcard/tmp/613e9e30414a12c49059dfe427ac2d4c.apk\n\nException occurred while executing:\njava.lang.IllegalArgumentException: Error: Can't open file: /sdcard/tmp/613e9e30414a12c49059dfe427ac2d4c.apk\n\tat com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:328)\n\tat com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:906)\n\tat com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:158)\n\tat android.os.ShellCommand.exec(ShellCommand.java:103)\n\tat com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21260)\n\tat android.os.Binder.shellCommand(Binder.java:634)\n\tat android.os.Binder.onTransact(Binder.java:532)\n\tat android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2796)\n\tat com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3856)\n\tat android.os.Binder.execTransact(Binder.java:731)\n: exit status 255","progress":{"totalSize":7293274,"copiedSize":7293274},"status":"failure"}
应该是没有读取本地文件的权限,想知道这个该如何解决?
另外 通过什么办法检测 atx-agent 是否开启?
from atx-agent.
Related Issues (20)
- Build on Apple Silicon (GOOS=darwin GOARCH=arm64) produces bad binary
- 自行编译的armv8版本agent在开启server后无法正常获取minicap图像,一直报translateMinicap error: EOF HOT 1
- 可以把agent支持wss协议吗? HOT 1
- 请问atxagent如何调用minitouch
- atxagent必须通过adb启动么 HOT 1
- 貌似这些 api 能力是超出 python uiautomator2 库的,然而并没有封装进去? HOT 1
- Problems encountered on Andreod 13
- ppython adb连接时报错Exception: arch(["error: exec '/sbin/sh' failed: No such file or directory"]) need to be supported yet, please report an issue in github
- 使用stf管理设备,同时希望接入weditor使用自动化的能力,但两个项目不能兼容 HOT 1
- 断掉usb之后atxAgent停止
- AtxAgent stopped, atx-agent: not executable: 32-bit ELF file HOT 3
- 查找元素出现阻塞,logcat打印:AccessibilityInteractionClient: Duplicate node
- Case 运行过程中不断重启 uiautomator,kill process(ps): uiautomator uiautomator-v2 is starting ... left: 40.0s HOT 1
- 开启自启动 HOT 2
- Minicap 的最大尺寸只能是800*800么,我是否可以手动去修改改参数displayMaxWidthHeight
- 代码拉倒本地按照步骤打包后,terminal页面不能使用 HOT 1
- pc和手机不在同一局域网内能否连接成功? HOT 2
- HTTP Return code is not 200, status_code = 502导致uiautomator2一直重连
- android手机要root吗 HOT 1
- 打包amd64架构的包后,无法执行该文件 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atx-agent.