Giter VIP home page Giter VIP logo

androiduispy's Introduction

Android控件探测器

本工具可用于探测Android设备中的应用控件,可代替UIAutomator等工具

使用限制:

  • Root设备中可以探测任意应用的控件
  • 非Root设备中只能探测debug应用的控件

PREPARE ENVIRONMENT

  1. cd $project_root
  2. virtualenv .env --python=python2.7
  3. Windows:
    .env\Scripts\activate.bat
    Others:
    source .env/bin/activate
  4. pip install -r requirements.txt

HOW TO DEBUG

$ python ui/app.py

HOW TO BUILD

$ python build.py ${versions}(2.5.1.0)

HOW TO RELEASE

$ git tag ${version}
$ git push origin ${version}

QUESTIONS

  • 如果macos上执行python脚本遇到以下报错:

This program needs access to the screen. Please run with a Framework build of python, and only when you are logged in on the main display of your Mac.

可以将以下内容写入文件:.env/bin/python

#!/bin/bash

# what real Python executable to use
PYVER=2.7
PYTHON=/System/Library/Frameworks/Python.framework/Versions/$PYVER/bin/python$PYVER

# find the root of the virtualenv, it should be the parent of the dir this script is in
ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..'))"`

# now run Python with the virtualenv set as Python's HOME
export PYTHONHOME=$ENV 
exec $PYTHON "$@"

并添加可以执行权限:chmod 775 .env/bin/python

androiduispy's People

Contributors

blakeyzhang avatar drunkdream avatar hqlian007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

androiduispy's Issues

ValueError: invalid literal for int() with base 10: 'versions(2'

python build.py versions(2.5.1.0)
Traceback (most recent call last):
File "build.py", line 51, in
main(sys.argv[1])
File "build.py", line 25, in main
version_items[i] = int(version_items[i])
ValueError: invalid literal for int() with base 10: 'versions(2'

按指示完成指令后出现该错误。疑似int()里面的参数传入错误。不知道怎么解决

请确认手机是否出现黑屏或ANR

连接小米 安卓10(2台机子)都出现上述问题
已确认未黑屏,adb连接正常
请问是什么原因?和手机品牌 或者 系统版本有关系吗?
image

查找控件失败

image
如图所示,使用v2.5.1.4的release,win10系统,连接小米手机的时候哟这个报错,大佬们知道怎么回事吗?

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.