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
[Ask for help]ApplicationPackageManager cannot be cast to android.view.SurfaceControl #8
Comments
You are casting Method getInternalDisplayToken is a static method, so correct your stub class and call |
很抱歉又来叨扰您了。 另外是只要获取了Shizuku权限就可以只通过HiddenApiRefinePlugin中的方法就可以直接访问到Hidden-API了吗?还是要继续使用Shizuku-API里的"Using Shizuku APIs: Remote binder call"中的方法。 |
这个 API 可能是受到 Android 非 SDK API 限制 你有在使用绕过该限制的库吗 类似 AndroidHiddenApiBypass |
@Kr328 非常感谢,通过 https://github.com/LSPosed/AndroidHiddenApiBypass 我已经可以调用到API。 |
这类操作一般仅有系统进程或者特权应用拥有权限访问 你可以使用 Sui 和 Shizuku 来在特权进程下调用 API 具体可以在这俩仓库的 README.md 了解如何使用 在使用时可能会需要了解 API 的具体逻辑 可以使用 Code Search 阅读源代码 再具体的我无法提供帮助 |
Binder 是 Client/Server 的结构, |
I want to call a hidden api in android.view.SurfaceControl.
So I call this in my app module.
And my "hidden-api" module is like
But when the app actually call the hidden api, it causes
Did I make a mistake somewhere? Please help point it out. Thank you very much.
The text was updated successfully, but these errors were encountered: