Comments (12)
@cmzy 大佬,9.0稍微改了改后,启动插件提示 Package com.example.myapplication does not belong to 10085 是哪里没hook好啊
我也遇到了同样的问题 ,我这应该是auth 为settings的ContentProvider被提前访问了导致后面没hook到这个本地代理对象。
想问下 您现在解决了9.0版本上的启动吗,可以分享点经验吗
解决上面的问题后 在Nexus_6P_API_28上是将插件的Activity起来了,还不知道后面有啥问题
我是在PluginProcessManager的preLoadApk中 暴力清了下Provider本地缓存
public static void removeSettingsProvider() {
if (Build.VERSION.SDK_INT >= 28) {
try {
Object object = ActivityThreadCompat.currentActivityThread();
Object mProviderMapObj = FieldUtils.readField(object, "mProviderMap");
MethodUtils.invokeMethod(mProviderMapObj, "clear");
Object mProviderRefCountMap = FieldUtils.readField(object, "mProviderRefCountMap");
MethodUtils.invokeMethod(mProviderRefCountMap, "clear");
Object sProviderHolder = FieldUtils.readStaticField(Class.forName("android.provider.Settings$Global"), "sProviderHolder");
FieldUtils.writeField(sProviderHolder, "mContentProvider", null);
sProviderHolder = FieldUtils.readStaticField(Class.forName("android.provider.Settings$System"), "sProviderHolder");
FieldUtils.writeField(sProviderHolder, "mContentProvider", null);
sProviderHolder = FieldUtils.readStaticField(Class.forName("android.provider.Settings$Secure"), "sProviderHolder");
FieldUtils.writeField(sProviderHolder, "mContentProvider", null);
} catch (Exception e) {
Log.e("Android28Helper", "removeSettingsProvider", e);
}
}
}
from droidplugin.
好像做闪电盒子去了
from droidplugin.
闪电盒子是大佬做的啊
from droidplugin.
有没有正在继续做适配的大牛,交流交流
from droidplugin.
@hhhaiai 也不做闪电盒子了。。走了。
from droidplugin.
@cmzy 大佬,9.0稍微改了改后,启动插件提示 Package com.example.myapplication does not belong to 10085 是哪里没hook好啊
from droidplugin.
@cmzy 大佬,9.0稍微改了改后,启动插件提示 Package com.example.myapplication does not belong to 10085 是哪里没hook好啊
我也遇到了同样的问题 ,我这应该是auth 为settings的ContentProvider被提前访问了导致后面没hook到这个本地代理对象。
from droidplugin.
@cmzy 大佬,9.0稍微改了改后,启动插件提示 Package com.example.myapplication does not belong to 10085 是哪里没hook好啊
我也遇到了同样的问题 ,我这应该是auth 为settings的ContentProvider被提前访问了导致后面没hook到这个本地代理对象。
想问下 您现在解决了9.0版本上的启动吗,可以分享点经验吗
from droidplugin.
@cmzy 大佬,9.0稍微改了改后,启动插件提示 Package com.example.myapplication does not belong to 10085 是哪里没hook好啊
我也遇到了同样的问题 ,我这应该是auth 为settings的ContentProvider被提前访问了导致后面没hook到这个本地代理对象。
想问下 您现在解决了9.0版本上的启动吗,可以分享点经验吗
解决上面的问题后 在Nexus_6P_API_28上是将插件的Activity起来了,还不知道后面有啥问题
我是在PluginProcessManager的preLoadApk中 暴力清了下Provider本地缓存
public static void removeSettingsProvider() {
if (Build.VERSION.SDK_INT >= 28) {
try {
Object object = ActivityThreadCompat.currentActivityThread();
Object mProviderMapObj = FieldUtils.readField(object, "mProviderMap");
MethodUtils.invokeMethod(mProviderMapObj, "clear");
Object mProviderRefCountMap = FieldUtils.readField(object, "mProviderRefCountMap");
MethodUtils.invokeMethod(mProviderRefCountMap, "clear");Object sProviderHolder = FieldUtils.readStaticField(Class.forName("android.provider.Settings$Global"), "sProviderHolder"); FieldUtils.writeField(sProviderHolder, "mContentProvider", null); sProviderHolder = FieldUtils.readStaticField(Class.forName("android.provider.Settings$System"), "sProviderHolder"); FieldUtils.writeField(sProviderHolder, "mContentProvider", null); sProviderHolder = FieldUtils.readStaticField(Class.forName("android.provider.Settings$Secure"), "sProviderHolder"); FieldUtils.writeField(sProviderHolder, "mContentProvider", null); } catch (Exception e) { Log.e("Android28Helper", "removeSettingsProvider", e); } } }
谢谢老哥 我去看看
from droidplugin.
@cmzy 大佬,9.0稍微改了改后,启动插件提示 Package com.example.myapplication does not belong to 10085 是哪里没hook好啊
我也遇到了同样的问题 ,我这应该是auth 为settings的ContentProvider被提前访问了导致后面没hook到这个本地代理对象。
想问下 您现在解决了9.0版本上的启动吗,可以分享点经验吗
解决上面的问题后 在Nexus_6P_API_28上是将插件的Activity起来了,还不知道后面有啥问题
我是在PluginProcessManager的preLoadApk中 暴力清了下Provider本地缓存
public static void removeSettingsProvider() {
if (Build.VERSION.SDK_INT >= 28) {
try {
Object object = ActivityThreadCompat.currentActivityThread();
Object mProviderMapObj = FieldUtils.readField(object, "mProviderMap");
MethodUtils.invokeMethod(mProviderMapObj, "clear");
Object mProviderRefCountMap = FieldUtils.readField(object, "mProviderRefCountMap");
MethodUtils.invokeMethod(mProviderRefCountMap, "clear");Object sProviderHolder = FieldUtils.readStaticField(Class.forName("android.provider.Settings$Global"), "sProviderHolder"); FieldUtils.writeField(sProviderHolder, "mContentProvider", null); sProviderHolder = FieldUtils.readStaticField(Class.forName("android.provider.Settings$System"), "sProviderHolder"); FieldUtils.writeField(sProviderHolder, "mContentProvider", null); sProviderHolder = FieldUtils.readStaticField(Class.forName("android.provider.Settings$Secure"), "sProviderHolder"); FieldUtils.writeField(sProviderHolder, "mContentProvider", null); } catch (Exception e) { Log.e("Android28Helper", "removeSettingsProvider", e); } } }
感谢分享。
from droidplugin.
@menglinxi 我项目还在坚持用,目前市面上的机型都支持了,有需要的话可以联系哦:QQ 350906193
from droidplugin.
from droidplugin.
Related Issues (20)
- 微信登录,调不起微信界面 HOT 1
- 使用jks签名后的apk无法启动,默认debug可以正常启动 HOT 2
- 安装插件后,打开插件activity会出现class not found HOT 1
- 请问一下,可以把一个第三方apk作为插件,免安装启动吗?
- 在demo上可以安装,但启动即崩溃
- 启动奔溃
- 适配Android P空工程插件打开失败
- 7.1.2设备启动崩溃 HOT 1
- 安装apk失败,提示INSTALL_FAILED_CONFLICTING_PROVIDER HOT 1
- 安装插件失败 HOT 1
- Caused by: java.lang.NoSuchMethodException: collectCertificates [class android.content.pm.PackageParser$Package, int] HOT 1
- android9.0启动插件卡住 HOT 5
- Fake system service faile
- com.example.ApiTestcom.example.ApiTest.MyActivity HOT 11
- Unknown calling package name xxx
- 找到一个不太算bug的NPE--望DroidPluginTeam采纳
- is 32-bit instead of 64-bit
- Android10以上有适配了的么
- 输入框无法输入,点击5秒后崩溃。dispatching input event
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from droidplugin.