AnsweredAssumed Answered

debug mag3110 while magd did not run

Question asked by 俊凯 文 on Aug 21, 2017
Latest reply on Aug 24, 2017 by 俊凯 文

My system is Android 7.1 with kernel 4.1.After mag3110 driver is porting,log as below:

2-000e supply vdd not found, using dummy regulator //启动log
2-000e supply vddio not found, using dummy regulator
mag3110 2-000e: check mag3110 chip ID
input: FreescaleMagnetometer as /devices/virtual/input/input2
input: eCompass as /devices/virtual/input/input3
mag3110 2-000e: mag3110 is probed

 

I found the input event lost while I use getevent to catch them.

sabresd_6dq:/ # getevent
add device 1: /dev/input/event3
name: "eCompass"
add device 2: /dev/input/event2
name: "FreescaleMagnetometer"
add device 3: /dev/input/event1
name: "goodix-ts"
could not get driver version for /dev/input/mice, Not a typewriter
add device 4: /dev/input/event0
name: "tw8834"

 

After that, I found magd did not run :

init: Starting service 'magd'...     //magd start by init progress
init: Starting service 'gatekeeperd'...
type=1400 audit(4.500:5): avc: denied { getattr } for pid=176 comm="mediadrmserver" path="/vendor" dev="rootfs" ino=50
init: Starting service 'perfprofd'...
(stk) :ldisc_install = 1
type=1400 audit(4.550:6): avc: denied { getattr } for pid=170 comm="audioserver" path="/vendor" dev="rootfs" ino=55910
type=1400 audit(4.570:7): avc: denied { getattr } for pid=175 comm="mediacodec" path="/vendor" dev="rootfs" ino=5591 0
android_work: did not send uevent (0 0 (null))
configfs-gadget gadget: unbind function 'mtp'/d2bc9a00
configfs-gadget gadget: unbind function 'Function FS Gadget'/d2f4d024
android_work: did not send uevent (0 0 (null))
configfs-gadget gadget: unbind function 'mtp'/d2bc9a00
configfs-gadget gadget: unbind function 'Function FS Gadget'/d2f49924
type=1400 audit(4.580:8): avc: denied { getattr } for pid=171 comm="cameraserver" path="/vendor" dev="rootfs" ino=5590
type=1400 audit(4.710:9): avc: denied { getattr } for pid=180 comm="magd" path="/vendor" dev="rootfs" ino=5591 sconte0
wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
healthd: No battery devices found
wlcore: loaded
wlcore: driver version: R8.6_SP1
init: avc: denied { set } for property=telephony.lteOnCdmaDevice pid=168 uid=0 gid=1001 scontext=u:r:rild:s0 tconte0
init: sys_prop: permission denied uid:0 name:telephony.lteOnCdmaDevice
init: Service 'magd' (pid 180) exited with status 255                            //magd exited

 

 

So can you give me some advice to fix this problem?

Outcomes