Comments (13)
update代码 并 pip install -r requirements.txt
from atxserver2-android-provider.
update代码 并 pip install -r requirements.txt
好的。谢谢及时解决。
另外问个小问题,wifi远程链接手机可否支持。如果没有时间开发,可否稍作指点,作为参考?
from atxserver2-android-provider.
update代码 并 pip install -r requirements.txt
还是有点问题
[root@localhost atxserver2-android-provider]$ pip3 install -r requirements.txt
Requirement already satisfied: logzero==1.5.* in /usr/Python-3.7.2/lib/python3.7/site-packages (from -r requirements.txt (line 1)) (1.5.0)
Requirement already satisfied: adbutils==0.2.* in /usr/Python-3.7.2/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (0.2.0)
Requirement already satisfied: tornado in /usr/Python-3.7.2/lib/python3.7/site-packages (from -r requirements.txt (line 3)) (4.5.3)
Requirement already satisfied: requests in /usr/Python-3.7.2/lib/python3.7/site-packages (from -r requirements.txt (line 4)) (2.21.0)
Requirement already satisfied: apkutils-patch==0.5.* in /usr/Python-3.7.2/lib/python3.7/site-packages (from -r requirements.txt (line 5)) (0.5.4)
Requirement already satisfied: whichcraft in /usr/Python-3.7.2/lib/python3.7/site-packages (from adbutils==0.2.->-r requirements.txt (line 2)) (0.5.2)
Requirement already satisfied: six in /usr/Python-3.7.2/lib/python3.7/site-packages (from adbutils==0.2.->-r requirements.txt (line 2)) (1.12.0)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/Python-3.7.2/lib/python3.7/site-packages (from requests->-r requirements.txt (line 4)) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/Python-3.7.2/lib/python3.7/site-packages (from requests->-r requirements.txt (line 4)) (3.0.4)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/Python-3.7.2/lib/python3.7/site-packages (from requests->-r requirements.txt (line 4)) (1.24.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/Python-3.7.2/lib/python3.7/site-packages (from requests->-r requirements.txt (line 4)) (2018.11.29)
Requirement already satisfied: pyelftools in /usr/Python-3.7.2/lib/python3.7/site-packages (from apkutils-patch==0.5.->-r requirements.txt (line 5)) (0.25)
Requirement already satisfied: cigam in /usr/Python-3.7.2/lib/python3.7/site-packages (from apkutils-patch==0.5.->-r requirements.txt (line 5)) (0.0.3)
Requirement already satisfied: xmltodict in /usr/Python-3.7.2/lib/python3.7/site-packages (from apkutils-patch==0.5.*->-r requirements.txt (line 5)) (0.12.0)
[D 190326 19:48:10 main:168] DeviceEvent(present=True, serial='5LM7N16406014587', status='device')
[I 190326 19:48:10 device:56] Init device: 5LM7N16406014587
--Status init
[D 190326 19:48:10 device:76] [5LM7N16406014587] sdk: 26, abi: arm64-v8a, abis: ['arm64-v8a', 'armeabi-v7a', 'armeabi']
[D 190326 19:48:11 device:97] [5LM7N16406014587] use atx-agent: atx-agent-armv7
Traceback (most recent call last):
File "/home/lianjia/mobile/atxserver2-android-provider/device.py", line 119, in _install_apk
info = self._device.package_info(m.package_name)
AttributeError: 'NoneType' object has no attribute 'package_name'
[W 190326 19:48:11 device:128] [5LM7N16406014587] Install apk vendor/WhatsInput_v1.0_apkpure.com.apk error 'NoneType' object has no attribute 'package_name'
Traceback (most recent call last):
File "/home/lianjia/mobile/atxserver2-android-provider/device.py", line 119, in _install_apk
info = self._device.package_info(m.package_name)
AttributeError: 'NoneType' object has no attribute 'package_name'
[W 190326 19:48:11 device:128] [5LM7N16406014587] Install apk vendor/app-uiautomator.apk error 'NoneType' object has no attribute 'package_name'
Traceback (most recent call last):
File "/home/lianjia/mobile/atxserver2-android-provider/device.py", line 119, in _install_apk
info = self._device.package_info(m.package_name)
AttributeError: 'NoneType' object has no attribute 'package_name'
[W 190326 19:48:11 device:128] [5LM7N16406014587] Install apk vendor/app-uiautomator-test.apk error 'NoneType' object has no attribute 'package_name'
[D 190326 19:48:11 device:131] [5LM7N16406014587] forward atx-agent
from atxserver2-android-provider.
apkutils-patch 这个库单独更新下试试 pip install -U apkutils-patch
Sent with GitHawk
from atxserver2-android-provider.
update代码 并 pip install -r requirements.txt ...
@ruberzhu 另外wifi 连接,需要改atx-agent 需要等协议稳定了才行
Sent with GitHawk
from atxserver2-android-provider.
apkutils-patch 这个库单独更新下试试 pip install -U apkutils-patch
Sent with GitHawk
新的问题
Traceback (most recent call last):
File "/home/lianjia/mobile/atxserver2-android-provider/device.py", line 121, in _install_apk
if info and m.version_code == info['version_code'] and m.version_name == info['version_name']:
KeyError: 'version_code'
返回的m对象:
{
'_xml': '\n<manifest\nxmlns: android="http://schemas.android.com/apk/res/android"\npackage="com.github.uiautomator.test"\nplatformBuildVersionCode="25"\nplatformBuildVersionName="7.1.1"\n>\n<uses-sdk\nandroid: minSdkVersion="18"\nandroid: targetSdkVersion="22"\n>\n\n<instrumentation\nandroid: label="Tests for com.github.uiautomator"\nandroid: name="android.support.test.runner.AndroidJUnitRunner"\nandroid: targetPackage="com.github.uiautomator"\nandroid: handleProfiling="false"\nandroid: functionalTest="false"\n>\n\n<application\nandroid: debuggable="true"\n>\n<uses-library\nandroid: name="android.test.runner"\n>\n\n\n\n',
'_dom': <xml.dom.minidom.Documentobjectat0x7ff3db1654c8>,
'_permissions': None,
'_manifest': None
}
看样子是和获取的属性不匹配:
@Property
def package_name(self):
return self._dom.documentElement.getAttribute('package')
@property
def version_code(self):
return self._dom.documentElement.getAttribute("android:versionCode")
@property
def version_name(self):
return self._dom.documentElement.getAttribute("android:versionName")
from atxserver2-android-provider.
adbutils 也更新下
Sent with GitHawk
from atxserver2-android-provider.
咋样了?
from atxserver2-android-provider.
可以了。感谢及时修复。比较期待wifi连接。另外有些ios问题,一会移步ios项目提下
from atxserver2-android-provider.
mac系统报如下:
Traceback (most recent call last):
File "main.py", line 248, in
IOLoop.current().run_sync(async_main)
File "/usr/local/lib/python3.7/site-packages/tornado/ioloop.py", line 532, in run_sync
return future_cell[0].result()
File "main.py", line 229, in async_main
await device_watch()
File "main.py", line 178, in device_watch
await device.init()
File "/Users/r/Documents/code/app/atxserver2-android-provider/device.py", line 59, in init
self._init_binaries()
File "/Users/r/Documents/code/app/atxserver2-android-provider/device.py", line 80, in _init_binaries
"/minicap.so", "/data/local/tmp/minicap.so", 0o644)
File "/Users/r/Documents/code/app/atxserver2-android-provider/device.py", line 104, in _push_stf
with zipfile.ZipFile(zipfile_path) as z:
File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/zipfile.py", line 1222, in init
self._RealGetContents()
File "/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/zipfile.py", line 1289, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
from atxserver2-android-provider.
另外一个问题,在执行远程控制过程中,进行monkey测试时,monkey报错,如下:
ava.lang.IllegalStateException: UiAutomationService android.accessibilityservice.IAccessibilityServiceClient$Stub$Proxy@46aa3d5already registered!
at android.os.Parcel.createException(Parcel.java:1961)
at android.os.Parcel.readException(Parcel.java:1921)
at android.os.Parcel.readException(Parcel.java:1871)
at android.view.accessibility.IAccessibilityManager$Stub$Proxy.registerUiTestAutomationService(IAccessibilityManager.java:409)
at android.app.UiAutomationConnection.registerUiTestAutomationServiceLocked(UiAutomationConnection.java:399)
at android.app.UiAutomationConnection.connect(UiAutomationConnection.java:97)
at android.app.UiAutomation.connect(UiAutomation.java:238)
at android.app.UiAutomation.connect(UiAutomation.java:214)
怀疑二者在使用UiAutomation时有冲突,有无解药?
from atxserver2-android-provider.
zip合适不对,应该是git lfs 的问题
Sent with GitHawk
from atxserver2-android-provider.
uiautomator是独占资源,只能停掉其中一个。d.service("uiautomator").stop() 可以停掉atx的
Sent with GitHawk
from atxserver2-android-provider.
Related Issues (20)
- 上传apk文件100Mb,没有成功过
- 打包成exe可执行文件,接入设备后提示“设备屏幕同步中断”
- 启动provider后,没有自动安装minicap, minitouch, atx-agent, app-uiautomator-[test].apk, whatsinput-apk HOT 2
- redmi note 8 whatsinput.apk ,app-uiautomator.apk安装失败
- 【Bug】安卓10,网页点击设备无效 HOT 14
- 安卓初始化失败
- FileNotFoundError: [Errno 2] No such file or directory: 'adb' HOT 1
- 灰色屏幕,看不到画面? HOT 2
- weditor测试开发与uiautomator2不能同用 原因为tcp端口有一个不可访问
- stf 添加了minicap.apk. 支持miui 和 安卓12。 HOT 2
- requirements.txt文件abdutils版本错误
- Android 10 Redmi K30 5G 鼠标不能操作提示WebSocket断开连接,但adb命令可以操作
- 调用_device.install()方法时,需将force参数升级为uninstall
- web端,小米8se、小米10s都灰屏,但点击可以操作 HOT 5
- pixel2 android10 可以正常显示,但是无法点击 HOT 1
- 同时连接两台设备失败 HOT 1
- 设备屏幕同步中断,求解决 HOT 2
- 映射atxserver后,发生黑屏,远程无法操作
- asyncadb 文件 await connector.start(connect_timeout=timeout) 经常性报错
- python3.6运行报错ModuleNotFoundError: No module named 'dataclasses'
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 atxserver2-android-provider.