Coder Social home page Coder Social logo

dxd214 / mobiledevice-groupcontrol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hotdogeee/mobiledevice-groupcontrol

0.0 0.0 0.0 143 KB

欢迎有兴趣的前端与我交流。也没啥特别的,利用wda,在atx-ios-provider的基础上,去连接wdaurl,再套用fastapi为后端,进行群控远程管理的demo

Python 100.00%

mobiledevice-groupcontrol's Introduction

mobiledevice-groupcontrol

也没啥特别的,利用wda,在atx-ios-provider的基础上,去连接wdaurl,再套用fastapi为后端,进行群控远程管理的demo 总体架构

接口文档 (目前所有请求均为post)

tidevice具体方法介绍:

  • device_date(body:{}), 获取设备时间
  • app_install(body:{"filepath_or_url":str}), 安装apk or ipa
  • app_uninstall(body:{"bundle_id":"com.iggcd.wda.xctrunner"}),卸载
  • app_list(body:{}), 应用列表
  • app_launch(body:{"bundle_id"}), 启动应用

群控过程中,通过界面来代替对相关接口的操作往往是不现实的。安装时长不以你操作的那个为准,安装完后应用图标出现在对应设备上的位置不一定统一,但是通过统一命令启动可以避免这些麻烦事。

simple_event具体方法介绍:

  • device_info: 设备基本信息,具体格式去看引用项目本身源码
  • home: 就是home键
  • lock: 锁屏
  • unlock: 解锁
  • screenshot: 截屏,截屏的文件会保存在对应运行服务器项目下的resource/ios/screenshot下,文件名格式为udid_timestamp.png

tidevice部分就是通过命令行自己简单的复写了一遍直接传参的方法。方便接口调用而已

环境

python3.7+

pip install -r requirements.txt

需要手动安装的部分

pip install uvicorn[standard]

pip install -U "tidevice[openssl]"

mobiledevice-groupcontrol's People

Contributors

hotdogeee 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.