Bruno Martins
b680eae9a3
interfaces: Update IOplusProject to V2
...
Change-Id: I628f7aa3ed07b5c02fd0a07a3e41a3cfb7291bb5
2026-01-20 14:33:23 +01:00
Bruno Martins
ecae06e225
interfaces: Introduce vendor.oplus.hardware.stability.oplus_project V1
...
Change-Id: Ia2337de26393070367076a04acbf0cbb87291206
2026-01-20 14:33:23 +01:00
Bruno Martins
dae91ed770
vintf: Bump ISubsys and ISubsysRadio aidl versions
...
As required for OOS 16:
ERROR: files are incompatible: The following instances are in the device manifest but not specified in framework compatibility matrix:
vendor.oplus.hardware.subsys_interface.subsys.ISubsys/default (@5)
vendor.oplus.hardware.subsys_interface.subsys_radio.ISubsysRadio/slot1 (@8)
vendor.oplus.hardware.subsys_interface.subsys_radio.ISubsysRadio/slot2 (@8)
Change-Id: I2511ea82ccce5a4f219a38e87b892c06445c1226
2026-01-20 14:33:23 +01:00
chandu078
975e175c8c
vintf: Bump vendor.oplus.hardware.charger to V9
...
As seen in OOS 16.
Change-Id: Ife1c267191591815c0067fe8fe401f40de6cc0bc
2026-01-20 14:33:23 +01:00
Bruno Martins
b7529516af
interfaces: Add AIDL and HIDL IDisplayPanelFeature
...
Change-Id: I01a16fbb24ddbc02460788edfc05b83410f6a36e
2026-01-20 14:33:23 +01:00
Marc Bourgoin
f7e54b5bb7
sepolicy: Remove commonized ST NFC labels
...
They are moved to qcom sepolicy_vndr
Change-Id: Ifdc5a3a4a51e172de4c685a833c2da4ca114d5ce
2026-01-20 14:33:23 +01:00
inferno0230
02cdcb3595
Euicc: Add OnePlus 12R support
...
Change-Id: I36ce9a1cc828f4157f340e34e4ca1ff5bdaff1a1
Signed-off-by: inferno0230 <mail@inferno0230.in >
2026-01-20 14:33:23 +01:00
LuK1337
4787b5111f
Euicc: Make JSON mappings more readable
...
Change-Id: I5e10327407962c8328ab73a6e5faee1da639c00d
2026-01-20 14:33:23 +01:00
LuK1337
c2ac80b26e
Euicc: Make JSON mappings untranslatable
...
Change-Id: I438b90a69e55f62bd02c875a9a0ee40aa08d011b
2026-01-20 14:33:23 +01:00
DroidFreak32
d42835de19
eSimSwitcher: Restrict activity to primary profile only
...
This avoids the "Choose Profile" popup every time the activity
is started when Android for Work is set up on the device or when using
apps like Shelter.
Change-Id: I716176445e6a9d9f8877c651a8f5524bfcef48b3
2026-01-20 14:33:23 +01:00
Bruno Martins
0ec5c7ee17
eSimSwitcher: Support targets using SE
...
Co-authored-by: LuK1337 <priv.luk@gmail.com >
Change-Id: I8be990cd691b4ca84701f68c84ea0e807f22c647
2026-01-20 14:33:23 +01:00
Bruno Martins
8cbc195c1c
Introduce eSIM switcher app
...
Icon taken from google/material-design-icons.
Co-authored-by: LuK1337 <priv.luk@gmail.com >
Change-Id: I28216910c39f4ee690d2e69d39158413422bfe8d
2026-01-20 14:33:23 +01:00
inferno0230
34bdc76ed5
livedisplay: Use PWM pulse for IAntiFlicker if available
...
Change-Id: I03331c4dc123a95b0882318af48aa4f22e0d13b7
Signed-off-by: inferno0230 <mail@inferno0230.in >
2026-01-20 14:33:23 +01:00
inferno0230
dc68150e61
kernel-headers: Add PANEL_IOCTL_{GET,SET}_PWM_PULSE
...
Change-Id: Ia81c01fd2eb707e06d1cf40f90585f2da01fe934
Signed-off-by: inferno0230 <mail@inferno0230.in >
2026-01-20 14:33:23 +01:00
LuK1337
11a489b80b
Euicc: Migrate to privapp_allowlist
...
Change-Id: I52aa7e1d8a158be2a252d2949f5207551a1a4070
2026-01-20 14:33:23 +01:00
LineageOS Infra
ea27d5578c
Automatic translation import
...
Change-Id: I1cc36db194d97b53ce1582b92ae864b7e6da4c5d
2026-01-20 14:33:23 +01:00
LuK1337
2c2c666e79
Pen: Support Goodix BT MAC prefix
...
add device 2: /dev/input/event9
bus: 0005
vendor 22d9
product 386a
version 0101
name: "OnePlus Pencil Pro Mouse"
location: "XX:XX:XX:XX:XX:XX"
id: "f8:6f:de:XX:XX:XX"
version: 1.0.1
events:
KEY (0001): BTN_MOUSE BTN_RIGHT BTN_MIDDLE
REL (0002): REL_X REL_Y REL_WHEEL REL_WHEEL_HI_RES
MSC (0004): MSC_SCAN
input props:
<none>
Change-Id: Iebff07ee1a7fc34fc3cd806d9dc00a88f26688a7
2026-01-20 14:33:23 +01:00
LuK1337
0841cef5b7
Pen: Support Maxeye vendor ID
...
add device 4: /dev/input/event12
bus: 0005
vendor 330a
product 0001
version 0101
name: "OPPO Pencil 2"
location: "XX:XX:XX:XX:XX:XX"
id: "c0:87:06:XX:XX:XX"
version: 1.0.1
events:
KEY (0001): KEY_F21
MSC (0004): MSC_SCAN
input props:
<none>
Change-Id: I89fff6e3cc24d159bd72175fb078286194016786
2026-01-20 14:33:23 +01:00
LuK1337
70c27d3906
Pen: Simplify stylus identification
...
Change-Id: Ica177eab3a1b1e9fe4f63a3f2eda7afd5e44cd7e
2026-01-20 14:33:23 +01:00
inferno0230
dda94bb591
sepolicy: qti: Label oplus,ufcs_protocol wakeup node
...
As seen on OnePlus Ace 2 Pro (xigua)
Change-Id: Icc04b17df095d8c8f5360551573129237cc3f724
Signed-off-by: inferno0230 <mail@inferno0230.in >
2026-01-20 14:33:23 +01:00
LuK1337
cf4c32a0d2
sensors: Skip first fp state event
...
We don't want to report initial state as otherwise that might result in
unwanted AOD UDFPS icon illumination after locking the device.
Change-Id: I4b595fcd0013b62c7d22a97e0243b39b5f1dcb16
2026-01-20 14:33:23 +01:00
LuK1337
7e77774f6d
Pen: Get rid of location permission
...
https://developer.android.com/develop/connectivity/bluetooth/bt-permissions#assert-never-for-location
Change-Id: Ied5bd77a692a459cd25def85860ae6b940238879
2026-01-20 14:33:23 +01:00
LuK1337
85030c32bc
Pen: Wait up to 5s for BLE scanner to be available
...
I'm too lazy to do this properly, this much easier and not like we have
UI to worry about.
Change-Id: If678fa861c9c25b159dbea4a8429777a4665ab51
2026-01-20 14:33:23 +01:00
LuK1337
efcb0981b3
folio-daemon: Remove unwanted event count check
...
No idea what was the point of it, but it prevents us from listening to
sensor events when device is asleep.
Change-Id: Id7ce79e8cce051256ee15d8b8f342726af085976
2026-01-20 14:33:23 +01:00
LuK1337
d219e9dab7
folio-daemon: Fix ALooper_pollOnce() return value check
...
Fixes: e9f090f ("folio-daemon: PollOnce instead of PollAll")
Change-Id: I651a1614c85d0729f960a7dc524b45118d6de932
2026-01-20 14:33:23 +01:00
Christian Hoffmann
d72f26d697
folio-daemon: Do not use batching for hall sensor
...
* hallMinDelay is 0, so just drop fetching it
* Using batching wakes up the system so frequently and
* unnecessarily that it never allowed deep sleep
* Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/8261
Change-Id: I597676b2dc93ab5581442f8c74734e18ff7217e3
2026-01-20 14:33:23 +01:00
LuK1337
30af5429c8
sepolicy: qti: Allow folio_daemon to find virtual_device_native_service
...
10-03 16:43:17.001 611 611 E SELinux : avc: denied { find } for pid=6977 uid=1000 name=virtualdevice_native scontext=u:r:folio_daemon:s0 tcontext=u:object_r:virtual_device_native_service:s0 tclass=service_manager permissive=0
Change-Id: I4900e1649d6e93d7eefa2c1027f362d1109fdf60
2026-01-20 14:33:23 +01:00
LuK1337
00bdb4360e
Pen: Support overriding peak refresh rate when pen is connected
...
Change-Id: Ic65abaeb124613f9251905404eb77b67a63e28f1
2026-01-20 14:33:23 +01:00
LuK1337
b7f4ffe60f
sepolicy: qti: Add sepolicy for folio-daemon
...
Change-Id: I72294055d6dfa548c50ba9be5a842aba8e86e709
2026-01-20 14:33:23 +01:00
LuK1337
bf6353c94d
folio-daemon: Migrate to SPDX license header
...
Change-Id: If31c35027d24cba99833f48e05bf32e9e5ef32a0
2026-01-20 14:33:23 +01:00
LuK1337
9e1ddd8dff
folio-daemon: Run clang-format
...
Change-Id: Ie874df9fa83b923e113fb47c56e257655c398c2b
2026-01-20 14:33:23 +01:00
LuK1337
3ab7d3e54c
folio-daemon: Add init rc
...
Change-Id: Ic8e4b1956b3d5f47bd05a04db0edb69d54380137
2026-01-20 14:33:23 +01:00
LuK1337
1a5f653c9a
folio-daemon: Move to /system_ext
...
Change-Id: Ib2d5dba4197fb8499cb778e41ef0fe30cb8db012
2026-01-20 14:33:23 +01:00
Christian Hoffmann
3205e0b0f3
folio-daemon: Explicity request wakeup version of hall sensor
...
Change-Id: Iafd2c2cc5afc1ae6b1354ad6bbeb3b3f95bfa3ee
2026-01-20 14:33:23 +01:00
LuK1337
7192398f65
folio-daemon: Flip sensor event data check
...
Change-Id: I5fe3969500f2f72308741c299b0a09ac8152f973
2026-01-20 14:33:23 +01:00
LuK1337
0b4cc238ab
folio-daemon: Update sensor type
...
0x010003fe) bu52053nvx Oplus Hall Effect Sensor Wakeup | ROHM | ver: 393228 | type: qti.sensor.hall_effect(33171002) | perm: n/a | flags: 0x00000003
Change-Id: Id6887fe8651758530e6ca2225f26743396e61195
2026-01-20 14:33:23 +01:00
Michael Bestas
128d956db2
folio-daemon: Convert Android.mk to bp
...
Change-Id: I52813cd047f685db97f9994d81cd28225a2c1b10
2026-01-20 14:33:23 +01:00
Christian Hoffmann
394aa2e793
folio-daemon: PollOnce instead of PollAll
...
* Fixes build error.
Change-Id: I62019c3116a3ee697923595904f1d66d6842957b
2026-01-20 14:33:23 +01:00
Andrew Lehmer
14f7c432cb
folio-daemon: Avoid UAF with stale sensor handle
...
It is possible for sensor handles retrieved using
ASensorManager_getDefaultSensor() to become stale if the underlying
binder connection to the sensor service gets reset. This can be
triggered by ASensorManager_createEventQueue(), so any sensor handle
retrieved prior to this call may become stale, resulting in a use-after-
free when the handle is eventually registered with the queue. To avoid
this, the event queue is created before retrieving or registering the
sensor.
Bug: 150225255
Test: No longer crashes with proof-of-concept on Pixel 2 XL.
Change-Id: I243f6c68c734af3eb5488855d965a894b5fb99e5
2026-01-20 14:33:23 +01:00
Jiyong Park
af5a26eb25
folio-daemon: Disable modules that can't be built in PDK
...
Modules that can't be built in PDK are disabled when TARGET_BUILD_PDK is
true
Bug: 71361051
Test: lunch aosp_walleye-userdebug
PDK_FUSION_PLATFORM_ZIP=vendor/pdk/walleye/walleye-userdebug/platform/platform.zip m -j
Change-Id: I2cc7ab6d667daab7d3566baf8a9b473cafc4e452
2026-01-20 14:33:23 +01:00
Lennart Wieboldt
3f4a69a1dd
folio-daemon: Remove LOCAL_CLANG := true
...
Clang is the default compiler since nougat.
Change-Id: I565e25f9f688a979eac41de0eee4a88b24099098
Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de >
2026-01-20 14:33:23 +01:00
Chih-Hung Hsieh
f8ec485a1c
folio-daemon: Use -Werror
...
* Remove unused local variable.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I96228277b9c81b71e73e4e376d86cdea6cbcb647
2026-01-20 14:33:23 +01:00
Dan Albert
8a602bf650
folio-daemon: Add missing includes.
...
Change-Id: I74ce25b3b5c918e371140b91f82ec00ff571f9fe
Exempt-From-Owner-Approval: trivial cleanup
Test: mma
Bug: None
2026-01-20 14:33:23 +01:00
Jeff Vander Stoep
f90a565d15
folio-daemon: Move to system
...
Remove Treble violations.
Bug: 36867326
Bug: 62387246
Test: loaded on taimen, checked dmesg, and tested daemon with magnet
Change-Id: I4662b41206b94cae6ac9843b5dc7e1452003c63c
2026-01-20 14:33:23 +01:00
Andrew Lehmer
1b685157fa
folio-daemon: Retry slowly on failure
...
Bug: 38001818
Test: loaded on taimen
Change-Id: I3f5a8cbf0faca3b5d027dcd74f1b16de80fdbee2
2026-01-20 14:33:23 +01:00
Andrew Lehmer
77bf539b3b
folio-daemon: Exit when poll returns zero events
...
Bug: 37402669
Test: loaded on walleye, issued `adb shell stop`, checked `top`
Change-Id: I7d43cab39809b6b156eb26195df2c913991e5c96
2026-01-20 14:33:23 +01:00
Andrew Lehmer
98429e3f13
folio-daemon: Improve logging for debugging
...
Bug: 37402669
Test: loaded on walleye
Change-Id: I9cfd071158386d3eb15a5b81656b09452c7fed15
2026-01-20 14:33:23 +01:00
Andrew Lehmer
f0a0026ed3
oplus: Add support for folio cases
...
Bug: 35243564
Test: Used magnet to wake and lock device. Also tested during suspend.
Change-Id: I4b819e12cc23a3d7a8ce048e208c15eac4f8d6c5
2026-01-20 14:33:23 +01:00
LineageOS Infra
55e999831a
Automatic translation import
...
Change-Id: I9d71722a8e84ba8d1503995031ba92beaba044ef
2026-01-20 14:33:23 +01:00
dianlujitao
ff1be84372
sepolicy: qti: Allow rules for subsystem_daemon
...
Change-Id: I22040ac0d0ab70f32de07a5ac451d41f045433a9
2026-01-20 14:33:23 +01:00