Commit graph

16 commits

Author SHA1 Message Date
Bruno Martins
9b930e1eea sm8350-common: Migrate to fingerprint HIDL v2.3
Change-Id: Ibf065cfb9b6b8210713ab6dba8302937f56cf4c1
2022-02-23 20:34:27 +01:00
Bruno Martins
051af641b8 sm8350-common: sepolicy: Fix labelling of project_info
There seems to be a race condition somewhere that prevents
it to be properly labelled, so move to genfs.

Change-Id: Ie2d1deeb19a871eb0b9f5120a92432fda658d725
2021-06-03 17:36:59 +01:00
Bruno Martins
d822e326fb sm8350-common: sepolicy: Label tri-state key calibration data file
Change-Id: I072c2aaf5c9aae231c68bc9e55806eb59fa7f665
2021-06-02 11:37:29 +02:00
Bruno Martins
186093efa0 sm8350-common: sepolicy: Trash leftover rules
Change-Id: Ia4e454598230bb5f78812494c2c3d45933c71250
2021-06-02 01:00:04 +01:00
LuK1337
aed215cbbf sm8350-common: sepolicy: Regenerate labels for wakeup dirs
The list of folders for genfscon was generated using following script:
  for f in `adb shell "find /sys/devices -name wakeup -type d"`; do
      adb shell "ls -Z '$f' | grep -qv u:object_r:sysfs:s0 || echo '$f'"
  done

While list for regular file_contexts was just a simple grep "wakeup[0-9]".

Change-Id: I66abd501ce53b84e7268948d01d7b6c6c42cfbd1
2021-06-02 01:55:41 +02:00
LuK1337
1d85651b3a sm8350-common: sepolicy: Remove procfs_oem_wireless type
SM8350 devices don't have /proc/wireless or /proc/skin_temp_thrd.

Change-Id: Ib3a67f7c508ab3aea0bee28866b7293c8a785739
2021-06-02 01:15:32 +02:00
Bruno Martins
4cd2c8b6e5 sm8350-common: Bring up camera with enforcing SELinux
SELinux is more and more annoying nowadays, we all know that...
After spending hours to figure out why camera wasn't working while
on enforcing mode, the audits finally showed up after booting
into permissive mode. :S

05-31 01:19:55.133   877   877 I provider@2.4-se: type=1400 audit(0.0:456): avc: denied { read write } for name="capture" dev="sysfs" ino=116259 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
05-31 01:19:55.133   877   877 I provider@2.4-se: type=1400 audit(0.0:457): avc: denied { open } for path="/sys/kernel/tof_control/app0/capture" dev="sysfs" ino=116259 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Change-Id: I1727b1a299a02f15b75dce9a4d5c72201f6632c3
2021-06-01 23:23:38 +01:00
Bruno Martins
f49155a32c sm8350-common: sepolicy: Fix haptics nodes path
Change-Id: I54cb741b145ff144162c82f84aad46628b408004
2021-06-01 23:23:38 +01:00
Bruno Martins
f4e7375e13 sm8350-common: sepolicy: Re-label health sysfs nodes
Change-Id: I648046582f54a254d61c6c76ec5747357bdeca59
2021-06-01 23:23:38 +01:00
LuK1337
ad131f888d sm8350-common: sepolicy: Fix build errors
Change-Id: I41717ff4b31f8abe1abc17bcb9ff5392991a351d
2021-06-01 23:23:38 +01:00
Hikari-no-Tenshi
756ac6b751 sm8250-common: fod: Remove no longer needed chown/chmod and sepolicy
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Id7d6c7e1196db020673ea92f691d93ca3511dcf4
2021-05-18 16:52:03 +02:00
LuK1337
1dc5f1546b sm8250-common: sepolicy: Label op_charger
Health HAL wants to access it.

Change-Id: I07a8c11324c0a8b9bae6e7c027aa69df7ee5b7d1
2021-05-04 19:40:51 +02:00
LuK1337
de5498efab sm8250-common: livedisplay: Rip out IDisplayModes
We are now using AOSP-ish display modes implementation.

Change-Id: Iba9d570dd7cef116e18f3e327c8ab5f5e63f2697
2021-04-27 09:35:23 +02:00
LuK1337
7432867822 sm8250-common: livedisplay: Implement IAntiFlicker interface
Change-Id: I1dbc6d8989a80fe7b06d4356aeb717417997a793
2021-04-09 12:09:28 +02:00
LuK1337
d1d109c825 sm8250-common: Bring in TOF sensor HAL
Change-Id: Ic5296a9ecf96f9a7fec5f523f9c59bfb68a0704f
2021-02-16 19:18:10 +01:00
LuK1337
f9c9767e3b sm8250-common: sepolicy: Initial vendor sepolicy
Change-Id: I28ae7907209b5aae9806466556dc49639dd7c9e4
2021-01-08 14:31:38 +01:00