AnsweredAssumed Answered

Reboot to Recovery once remove the adb shell connections

Question asked by vinothkumar s on Feb 14, 2020
Latest reply on Feb 27, 2020 by vinothkumar s

Hi All,

 

         In iMX8QM custom board with 4.14.98 Kernel BSP,  We are facing reboot to recovery problem when removing the ADB shell connection.

 

Attached log after remove the adb shell connection,

 

[ 389.330314] android_work: sent uevent USB_STATE=DISCONNECTED
[ 390.834816] init: Received control message 'start' for 'adbd' from pid: 1898 (system_server)
[ 390.853309] android_work: did not send uevent (0 0 (null))
[ 390.860377] init: Received control message 'stop' for 'adbd' from pid: 1789 (/vendor/bin/hw/android.hardware.usb@1.1-service.imx)
[ 390.874324] init: Sending signal 9 to service 'adbd' (pid 3173) process group...
[ 390.882468] type=1400 audit(1581651750.860:184): avc: denied { dac_read_search } for pid=9811 comm="main" capability=2 scontext=u:r:zygote:s0 tcontext=u:r:zygote:s0 tclass=capability permissive=1
[ 390.900069] type=1400 audit(1581651771.040:185): avc: denied { dac_read_search } for pid=1 comm="init" capability=2 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=1
[ 390.961131] libprocessgroup: Successfully killed process cgroup uid 0 pid 3173 in 79ms
[ 390.969509] init: Service 'adbd' (pid 3173) received signal 9
[ 390.975878] init: processing action (init.svc.adbd=stopped) from (/init.usb.configfs.rc:14)
[ 391.096045] init: Received control message 'start' for 'adbd' from pid: 1789 (/vendor/bin/hw/android.hardware.usb@1.1-service.imx)
[ 391.107999] init: starting service 'adbd'...
[ 391.115026] init: Created socket '/dev/socket/adbd', mode 660, user 1000, group 1000
[ 391.129029] read descriptors
[ 391.132466] read strings
[ 392.099352] init: Received control message 'start' for 'setup-bcb' from pid: 1898 (system_server)
[ 393.219124] type=1400 audit(1581651771.040:185): avc: denied { dac_read_search } for pid=1 comm="init" capability=2 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=1
[ 393.236719] type=1400 audit(1581651773.376:186): avc: denied { read } for pid=2269 comm="com.android.car" name="ext4" dev="sysfs" ino=15170 scontext=u:r:carservice_app:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[ 393.257267] type=1400 audit(1581651773.376:186): avc: denied { read } for pid=2269 comm="com.android.car" name="ext4" dev="sysfs" ino=15170 scontext=u:r:carservice_app:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[ 393.277351] type=1400 audit(1581651773.376:187): avc: denied { open } for pid=2269 comm="com.android.car" path="/sys/fs/ext4" dev="sysfs" ino=15170 scontext=u:r:carservice_app:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[ 393.298281] type=1400 audit(1581651773.376:187): avc: denied { open } for pid=2269 comm="com.android.car" path="/sys/fs/ext4" dev="sysfs" ino=15170 scontext=u:r:carservice_app:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[ 393.318934] type=1400 audit(1581651773.376:188): avc: denied { read } for pid=2269 comm="com.android.car" name="lifetime_write_kbytes" dev="sysfs" ino=20381 scontext=u:r:carservice_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 393.340675] type=1400 audit(1581651773.376:188): avc: denied { read } for pid=2269 comm="com.android.car" name="lifetime_write_kbytes" dev="sysfs" ino=20381 scontext=u:r:carservice_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 393.362350] type=1400 audit(1581651773.376:189): avc: denied { open } for pid=2269 comm="com.android.car" path="/sys/fs/ext4/dm-1/lifetime_write_kbytes" dev="sysfs" ino=20381 scontext=u:r:carservice_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

143|mek_8q:/ $ [ 393.613398] binder: release 6687:6687 transaction 591606 in, still active
[ 393.620306] binder: send failed reply for transaction 591606 to 6782:6849
[ 393.681481] binder: undelivered TRANSACTION_COMPLETE
[ 393.686486] binder: undelivered TRANSACTION_ERROR: 29189
[ 393.697422] binder: release 12391:12391 transaction 675661 out, still active
[ 393.704638] binder: undelivered TRANSACTION_COMPLETE
[ 393.710318] binder: undelivered death notification, 0000f97a82450820
[ 393.944582] binder_alloc: 1898: binder_alloc_buf, no vma
[ 393.950011] binder: 1685:2235 transaction failed 29189/-3, size 88-0 line 3135
[ 393.985514] binder: release 1898:2244 transaction 675661 in, still active
[ 393.992420] binder: send failed reply for transaction 675661, target dead
[ 393.999413] binder: undelivered TRANSACTION_COMPLETE
[ 394.004491] binder: undelivered transaction 677663, process died.
[ 394.114665] android_work: did not send uevent (0 0 (null))
[ 394.127526] logd.daemon: 75 output lines suppressed due to ratelimiting
[ 394.402413] ci_hdrc ci_hdrc.0: remove, state 1
[ 394.407115] usb usb1: USB disconnect, device number 1
[ 394.412268] usb 1-1: USB disconnect, device number 2
[ 394.444184] ci_hdrc ci_hdrc.0: USB bus 1 deregistered
[ 394.449779] arm-smmu 51400000.iommu: removing device with active domains!
[ 394.493291] reboot: Restarting system with command 'recovery'

 

 

 

Thanks & Regards,

VinothS,

Outcomes