wangwei1237 / CameraHook

122 stars 39 forks source link

NoSuchMethodError #1

Open palewithout opened 4 years ago

palewithout commented 4 years ago

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

wangwei1237 commented 4 years ago

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.

palewithout commented 4 years ago

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

w2016561536 commented 3 years ago

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