DroidPlugin
DroidPlugin copied to clipboard
A plugin framework on android,Run any third-party apk without installation, modification or repackage
PackageManager pm = getPackageManager(); Intent intent = pm.getLaunchIntentForPackage("com.cx"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); 华为的手机返回来的intent为null,该怎么解决
是否不能加载Google相关类库,插件加载正常,但是Google admob无法显示,其他广告渠道可以@cmzy @markzhai @htynkn @JackCho @tiann
PluginHelper初始化后,主APP中的Google地图没法使用。界面上会一片空白 提示“Google Play Services are updating”,logcat报错,有且只有这个错误信息 ChimeraCfgMgr:failed to read module config:java.io.FileNotFoundException:/data/data/com.google.android.gms/app_chimera/current_config.pb:Open failed:ENOENT(No such file or directory) 文件cannotFound异常,Plugin怎么会造成这个影响?
插件加载谷歌服务时报:This app is using a lightweight version of the Google Mobile Ads SDK that requires the latest Google Play services to be installed, but Google Play services is either missing...
Caused by: java.lang.IllegalArgumentException: isGooglePlayServicesAvailable should only be called with Context from your application's package. A previous call used package 'com.example.ga.myapplication' and this call used package 'com.*****.***'.
我在宿主中用for 循环同时打开两个插件的MainActivity,最终只有前面一个打开了。我打开的代码如下: PackageManager pm = MainActivity.this.getPackageManager(); Intent intent = pm.getLaunchIntentForPackage("包名"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); if (intent != null) { Log.i(TAG, "打开应用:" ); MainActivity.this.startActivity(intent); } else { Log.i(TAG, "应用没有入口activity!"); }
at java.lang.Class.getMethod(Class.java:664) at java.lang.Class.getMethod(Class.java:643) at com.morgoo.droidplugin.reflect.MethodUtils.getAccessibleMethod(MethodUtils.java:143) at com.morgoo.droidplugin.pm.parser.PackageParserApi21.generatePackageInfo(PackageParserApi21.java:190) at com.morgoo.droidplugin.pm.parser.PackageParserApi22.generatePackageInfo(PackageParserApi22.java:60) at com.morgoo.droidplugin.pm.parser.PluginPackageParser.getPackageInfo(PluginPackageParser.java:364) at com.morgoo.droidplugin.pm.IPluginManagerImpl.getPackageInfo(IPluginManagerImpl.java:251) at com.morgoo.droidplugin.pm.PluginManager.getPackageInfo(PluginManager.java:279) at com.example.TestPlugin.ApkFragment$1.getView(ApkFragment.java:82) at android.widget.AbsListView.obtainView(AbsListView.java:2502) at android.widget.ListView.makeAndAddView(ListView.java:1919) at android.widget.ListView.fillSpecific(ListView.java:1366) at android.widget.ListView.layoutChildren(ListView.java:1683) at android.widget.AbsListView.onLayout(AbsListView.java:2265) at android.view.View.layout(View.java:16024)...
机型:魅蓝5--YunOS版本5.1.1--Android版本6.0(其他手机上未发现问题) 编译配置:compileSdkVersion 24,buildToolsVersion '25.0.0',minSdkVersion 15,targetSdkVersion 22。(宿主和插件配置都一样) DroidPlugin代码版本:截止问题发布当天,github最新的代码 情况:在插件中操作数据库时,出现崩溃,报错日志截取如下图 ![image](https://user-images.githubusercontent.com/9280487/29762501-59af4cd4-8c01-11e7-8215-a2d3a800cda8.png)
两个手机加载同一个apk,一个可以加载另一个报-100001错误
system_server 的pid 是858 08-24 14:36:58.204 858-873/? E/ANRManager: writeStringToFile error: /sys/kernel/debug/binder/transaction_log_enable java.io.FileNotFoundException: /sys/kernel/debug/binder/transaction_log_enable (Permission denied) 08-24 14:37:02.141 858-873/? E/ANRManager: ANR in com.andriod.mmp:PluginP01, time=15475123 Reason: executing service com.andriod.mmp/com.morgoo.droidplugin.stub.ServiceStub$StubP01$P00 Load: 11.07 / 10.35...