Skip to content

Commit

Permalink
[dcd] Initial MTP & usb-moded configfs setup
Browse files Browse the repository at this point in the history
  • Loading branch information
JamiKettunen committed Nov 1, 2019
1 parent d23a2fc commit 6dfc152
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 0 additions & 4 deletions patterns/jolla-hw-adaptation-cheeseburger.yaml
Expand Up @@ -67,10 +67,6 @@ Requires:
## USB mode controller
# Enables mode selector upon plugging USB cable:
- usb-moded
- usb-moded-defaults-android
- usb-moded-developer-mode-android
# Connection sharing via USB (careful with roaming!)
- usb-moded-connection-sharing-android-config

# hammerhead, grouper, and maguro use this in scripts, so include for all
- rfkill
Expand Down
4 changes: 4 additions & 0 deletions rpm/droid-config-cheeseburger.spec
Expand Up @@ -9,6 +9,10 @@
%define community_adaptation 1
%define pixel_ratio 1.8

# Device-specific usb-moded configuration
Provides: usb-moded-configs
Obsoletes: usb-moded-defaults

# Device-specific ofono configuration
Provides: ofono-configs
Obsoletes: ofono-configs-mer
Expand Down
1 change: 0 additions & 1 deletion sparse/etc/systemd/system/dev-mtp.mount

This file was deleted.

3 changes: 3 additions & 0 deletions sparse/etc/usb-moded/usb-moded-configfs.ini
@@ -0,0 +1,3 @@
[configfs]
gadget_conf_directory = configs/c.1
function_rndis = rndis.usb0
2 changes: 2 additions & 0 deletions sparse/etc/usb-moded/usb-moded.ini
@@ -0,0 +1,2 @@
[usbmode]
mode=ask

0 comments on commit 6dfc152

Please sign in to comment.