Commit Graph

12286 Commits

Author SHA1 Message Date
mynameisdeleted
8372ac7566 fix: set LIBUSB_OPTION_NO_DEVICE_DISCOVERY on Android before libusb_init
Android SELinux policy blocks NETLINK_KOBJECT_UEVENT sockets for regular
apps, causing libusb's hotplug event monitor to fail and libusb_init to
return LIBUSB_ERROR_OTHER.

Set LIBUSB_OPTION_NO_DEVICE_DISCOVERY before libusb_init so libusb skips
both the netlink setup and /dev/bus/usb enumeration.  Neither is needed
when the camera fd is injected via libusb_wrap_sys_device.

Apply the same option in the gp_libusb1_open fallback path that allocates
port->pl when gp_libusb1_init failed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 23:17:50 -04:00
mynameisdeleted
7401bf52e1 fix: guard port->pl NULL in Android fd-injection open path
gp_libusb1_init calls libusb_init which can fail on Android (netlink
socket restricted).  When it fails port->pl is freed and set to NULL,
causing a SIGSEGV in gp_libusb1_open.

- Allocate port->pl lazily in gp_libusb1_open's Android fd path so
  open succeeds even if init left port->pl NULL.
- Silence gp_port_init return in Android gp_port_set_info path since
  the open-time fallback handles the failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 23:08:54 -04:00
mynameisdeleted
cf9df982ae feat: add support for statically linked usb1 port driver on Android 2026-06-21 12:13:12 -04:00
mynameisdeleted
8ecb383a96 feat: Android fd-injection and static-linking support for libgphoto2
- gphoto2-camera.c: bypass ltdl for statically-linked ptp2 driver on Android
- gphoto2-port-info-list.c: add usb:fd:N port entry directly (Android has no
  scannable IOLIBS path); guard NULL library_filename in list copy
- libusb1.c: open USB device from pre-opened fd via libusb_wrap_sys_device
  (Android UsbManager fd injection), skip enumeration for usb:fd:N paths

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 11:59:10 -04:00
Marcus Meissner
ba28af2d22 2.5.31 release v2.5.31 libgphoto2-2_5_31-release 2023-09-02 11:17:03 +02:00
Marcus Meissner
5a3df011c4 synced music-plaers.h from libmtp 2023-09-02 11:14:08 +02:00
Marcus Meissner
affa72c60d do not uilock around pcchdcpacity, as this breaks EOS 2000D/1500D for some reason 2023-09-02 11:12:39 +02:00
Marcus Meissner
6b3e29fd0f disable uuilock/unlocking around pcchdd capacity setting.
this irritates the EOS 2000D/1500D to not work and received multiple bug reports
2023-09-02 11:06:29 +02:00
Marcus Meissner
ad30c4f117 updated NEWS 2023-09-02 11:06:21 +02:00
Marcus Meissner
0e31e6be5c increment the wait for the new sony to 3 seconds again. better debuggin 2023-08-21 11:24:16 +02:00
Kris Slyka
297aea1b1b Fix camera crash caused by digigr8 camlib
The digigr8 camlib erroneously sent command 0x1440 to the
connected camera which led to the camera entering webcam capture
mode which caused subsequent commands to fail.

https://github.com/gphoto/libgphoto2/issues/920
2023-08-21 10:39:56 +02:00
Marcus Meissner
a0d9fbc646 added sony a7s mark 3 aka ILCE-7SM3 2023-08-21 10:34:37 +02:00
Marcus Meissner
3d6fd7c825 added friulian 2023-08-17 11:03:00 +02:00
Fabio T
119e3f08fa added friulian translation 2023-08-17 11:02:47 +02:00
Temuri Doghonadze
62a898a987 added georgian 2023-08-17 11:02:26 +02:00
Marcus Meissner
9e7955e2fa added georgian 2023-08-17 11:01:59 +02:00
Temuri Doghonadze
566d605b7c added georgian translation 2023-08-17 11:00:18 +02:00
Ryan Heimbuch
a01aa8831f added fuji focuspoints, focuspoint and zoompos values
merged from NorthOfYou with some adjustments
2023-08-17 10:52:52 +02:00
Marcus Meissner
fc92dda97c add sony mode 300 detection and initialization (from NorthOfYou fork) 2023-08-17 10:30:11 +02:00
Marcus Meissner
3f6cd802da year is 2023 2023-08-17 10:30:01 +02:00
Marcus Meissner
cddacb467b updated 2023-08-17 09:54:58 +02:00
Sebastian Rasmussen
664dc3e347 updated swedish 2023-08-17 09:54:12 +02:00
Antonio Ceballos Roa
c201c4726d updated spanish 2023-08-17 09:53:46 +02:00
Marcus Meissner
b1ad31232c another mtp id 2023-08-17 09:53:15 +02:00
Marcus Meissner
a0f22763ac merged from libmtp 2023-08-17 09:51:41 +02:00
Marcus Meissner
96bc7088d5 moved to other section 2023-08-16 17:54:38 +02:00
Marcus Meissner
d79edf0bba fix typo 2023-08-16 17:53:40 +02:00
Marcus Meissner
b30354cd21 mark some more props as uint32 for now 2023-08-16 17:53:32 +02:00
Ben Govero
1402f88d1a Added special imageformat handling for the 1DX iii
(config table part)
2023-07-29 11:34:14 +02:00
Ben Govero
413aac0c52 Added the 1dx mark ii image format choices 2023-07-29 11:26:03 +02:00
Marcus Meissner
7a57eb12f3 merge over some knowledge from git@github.com:NorthOfYou/libgphoto2.git on newer sony cameras 2023-07-29 11:23:50 +02:00
Ben Govero
beb057ad69 Added Nikon AF-F focus mode value 2023-07-29 11:23:18 +02:00
Ben Govero
fd306b2fc7 merge over new Sony compression, jpeg quality, save format, save size
from git@github.com:NorthOfYou/libgphoto2.git
2023-07-29 11:22:32 +02:00
Marcus Meissner
e82e801e09 on newer EOS, OLC shutterspeed is at byte offset 7 2023-07-29 11:10:02 +02:00
Marcus Meissner
88cafb1759 updatgd news 2023-07-29 11:06:19 +02:00
Marcus Meissner
b431a03440 also allow OMSYSTEM as OLYMPUS equivalent 2023-07-29 10:53:20 +02:00
Marcus Meissner
1393c27683 enable OLYMPUS OM-1 for capture 2023-07-29 10:49:13 +02:00
Ben Govero
839a1bc345 Nikon put_viewfinder down should do a busy check 2023-07-07 13:47:33 +02:00
Marcus Meissner
469271293e fixed liveview size being 32bit now 2023-07-06 13:52:27 +02:00
Marcus Meissner
65882773dc decode nikon autoiso
handle some more rawcompression methods for Z9
handle some more focus metering values for Z9

taken from data in git@github.com:NorthOfYou/libgphoto2.git
2023-07-06 13:49:00 +02:00
Marcus Meissner
3704706661 added nikon z8 2023-07-03 15:35:05 +02:00
Marcus Meissner
90b6fc9306 also adjust liveview size to be 32bit 2023-07-03 14:37:26 +02:00
Ben Govero
046e7b9c3b merged some canon eos pieces from https://github.com/NorthOfYou/libgphoto2
- evfoutputdevice is 32bit, adjusted calls and config table
- focusmode is 32bit, adjusted config table and calls
- added af method config
- multiaspect / aspectratio is 32bit
2023-07-03 14:34:40 +02:00
Marcus Meissner
369145effb aded gopro hero11 black mini 2023-07-03 10:37:43 +02:00
Marcus Meissner
271db31286 added somre more uint32 ones 2023-06-23 16:49:22 +02:00
Marcus Meissner
31123beed6 also decode EOS_LvCFilterKind as 32bit 2023-06-23 16:44:03 +02:00
Marcus Meissner
22be87a93f added PTP_DPC_CANON_EOS_StroboDispState with 32bit 2023-06-23 16:39:51 +02:00
paolodepetrillo
c8b177e1f0 Fix string overflow in camera_summary (#910)
* Avoid buffer overflow

* Truncate long arrays
2023-06-22 09:48:23 +02:00
Ed Maste
16d1eca0b9 Update CI FreeBSD image to latest supported release (#915) 2023-06-22 09:47:35 +02:00
Marcus Meissner
f418c5d518 rename mirrorup -> mirrorlock, disable writeability of status props 2023-06-21 15:47:04 +02:00