pelya / android-keyboard-gadget

Convert your Android device into USB keyboard/mouse, control your PC from your Android device remotely, including BIOS/bootloader.
Apache License 2.0
1.22k stars 308 forks source link

SELinux policy configuration (app.te) #146

Open kyelbek opened 5 years ago

kyelbek commented 5 years ago

Dev: P2 (kuntao) OS: LineageOS 15.1 Official - Treble compatible KernelV: 3.18.115 (LineageOS Official ^)

So I managed to patch my kernel for HID support and it is working pretty well when I set selinux to permissive but I have problems with configuring sepolicy to make it work while SELinux is set to "Enforcing". I found and edited device.te and file_contexts but I can't find app.te in the same directory. I found only these in whole build directory. Two were crossed out because these directories are not matching my board - MSM8953 (these came here probably from TheMuppets blobs repo). I would be glad if I receive help because I'm noob with these SELinux policies thing. I also hope that full ROM compiling is not required since official system image passes safetynet out of box and I don't want to touch it.

nift4 commented 4 years ago

ROM compiling is required