CameraHook icon indicating copy to clipboard operation
CameraHook copied to clipboard

NoSuchMethodError

Open palewithout opened this issue 4 years ago • 3 comments

I got NoSuchMethodError like this when hooked douyin v12.0.0, seems that there was no method "a"? image

palewithout avatar Jul 23 '20 15:07 palewithout

I find this situation in my development process. This is because the class name is change after the code be handled using ProGuard.

To find the new class name, you should reverse engineering the apk, and search "setPreviewTexture" in the project. And then, get the new class name.

wangwei1237 avatar Jul 24 '20 11:07 wangwei1237

I found that douyin has used the camera2 API in newest version,so there may be lots of work to deal with this problem.......

palewithout avatar Jul 24 '20 13:07 palewithout

Tiktok , It does use the Camera2 API , I have a solution to hook Camera2 api and it doesn't need to definite the app's package name and activity . my repo https://github.com/w2016561536/android_virtual_cam

w2016561536 avatar Aug 22 '21 10:08 w2016561536