Commit ef5d87bf authored by Philippe De Swert's avatar Philippe De Swert

[usb-moded] Use different usb product ID's to avoid clashes with

default behaviour.
Signed-off-by: default avatarPhilippe De Swert <philippe.deswert@jollamobile.com>
parent 756376fc
......@@ -12,4 +12,4 @@ sysfs_reset_value = none
softconnect_path = /sys/class/android_usb/android0/enable
softconnect = 1
softconnec_disconnect = 0
idProduct = 0003
idProduct = 0A03
......@@ -11,4 +11,4 @@ sysfs_reset_value = none
softconnect_path = /sys/class/android_usb/android0/enable
softconnect = 1
softconnec_disconnect = 0
idProduct = 0002
idProduct = 0A02
......@@ -16,4 +16,4 @@ android_extra_sysfs_path = /sys/class/android_usb/android0/f_diag/clients
android_extra_sysfs_value = diag
android_extra_sysfs_path2 = /sys/class/android_usb/android0/f_serial/transports
android_extra_sysfs_value2 = smd,tty
idProduct = 0004
idProduct = 0A04
......@@ -9,4 +9,4 @@ sysfs_reset_value = none
softconnect_path = /sys/class/android_usb/android0/enable
softconnect = 1
softconnec_disconnect = 0
idProduct = 0001
idProduct = 0A01
......@@ -91,7 +91,7 @@ int set_android_charging_mode(void)
/* disable, set functions to "mass_storage", re-enable */
write_to_file("/sys/class/android_usb/android0/enable", "0");
write_to_file("/sys/class/android_usb/android0/idProduct", "9999");
write_to_file("/sys/class/android_usb/android0/idProduct", "0AFE"); /* TODO: make configurable */
write_to_file("/sys/class/android_usb/android0/functions", "mass_storage");
ret = write_to_file("/sys/class/android_usb/android0/enable", "1");
if(ret < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment