# BlackBox-Engine **Repository Path**: adalvik/BlackBox-Engine ## Basic Information - **Project Name**: BlackBox-Engine - **Description**: BlackBox(黑盒)是一款虚拟引擎,可以在 Android 上克隆和运行虚拟应用,拥有免安装运行能力 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/blackbox-engine - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 15 - **Created**: 2023-10-19 - **Last Updated**: 2023-10-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README  # 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. ## Discussion [Telegram](https://t.me/fvblackbox) ## 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*** ## Release Stable version and Canary build version - Stable version: Stable version is verified and released by administrators. [Download](https://github.com/FBlackBox/BlackBox/releases) - Canary build version: Canary build version is compiled automatically by Github Actions, it has the newest features, but it may have some bugs which we have not found. [Download](https://github.com/AutoBlackBox/BlackBox/tags) ## 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 ```java @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 ```java // 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 ```java BlackBoxCore.get().launchApk("com.tencent.mm", userId); ``` ### App Cloner
### API
#### Get application list that were installed in BlackBox
```java
// flags can refer to the Android develop documentation
BlackBoxCore.get().getInstalledApplications(flags, userId);
BlackBoxCore.get().getInstalledPackages(flags, userId);
```
#### Get user information in BlackBox
```java
List