How to select or activate main camera only in Android 10 custom ROM - camera

What Android 10 source code must be modified to ensure only the main or rear camera is called by any application accessing the system's cameras?
I have built a custom Android 10 ROM for my phablet which has only one camera. I would like to unify the camera on my ROM so that applications which request the front camera (Zoom, Teams, Skype) cannot crash the system and only open the main/rear camera (only camera).
//Successful launch of main camera (only camera)
mCameraId=0, prev:fd=81, vir=0xe1939000, num=1468, width=960, height=720, time=1305745194872
//Want to prevent the failure of camera initialization
12-11 17:09:58.405 14315 14385 W CameraBase: An error occurred while connecting to camera 1: Status(-8, EX_SERVICE_SPECIFIC): '10: connectHelper:1512: Failed to initialize camera "1": Function not implemented (-38)'
camera_init: hal_err failed to init camera -1

Related

how to detect that camera or mic is turned off on `onUserJoined` agora in react-native

In the agora, there are methods that detect when users turn off the audio (onRemoteAudioStateChanged) of video (onRemoteVideoStateChanged) streams while you are both on a call.
But when one user starts previewing and turns off the cam or mic and then joins a call is there any possibility to detect that on onUserJoined?

photo shoot not working with camera connected to the computer

I am trying to take photos while the camera is connected to the computer. As soon as the camera is connected to to PC the camera changes it's mode to busy. I would like trigger the camera to take picture while it is connected to the computer.
You can use the EdsSendStatusCommand function with kEdsCameraStatusCommand _UIUnLock to use the camera manually while plugged in. Note that some commands issued with the Canon SDK may lock the camera UI again.

Still pin capture on Linux. Is this possible?

A. I have a general understanding question about the "still pin" or "snapshot" functionality on some web cameras: how does this work ? It must be one of the following possibilities:
The camera is on and video is streaming to the host. When the snap button is pressed, a signal is sent to the host's camera driver (/dev/input/event0 on linux), the driver extracts a frame from the stream, and sends it up in the stack.
The camera is on and video is streaming (or not) to the host. When the snap button is pressed, the on board firmware puts aside the current frame, and tells the host a new "still" is available.
B. I have 4 usb cameras attached on a R-Pi (single usb host). All cameras have a still pin. I don't care about the video, no need for streaming, I want to take 4 simultaneous photos. My idea is to trigger all 4 cams to capture a frame using the still pin. How can I capture those 4 images without streaming video (bandwidth issues) ?
Note: I have already experimented a lot and I am capable of capturing a frame from a video stream. My cameras are unknown brands but exposes "video capture" as device caps. When using AMCap on windows, the snap button triggers a snapshot.
Thanks for any help.

Access to SD card on Sony DSC-QX100 camera via Remote Camera API?

I'm working with a Sony DSC-QX100 camera via Sony's Remote Camera api, specifically for use on a Windows 8 tablet (basically replacing the built-in camera of the tablet with this unit). I'm able to consume the camera's LiveView (streaming) and LiveShot (take a picture and retrieve the image from url) features triggered from my application.
My question is whether or not the Remote Camera api exposes any functionality to access pictures stored on the camera's SD card (when it is available). Bottom line, my user may choose to take the picture directly with the camera unit (manually, instead of remotely via my application on the tablet) and I've not yet found the method by which to retrieve this picture from the camera (other than transferring the SD card from camera to pc). Anyone tried this or seen something in the API documentation that I'm missing?
Current Camera Remote API does not provide direct access to SD card.
All available APIs are documented.

How to display custom signal strength display on iOS devices

Our app can't use status bar and we want to display a custom signal strength on iOS devices? Is that possible?