问题遇到的现象和发生背景
编译了一个手机rom,通过rec刷进手机后,开机卡 Log,想查看日志,但此时无法通过 ADB 获取 Log。后来通过网上找到的方法,设法导出了 Log,发现 Log 中有如下报错:
--------- beginning of main
12-22 23:28:24.707 2790 2790 W auditd : type=2000 audit(0.0:1): initialized
12-22 23:28:29.776 2790 2790 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
12-22 23:28:29.844 1 1 I init : type=1400 audit(0.0:3): avc: denied { mounton } for path="/proc/sys/fs/binfmt_misc" dev="proc" ino=2401 scontext=u:r:init:s0 tcontext=u:object_r:proc:s0 tclass=dir permissive=1
12-22 23:28:30.348 1 1 I init : type=1400 audit(0.0:4): avc: denied { create } for name="sdcard" scontext=u:r:init:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file permissive=1
12-22 23:28:30.481 2768 2768 I e2fsck : type=1400 audit(0.0:5): avc: denied { read } for name="mmcblk0p12" dev="tmpfs" ino=2476 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
12-22 23:28:30.481 2768 2768 I e2fsck : type=1400 audit(0.0:6): avc: denied { open } for path="/dev/block/mmcblk0p12" dev="tmpfs" ino=2476 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
12-22 23:28:30.481 2768 2768 I e2fsck : type=1400 audit(0.0:7): avc: denied { write } for name="mmcblk0p12" dev="tmpfs" ino=2476 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
12-22 23:28:30.481 2768 2768 I e2fsck : type=1400 audit(0.0:8): avc: denied { ioctl } for path="/dev/block/mmcblk0p12" dev="tmpfs" ino=2476 ioctlcmd=127c scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
12-22 23:28:30.760 2780 2780 I e2fsck : type=1400 audit(0.0:9): avc: denied { dac_override } for capability=1 scontext=u:r:fsck:s0 tcontext=u:r:fsck:s0 tclass=capability permissive=1
12-22 23:28:30.909 2789 2789 I mkswap : type=1400 audit(0.0:10): avc: denied { read write } for name="zram0" dev="tmpfs" ino=2495 scontext=u:r:toolbox:s0 tcontext=u:object_r:ram_device:s0 tclass=blk_file permissive=1
12-22 23:28:30.910 2789 2789 I mkswap : type=1400 audit(0.0:11): avc: denied { open } for path="/dev/block/zram0" dev="tmpfs" ino=2495 scontext=u:r:toolbox:s0 tcontext=u:object_r:ram_device:s0 tclass=blk_file permissive=1
12-22 23:28:30.910 2789 2789 I mkswap : type=1400 audit(0.0:12): avc: denied { getattr } for path="/dev/block/zram0" dev="tmpfs" ino=2495 scontext=u:r:toolbox:s0 tcontext=u:object_r:ram_device:s0 tclass=blk_file permissive=1
12-22 23:28:30.911 1 1 I init : type=1400 audit(0.0:13): avc: denied { write } for name="zram0" dev="tmpfs" ino=2495 scontext=u:r:init:s0 tcontext=u:object_r:ram_device:s0 tclass=blk_file permissive=1
12-22 23:28:31.288 1 1 I init : type=1400 audit(0.0:14): avc: denied { write } for name="cgroup" dev="sysfs" ino=3 scontext=u:r:init:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
12-22 23:28:31.288 1 1 I init : type=1400 audit(0.0:15): avc: denied { add_name } for name="cpuset" scontext=u:r:init:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
12-22 23:28:31.288 1 1 I init : type=1400 audit(0.0:16): avc: denied { create } for name="cpuset" scontext=u:r:init:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
--------- beginning of system
12-22 23:28:31.402 2799 2799 I vold : Vold 3.0 (the awakening) firing up
12-22 23:28:31.404 2799 2799 V vold : Detected support for: exfat ext4 ntfs vfat
12-22 23:28:31.429 2799 2848 D vold : e4crypt_init_user0
12-22 23:28:31.429 2799 2848 D vold : e4crypt_prepare_user_storage for volume null, user 0, serial 0, flags 1
12-22 23:28:31.429 2799 2848 D vold : Preparing: /data/system/users/0
12-22 23:28:31.435 2799 2848 D vold : Preparing: /data/misc/profiles/cur/0
12-22 23:28:31.436 2799 2848 D vold : Preparing: /data/misc/profiles/cur/0/foreign-dex
12-22 23:28:31.436 2799 2848 D vold : Preparing: /data/system_de/0
12-22 23:28:31.437 2799 2848 D vold : Preparing: /data/misc_de/0
12-22 23:28:31.437 2799 2848 D vold : Preparing: /data/user_de/0
12-22 23:28:31.438 2799 2848 D vold : e4crypt_unlock_user_key 0 serial=0 token_present=0
12-22 23:28:31.438 2799 2848 E vold : Failed to chmod /data/system_ce/0: No such file or directory
12-22 23:28:31.438 2799 2848 E vold : Failed to chmod /data/misc_ce/0: No such file or directory
12-22 23:28:31.439 1 1 I vdc : 200 2800 Command succeeded
12-22 23:28:31.474 2798 2798 I : debuggerd: starting
12-22 23:28:31.494 2849 2849 I /system/bin/tzdatacheck: tzdata file /data/misc/zoneinfo/current/tzdata does not exist. No action required.
12-22 23:28:31.558 2856 2856 I init : type=1400 audit(0.0:17): avc: denied { create } for name="keymaster_mei" scontext=u:r:init:s0 tcontext=u:object_r:socket_device:s0 tclass=sock_file permissive=1
12-22 23:28:31.558 2856 2856 I init : type=1400 audit(0.0:18): avc: denied { setattr } for name="keymaster_mei" dev="tmpfs" ino=1131 scontext=u:r:init:s0 tcontext=u:object_r:socket_device:s0 tclass=sock_file permissive=1
12-22 23:28:31.559 2857 2857 I init : type=1400 audit(0.0:19): avc: denied { execute_no_trans } for path="/system/vendor/bin/intel_prop" dev="mmcblk0p11" ino=49163 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1
12-22 23:28:31.560 2855 2855 I init : type=1400 audit(0.0:20): avc: denied { execute_no_trans } for path="/system/bin/sh" dev="mmcblk0p11" ino=32899 scontext=u:r:init:s0 tcontext=u:object_r:shell_exec:s0 tclass=file permissive=1
12-22 23:28:31.562 1 1 I init : type=1400 audit(0.0:21): avc: denied { sys_module } for capability=16 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=1
12-22 23:28:31.562 1 1 I init : type=1400 audit(0.0:22): avc: denied { module_load } for path="/system/lib/modules/hid-sensor-hub.ko" dev="mmcblk0p11" ino=98740 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=system permissive=1
12-22 23:28:31.602 2857 2857 E libdmi : Failed to open /sys/firmware/dmi/entries/0-0/raw : Permission denied
12-22 23:28:31.602 2857 2857 W intel_props: Cannot set sys.ifwi.version from bios_version of type dmi_bi
12-22 23:28:31.602 2857 2857 E libdmi : Failed to open /sys/firmware/dmi/entries/148-0/raw : Permission denied
12-22 23:28:31.602 2857 2857 W intel_props: Cannot set sys.ia32.version from BiosVersion of type dmi_is
12-22 23:28:31.602 2857 2857 E libdmi : Failed to open /sys/firmware/dmi/entries/148-0/raw : Permission denied
12-22 23:28:31.602 2857 2857 W intel_props: Cannot set sys.chaabi.version from SECVersion of type dmi_is
12-22 23:28:31.602 2857 2857 E libdmi : Failed to open /sys/firmware/dmi/entries/148-0/raw : Permission denied
12-22 23:28:31.602 2857 2857 W intel_props: Cannot set sys.pmic.version from PmicVersion of type dmi_is
12-22 23:28:31.602 2857 2857 E libdmi : Failed to open /sys/firmware/dmi/entries/148-0/raw : Permission denied
12-22 23:28:31.602 2857 2857 W intel_props: Cannot set sys.pmc.version from PMCVersion of type dmi_is
12-22 23:28:31.602 2857 2857 E libdmi : Failed to open /sys/firmware/dmi/entries/148-0/raw : Permission denied
12-22 23:28:31.602 2857 2857 W intel_props: Cannot set sys.punit.version from PUnitVersion of type dmi_is
12-22 23:28:31.602 2857 2857 E libdmi : Failed to open /sys/firmware/dmi/entries/148-0/raw : Permission denied
12-22 23:28:31.602 2857 2857 W intel_props: Cannot set sys.gop.version from GopVersion of type dmi_is
12-22 23:28:31.673 2860 2860 I SurfaceFlinger: SurfaceFlinger is starting
12-22 23:28:31.673 2860 2860 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
12-22 23:28:31.693 2860 2860 E libEGL : load_driver(/vendor/lib/egl/libGLES_intel8.so): dlopen failed: cannot locate symbol "ufoInitPlatform" referenced by "/system/vendor/lib/egl/libGLES_intel8.so"...
12-22 23:28:31.693 2860 2860 F libEGL : couldn't find an OpenGL ES implementation
--------- beginning of crash
12-22 23:28:31.693 2860 2860 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 2860 (surfaceflinger)
12-22 23:28:31.693 2798 2798 W : debuggerd: handling request: pid=2860 uid=1000 gid=1003 tid=2860
12-22 23:28:31.734 2869 2869 I chown : type=1400 audit(0.0:23): avc: denied { setattr } for name="type" dev="sysfs" ino=11474 scontext=u:r:toolbox:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
12-22 23:28:31.734 2869 2869 I chown : type=1400 audit(0.0:24): avc: denied { chown } for capability=0 scontext=u:r:toolbox:s0 tcontext=u:r:toolbox:s0 tclass=capability permissive=1
12-22 23:28:31.756 2858 2858 I lowmemorykiller: Using in-kernel low memory killer interface
12-22 23:28:31.776 2866 2866 E : debuggerd: Unable to connect to activity manager (connect failed: No such file or directory)
注意到日志中有一些报错:
Failed to open /sys/firmware/dmi/entries/xxx/raw : Permission denied
W intel_props: Cannot set sys.xxx.version from xxx of type dmi_bi
Fatal signal 6 (SIGABRT), code -6 in tid 2860 (surfaceflinger)
请问这可能是什么问题?该如何解决?