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

适配到android 12 #68

Open
tclxjyy41781 opened this issue Oct 27, 2022 · 8 comments
Open

适配到android 12 #68

tclxjyy41781 opened this issue Oct 27, 2022 · 8 comments

Comments

@tclxjyy41781
Copy link

https://github.com/jyy208/whale
弄了一个支持android 12的版本

@maryyMa
Copy link

maryyMa commented Feb 27, 2023

Hi,可以更新下so,这样我就可以不用编译so,直接拿来用了呢?

@tclxjyy41781
Copy link
Author

Hi,可以更新下so,这样我就可以不用编译so,直接拿来用了呢?

OK,已经提交

@maryyMa
Copy link

maryyMa commented Feb 28, 2023

非常感谢,我可以跑了。
另外请教一下,针对一些hidden api该怎么hook呢?
2023-02-28 09:35:19.455 10806-10806/? W/com.mary.boxpr: Accessing hidden method Landroid/app/ActivityManager;->checkUidPermission(Ljava/lang/String;I)I (greylist-max-o, reflection, denied)

@tclxjyy41781
Copy link
Author

非常感谢,我可以跑了。 另外请教一下,针对一些hidden api该怎么hook呢? 2023-02-28 09:35:19.455 10806-10806/? W/com.mary.boxpr: Accessing hidden method Landroid/app/ActivityManager;->checkUidPermission(Ljava/lang/String;I)I (greylist-max-o, reflection, denied)
这个方法应该可以直接hook吧
XposedBridge.hookAllMethods(android.app.ActivityManager.class, "checkUidPermission", new XC_MethodHook(){
@OverRide
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
super.afterHookedMethod(param);
Log.e("ActivityManager", "checkUidPermission : " + Arrays.deepToString(param.args));
}
});

@maryyMa
Copy link

maryyMa commented Mar 14, 2023

hi ,我想问下这些log是什么?我在代码中没有找到?

03-14 07:36:59.404 E/Whale (22383): ArtRuntime::InvokeOriginalMethod start 03-14 07:36:59.405 E/Whale (22383): QuickArgumentBuilder env 0xf1a33640 len 2 03-14 07:36:59.405 E/Whale (22383): QuickArgumentBuilder end array_ 0x1d1 03-14 07:36:59.405 E/Whale (22383): ArtRuntime::InvokeOriginalMethod start 03-14 07:36:59.405 E/Whale (22383): ArtRuntime::InvokeOriginalMethod end 0x0 03-14 07:36:59.405 E/Whale (22383): QuickArgumentBuilder env 0xf1a33640 len 2 03-14 07:36:59.405 E/Whale (22383): QuickArgumentBuilder end array_ 0x1d5 03-14 07:36:59.406 E/Whale (22383): ArtRuntime::InvokeOriginalMethod start 03-14 07:36:59.407 E/Whale (22383): QuickArgumentBuilder env 0xf1a33640 len 2 03-14 07:36:59.407 E/Whale (22383): QuickArgumentBuilder end array_ 0x205 03-14 07:36:59.407 E/Whale (22383): ArtRuntime::InvokeOriginalMethod start 03-14 07:36:59.411 E/Whale (22383): QuickArgumentBuilder env 0xf1a33640 len 2 03-14 07:36:59.411 E/Whale (22383): QuickArgumentBuilder end array_ 0x235

@tclxjyy41781
Copy link
Author

这些日志我在提交的版本中移除了

@maryyMa
Copy link

maryyMa commented Mar 14, 2023

我现在用的就是你提供的so,可否在更新一个没有日志的so,这个刷的有点多

@tclxjyy41781
Copy link
Author

OK,已经提交

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

2 participants