On Thursday, 24 December 2015 08:17:39 UTC, Chih-Wei Huang wrote:
> >
> >
> > Applied that way(yeah, I know it's ugly ...) and worked (device created):
> >
> > } else if (!strcmp(uevent->subsystem, "usb") || !strcmp(uevent->subsystem,
> > "usbmisc")) {
> > if (!strcmp(uevent->subsystem, "usb") || !strcmp(uevent->subsystem,
> > "usbmisc")) {
> >
> > Does not seems to conflict with anything for me, but waiting for input on
> > that...
>
> I'm not sure what you changed and
> I don't want to guess it.
> Just provide me a patch, please!
> (if you don't know how to create a patch,
> search this forum.)
>
Please apply the following to lollipop branch
diff --git a/init/devices.c b/init/devices.c
index 364c5b6..fe03ac5 100644
--- a/init/devices.c
+++ b/init/devices.c
@@ -740,7 +740,7 @@ static void handle_generic_device_event(struct uevent *uevent)
return;
mkdir_recursive_for_devpath(devpath);
} else if (!strncmp(uevent->subsystem, "usb", 3)) {
- if (!strcmp(uevent->subsystem, "usb")) {
+ if (!strcmp(uevent->subsystem, "usb") || !strcmp(uevent->subsystem, "usbmisc")) {
if (uevent->device_name) {
if (!assemble_devpath(devpath, "/dev", uevent->device_name))
return;