Philipp Albrecht
d462ec583d
sepolicy: qti: Label SM7250 charging sysfs path
...
Change-Id: I60fae0b8ec1ef8a3ee88de7a67db5718392539b6
2023-02-28 22:26:26 +01:00
KakatkarAkshay
fbde82d9fa
sepolicy: qti: Label SM7250 vibrator node
...
Change-Id: I67155d9269269aac867eb4f8852b7f496a129ca0
2023-02-28 22:26:26 +01:00
LuK1337
ec719d5ded
sepolicy: qti: Label SM7250 wakeup nodes
...
for i in $(realpath /sys/class/wakeup/*); do if ! echo "$(ls -dZ $i)" | grep -q sysfs_wakeup; then echo genfscon sysfs $(echo $i | sed -e 's|/sys||g' -e 's|wakeup/wakeup.|wakeup|g' -e 's|wakeup[0-9]*|wakeup|g') u:object_r:sysfs_wakeup:s0; fi; done | sort -u
Change-Id: I482a657cb6edfcef92d52981ce2cbe3a0e174a5f
2023-02-28 22:26:26 +01:00
KakatkarAkshay
608aee50e2
sepolicy: qti: Label vendor.oplus.hardware.cameraMDM@1.0-service
...
As seen on SM7250
Change-Id: I7e942a556b7f18fd30735ba8b4ab5e53ce679ca2
2023-02-28 22:26:26 +01:00
LuK1337
7f301f9342
sepolicy: qti: Label additional SM8350 wakeup nodes
...
Introduced in A13 kernel.
Change-Id: I7dbf6a8b54290222127513d62859ffe639dea3df
2023-02-22 01:17:25 +01:00
pjgowtham
2ba9d31401
sepolicy: qti: Label ST21 NFC
...
Change-Id: I98a2db0aed52c227737db88d4f40809970368737
2023-02-22 01:17:25 +01:00
Albert Tang
5dd007e2a4
sepolicy: qti: Label vendor.oplus.hardware.cwb hwservice
...
Change-Id: Ida57e20d1f733398c3da8673b9c6dd537cbc9205
2023-02-22 01:17:25 +01:00
Albert Tang
6d5818a5e3
sepolicy: qti: Label new display and camera props
...
Change-Id: I4e410a65bc181d893f5118099af03ef764ccd6d4
2023-02-22 01:17:25 +01:00
LuK1337
969b0f8955
sepolicy: qti: Label vendor.oplus.hardware.cameraextension hwservice
...
Spotted on OOS 13.
Change-Id: I7ce474a3c8b5356a24d5b60b940a79a5a2d80aa4
2023-02-20 13:09:38 +01:00
Michael Bestas
ed9abba51b
Automatic translation import
...
Change-Id: Iebb9a21c52f633aa9c6ddd0009a88445a105b8c9
2023-02-13 16:05:21 +02:00
Michael Bestas
9f048526d5
sepolicy: qti: Remove duplicate wakeup nodes
...
Needed after I026cd6930459262c31c401e57444cfe2b60357b7
Change-Id: I0522bafab2605b3d0ab5a147154b32fa9ee3ce37
2023-01-19 16:21:33 +01:00
LuK1337
15d4c81836
sepolicy: qti: Add selinux rules for ams-tof
...
Change-Id: I003da0e0286fc1e6db13fe5db63d710a5d90015f
2023-01-14 13:17:55 +01:00
Michael Bestas
9fb26aae02
Automatic translation import
...
Change-Id: I47fb5adafce6fcfc04925503cd433eebdc4aad3f
2023-01-10 04:41:40 +02:00
Edwin Moquete
7a9d685192
sepolicy: qti: Label additional SM8250 wakeup nodes
...
Introduced in A13 kernel.
Change-Id: Ie2f567b47a79d8eeb9839d840fb4a08f271256bd
2022-12-22 19:45:34 +01:00
LuK1337
68e353f71e
sepolicy: qti: Add rules for stmvl53l1 TOF sensor
...
Change-Id: I45714c6389c8c60904e0f1094bfb79f701832676
2022-12-21 20:39:55 +01:00
Michael Bestas
5c2acd54d9
Automatic translation import
...
Change-Id: I57a64bdf02fd1e03b0bd709799e475eba4da4084
2022-12-16 20:57:42 +02:00
Bruno Martins
a5332c7fee
KeyHandler: Fix compilation for QPR1 merge
...
Change-Id: Id01559565bbee715f67213c9d4c99dddac4a761c
2022-12-06 18:04:20 +00:00
Bruno Martins
06034b73be
doze: Fix compilation for QPR1 merge
...
Change-Id: Ifa602ed1ae0734dbda40663770f2e54075bfa208
2022-12-06 18:03:47 +00:00
Albert Tang
bd2d84c295
livedisplay: Check current state before toggling AF/SE
...
This prevents us from sending unexpected panel commands.
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/4790
Change-Id: I97c5a008f242c861cafdec392b19ab9435a5239b
2022-12-05 16:58:45 +01:00
LuK1337
99cfe97b5c
sepolicy: qti: Label opproduct partition
...
Change-Id: If0a3209b07ba2dbddc404be98620fc3cd5867294
2022-12-01 11:45:58 +01:00
Michael Bestas
d1930f19ab
Automatic translation import
...
Change-Id: I692f213694a2de3f0b1db87b93f14041bcbaac93
2022-11-25 15:03:28 +02:00
AnierinB
cc3c3cbf70
sepolicy: qti: Allow kernel to read vendor_file
...
There are two ways for the kernel to load iris5.fw. The first way is
via fw_get_filesystem_firmware(), which read iris5.fw directly from the
filesystem using filp_read(). The second way gets FW via ueventd, which
calls request_firmware().
Because the kernel unconditionally calls fw_get_filesystem_firmware()
for iris5, the first way always gets executed. However, the current
sepolicy denies read access to iris5.fw for the kernel, causing this way
to never work. The second way is used only on ioctl(), which would
likely be sent from HWC. Unlike the first way, the second way *does*
work as-is, and since HWC is always started when booting into Android,
we don't have to worry about the first way being broken.
However, HWC doesn't run offline charging mode, so we have to rely on
the first way for that case. Unfortunately, since the first way is
broken, offline charging fails to work properly as a result. As such, we
need to fix that denial to make the first way work again.
Change-Id: Iba43afc5dba1c64d8ced9f374bbf9f0457db3c92
2022-11-21 22:39:29 +00:00
jabashque
12fcd01d96
vibrator: Redo LedVibratorDevice effects and vibrator timeout handling
...
For aw8697_haptic, OOS 12 never really properly implemented any effect
other than CLICK and HEAVY_CLICK. Let's implement our own TEXTURE_TICK,
TICK, CLICK, and HEAVY_CLICK so that the user can actually feel a
noticeable difference between each haptic effect.
As a quick summary:
- CLICK: same as oplus CLICK, but with vmax set to 2500.
- DOUBLE_CLICK: replaced with our CLICK played twice in a row, w/ a
100ms delay
- TICK: same as oplus CLICK, but with vmax set to 1400.
- HEAVY_CLICK: same as oplus CLICK, but with vmax set to 2500 and
waveform_index set to 4.
- TEXTURE_TICK: same as oplus CLICK, but with vmax set to 60 and
waveform_index set to 2.
In addition, modify LedVibratorDevice's on() to better reflect the
timeout duration actually being passed in to the function. The original
tried to change waveforms instead for various durations at 102 ms or
lower, which didn't really work out in practice for our vibrator.
Change-Id: Ifb769bc2292774afa4977026787a7882430c09d0
2022-11-12 20:20:44 +00:00
Michael Bestas
d9929c1fdd
Automatic translation import
...
Change-Id: I5f47631908c351b00fec9146d86cffff59e86cac
2022-11-03 01:57:23 +02:00
LuK1337
188897b04e
sepolicy: qti: Label vendor.nxp.nxpese::INxpEse
...
Change-Id: I450939fb61d9808e9994c91b6133046112e61dc0
2022-10-24 17:47:18 +02:00
LuK1337
cb0fb344ee
sepolicy: qti: Label init.oplus.wifi.sh
...
As seen on SM8150.
Change-Id: I5908f54d76ddb7a8abc82dfd80311b0eca02fc50
2022-10-22 10:53:45 +02:00
Omkar Chandorkar
2f78330e8b
sepolicy: qti: Allow cnss-daemon to access bdwlan.bin
...
Change-Id: I96375359bf4be92849a7969c4dfa13e13886ff70
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co >
2022-10-22 10:41:13 +02:00
Omkar Chandorkar
159cbb52a0
sepolicy: qti: Allow hal_sensors_default to access touchpanel
...
- required on SM8150
Change-Id: I47360407af4e70b60be27c1f9af46f6db3ce5a5d
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co >
2022-10-22 10:15:11 +02:00
Omkar Chandorkar
6c68312124
sepolicy: qti: Label oem_dycnvbk
...
- As seen on SM8150.
Change-Id: Ia12d1c3789aff80795dd026c7401f2e01f10134f
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co >
2022-10-22 12:03:01 +05:30
jabashque
83cfc07394
vibrator: Ensure waveform_index and vmax is set for other effects
...
It seems that the DOUBLE_CLICK and HEAVY_CLICK effects assume that
`waveform_index` is always set to 1 and `vmax` is set to 1600, because
if the last played effect is TICK, then all the other effects (aside
from CLICK) end up feeling different, presumably because
`waveform_index` is left as set to 2 and `vmax` is left as set to 1600.
Fix this by having DOUBLE_CLICK and HEAVY_CLICK set `waveform_index`
back to 1 and `vmax` back to 1600.
Change-Id: Ic116f45894cf4af25bcd25b66764eeb472631af5
2022-10-21 17:40:04 +02:00
xchgrbprsp
559c9f3640
KeyHandler: Add 'None' alert slider mode
...
Change-Id: I460448a0c1dfa6a5e16ecf93e6fbab29ee2de8fd
2022-10-21 14:45:07 +02:00
LuK1337
2a1d632735
KeyHandler: Use VibrationAttributes.USAGE_HARDWARE_FEEDBACK
...
This fixes vibration when user disabled 'Touch feedback' in settings.
Change-Id: If465f34c86a1e8e1b0f0b2ee3cc74515315e30b4
2022-10-19 20:44:47 +02:00
LuK1337
7d9972f3f4
KeyHandler: Use property access syntax when possible
...
Change-Id: I270ebbd32ae7de36740171325035555507bcfc7e
2022-10-19 20:42:04 +02:00
LuK1337
feb3dae687
KeyHandler: Null assert on getSystemService()
...
Change-Id: Ia3e4ce22c6ebf627301efef3fd1e214b05fbfeed
2022-10-19 20:41:14 +02:00
LuK1337
14a43e3d98
KeyHandler: Simplify boolean check
...
getBooleanExtra() does not return `Boolean?` anymore, or ever?
Change-Id: I8a1987ee1244148dccbf434d424ea1a60f7506cf
2022-10-19 20:38:47 +02:00
LuK1337
45b4b90881
KeyHandler: Remove unused/unnecessary imports
...
Change-Id: I9395dca4f188894464feb3b20063c27b20855b99
2022-10-19 20:38:16 +02:00
LuK1337
a746fb97aa
sepolicy: qti: Expose vendor_persist_engineer_file
...
This is necessary for camera_helper_app rules.
Change-Id: I2e675f21bc600e31334f35041de2be182f788b1d
2022-10-11 19:57:11 +02:00
LuK1337
c91027dc05
sepolicy: qti: Label vendor.oplus.hardware.cameraMDM@2.0-service
...
As seen on SM8150.
Change-Id: I92217d6a588bc8920aa2de048a3dca085cf7f1fe
2022-10-11 19:57:10 +02:00
LuK1337
e4a06d1d09
sepolicy: qti: Allow audio/sensors to handle ultrasound prox
...
Change-Id: I0c93de7578086ac97eb1ff3110c2bac6afba19c4
2022-10-11 19:57:10 +02:00
LuK1337
d25dfa3834
sepolicy: qti: Add rules for nxpnq330 NFC implementation
...
As seen on SM8150.
Change-Id: Id73e3ab1abd432d04dcfcc1d101d2a5985de2da0
2022-10-11 19:57:06 +02:00
LuK1337
8b0a3acf45
sepolicy: qti: Label {LOGO,oem_stanvbk} partitions
...
As seen on SM8150.
Change-Id: Ibd4ac7106de6e03dc24e88df945424525bb5c53c
2022-10-11 19:55:24 +02:00
LuK1337
009684123e
sepolicy: qti: Label SM8150 vibrator sysfs path
...
Change-Id: I80836911f8b15fed6742b69e4ebe307bbdb796f2
2022-10-11 19:55:23 +02:00
LuK1337
f2de507d76
sepolicy: qti: Label SM8150 wakeup nodes
...
for i in $(realpath /sys/class/wakeup/*); do if ! echo "$(ls -dZ $i)" | grep -q sysfs_wakeup; then echo genfscon sysfs $(echo $i | sed -e 's|/sys||g' -e 's|wakeup/wakeup.|wakeup|g' -e 's|wakeup[0-9]*|wakeup|g') u:object_r:sysfs_wakeup:s0; fi; done | sort -u
Change-Id: I5473d60b40686d0085f291f46d882cac0390ff3d
2022-10-11 19:55:22 +02:00
Michael Bestas
1e29f6f777
Automatic translation import
...
Change-Id: If4cb20654710903d59600cada3fd8bcd281cd77c
2022-10-05 19:31:05 +03:00
AnierinB
dff14c8992
sepolicy: qti: Add rules for wlchgmonitor
...
Change-Id: I0f85df93f89d4fb95239656490b2f8af6f2b6737
2022-10-04 20:01:09 +02:00
LuK1337
7b1294c8b5
KeyHandler: Don't ignore oplus,tri-state-key
...
As seen on SM8150.
Change-Id: Ie70a075926f51fa80b2dc148859823d705fb757d
2022-10-03 21:21:39 +02:00
LuK1337
082d65f8c4
sepolicy: qti: Move te_macros to public
...
This lets us use it everywhere.
Change-Id: I9ee699cdefd5fcfd1154fa927425f987ed148aaf
2022-10-03 20:30:38 +02:00
LuK1337
af2f96685a
kernel-headers: Add PANEL_IOCTL_{SET,GET}_SEED
...
Apparently, this is used for display modes on older devices.
Change-Id: Ic78a6862019ebf338e6f8f45f36a20322bf9fa43
2022-10-02 01:10:25 +02:00
LuK1337
39f46bc3fd
fingerprint: Fix sde_drm.h include path on 5.4+ kernel
...
Change-Id: Idac59471ae329eabf8484cc1238c35dabaa64827
2022-10-01 16:06:20 +02:00
LuK1337
3dacefed22
fingerprint: Add support for TARGET_USES_FOD_ZPOS
...
Change-Id: Iaf79d5393169b986197be058ac2166d2e448dfa0
2022-10-01 16:06:19 +02:00