android_virtual_cam icon indicating copy to clipboard operation
android_virtual_cam copied to clipboard

一切都得到尊重,但手机只打开相机而不是 DCIM/Camera1 中的照片

Open Salim780x opened this issue 2 years ago • 11 comments

您好亲爱的开发人员感谢您的应用程序即使我暂时无法使用它我向您解释我的问题,您的模块已安装并使用 lsposed 激活,我在 1000.bmp 中介绍了照片,在 DCIM Camera1 中,我打开我的应用程序或出现气泡消息,要求我使用 JPEG 设置相同的分辨率,突然我通过重命名 JPEG 重新命名,但应用程序仍然没有在手机摄像头上打开。 请问你有解释吗? 泡沫仍然存在,我尊重其他地方的决议。

Salim780x avatar Jun 23 '22 21:06 Salim780x

IMG_20220624_030355.jpg

Salim780x avatar Jun 24 '22 01:06 Salim780x

?

Salim780x avatar Jul 08 '22 11:07 Salim780x

The same situation. I'm using Pixel 2 and this camera application https://github.com/robertlevonyan/camerax-demo.

DenisRyazantsev avatar Jul 19 '22 15:07 DenisRyazantsev

The problem is that they do not even respond to their problem concerning their project..

Salim780x avatar Jul 19 '22 15:07 Salim780x

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 ^_^

DenisRyazantsev avatar Jul 20 '22 13:07 DenisRyazantsev

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.

dashrecover avatar Oct 25 '22 04:10 dashrecover

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 tutorial.

DenisRyazantsev avatar Oct 26 '22 16:10 DenisRyazantsev

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: @.***>

dashrecover avatar Oct 27 '22 13:10 dashrecover