Hi Paul, You can set permission by configure sepolicy in android. The common step that i usually use : Set mode for i2c dev Set sepolicy for the program that use this sepolicy
You can debug sepolicy error by dmesg | grep deni You can learn configure sepolicy at https://source.android.com/security/selinux/implement Vào 08:02, T.6, 5 Th4, 2019 Paul Kalebu <paul.kal...@gmail.com> đã viết: > I'm writing a user space I2C driver to write to an I2C device, but I'm > unable to open the device because I don't have permissions. How can I go > about changing the permissions in AOSP? There doesn't seem to be a > /etc/udev/rules.d file. > > -- > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting > > --- > You received this message because you are subscribed to the Google Groups > "android-porting" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-porting+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.