GithubHelp home page GithubHelp logo

alex5402 / newblackbox Goto Github PK

View Code? Open in Web Editor NEW
79.0 5.0 123.0 7.51 MB

a softwere to clone apps on android also support running apps without installing

License: MIT License

C++ 3.44% C 0.23% Java 85.32% Kotlin 8.19% CMake 0.17% AIDL 2.66%

newblackbox's Introduction

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.

For More Information and help

Telegram

Support

Currently it support android version 5.0 ~ 14.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

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.

🤝 Contributing

Embark on the journey of contributing to SketchIDE and be a part of shaping the future of non-coding Android app development.

  1. Fork: Begin by forking this repository.
  2. Make Changes: Implement your enhancements in your forked repository.
  3. Test: Ensure your changes work flawlessly.
  4. Pull Request: Submit a pull request in this repository.
  5. Review & Merge: Your contribution will be reviewed and merged if accepted by the repository members.

Commit Message Guidelines

When making changes, please adhere to the following commit message guidelines:

  • Use only English for the commit
  • Keep the commit message short and detailed.
  • Use one of these commit types as a prefix:
    • feat: for a feature, possibly improving something already existing.
    • fix: for a bug fix.
    • design: for UI/UX improvements.
    • refactor: for refactoring a specific section of the codebase.
    • test: for everything related to testing.
    • docs: for documentation updates.

Examples:

  • feat: Speed up compiling with new technique
  • fix: Fix crash during launch on certain phones
  • design: Update Design something related UI

About pull requests

  1. use only english commit message/comment , 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.

Known Issues

  • Death process restarting produce duplicated activities and process. Temporary solution: kill them all and restart application manually.
  • FireFox crashed when inputting website url
  • Crashed when getType of content provider calling
  • It appeared that an application has multi process of each activity, it should be a process containing activities of an application
  • Static broadcast failed test.

Sponsorship

This project is a free open source project, routine maintenance consumes a lot of time and effort. If you want to speed up the progress or buy the author a cup of coffee.

  • BTC: 14z658gFXzNTbGEXySNJLGxwHfJmMViRaB
  • USDT(TRC20): TFNQw5HgWUS33Ke1eNmSFTwoQySGU7XNsK

Credits

License

Copyright 2022 NewBlackbox

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.
```# NewBlackbox

NewBlackbox

newblackbox's People

Contributors

alex5402 avatar monster-gm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

newblackbox's Issues

Android 10 BdUncaughtExceptionHandler throwable:java.lang.reflect.UndeclaredThrowableException at $Proxy36.bindIsolatedService(Unknown Source)

com.vspace E BdUncaughtExceptionHandler throwable:java.lang.reflect.UndeclaredThrowableException
at $Proxy36.bindIsolatedService(Unknown Source)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1863)
at android.app.ContextImpl.bindIsolatedService(ContextImpl.java:1796)
at android.content.ContextWrapper.bindIsolatedService(ContextWrapper.java:717)
at android.content.ContextWrapper.bindIsolatedService(ContextWrapper.java:717)
at Sx.b(chromium-TrichromeWebViewGoogle.apk-stable-410410683:1)
at sy.a(chromium-TrichromeWebViewGoogle.apk-stable-410410683:2)
at wy.a(chromium-TrichromeWebViewGoogle.apk-stable-410410683:3)
at wy.i(chromium-TrichromeWebViewGoogle.apk-stable-410410683:3)
at cy.c(chromium-TrichromeWebViewGoogle.apk-stable-410410683:3)
at YD.(chromium-TrichromeWebViewGoogle.apk-stable-410410683:6)
at mD.run(chromium-TrichromeWebViewGoogle.apk-stable-410410683:6)
at android.os.Handler.handleCallback(Handler.java:900)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:219)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.vcore.fake.service.IActivityManagerProxy$BindService.hook(IActivityManagerProxy.java:261)
at com.vcore.fake.hook.ClassInvocationStub.invoke(ClassInvocationStub.java:113)
at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
at $Proxy36.bindIsolatedService(Unknown Source) 
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1863) 
at android.app.ContextImpl.bindIsolatedService(ContextImpl.java:1796) 
at android.content.ContextWrapper.bindIsolatedService(ContextWrapper.java:717) 
at android.content.ContextWrapper.bindIsolatedService(ContextWrapper.java:717) 
at Sx.b(chromium-TrichromeWebViewGoogle.apk-stable-410410683:1) 
at sy.a(chromium-TrichromeWebViewGoogle.apk-stable-410410683:2) 
at wy.a(chromium-TrichromeWebViewGoogle.apk-stable-410410683:3) 
at wy.i(chromium-TrichromeWebViewGoogle.apk-stable-410410683:3) 
at cy.c(chromium-TrichromeWebViewGoogle.apk-stable-410410683:3) 
at YD.(chromium-TrichromeWebViewGoogle.apk-stable-410410683:6) 
at mD.run(chromium-TrichromeWebViewGoogle.apk-stable-410410683:6) 
at android.os.Handler.handleCallback(Handler.java:900) 
at android.os.Handler.dispatchMessage(Handler.java:103) 
at android.os.Looper.loop(Looper.java:219) 
at android.os.HandlerThread.run(HandlerThread.java:67) 
Caused by: java.lang.SecurityException: BIND_EXTERNAL_SERVICE required for ComponentInfo{com.google.android.webview/org.chromium.content.app.SandboxedProcessService0}
at android.os.Parcel.createException(Parcel.java:2091)
at android.os.Parcel.readException(Parcel.java:2059)
at android.os.Parcel.readException(Parcel.java:2007)
at android.app.IActivityManager$Stub$Proxy.bindIsolatedService(IActivityManager.java:5486)
at java.lang.reflect.Method.invoke(Native Method) 
at com.vcore.fake.service.IActivityManagerProxy$BindService.hook(IActivityManagerProxy.java:261) 
at com.vcore.fake.hook.ClassInvocationStub.invoke(ClassInvocationStub.java:113) 
at java.lang.reflect.Proxy.invoke(Proxy.java:1006) 
at $Proxy36.bindIsolatedService(Unknown Source) 
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1863) 
at android.app.ContextImpl.bindIsolatedService(ContextImpl.java:1796) 
at android.content.ContextWrapper.bindIsolatedService(ContextWrapper.java:717) 
at android.content.ContextWrapper.bindIsolatedService(ContextWrapper.java:717) 
at Sx.b(chromium-TrichromeWebViewGoogle.apk-stable-410410683:1) 
at sy.a(chromium-TrichromeWebViewGoogle.apk-stable-410410683:2) 
at wy.a(chromium-TrichromeWebViewGoogle.apk-stable-410410683:3) 
at wy.i(chromium-TrichromeWebViewGoogle.apk-stable-410410683:3) 
at cy.c(chromium-TrichromeWebViewGoogle.apk-stable-410410683:3) 
at YD.(chromium-TrichromeWebViewGoogle.apk-stable-410410683:6) 
at mD.run(chromium-TrichromeWebViewGoogle.apk-stable-410410683:6) 
at android.os.Handler.handleCallback(Handler.java:900) 
at android.os.Handler.dispatchMessage(Handler.java:103) 
at android.os.Looper.loop(Looper.java:219) 
at android.os.HandlerThread.run(HandlerThread.java:67) 
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.am.ActiveServices.retrieveServiceLocked(libmapleservices.so:6915804)
at com.android.server.am.ActiveServices.bindServiceLocked(libmapleservices.so:6890344)
at com.android.server.am.ActivityManagerService.bindIsolatedService(libmapleservices.so:6898912)
at android.app.IActivityManager$Stub.onTransact(libmapleframework.so:6194204)
at com.android.server.am.ActivityManagerService.onTransact(libmapleservices.so:7816348)

The authority cn.wps.moffice_eng.loader.p.main does not match the one of the contentProvider: com.vspace.proxy_content_provider_0

java.lang.SecurityException: The authority cn.wps.moffice_eng.loader.p.main does not match the one of the contentProvider: com.vspace.proxy_content_provider_0
at android.content.ContentProvider.validateIncomingAuthority(ContentProvider.java:2238)
at android.content.ContentProvider.validateIncomingUri(ContentProvider.java:2253)
at android.content.ContentProvider$Transport.query(ContentProvider.java:238)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:104)
at android.os.Binder.execTransactInternal(Binder.java:1028)
at android.os.Binder.execTransact(Binder.java:1001)

Androd13 bindIsolatedService() rename to bindServiceInstance() ?

aosp13/frameworks/base/core/java/android/app/IActivityManager.aidl

int bindServiceInstance(in IApplicationThread caller, in IBinder token, in Intent service,
        in String resolvedType, in IServiceConnection connection, int flags,
        in String instanceName, in String callingPackage, int userId);

bindIsolatedService() 名称已经变为 bindServiceInstance()

NewBlackbox\Bcore\src\main\java\com\vcore\fake\service\IActivityManagerProxy.java 应该进行适当适配,对吗?

Failed to open database '/data/data/com.baidu.searchbox/database/pushinfo.db'.

应用名:百度
测试手机:华为p20 Android 10

(1)
Failed to open database '/data/data/com.baidu.searchbox/database/pushinfo.db'.
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (Sqlite code 14 SQLITE_CANTOPEN): Could not open database, (OS error - 13:Permission denied)

(2)
E Failed inserting a file into the cache
com.facebook.common.file.FileUtils$CreateDirectoryException: /storage/emulated/0/Android/data/com.baidu.searchbox/cache/image_cache

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.