Git Product home page Git Product logo

ggymm / blackbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from refgd/blackbox

0.0 0.0 0.0 11.09 MB

BlackBox is a virtual engine, it can clone and run virtual application on Android, users don't have to install APK file to run the application on devices. BlackBox control all virtual applications, so you can do anything you want by using BlackBox.

License: Apache License 2.0

C++ 10.55% C 0.39% Java 80.84% Assembly 0.40% Kotlin 5.53% CMake 0.21% AIDL 2.08%

blackbox's Introduction

xx

Virtual Engine · BlackBox

The only people who have anything to fear from free software are those whose products are worth even less.

——David Emery

BlackBox is a virtual engine, it can clone and run virtual application on Android, users don't have to install APK file to run the application on devices. BlackBox control all virtual applications, so you can do anything you want by using BlackBox.

Support

Currently we don't consider supporting Android 4.x, it supports Android 5.0 ~ 12.0.

If conditions permit, downgrade targetSdkVersion to 28 or below for better compatibility.

Stability has not been tested extensively and is for learning and communication purposes only Please do not use for other purposes

Special Instruction

This project distinguishes between 32-bit and 64-bit, it was compiled to 2 different demos. If you can not find your target in application list, please use another architecture.

Usage

Step 1.Add initialized code in the Application

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        try {
            BlackBoxCore.get().doAttachBaseContext(base, new ClientConfiguration() {
                @Override
                public String getHostPackageName() {
                    return base.getPackageName();
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public void onCreate() {
        super.onCreate();
        BlackBoxCore.get().doCreate();
    }

Step 2.Install application

    // Use package name to install provided that application has been install on device
    BlackBoxCore.get().installPackageAsUser("com.tencent.mm", userId);
    
    // Use APK path to install provided that application has not been install on device
    BlackBoxCore.get().installPackageAsUser(new File("/sdcard/com.tencent.mm.apk"), userId);

Step 3.Launch application

   BlackBoxCore.get().launchApk("com.tencent.mm", userId);

App Cloner

API

Get application list that were installed in BlackBox

   // flags can refer to the Android develop documentation
   BlackBoxCore.get().getInstalledApplications(flags, userId);
   
   BlackBoxCore.get().getInstalledPackages(flags, userId);

Get user information in BlackBox

   List<BUserInfo> users = BlackBoxCore.get().getUsers();

If you want to perform more operations, please refer to the source code.

Xposed Support

How to contribute to this project

This project is divided into two modules

  • app module, it is used to achieve UI and deal with user action.
  • Bcore module, this module is the core of BlackBox, it is used to achieve all functionalities.

You can contribute to this project by making pull requests.

About pull requests

  1. Both Chinese and English commit message / comment are ok, but you should elaborate on your code.
  2. Please follow the code style and design pattern of this project.
  3. Welcome everybody take part in this project.

Credits

License

Copyright 2022 BlackBox

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

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.