Compatibility with Edxposed's Xposed Hide #160

Closed
opened 3 years ago by Walker · 2 comments
Walker commented 3 years ago

I've used CustoMIUIzer for a long time, it's a quite amazing module! Recently, I updated my EdXposed to 0.5.1.4 and EdXposed Manager to v4.6.0.The latest version of EdXposed Manager provides a white-list feature called XposedHide for better performance.I can enable specific apps that I would like to hook instead of all the apps.

In CustoMIUIzer, the 'Clean share menu' & 'Clean open with menu' are really useful for me.But when I turn on the EdXposed's XposedHide, these clean menu mods don't work anymore.The first idea came to me is that I must enable apps that take charge of those menus.Then I read the source code of custoMIUIzer, I found these related classes & methods:

public static void CleanShareMenuHook() {
		Helpers.hookAllMethods("miui.securityspace.XSpaceResolverActivityHelper.ResolverActivityRunner", null, "run", new MethodHook() {
        ....

public static void CleanShareMenuServiceHook(LoadPackageParam lpparam) {
		Helpers.findAndHookMethod("com.android.server.pm.PackageManagerService"
        ....

public static void CleanOpenWithMenuHook() {
		Helpers.hookAllMethods("miui.securityspace.XSpaceResolverActivityHelper.ResolverActivityRunner", null, "run", new MethodHook() {
        ...

public static void CleanOpenWithMenuServiceHook(LoadPackageParam lpparam) {
		Helpers.findAndHookMethod("com.android.server.pm.PackageManagerService", lpparam.classLoader, "systemReady", new MethodHook() {
        ...

However, I could not see miui.securityspace.XSpaceResolverActivityHelper nor com.android.server.pm.PackageManagerService in the apps list.

Is there any thing I missed?How can I make clean menus mod work with EdXposed's XposedHide?

I've used CustoMIUIzer for a long time, it's a quite amazing module! Recently, I updated my EdXposed to 0.5.1.4 and EdXposed Manager to v4.6.0.The latest version of EdXposed Manager provides a white-list feature called XposedHide for better performance.I can enable specific apps that I would like to hook instead of all the apps. In CustoMIUIzer, the 'Clean share menu' & 'Clean open with menu' are really useful for me.But when I turn on the EdXposed's XposedHide, these clean menu mods don't work anymore.The first idea came to me is that I must enable apps that take charge of those menus.Then I read the source code of custoMIUIzer, I found these related classes & methods: ```java public static void CleanShareMenuHook() { Helpers.hookAllMethods("miui.securityspace.XSpaceResolverActivityHelper.ResolverActivityRunner", null, "run", new MethodHook() { .... public static void CleanShareMenuServiceHook(LoadPackageParam lpparam) { Helpers.findAndHookMethod("com.android.server.pm.PackageManagerService" .... public static void CleanOpenWithMenuHook() { Helpers.hookAllMethods("miui.securityspace.XSpaceResolverActivityHelper.ResolverActivityRunner", null, "run", new MethodHook() { ... public static void CleanOpenWithMenuServiceHook(LoadPackageParam lpparam) { Helpers.findAndHookMethod("com.android.server.pm.PackageManagerService", lpparam.classLoader, "systemReady", new MethodHook() { ... ``` However, I could not see `miui.securityspace.XSpaceResolverActivityHelper` nor `com.android.server.pm.PackageManagerService` in the apps list. Is there any thing I missed?How can I make clean menus mod work with EdXposed's XposedHide?
Walker commented 3 years ago
Poster

I turned off the XposedHide, now the hook is enabe globally.But the clean menu mods are still NOT working.I think CustoMIUIzer is not compat with MIUI 12.5(Based on Android 11) for now.

Is there any plan to make clean menu mods working on MIUI12.5?

I turned off the XposedHide, now the hook is enabe globally.But the clean menu mods are still NOT working.I think CustoMIUIzer is not compat with MIUI 12.5(Based on Android 11) for now. Is there any plan to make clean menu mods working on MIUI12.5?
Owner

com.android.server.pm.PackageManagerService is inside system_server process with android package name. miui.securityspace.XSpaceResolverActivityHelper is a framework class so you have to whitelist every single app where you want these mods to work.

I think CustoMIUIzer is not compat with ... Android 11 for now. Is there any plan to make clean menu mods working on MIUI12.5?

No shit, Sherlock :) No plans.

`com.android.server.pm.PackageManagerService` is inside system_server process with `android` package name. `miui.securityspace.XSpaceResolverActivityHelper` is a framework class so you have to whitelist every single app where you want these mods to work. > I think CustoMIUIzer is not compat with ... Android 11 for now. > Is there any plan to make clean menu mods working on MIUI12.5? No shit, Sherlock :) No plans.
Mikanoshi added the
Android 11
label 3 years ago
Mikanoshi closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Mikanoshi/CustoMIUIzer#160
Loading…
There is no content yet.