Code Monkey home page Code Monkey logo

Comments (8)

codeskyblue avatar codeskyblue commented on July 18, 2024 1

curl -X GET 127.0.0.1:7912/version 有返回值,就说明开启了

from atx-agent.

codeskyblue avatar codeskyblue commented on July 18, 2024

你这样试试 am startservice --user -2 -n com.github.uiautomator/.Service

from atx-agent.

DevineLiu avatar DevineLiu commented on July 18, 2024

出现 同样的问题 应该是权限不顾

from atx-agent.

codeskyblue avatar codeskyblue commented on July 18, 2024

atx-agent理论上是有shell权限的,你这是什么手机

from atx-agent.

DevineLiu avatar DevineLiu commented on July 18, 2024

一加3 8.0 原生

from atx-agent.

DevineLiu avatar DevineLiu commented on July 18, 2024

在pixel上是可以拉起的

from atx-agent.

mingyuan-xia avatar mingyuan-xia commented on July 18, 2024

这个问题还存在么?用atx-agent无线拉起uiautomator我经常这么做,通常通过atxagent关闭uiautomator放出uiautomator控制权,完成后用atx-agent来重新拉起

from atx-agent.

emptywalker avatar emptywalker commented on July 18, 2024

我追加一个安装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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.