Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Salim780x opened this issue Jun 23, 2022 · 11 comments

Comments

@Salim780x
Copy link

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

@Salim780x
Copy link
Author

IMG_20220624_030355.jpg

@Salim780x
Copy link
Author

?

@DenisRyazantsev
Copy link

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

@Salim780x
Copy link
Author

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

@DenisRyazantsev
Copy link

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
Copy link

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
Copy link

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
Copy link

dashrecover commented Oct 27, 2022 via email

@Gq112211
Copy link

好的,我找到了问题函数: 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
Copy link

dashrecover commented Oct 17, 2023 via email

@alextls128
Copy link

alextls128 commented Jan 31, 2024

I'm willing to work on this issue. You can contact me if anyone still need it: [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants