android 5.1之后设备节点权限需要修改如下7个文件,才能让上层的apk应用读到底层的设备节点:
//更改te文件里面的设备名:eg:rt5651xctx
cljcc@szhxc:~/satellite6737/trunk$ grep -rn "rt5651xctx_device"
1.device/mediatek/common/sepolicy/app.te:21:allow appdomain rt5651xctx_device:file rw_file_perms;
2 device/mediatek/common/sepolicy/device.te:197:type rt5651xctx_device, dev_type;
3 device/mediatek/common/sepolicy/system_app.te:167:allow system_app rt5651xctx_device:chr_file { read write getattr ioctl open };
4 device/mediatek/common/sepolicy/system_server.te:270:allow system_server rt5651xctx_device:file rw_file_perms;
5 device/mediatek/common/sepolicy/file_contexts:350:/dev/xctxmotor u:object_r:rt5651xctx_devic