Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

还维护么? #446

Open
menglinxi opened this issue Jan 2, 2019 · 12 comments
Open

还维护么? #446

menglinxi opened this issue Jan 2, 2019 · 12 comments

Comments

@menglinxi
Copy link

这个项目,就这样挂了????????擦。。。。。。。。。。。。。。。

@hhhaiai
Copy link

hhhaiai commented Jan 21, 2019

好像做闪电盒子去了

@lgengsy
Copy link

lgengsy commented Apr 10, 2019

闪电盒子是大佬做的啊

@0924chun
Copy link

有没有正在继续做适配的大牛,交流交流

@cmzy
Copy link
Member

cmzy commented May 27, 2019

@hhhaiai 也不做闪电盒子了。。走了。

@0924chun
Copy link

@cmzy 大佬,9.0稍微改了改后,启动插件提示 Package com.example.myapplication does not belong to 10085 是哪里没hook好啊

@zhoujunyou
Copy link

@cmzy 大佬,9.0稍微改了改后,启动插件提示 Package com.example.myapplication does not belong to 10085 是哪里没hook好啊

我也遇到了同样的问题 ,我这应该是auth 为settings的ContentProvider被提前访问了导致后面没hook到这个本地代理对象。

@0924chun
Copy link

@cmzy 大佬,9.0稍微改了改后,启动插件提示 Package com.example.myapplication does not belong to 10085 是哪里没hook好啊

我也遇到了同样的问题 ,我这应该是auth 为settings的ContentProvider被提前访问了导致后面没hook到这个本地代理对象。

想问下 您现在解决了9.0版本上的启动吗,可以分享点经验吗

@zhoujunyou
Copy link

@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);
        }
    }

}

@0924chun
Copy link

@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);
        }
    }

}

谢谢老哥 我去看看

@hitYOUcry
Copy link

@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);
        }
    }

}

感谢分享。

@hongqingquan
Copy link

@menglinxi 我项目还在坚持用,目前市面上的机型都支持了,有需要的话可以联系哦:QQ 350906193

@menglinxi
Copy link
Author

menglinxi commented Dec 6, 2019 via email

mosentest added a commit to mosentest/DroidPlugin that referenced this issue Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants