mdm_helper その2

OS起動時、mdm_helperサービスを起動させない

  serviice mdm_helper .... 
       disabled 

adb root でルート権限を得てadb shellを起動

# start mdm_helper

平行したコマンドプロンプトでlogcatしたログ

10-14 23:23:40.616  8309  8310 I mdm_helper: MDM9x35: Running '/system/bin/ks  -w /cpdump/ -p /dev/ks_hsic_bridge -r 21 -s 21:/firmware/image/sbl1.mbn -s 25:/firmware/image/tz.mbn -s 30:/firmware/image/sdi.mbn -s 23:/firmware/image/rpm.mbn -s 31:/firmware/image/mba.mbn -s 8:/firmware/image/qdsp6sw.mbn -s 28:/firmware/image/dsp2.mbn -s 6:/firmware/image/apps.mbn -s 16:/dev/block/modem/m9kefs1 -s 17:/dev/block/modem/m9kefs2 -s 20:/dev/block/modem/m9kefs3 -s 29:/firmware/image/acdb.mbn'
10-14 23:23:40.610  8343  8343 I mdm_helper: type=1400 audit(0.0:425): avc: denied { execute } for name="sh" dev="sda18" ino=3263 scontext=u:r:mdm_helper:s0 tcontext=u:object_r:shell_exec:s0 tclass=file permissive=1
10-14 23:23:40.610  8343  8343 I mdm_helper: type=1400 audit(0.0:426): avc: denied { read open } for path="/system/bin/sh" dev="sda18" ino=3263 scontext=u:r:mdm_helper:s0 tcontext=u:object_r:shell_exec:s0 tclass=file permissive=1
10-14 23:23:40.633  6709  6709 I Zygote  : Process 7876 exited due to signal (9)
10-14 23:23:40.646  7130  7148 W libprocessgroup: kill(-7876, 9) failed: No such process
10-14 23:23:40.646  7130  7148 I libprocessgroup: Successfully killed process cgroup uid 10025 pid 7876 in 44ms
10-14 23:23:40.668  8343  8343 I kickstart: EVENT: !@ STATE <-- SAHARA_WAIT_HELLO
10-14 23:23:40.668  8343  8343 I kickstart: EVENT: !@ RECEIVED <-- SAHARA_HELLO
10-14 23:23:40.668  8343  8343 I kickstart: EVENT: !@ SENDING --> SAHARA_HELLO_RESPONSE
10-14 23:23:40.668  8343  8343 E kickstart: Wrote to /sys/power/wake_lock
10-14 23:23:40.668  8343  8343 I kickstart: EVENT: !@ RECEIVED <-- SAHARA_READ_DATA
10-14 23:23:40.673  8343  8343 E kickstart: !@ Requested ID 21, file: "/firmware/image/sbl1.mbn"
10-14 23:23:40.660  8343  8343 I ks      : type=1400 audit(0.0:429): avc: denied { getattr } for path="/firmware/image/sbl1.mbn" dev="sda11" ino=8 scontext=u:r:mdm_helper:s0 tcontext=u:object_r:vfat:s0 tclass=file permissive=1
10-14 23:23:40.674  8343  8343 I kickstart: EVENT: !@ RECEIVED <-- SAHARA_READ_DATA
10-14 23:23:40.716  8343  8343 I chatty  : uid=0(root) /system/bin/ks identical 43 lines
10-14 23:23:40.717  8343  8343 I kickstart: EVENT: !@ RECEIVED <-- SAHARA_READ_DATA
.... 
10-14 23:23:44.307  8343  8343 E kickstart: !@ 3312730 bytes transferred in 0.239797 seconds
10-14 23:23:44.308  8343  8343 I kickstart: EVENT: !@ STATE <-- SAHARA_WAIT_DONE_RESP
10-14 23:23:44.309  8343  8343 E kickstart: Wrote to /sys/power/wake_unlock
10-14 23:23:44.310  8343  8343 I kickstart: EVENT:
10-14 23:23:44.310  8343  8343 I kickstart:
10-14 23:23:44.310  8343  8343 I kickstart: !@ Successfully uploaded all images
10-14 23:23:44.310  8343  8343 E kickstart: !@ Sahara protocol completed
10-14 23:23:44.322  8309  8310 I mdm_helper: MDM9x35: Running Done'/system/bin/ks  -w /cpdump/ -p /dev/ks_hsic_bridge -r 21 -s 21:/firmware/image/sbl1.mbn -s 25:/firmware/image/tz.mbn -s 30:/firmware/image/sdi.mbn -s 23:/firmware/image/rpm.mbn -s 31:/firmware/image/mba.mbn -s 8:/firmware/image/qdsp6sw.mbn -s 28:/firmware/image/dsp2.mbn -s 6:/firmware/image/apps.mbn -s 16:/dev/block/modem/m9kefs1 -s 17:/dev/block/modem/m9kefs2 -s 20:/dev/block/modem/m9kefs3 -s 29:/firmware/image/acdb.mbn'
10-14 23:23:44.310  8310  8310 I mdm_helper: type=1400 audit(0.0:432): avc: denied { write } for name="property_service" dev="tmpfs" ino=4470 scontext=u:r:mdm_helper:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=1
10-14 23:23:44.310  8310  8310 I mdm_helper: type=1400 audit(0.0:433): avc: denied { connectto } for path="/dev/socket/property_service" scontext=u:r:mdm_helper:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1
10-14 23:23:44.333  8309  8310 E mdm_helper: MDM9x35: Sahara transfer completed successfully
10-14 23:23:44.334  8309  8310 I mdm_helper: MDM9x35: MDM2AP_STATUS is now high
10-14 23:23:44.334  8309  8310 I mdm_helper: MDM9x35: Setting up HSIC link for efs_sync
10-14 23:23:44.352  7130  7291 D UsbHostManager: Removed device at /dev/bus/usb/001/002: QHSUSB__BULK
10-14 23:23:44.352  7130  7291 I UsbAlsaManager: USB Audio Device Removed: null
10-14 23:23:44.370  8348  8348 I umount  : type=1400 audit(0.0:434): avc: denied { read } for name="online" dev="sysfs" ino=38 scontext=u:r:toolbox:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
10-14 23:23:44.429  7130  7291 D UsbHostManager: Removed device at /dev/bus/usb/001/001 was already gone
10-14 23:23:44.516  8309  8310 I mdm_helper: MDM9x35: Sending boot status notification to HSIC
10-14 23:23:44.576  8309  8310 I mdm_helper: Testing if port "/dev/efs_hsic_bridge" exists
10-14 23:23:44.576  8309  8310 E mdm_helper: Couldn't find "/dev/efs_hsic_bridge", 1 of 75

1)kickstart(/system/bin/ks)でSElinuxにより一部うまく取得できていないケースがある
2)efs_hsic_bridgeは作成できているかもしれないがその後読めないと言ってきている