android_virtual_cam
android_virtual_cam copied to clipboard
一切都得到尊重,但手机只打开相机而不是 DCIM/Camera1 中的照片
您好亲爱的开发人员感谢您的应用程序即使我暂时无法使用它我向您解释我的问题,您的模块已安装并使用 lsposed 激活,我在 1000.bmp 中介绍了照片,在 DCIM Camera1 中,我打开我的应用程序或出现气泡消息,要求我使用 JPEG 设置相同的分辨率,突然我通过重命名 JPEG 重新命名,但应用程序仍然没有在手机摄像头上打开。 请问你有解释吗? 泡沫仍然存在,我尊重其他地方的决议。
?
The same situation. I'm using Pixel 2 and this camera application https://github.com/robertlevonyan/camerax-demo.
The problem is that they do not even respond to their problem concerning their project..
Okay, I found the problem function:
XposedHelpers.findAndHookMethod(callback, "onPictureTaken", byte[].class, android.hardware.Camera.class, new XC_MethodHook() {
As you can see the android.hardware.Camera.class
is used for hooking. This is a deprecated class in modern Android devices and the camera application with high probability will use android.hardware.camera2
instead of android.hardware.camera
.
Therefore, we just need to add support for the Camera2 API (and CameraX API) to this project in order to use it for any camera application ^_^
Okay, I found the problem function:
XposedHelpers.findAndHookMethod(callback, "onPictureTaken", byte[].class, android.hardware.Camera.class, new XC_MethodHook() {
As you can see the
android.hardware.Camera.class
is used for hooking. This is a deprecated class in modern Android devices and the camera application with high probability will useandroid.hardware.camera2
instead ofandroid.hardware.camera
.Therefore, we just need to add support for the Camera2 API (and CameraX API) to this project in order to use it for any camera application ^_^
Would you mind helping me with an specific app? I am trying to make it work but can't.
Okay, I found the problem function:
XposedHelpers.findAndHookMethod(callback, "onPictureTaken", byte[].class, android.hardware.Camera.class, new XC_MethodHook() {
As you can see theandroid.hardware.Camera.class
is used for hooking. This is a deprecated class in modern Android devices and the camera application with high probability will useandroid.hardware.camera2
instead ofandroid.hardware.camera
. Therefore, we just need to add support for the Camera2 API (and CameraX API) to this project in order to use it for any camera application ^_^Would you mind helping me with an specific app? I am trying to make it work but can't.
Unfortunately, I deleted the project with the correct code. I tried to remember what exactly I changed, but this project is very complex, and I did not succeed. The main idea is to use hooks, so I think you could choose something easier to learn. For example this tutorial.
What if I use an old android then?
On Wed, Oct 26, 2022 at 12:33 PM Dennis Ryazantsev @.***> wrote:
Okay, I found the problem function: XposedHelpers.findAndHookMethod(callback, "onPictureTaken", byte[].class, android.hardware.Camera.class, new XC_MethodHook() { As you can see the android.hardware.Camera.class is used for hooking. This is a deprecated class in modern Android devices and the camera application with high probability will use android.hardware.camera2 instead of android.hardware.camera. Therefore, we just need to add support for the Camera2 API (and CameraX API) to this project in order to use it for any camera application ^_^
Would you mind helping me with an specific app? I am trying to make it work but can't.
Unfortunately, I deleted the project with the correct code. I tried to remember what exactly I changed, but this project is very complex, and I did not succeed. The main idea is to use hooks, so I think you could choose something easier to learn. For example this https://github.com/rovo89/XposedBridge/wiki/Development-tutorial#using-reflection-to-find-and-hook-a-method tutorial.
— Reply to this email directly, view it on GitHub https://github.com/w2016561536/android_virtual_cam/issues/116#issuecomment-1292309445, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3ZXO2LO2FE7GIAO544RB53WFFMNFANCNFSM5ZVWEJSA . You are receiving this because you commented.Message ID: @.***>