Git Product home page Git Product logo

jsdroidcmd's Introduction

JsDroidCmd

简介

本项目是JsDroid的核心代码,编译后是一个通过app_process启动的命令apk,类似uiautomator.apk(/system/framework/uiautomator.jar)。

JsDroid是将uiautomator搬出来,结合Rhino的javascript引擎,升级打造的一款全新的安卓自动化框架,在原生功能的基础上实现了中文输入、屏幕找图、远程执行等功能。

既然有uiautomator,为啥还要JsDroid呢,JsDroid=Js+Droid,js机器人,js(JavaScript)帮助您完成自动化操作,您只需要会js,就能完成uiautomator的所有功能。

JsDroid更倾向于脚本化,开发更快速,更便捷,网络传输更小巧,热更新,快速部署,如果能够开发成熟,远程控制多种设备,实现云测系统。

为了让大家更加容易使用jsdroid,本人也是开发了一款编辑器,叫做JsDroidIDE,借用了RSytaxTextArea语法高亮编辑器,智能代码提示,模仿uiautomatorviewer实现了截屏工具,截屏工具增加了找图找色的工具面板。

使用

1.启动jsdroid服务

    //无root
    adb shell app_process32 -Djava.class.path=/data/local/tmp /data/local/tmp jsdroid_cmd.apk
    //有root
    adb shell su -c "app_process32 -Djava.class.path=/data/local/tmp /data/local/tmp jsdroid_cmd.apk"
    //runjs
    adb shell runjs -start

2.调用方式

    //无root(短调用)
    adb shell curl http://127.0.0.1:9800/?js='hello world!'
    //有root(短调用,会添加SystemService)
    adb shell dumpsys jsdroid_service /data/local/tmp/main.js
    //runjs(长调用)
    adb shell /data/local/tmp/runjs -file /data/local/tmp/main.js

3.JsDroidIDE
JsDroidIDE是专门用来编写jsdroid脚本的编辑器。 JsDroidIDE目前具有代码预览界面、截屏分析、运行与停止和打包apk等功能。

联系方式

qq:980008027

jsdroidcmd's People

Contributors

lyming99 avatar lyming1994 avatar

Watchers

James Cloos 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.