Sample Header Ad - 728x90

Character driver device nodes not listing in Android

0 votes
0 answers
19 views
Three devices, created using a character driver (/dev/device1, /dev/device2, and /dev/device3), are not appearing in Android (AOSP 15). However, the same character driver functions correctly under Linux (via udev). The matching rule is included in ueventd.rc, and permissions have been enabled through the SELinux policy. Here is the file contents ueventd.rc /dev/device[0-9]* 0660 system system u:object_r:vendor_device:s0 my_device.te
type vendor_device, dev_type, mlstrustedobject;\
    allow system_app vendor_device:chr_file { read write open ioctl };
file_contexts /dev/device[0-9]* u:object_r:vendor_device:s0 It is expected to list the devices with below commands ls -l /dev/device* It is verified that the three devices entries are present at >$ ls /sys/dev/char/ | grep 250\ >250:0\ >250:1\ >250:2. Also verified that device_create API is success. Any thoughts?
Asked by user1092408 (1 rep)
May 16, 2025, 04:46 PM
Last activity: May 16, 2025, 11:05 PM