-
Notifications
You must be signed in to change notification settings - Fork 215
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
Vivo X90 Android 13 异常闪退 #37
Labels
duplicate
This issue or pull request already exists
Comments
能提供一下 hook 的是哪个方法吗,我这里没有复现出来 |
|
我尝试使用如下代码,未能复现闪退。麻烦确认一下同样的代码是否能在你那里复现闪退。 try {
Pine.hook(Camera.class.getDeclaredMethod("native_setup", Object.class, int.class, String.class), new MethodHook() {
@Override
public void beforeCall(Pine.CallFrame callFrame) throws Throwable {
Log.e(TAG, "Calling with" + Arrays.toString(callFrame.args));
}
});
} catch (NoSuchMethodException e) {
throw new RuntimeException(e);
}
for (int i = 0;i < 2000;i++) {
Camera camera = Camera.open();
Log.e(TAG, "Opened " + i + " camera");
camera.release();
}
Log.e(TAG, "Camera test done"); |
在另一款小米13(也是Android 13的系统)使用了上面那段代码,debuggable=true/false都是一样的,没有开启pending hook
|
看起来这个错误和一开始的错误不一样,我怀疑是 ROM bug 或者参数解析方面有问题?把 hook 去掉,只保留循环和循环里面的代码再试试 |
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: