diff --git a/config/dyn-modes/connection_sharing-android-connman.ini b/config/dyn-modes/connection_sharing-android-connman.ini new file mode 100644 index 0000000..87e4067 --- /dev/null +++ b/config/dyn-modes/connection_sharing-android-connman.ini @@ -0,0 +1,13 @@ +[mode] +name = connection_sharing +module = none + +[options] +sysfs_path = /sys/class/android_usb/android0/functions +sysfs_value = rndis +sysfs_reset_value = none +softconnect_path = /sys/class/android_usb/android0/enable +softconnect = 1 +softconnect_disconnect = 0 +idProduct = 0A02 +connman_tethering = /net/connman/technology/gadget diff --git a/rpm/usb-moded.spec b/rpm/usb-moded.spec index 8a74daa..1298277 100644 --- a/rpm/usb-moded.spec +++ b/rpm/usb-moded.spec @@ -235,6 +235,19 @@ system bus. This package contains configuration to enable sharing the cellular data connection over the USB with the android gadget driver. +%package connection-sharing-android-connman-config +Summary: USB mode controller - USB/cellular data connection sharing config +Group: Config + +%description connection-sharing-android-connman-config +Usb_moded is a daemon to control the USB states. For this +it loads unloads the relevant usb gadget modules, keeps track +of the filesystem(s) and notifies about changes on the DBUS +system bus. + +This package contains configuration to enable sharing the cellular data +connection over the USB with the connman gadget driver. + %package mass-storage-android-config Summary: USB mode controller - mass-storage config with android gadget Group: Config @@ -420,6 +433,10 @@ systemctl daemon-reload || : %{_sysconfdir}/usb-moded/dyn-modes/connection_sharing.ini %{_sysconfdir}/usb-moded/run/udhcpd-connection-sharing.ini +%files connection-sharing-android-connman-config +%defattr(-,root,root,-) +%{_sysconfdir}/usb-moded/dyn-modes/connection_sharing-android-connman.ini + %files mass-storage-android-config %defattr(-,root,root,-) %{_sysconfdir}/usb-moded/dyn-modes/mass_storage_android.ini