Giter Club home page Giter Club logo

aar's Introduction

AAR

Alternative APK Runtime is a prototype runtime for APKs.

Current state

AAR is currently just a proof of concept. It's able to run some DEX-files, although with a very limited set of features, and far from the whole dalvik instruction set.

In the future, AAR will hopefully be able to run apps on desktop computers, mobile devices, and maybe even on the web. Someday, maybe.

Try it yourself!

Dependencies

  • Rust and Cargo
  • Android SDK (d8 and dexdump)
  • Java
  • Python 3 (development only)

Usage

First, make sure the android SDK/build tools directory is in your path. Then, open your preferred terminal in this directory and run

make

This runs the aar and you should see some output from the resources/MyCode/MyCode.java file, which was compiled into dex and then interpreted. In the ./out directory you will find the IR and CFA of the input file.

Project structure

A simple summary of the most important files and folders.

- resources/    : JAVA test file + Makefile for DEX compilation
- src/          : AAR source code
    - parser/   : Parsing and preparing DEX for codegen
    - codegen/  : Where the parsed dex-files become interpreted code
    - lib.rs    : Main library file with the process function
    - main.rs   : Basic program to run the DEX file in resources

License

Apache License, Version 2.0

aar's People

Contributors

maekoos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

nucleareris

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.