AnsweredAssumed Answered

Crash when enabling acm and adb in init.usb.rc

Question asked by Gautam Bhat on Sep 14, 2016
Latest reply on Oct 5, 2016 by Gautam Bhat



 I am using the Android Marshmallow for Sabre SD platform for development and I have run into a critical kernel bug. I have followed the procedure as given in NXP for setup and installation of Marshmallow


Description below:


I need acm and adb via the usb otg. Hence I have put the following lines in the init.usb.rc file.

on property:sys.usb.config=acm,adb
    write /sys/class/android_usb/android0/enable 0
    write /sys/class/android_usb/android0/functions acm,adb
    write /sys/class/android_usb/android0/f_acm/instances 1
    write /sys/class/android_usb/android0/idVendor 18d1
    write /sys/class/android_usb/android0/idProduct 2d05
    write /sys/class/android_usb/android0/enable 1
    start adbd
    setprop sys.usb.state acm,adb


Now when I do a setprop sys.usb.config acm,adb I get a usb crash. Could somebody please help me troubleshoot this issue? I have attached the crash logs.

Original Attachment has been moved to: