w2016561536 / android_virtual_cam

xposed安卓虚拟摄像头 android virtual camera on xposed hook
MIT License
1.31k stars 369 forks source link

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

Open Salim780x opened 2 years ago

Salim780x commented 2 years ago

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

Salim780x commented 2 years ago

IMG_20220624_030355.jpg

Salim780x commented 2 years ago

?

DenisRyazantsev commented 1 year ago

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

Salim780x commented 1 year ago

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

DenisRyazantsev commented 1 year ago

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

dashrecover commented 1 year ago

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.

DenisRyazantsev commented 1 year ago

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.

dashrecover commented 1 year ago

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 XCMethodHook() { 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: @.***>

Gq112211 commented 9 months ago

好的,我找到了问题函数: XposedHelpers.findAndHookMethod(callback, "onPictureTaken", byte[].class, android.hardware.Camera.class, new XC_MethodHook() {

正如你所看到的,它android.hardware.Camera.class用于挂钩。这是现代 Android 设备中已弃用的类,相机应用程序很可能会android.hardware.camera2使用android.hardware.camera.

因此,我们只需要在该项目中添加对 Camera2 API(和 CameraX API)的支持,即可将其用于任何相机应用程序^_^

Can you help? I'm willing to pay. @pixiu686868

dashrecover commented 9 months ago

Would you mind adding me on whatsapp? +1 646 645 0215 I can pay you to help me work with specifica apps. I don't have experience with coding.

On Tue, Oct 17, 2023 at 2:48 AM Gq112211 @.***> wrote:

好的,我找到了问题函数: XposedHelpers.findAndHookMethod(callback, "onPictureTaken", byte[].class, android.hardware.Camera.class, new XC_MethodHook() {

正如你所看到的,它android.hardware.Camera.class用于挂钩。这是现代 Android 设备中已弃用的类,相机应用程序很可能会android.hardware.camera2使用android.hardware.camera.

因此,我们只需要在该项目中添加对 Camera2 API(和 CameraX API)的支持,即可将其用于任何相机应用程序^_^

Can you help? I'm willing to pay. @pixiu686868

— Reply to this email directly, view it on GitHub https://github.com/w2016561536/android_virtual_cam/issues/116#issuecomment-1765773152, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3ZXO2JFBXHZG7DCHJPCSZDX7YS2XAVCNFSM5ZVWEJSKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZWGU3TOMZRGUZA . You are receiving this because you commented.Message ID: @.***>

AexVenture commented 5 months ago

I'm willing to work on this issue. You can contact me if anyone still need it: alextls128@gmail.com