Skip to content

Commit

Permalink
Add more configs, fix some small bugs
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Jun 18, 2013
1 parent a0e16ef commit c52488a
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 3 deletions.
12 changes: 12 additions & 0 deletions config/dyn-modes/adb_mode.ini
@@ -0,0 +1,12 @@
[mode]
name = adb_mode
module = none
network = 1
network_interface = usb0
sysfs_path = /sys/class/android_usb/android0/functions
sysfs_value = rndis,adb
sysfs_reset_value = none
softconnect_path = /sys/class/android_usb/android0/enable
softconnect = 1
softconnec_disconnect = 0

12 changes: 12 additions & 0 deletions config/dyn-modes/developer_mode-android.ini
@@ -0,0 +1,12 @@
[mode]
name = developer_mode
module = none
network = 1
network_interface = usb0
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
softconnec_disconnect = 0

10 changes: 10 additions & 0 deletions config/dyn-modes/mtp_mode-android.ini
@@ -0,0 +1,10 @@
[mode]
name = mtp_mode
module = none
sysfs_path = /sys/class/android_usb/android0/functions
sysfs_value = mtp
sysfs_reset_value = none
softconnect_path = /sys/class/android_usb/android0/enable
softconnect = 1
softconnec_disconnect = 0

4 changes: 4 additions & 0 deletions config/run/adb.ini
@@ -0,0 +1,4 @@
[info]
name = adbd.service
mode = adb_mode
systemd = 1
2 changes: 1 addition & 1 deletion configure.ac
@@ -1,4 +1,4 @@
AC_INIT([usb_moded], [0.62])
AC_INIT([usb_moded], [0.63])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])

AM_CONFIG_HEADER([config.h])
Expand Down
4 changes: 2 additions & 2 deletions src/usb_moded-dyn-config.h
Expand Up @@ -34,7 +34,7 @@
#define MODE_OPTIONS_ENTRY "options"
#define MODE_SYSFS_PATH "sysfs_path"
#define MODE_SYSFS_VALUE "sysfs_value"
#define MODE_SYSFS_RESET_VALUE "sysfs_value"
#define MODE_SYSFS_RESET_VALUE "sysfs_reset_value"
#define MODE_SOFTCONNECT "softconnect"
#define MODE_SOFTCONNECT_DISCONNECT "softconnec_disconnect"
#define MODE_SOFTCONNECT_PATH "softconnect_path"
Expand All @@ -54,7 +54,7 @@ typedef struct mode_list_elem
char *sysfs_value; /* option name/value to write to sysfs */
char *sysfs_reset_value; /* value to reset the the sysfs to default */
char *softconnect; /* value to be written to softconnect interface */
char *softconnect_disconnect; /* vlaue to set on the softconnect interface to disable after disconnect */
char *softconnect_disconnect; /* value to set on the softconnect interface to disable after disconnect */
char *softconnect_path; /* path for the softconnect */
/*@} */
}mode_list_elem;
Expand Down

0 comments on commit c52488a

Please sign in to comment.