Coder Social home page Coder Social logo

directorx's Introduction

Directorx (dx)

Requirements

  1. Deno v1.9.2+ (std v0.60.0)
  2. Yota v0.0.1
  3. VirtualXposed (if you'd like to use dx on physical device), or Xposed (if emulator)

Install

  1. Install Deno: dx is tested on Deno v1.9.2 with std v0.60.0
  2. Download and install Yota
  3. Install VirtualXposed if you'd like to use dx on a physical device, or Xposed if you'd like to use it on an emulator (must be a rooted emulator, see here)
  4. Install dx's recmod (Virtual)Xposed module to the phone by issuing
    $ cd dxrec && ./gradlew assembleDebug && adb install -r app/build/outputs/apk/debug/app-debug.apk && cd ..
    
  5. Activate the recmod from (Virtual)Xposed's module list
  6. Put the package name of the app you'd like to record and replay into dxrec.config.json's whitelist field
  7. Push the config file (dxrec.config.json) to the phone by issuing
    $ adb shell mkdir -p /data/local/tmp/directorx && adb shell push dxrec.config.json /data/local/tmp/directorx/
    
  8. Start recording and replaying

Record

The record module will record a sequence of user actions in to a .dxpk file that is defined by dx.

$ ./dx rec --help

  Usage:   rec <app>
  Version: v0.2.1

  Description:

    Record as a dxpk

  Options:

    -h, --help                    - Show this help.
    -s, --serial   <type:string>  - serial no
    -o, --output   <type:string>  - output dxpk                      (Default: out.dxpk)
    -v, --verbose                 - output verbose information
    -L, --lhook    <type:string>  - path of the lifecycle hook used
    -G, --mylog    <type:string>  - path of the custom logger

Replay

The replay module will replay a user sequence recorded in a .dxpk.

$ ./dx play --help

  Usage:   play <dxpk>
  Version: v0.2.1

  Description:

    Replay an dxpk

  Options:

    -h, --help                      - Show this help.
    -s, --serial     <type:string>  - serial no
    -p, --player     <type:string>  - which player to use, one of [px, pt, wdg, res]                    (Default: px)
    -K, --lookahead  <type:number>  - Look ahead constant                                               (Default: 1)
    -H, --nohide                    - do not automatically hide soft keyboard before firing each event
    -L, --lhook      <type:string>  - path of the lifecycle hook used
    -P, --plugin     <type:string>  - path of the plugin used
    -U, --uinorm     <type:string>  - path of the ui normalizer used
    -S, --segnorm    <type:string>  - path of the segment normalizer used
    -M, --matcher    <type:string>  - path of the segment matcher used
    -R, --recogn     <type:string>  - path of the pattern recognizer used
    -G, --mylog      <type:string>  - path of the custom logger
    -t, --topleft                   - input at topleft instead of center of a view
    -v, --verbose                   - output verbose information

directorx's People

Contributors

connglli avatar

Stargazers

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