VirtualAPK
VirtualAPK copied to clipboard
A powerful and lightweight plugin framework for Android
插件正常加载,内部跳转时有个Activity用到了tabLayout就报错了,宿主引用了design,和插件版本一致,求解 `java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gzyx.vendingmachine/com.didi.virtualapk.core.A$1}: android.view.InflateException: Binary XML file line #64: Binary XML file line #64: Error inflating class android.support.design.widget.TabLayout at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11(Unknown Source:0) at...
希望添加atlas和RePlugin的对比到现有的对比列表中
- VirtualAPK 运行相关: 1. core version compile 'com.didi.virtualapk:core:0.9.6' 2. 问题机型,系统版本 OnePlus3 Android8.0 3. 完整log Process: com.aroutertest.virtualapktest, PID: 13657 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aroutertest.virtualapktest/com.didi.virtualapk.core.A$1}: java.lang.NullPointerException: Attempt to invoke virtual method...
当在 manifest 中注册的 Activity 为 standard 模式时,正常启动没有问题,如果启动时,添加 FLAG_ACTIVITY_CLEAR_TOP 时,便会导致任务栈混乱。例如: 有两个 Activity A 和 B,launchMode = standard。 A -> B,不添加 flag,B 退出时,可正常退出到 A; A -> B,添加 FLAG_ACTIVITY_CLEAR_TOP,B 退出时,直接跳过 A,退出更上一级 Activity;
查看源码,插件BroadcastReceiver的onReceive中Context未进行HOOK,不会导致context使用出问题吗?
您好,因为这边文档我没找到宿主打jar包的情况,所以我想问下。是不支持宿主打成jar包吗?还是我的操作有误。 我把宿主打成jar包,再用一个壳去引用jar包,jar包中有个方法调用插件的方法打印一句话,还有一个方法是跳转到插件的activity。结果是有调用插件的方法打印一句话,但是跳转插件activity会报错: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.plugin.virtualmastertest/com.didi.virtualapk.core.A$1}; have you declared this activity in your AndroidManifest.xml? 是不是我的插件配置的宿主路径targetHost有问题?
in plugin demo, for example, set activity theme to @android:color/black @android:color/black @android:color/holo_green_light but activity action bar backgroud doesn't show black color, add activity.setTheme(activityInfo.theme) to injectActivity resolve this problem. Is this...
Process: com.weidu.hostvirtualapk, PID: 21747 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.weidu.hostvirtualapk/com.didi.virtualapk.core.A$1}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.Application.dispatchActivityCreated(android.app.Activity, android.os.Bundle)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2758) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2819) at android.app.ActivityThread.-wrap12(ActivityThread.java)...
11:11:25.809 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 11:11:25.809 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred starting process 'command 'C:\Users\Administrator\AppData\Local\Android\Sdk\build-tools\26.0.2\aapt.exe'' 11:11:25.809 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not start 'C:\Users\Administrator\AppData\Local\Android\Sdk\build-tools\26.0.2\aapt.exe' 11:11:25.809 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
插件安全性
插件打包成APK,可以被反编译,插件能加固吗,怎么保证插件安全性