Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[diag] update diag mode to newer android standard. Fixes: JB#31988
Diag mode has become a bit more complicated, so adding support for the new interfaces. Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
- Loading branch information
1 parent
33aea13
commit 035e3d4
Showing
7 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[mode] | ||
name = diag_mode | ||
module = none | ||
appsync = 1 | ||
network = 1 | ||
network_interface = rndis0 | ||
|
||
[options] | ||
sysfs_path = /sys/class/android_usb/android0/functions | ||
sysfs_value = rndis,adb,diag,serial | ||
sysfs_reset_value = none | ||
softconnect_path = /sys/class/android_usb/android0/enable | ||
softconnect = 1 | ||
softconnect_disconnect = 0 | ||
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 | ||
idProduct = 0A04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
name = adbd.service | ||
mode = diag_mode | ||
systemd = 1 | ||
post = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[info] | ||
name = adbd-prepare.service | ||
mode = diag_mode | ||
systemd = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters