Giter Club home page Giter Club 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)

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

drunkdream avatar hqlian007 avatar

Watchers

 avatar

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.