Giter VIP home page Giter VIP logo

on-device-dm2's Introduction

Building

To build the app use ./gradlew clean build

Run

  1. Push the defaultConfig.properties file to /sdcard/ as we cannot load it as a resource by default using Konfig.
adb push scripts/defaultConfig.properties /sdcard/
  1. Start the tool

  2. Accept the permissions

  3. Select an app

Notes

  1. The app works better on Android 10, as the accessibility service seems to be more stable

  2. The results are stored on /sdcard/DM-2/

on-device-dm2's People

Contributors

natanieljr avatar hotzkow avatar

Stargazers

Mauro Risonho de Paula Assumpção avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

on-device-dm2's Issues

Bug: in Strategy "handleTargetAbsence"

If the exploration ends up in the home-screen, we will always invoke the strategy handleTargetAbsence but right now we will only issue FetchGui instructions and not try to reset the app after fetching failed too often.

Bug: Widget Creation

sometimes there is (caught exception) indicating an error on widget creation, this requires further investigation

2020-03-31 18:59:09.380 5544-7226/org.droidmate.accessibility I/System.out: ERROR not all UiElements were generated correctly in the model
2020-03-31 18:59:09.381 5544-7226/org.droidmate.accessibility I/System.out: at org.droidmate.explorationModel.factory.AbstractModel.generateWidgets(AbstractModel.kt:166)
2020-03-31 18:59:09.381 5544-7226/org.droidmate.accessibility I/System.out: at org.droidmate.explorationModel.factory.AbstractModel.generateWidgets(AbstractModel.kt:142)
2020-03-31 18:59:09.381 5544-7226/org.droidmate.accessibility I/System.out: at org.droidmate.explorationModel.factory.AbstractModel.updateModel(AbstractModel.kt:87)
2020-03-31 18:59:09.381 5544-7226/org.droidmate.accessibility I/System.out: at org.droidmate.exploration.ExplorationContext.update(ExplorationContext.kt:117)
...

Directory cleanup not working

DM-2 is supposed to cleanup it's temporary files before starting a new exploration (i.e. DM-2/images) and to delete old model files if ModelProperties.path.cleanDirs or ModelProperties.path.cleanImgs are set as true.
Right now no old files are deleted.

Screenshots multiple times

right now any screenshot ist stored at least twice, for re-fetches even more often since we store them in takeScreenshot and getOrStoreImagePixels

  • remove duplicates of calls to bitmap.compress
  • lastId is never set in ScreenRecorder thus remove the method call supplying no action id
  • for delayed image fetch, move the images to the corresponding target dir

Request for comprehensive README.MD: installation and setup instructions

For a project I would like to use this software, but I am having some problems getting it started. Is it possible to write out a comprehensive README.MD that explains step by step how to install and run the project to a device?

Furthermore, I always get an error message from the moment I turn on the accessibility service (see attached image). Is there any way to stop getting this?

Screenshot_1697650592

Getting Stuck

After some random time, we no longer trigger any execution actions and just end up in a loop of receiving accessibility events.

(Could be an issue of limited Threadpool size for Duo-Core hosts)

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.