Using Android Things image 1.0.3, I get a crash and reboot when connecting an android open accessory to the IMX7 device. I am not sure how to fix it, is it a device tree entry missing?
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: EHCI Host Controller
usb usb2: Manufacturer: Linux 4.9.78-07083-gd7aad6b ehci_hcd
usb usb2: SerialNumber: ci_hdrc.0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
ci_hdrc ci_hdrc.0: remove, state 1
usb usb2: USB disconnect, device number 1
ci_hdrc ci_hdrc.0: USB bus 2 deregistered
ci_hdrc ci_hdrc.0: timeout waiting for 00000800 in OTGSC
android_work: sent uevent USB_STATE=CONNECTED
configfs-gadget gadget: full-speed config #1: b
android_work: sent uevent USB_STATE=CONFIGURED
type=1400 audit(1230771499.210:4003): avc: denied { write } for pid=18 comm="kdevtmpfs" name="002" dev="devtmpfs" ino=6191 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=0 duplicate messages suppressed
type=1400 audit(1230771504.600:4004): avc: denied { write } for pid=376 comm="ActivityManager" name="timerslack_ns" dev="proc" ino=29991 scontext=u:r:system_server:s0 tcontext=u:r:mediaprovider:s0:c512,c768 tclass=file permissive=0
type=1400 audit(1230771504.600:4004): avc: denied { write } for pid=376 comm="ActivityManager" name="timerslack_ns" dev="proc" ino=29991 scontext=u:r:system_server:s0 tcontext=u:r:mediaprovider:s0:c512,c768 tclass=file permissive=0
type=1400 audit(1230771504.600:4005): avc: denied { write } for pid=376 comm="ActivityManager" name="timerslack_ns" dev="proc" ino=21797 scontext=u:r:system_server:s0 tcontext=u:r:mediaprovider:s0:c512,c768 tclass=file permissive=0
type=1400 audit(1230771504.600:4005): avc: denied { write } for pid=376 comm="ActivityManager" name="timerslack_ns" dev="proc" ino=21797 scontext=u:r:system_server:s0 tcontext=u:r:mediaprovider:s0:c512,c768 tclass=file permissive=0
type=1400 audit(1230771504.600:4006): avc: denied { write } for pid=376 comm="ActivityManager" name="timerslack_ns" dev="proc" ino=21799 scontext=u:r:system_server:s0 tcontext=u:r:mediaprovider:s0:c512,c768 tclass=file permissive=0
type=1400 audit(1230771504.600:4006): avc: denied { write } for pid=376 comm="ActivityManager" name="timerslack_ns" dev="proc" ino=21799 scontext=u:r:system_server:s0 tcontext=u:r:mediaprovider:s0:c512,c768 tclass=file permissive=0
type=1400 audit(1230771504.600:4007): avc: denied { write } for pid=376 comm="ActivityManager" name="timerslack_ns" dev="proc" ino=21801 scontext=u:r:system_server:s0 tcontext=u:r:mediaprovider:s0:c512,c768 tclass=file permissive=0
type=1400 audit(1230771504.600:4007): avc: denied { write } for pid=376 comm="ActivityManager" name="timerslack_ns" dev="proc" ino=21801 scontext=u:r:system_server:s0 tcontext=u:r:mediaprovider:s0:c512,c768 tclass=file permissive=0
type=1400 audit(1230771504.600:4008): avc: denied { write } for pid=376 comm="ActivityManager" name="timerslack_ns" dev="proc" ino=21803 scontext=u:r:system_server:s0 tcontext=u:r:mediaprovider:s0:c512,c768 tclass=file permissive=0
Unable to handle kernel NULL pointer dereference at virtual address 0000007d
pgd = c0004000
[0000007d] *pgd=00000000
Internal error: Oops: 805 [#1] PREEMPT SMP ARM
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.78-07083-gd7aad6b #1
Hardware name: Freescale i.MX7 Dual (Device Tree)
task: c120c6c0 task.stack: c1200000
PC is at memset+0xd0/0xe0
LR is at acc_ctrlrequest+0x1b4/0x540
pc : [<c04d2a30>] lr : [<c07ee6bc>] psr: 800b0193
sp : c1201db8 ip : 600b0193 fp : c12fd038
r10: dc5e4524 r9 : dcff19bc r8 : 00000000
r7 : 00000002 r6 : 00000000 r5 : 00000000 r4 : dcff1a60
r3 : 00000001 r2 : 00000000 r1 : 000000fc r0 : 0000007d
Flags: Nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
Control: 10c53c7d Table: 84fdc06a DAC: 00000051