DroidPlugin
DroidPlugin copied to clipboard
A plugin framework on android,Run any third-party apk without installation, modification or repackage
android.os.RemoteException: android.content.pm.PackageParser.collectCertificates [class android.content.pm.PackageParser$Package, int] 错误报告。 猜测时android 8 之后的方法获取修改了。怎么修改?
这种问题能解决吗
找不到类,这是怎么回事? FATAL EXCEPTION: main Process: com.hiquanta.logisticsapp:PluginP05, PID: 10901 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.hiquanta.eduapp/com.hiquanta.eduappcom.hiquanta.eduapp.AppStart}: java.lang.ClassNotFoundException: Didn't find class "com.hiquanta.eduappcom.hiquanta.eduapp.AppStart" on path: DexPathList[[zip file "/data/data/com.hiquanta.logisticsapp/Plugin/com.hiquanta.eduapp/apk/base-1.apk"],nativeLibraryDirectories=[/data/data/com.hiquanta.logisticsapp/Plugin/com.hiquanta.eduapp/lib, /vendor/lib, /system/lib]] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2236) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)...
安装插件失败
W/System.err: android.os.RemoteException: collectCertificates [class android.content.pm.PackageParser$Package, int] at java.lang.Class.getMethod(Class.java:2068) at java.lang.Class.getMethod(Class.java:1690) at com.morgoo.droidplugin.reflect.MethodUtils.getAccessibleMethod(MethodUtils.java:143) at com.morgoo.droidplugin.pm.parser.PackageParserApi21.collectCertificates(PackageParserApi21.java:114) at com.morgoo.droidplugin.pm.parser.PluginPackageParser.collectCertificates(PluginPackageParser.java:232) at com.morgoo.droidplugin.pm.IPluginManagerImpl.installPackage(IPluginManagerImpl.java:879) at com.morgoo.droidplugin.pm.PluginManager.installPackage(PluginManager.java:874) at com.example.TestPlugin.ApkFragment.doInstall(ApkFragment.java:290) at com.example.TestPlugin.ApkFragment.access$100(ApkFragment.java:37) at com.example.TestPlugin.ApkFragment$5.run(ApkFragment.java:261) Caused by: java.lang.NoSuchMethodException: collectCertificates...
AndroidRuntime: FATAL EXCEPTION: IntentService[AlarmService] Process: com.example.TestPlugin:PluginP04, PID: 14038 java.lang.SecurityException: Package com.whatsapp does not belong to 10116 at android.os.Parcel.readException(Parcel.java:1683) at android.os.Parcel.readException(Parcel.java:1636) at android.app.IAlarmManager$Stub$Proxy.set(IAlarmManager.java:236) at android.app.AlarmManager.setImpl(AlarmManager.java:671) at android.app.AlarmManager.setExactAndAllowWhileIdle(AlarmManager.java:884) at com.whatsapp.AlarmService.b(AlarmService.java:479) at com.whatsapp.AlarmService.onHandleIntent(AlarmService.java:21152)...
Fake system service failejava.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.morgoo.droidplugin.core.PluginProcessManager.fakeSystemServiceInner(PluginProcessManager.java:455) at com.morgoo.droidplugin.core.PluginProcessManager.fakeSystemService(PluginProcessManager.java:491) at com.morgoo.droidplugin.hook.handle.PluginInstrumentation.callApplicationOnCreate(PluginInstrumentation.java:255) at android.app.LoadedApk.makeApplication(LoadedApk.java:812) at java.lang.reflect.Method.invoke(Native Method) at com.morgoo.droidplugin.reflect.MethodUtils.invokeMethod(MethodUtils.java:214) at com.morgoo.droidplugin.reflect.MethodUtils.invokeMethod(MethodUtils.java:246) at com.morgoo.droidplugin.core.PluginProcessManager.preMakeApplication(PluginProcessManager.java:299) at com.morgoo.droidplugin.core.PluginProcessManager.preLoadApk(PluginProcessManager.java:255) at com.morgoo.droidplugin.hook.handle.PluginCallback.handleLaunchActivity(PluginCallback.java:377) at com.morgoo.droidplugin.hook.handle.PluginCallback.handleMessage(PluginCallback.java:245)...
Caused by: java.lang.NoSuchMethodException: collectCertificates [class android.content.pm.PackageParser$Package, int]
2020-05-08 16:51:35.970 13660-13660/com.example.TestPlugin:PluginP06 E/Instrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory java.lang.Throwable at android.app.Instrumentation.getFactory(Instrumentation.java:1233) at android.app.Instrumentation.newActivity(Instrumentation.java:1224) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3340) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3614) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:86) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2199) at android.os.Handler.dispatchMessage(Handler.java:112)...
华为8.0报错
目前就手上一款8.0手机,并且是华为的 更新到最新的代码之后发现8.0以下的手机没问题,就8.0的手机出现问题 1.ClassNotFoundException: android.os.storage.IMountService$Stub https://github.com/DroidPluginTeam/DroidPlugin/issues/397 出现这个问题之后,我先把 IMountService这HOOK 点注释了 于是出现了 2. handleExceptionjava.lang.NoSuchMethodException: handleCreateService [class android.app.ActivityThread$CreateServiceData] https://github.com/DroidPluginTeam/DroidPlugin/issues/416 添加了 Int.class 后又出现了新的问题 E/JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)...
宿主安装插件,启动插件后,插件中的admob广告无法使用。在原本的广告位显示Missing AdActivity with android:configChanges in AndroidMainfest.xml。百度广告,hubcloud广告正常。 插件apk如果通过正常方式安装所有广告都正常