GithubHelp home page GithubHelp logo

devhou / virtualapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aslody/virtualapp

0.0 1.0 0.0 32.82 MB

An open source Virtual Engine for Android

Java 68.13% Makefile 0.63% C++ 15.24% C 15.54% Assembly 0.27% Objective-C 0.17% Python 0.03%

virtualapp's Introduction

VA banner

**人猛戳这里

About

VirtualApp is an open platform for Android that allows you to create a Virtual Space, you can install and run apk inside. Beyond that, VirtualApp is also a Plugin Framework, the plugins running on VirtualApp does not require any constraints. VirtualApp does not require root, it is running on the local process.

NOTICE

This project has been authorized by the business.

You are not allowed to modify the app module and put to the software market, if you do that, The consequences you know :)

VirtualApp is not free, If you need to use the lib code, please send email to me :)

Background

VirtualApp was born in early 2015, Originally, it is just a simple plugin framework, But as time goes on, the compatibility of it is getting better and better. in the end, it evolved into a Virtual Container.

Get started

If you use latest android studio (version 2.0 or above), please disable Instant Run. Open Setting | Build,Exception,Deployment, and disable Enable Instant Run to hot swap...

Goto your Application and insert the following code:

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        try {
            VirtualCore.get().startup(base);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }

Install a virtual App:

    VirtualCore.get().installPackage({APK PATH}, flags);
    

Launch a virtual App:

    //VirtualApp support multi-user-mode which can run multiple instances of a same app.
    //if you don't need this feature, just set `{userId}` to 0.
    Intent intent = VirtualCore.get().getLaunchIntent({PackageName}, {userId});
    VActivityManager.get().startActivity(intent, {userId});

Uninstall a virtual App:

    VirtualCore.get().uninstallPackage({PackageName});

More details, please read the source code of demo app, :-)

Documentation

VirtualApp currently has no documentation, If you are interested in VirtualApp, please send email to me.

Contact us

virtualapp's People

Contributors

247321453 avatar dstmath avatar paulo-raca avatar prife avatar codehz avatar zhx00100 avatar dodola avatar skyoung09 avatar rk700 avatar cddjr avatar hhkhub avatar woaitqs avatar zhixiaoyang avatar junelegency avatar achellies avatar zbtang avatar noway211 avatar solartcc avatar pekphet avatar rover12421 avatar skidanovalex avatar darkskygit avatar david082321 avatar flyer88 avatar greplay avatar jonforshort avatar konata avatar wylmj avatar

Watchers

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