驱动设备节点3ch修改命令

3ch

adb shell ls -lZ /dev/ |grep test_dev


crw-rw---- 1 system system  u:object_r:test_device:s0   10,  53 2018-01-10 03:20 test_dev

 

1.chmod

adb shell chmod 660 /dev/test_dev

crw-rw----

 

2.chown

adb shell chown system:system /dev/test_dev

system system 

 

3.chcon

adb shell chcon u:object_r:test_device:s0 /dev/test_dev

u:object_r:test_device:s0