I want my computer to be able to use the phone as a camera, ie. I want my computer to be able to press the “take photo” or “take video” without having to build a mechanical finger (and attaching another camera - which I don’t have, that’s precisely the point - to have a feedback loop in order to make sure everything works smoothly
Does any Android phone actually support this? Anyway, in the meantime you can use something like IP Webcam. It works over Wi-Fi, as well as over USB tethering (192.168.42.129:8080).
didn’t think of using an app… it’s just very annoying that one buys a phone, then either has to survive all the adds or pay more to get access to features that really should be included and either way risk installing malware
That’s why I asked you if any Android phone actually supports this feature. Because until now I haven’t really heard of it. You can definitely contactsupport and make an official feature request. But I honestly doubt they will give it a high priority.
You obviously have little knowledge about how electronics and computers work ; the operating system is technically not the firmware. The “camera” is already an app that is installed by default in the OS.
Find some apps that does not require payment and that have the same functionality as the packaged app. Test it, then once you’ve found something that is suitable let me know. Also tell me how much time you will have spent doing this.
As an alternative, clone the source code of the packaged app, add a few lines of code to have the new feature, make a pull request.
But oh… the source code is not available. And the phone is not rooted, so it might not even be possible to remove the camera app (risk of “bricking” the phone, they say).
Why do you expect gphoto2 to work with a phone in that way? Have you had a look at their documentation? There are only proper cameras listed as supported with remote control.
You can use something along the lines of …
adb shell 'am start -a android.media.action.IMAGE_CAPTURE && input keyevent CAMERA'
… to take pictures, you’ll obviously have to refine that further, have fun with that.
Use scrcpy if you need a visual component for that or want to use your phone’s screen as a webcam in Linux.
This is a user forum, none of us get paid to help you, so good luck, I’m out
Correct phone status while trying adb access?
Windows or Linux Desktop?
USB data, cable? Other cables? Other USB port?
Driver update on desktop available?
Sudo access on Linux?
GNU Linux (I don’t have a recent Windows machine to test). OS is Gentoo 2.9 with default/linux/amd64/17.1/desktop profile.
USB data, cable? Other cables? Other USB port?
cable is fine, USB ports are fine.
on laptop only adb works (not fastboot). on desktop, none work. lsusb shows the phone in all cases. gphoto2 gets correct phone status on desktop (untested on laptop). android-file-transfer fails on desktop (was OK with my previous phone), succeeds on laptop
Driver update on desktop available?
android-tools dist version is 33.0.3-r1, same on both my machines.
Android Debug Bridge version 1.0.41
Sudo access on Linux?
tried as a user, and as root. have been using Linux for almost two decades, and have passed LPI/101/102, I am pretty sure my user permissions are correct.
When you connect your phone to the computer, you have to set the phone to “File transfer” or something else by swiping down from the top and tapping the “Charging” notification. Then you can change the connection mode from “Charging” to “File transfer" or something else.
And if your desktop still doesn’t see your phone, then it could be that the permission isn’t good.
So revoke USB debugging authorisations in the Developer options.
you have to set the phone to “File transfer” or something else
yes
So revoke USB debugging authorisations in the Developer options.
I tried toggling these options on and off. Early in the trials, I had the strange issue of having to enable developer mode twice (I even have a witness to this who is a computer engineer)