How to use zero as AOA gadget on Android?

When zero connet to host, Kernel panic…

[ 35.459733@0] Unable to handle kernel NULL pointer dereference at virtual address 0000007d
[ 35.462390@0] pgd = c0104000
[ 35.465248@0] [0000007d] *pgd=00000000
[ 35.468992@0] Internal error: Oops: 805 [#1] PREEMPT SMP ARM
[ 35.474609@0] Modules linked in: dhd(O) galcore(O) vpu(O) encoder(O) amvdec_avs2(O) amvdec_vp9(O) amvdec_vc1(O) amvdec_real(O) amvdec_mmpeg4(O) amvdec_mpeg4(O) amvdec_mmpeg12(O) amvdec_mpeg12(O) amvdec_mmjpeg(O) amvdec_mjpeg(O) amvdec_h265(O) amvdec_h264mvc(O) amvdec_mh264(O) amvdec_h264(O) amvdec_avs(O) stream_input(O) decoder_common(O) firmware(O) media_clock(O) tb_detect(O) mali_kbase(O)
[ 35.509126@0] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G O 4.9.113 #9
[ 35.516467@0] Hardware name: Generic DT based system
[ 35.521412@0] task: c160e640 task.stack: c1600000
[ 35.526110@0] PC is at memset+0xd0/0xe0
[ 35.529920@0] LR is at acc_ctrlrequest+0x274/0x5e4
[ 35.534678@0] pc : [] lr : [] psr: 800b0193
[ 35.534678@0] sp : c1877b00 ip : c1877b30 fp : c1877b2c
[ 35.546456@0] r10: 00000000 r9 : ebe029bc r8 : edb63008
[ 35.551831@0] r7 : ebe02abc r6 : 00000002 r5 : 00000000 r4 : ebe02a60
[ 35.558504@0] r3 : 00000001 r2 : 00000000 r1 : 000000fc r0 : 0000007d
[ 35.565180@0] Flags: Nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
[ 35.572545@0] Control: 10c5383d Table: 2beac06a DAC: 00000051

[ 36.218822@0] Process swapper/0 (pid: 0, stack limit = 0xc1600000)
[ 36.224971@0] Stack: (0xc1877b00 to 0xc1602000)
[ 36.229507@0] [c1877b2c+ 48][] acc_ctrlrequest+0x274/0x5e4
[ 36.235918@0] [c1877b5c+ 48][] android_setup+0xa8/0x138
[ 36.242067@0] [c1877b6c+ 16][] _setup+0x40/0x98
[ 36.247523@0] [c1877bfc+ 144][] handle_ep0+0xc8c/0x17b0
[ 36.253587@0] [c1877c74+ 120][] dwc_otg_pcd_handle_out_ep_intr+0x1754/0x1bac
[ 36.261472@0] [c1877ca4+ 48][] dwc_otg_pcd_handle_intr+0x170/0x2ec
[ 36.268583@0] [c1877cb4+ 16][] dwc_otg_pcd_irq+0x1c/0x28
[ 36.274825@0] [c1877d04+ 80][] __handle_irq_event_percpu+0xc4/0x2ac
[ 36.282017@0] [c1877d24+ 32][] handle_irq_event_percpu+0x2c/0x68
[ 36.288944@0] [c1877d44+ 32][] handle_irq_event+0x48/0x6c
[ 36.295279@0] [c1877d64+ 32][] handle_fasteoi_irq+0xe0/0x1b0
[ 36.301859@0] [c1877d74+ 16][] generic_handle_irq+0x34/0x44
[ 36.308359@0] [c1877da4+ 48][] __handle_domain_irq+0x8c/0xfc
[ 36.314946@0] [c1877dcc+ 40][] gic_handle_irq+0x48/0x84
[ 36.321100@0] [c1601d2c+ 0][] __irq_svc+0x84/0xc4
[ 36.326828@0] [c1601d2c+ 56][] cpuidle_enter_state+0x178/0x484
[ 36.333584@0] [c1601d3c+ 16][] cpuidle_enter+0x24/0x28
[ 36.339644@0] [c1601d4c+ 16][] call_cpuidle+0x34/0x50
[ 36.345626@0] [c1601d7c+ 48][] cpu_startup_entry+0x17c/0x264
[ 36.352219@0] [c1601d94+ 24][] rest_init+0x98/0x9c
[ 36.357945@0] Code: 00000000 e2511004 ba00001d e3530002 (b4c02001)

How can i do?