Commit Graph

500 Commits

Author SHA1 Message Date
LuK1337
690071580e Introduce vendor.oplus.hardware.urcc-service
Change-Id: I7fe1a4e9b590d077f43bbaac03e483724d3198e0
2025-09-26 00:37:26 +05:30
dianlujitao
dff1a1af0c sepolicy: qti: Allow rules for subsystem_daemon
Change-Id: I22040ac0d0ab70f32de07a5ac451d41f045433a9
2025-09-26 00:37:18 +05:30
dianlujitao
7bf0c60008 sepolicy: qti: Fix wrong macro usages
Change-Id: I6e6a52ecf8fb223fc87c51bb8fa191bd1115a3e2
2025-09-26 00:37:18 +05:30
dianlujitao
8d717cc0e5 sepolicy: qti: Support both context prefixes in oplusreserve partition
Also apply some minor clean-ups while at it.

Change-Id: I7676bf126099222ef56b2f639aba1ab62f662361
2025-09-26 00:37:18 +05:30
Bruno Martins
037c3313d1 sepolicy: qti: Let qcril look into /mnt/vendor/oplusreserve
Change-Id: Iaa6425e662c83b660af9a3bf1371faa0faf494b3
2025-09-26 00:37:18 +05:30
dianlujitao
739fc8c632 sepolicy: qti: Allow init to label vendor_reserve_partition
[    0.983556] init: Running restorecon...
[    0.989819] selinux: SELinux: Could not set context for /dev/block/platform/soc/1d84000.ufshc/by-name/oplusreserve2:  Permission denied
[    0.989819] audit: type=1400 audit(10810748.011:9): avc:  denied  { relabelto } for  pid=1 comm="init" name="oplusreserve2" dev="tmpfs" ino=35 scontext=u:r:init:s0 tcontext=u:object_r:vendor_reserve_partition:s0 tclass=lnk_file permissive=0

Change-Id: I5b356016e6f5e2b2564179eb2b87bf99c4ee78e2
2025-09-26 00:37:18 +05:30
dianlujitao
08f329df34 sepolicy: qti: Label wireless charging device and daemon
Change-Id: I3d56dd86eecdfb18aba55e64e4b7d362441b1935
2025-09-26 00:37:18 +05:30
Bruno Martins
cc47583788 sepolicy: qti: Allow touchDeamon to stop itself
As seen on devices without OplusTouch support:

[   14.155867] init: Unable to set property 'ctl.stop' from uid:0 gid:0 pid:1991: Invalid permissions to perform 'stop' on 'touchDaemon'
[   14.155902] type=1107 audit(1758323930.135:13): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=ctl.stop$touchDaemon pid=1991 uid=0 gid=0 scontext=u:r:oplus_touchdaemon:s0 tcontext=u:object_r:ctl_stop_prop:s0 tclass=property_service permissive=0'

Change-Id: Iacc073b0b74713c268966c69480cf02d543d395a
2025-09-26 00:37:18 +05:30
LuK1337
8a9394f1d3 sepolicy: qti: Allow camera HAL to find osense_service
09-19 22:25:35.045   925   925 E SELinux : avc:  denied  { find } for pid=1634 uid=1047 name=osensemanager scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:osense_service:s0 tclass=service_manager permissive=0

Change-Id: I45f432e8378c726ef0026e5a1c9456b36b6929e1
2025-09-26 00:37:18 +05:30
dianlujitao
c423c2bfec sepolicy: qti: Allow eSIM HAL to access /mnt/vendor/oplusreserve
Change-Id: I07b964681f472d4d5c38be3d5aa1afd8604a1642
2025-09-26 00:37:18 +05:30
dianlujitao
b68df62d60 sepolicy: qti: Allow vendor.lineage.touch to access binder
[    4.389706] type=1400 audit(1758283865.674:53): avc:  denied  { call } for  comm="servicemanager" scontext=u:r:servicemanager:s0 tcontext=u:r:hal_lineage_touch_default:s0 tclass=binder permissive=0

Change-Id: I338d3fd5cb80035905c6c509eb53da61a2aa0338
2025-09-26 00:37:18 +05:30
LuK1337
7588273dcf sepolicy: qti: Let vendor_init set vendor_camera_prop
Required for erhai's vendor.qti.camera.provider-service_64.rc:

on property:sys.boot_completed=1
    setprop vendor.oplus.camera.cam0.count 0
    setprop vendor.oplus.camera.cam3.count 0
    setprop vendor.oplus.camera.error.camlist 0

Change-Id: I7b9c50f5532a8c809b2061f8c6eedc08d7a18802
2025-09-26 00:37:18 +05:30
dianlujitao
f48eb33d45 sepolicy: qti: Label thermal engine prop
Change-Id: I14766b69fd83031083730a445c958a5e1027bd34
2025-09-26 00:37:18 +05:30
madmax7896
27e31ebbb5 sepolicy: qti: Label some missing wakeup nodes on OP13R 2025-09-17 00:07:07 +01:00
madmax7896
7dda365828 Euicc: Add OnePlus 13R support 2025-09-17 00:07:07 +01:00
LineageOS Infra
81bd03c42f Automatic translation import
Change-Id: I471279ee8af9e2d3c7c95f572bbd809d680a0535
2025-09-15 16:55:00 +00:00
LuK1337
93353b7fe4 readme: Remove USE_BSG_FRAMEWORK variable
See: 18ef7dd547
Change-Id: I874e5cf669a5f068cc8b8cf058e6e26c8401d883
2025-09-14 18:10:13 +02:00
LuK1337
e0ed208f22 interfaces: Add vendor.oplus.hardware.urcc V1
Change-Id: I1b483913586c45717d86f3faa036d5afe3077858
2025-09-14 12:51:33 +02:00
kok-o3
3fc8912155 sepolicy: qti: Label SM7675 wakeup nodes
Change-Id: I0f7f1dec0f8f9da88afd17233898ceb5c4a23ec5
2025-09-13 21:39:40 +02:00
inferno0230
34a24318a8 sepolicy: qti: Label SM7550 charging sysfs path
Change-Id: Ia79079f3df34714e5a8f9294d3db6048552609e6
Signed-off-by: inferno0230 <mail@inferno0230.in>
2025-09-09 22:06:47 +02:00
LuK1337
495cfb6640 sepolicy: qti: Allow vendor_init to set vendor_fingerprint_prop
Change-Id: Icc898bba9d8a06b79e1cfcf34412871471a9bdf7
Signed-off-by: inferno0230 <mail@inferno0230.in>
2025-09-09 19:54:53 +05:30
dianlujitao
7a643a4105 sepolicy: qti: Move proc_horae to vendor
This fixes booting AOSP GSIs.

Fixes: 8acb73ff6a ("sepolicy: qti: Add support for horae service")
Change-Id: Ica812bb31d6c60b4ec5f6837de7712bd0c275543
2025-09-07 15:29:03 +08:00
dianlujitao
8ae5447fc5 Euicc: Add China version support
Despite lack of native eSIM hardware, this enables managing removable
eUICCs through EuiccGoogle

Change-Id: I9d5a360dde85ede18761ff795641e199507ff688
2025-09-06 14:39:20 +00:00
LuK1337
20b9ca79d6 livedisplay: Use PWM turbo for IAntiFlicker if available
Change-Id: I4162f79c5309038dfff1bd00f2ca8a726c7eb206
2025-09-06 13:56:59 +00:00
LuK1337
b7e4686284 kernel-headers: Add PANEL_IOCTL_{GET,SET}_PWM_TURBO
Change-Id: I0c63693be15a09baa582d14113b642e086e94d6e
2025-09-06 13:56:59 +00:00
grep
641f44934c vintf: Bump vendor.oplus.hardware.charger to V8
lexus shipped with V8.

Change-Id: I0b4733fcb7f5e3ac0834b8526e1ec5a99fd0e8c3
2025-09-06 12:25:27 +02:00
Bruno Martins
d2e134e7c0 interfaces: Mark all aidl interfaces as system_ext_specific
Change-Id: I62d8099cae1d3c2cbe98d5bc514a0713eb84cbe9
2025-09-05 17:11:22 +01:00
Bruno Martins
860533d2bb interfaces: Update ICharger all the way to V8
V7 adds GET_RX_DISABLE_STATUS and SET_RX_DISABLE enum entries on top of
V6 and V8 finally adds only GET_BATTERY_SEC_IC_TEST_STATUS.

Change-Id: I134bac4ffc536280dbb778a4a349943b67c175dc
2025-09-05 15:49:48 +01:00
Bruno Martins
70168c51f2 interfaces: Bump ICharger directly to V5
Looks like V4 never existed.

Change-Id: I1999da190461411913e98d98c258a2825fb039d5
2025-09-05 15:48:10 +01:00
Bruno Martins
c0d70dc0f9 interfaces: Update ICharger to V3
Change-Id: Ife15bb3b9f51dbc83bb975a7603f47985e1178bd
2025-09-05 15:47:13 +01:00
Bruno Martins
e8d95112d7 interfaces: Update ICharger to V2
Change-Id: I2ffe384dad647c3e115d6bb1d2e7d85e94d720e5
2025-09-05 15:46:18 +01:00
Bruno Martins
8c1e19bdb8 interfaces: Add vendor.oplus.hardware.charger V1
Change-Id: Ia3916a80e106c3b92428b1239c0fae90b8a5eaf3
2025-09-05 15:45:00 +01:00
Bruno Martins
a9438581bb sepolicy: qti: Add inital eSIM support
Change-Id: Iae2d3c17a6eb5a9b1c71198c8ac861ad4e5f85d5
2025-09-05 13:42:42 +00:00
Bruno Martins
63795ed4d4 sepolicy: qti: Update compatibility mapping files
Change-Id: I6d10fa03042e4f360a494a7eb2c9ffd0502c86a4
2025-09-04 16:05:55 +01:00
chandu078
8acb73ff6a sepolicy: qti: Add support for horae service
Service required for thermal management, as it reports and updates shell
temperature to /proc/shell-temp.

Change-Id: I02e2ddeda461cbb2ead1348edc6ebf57b8f7fdde
2025-09-04 13:30:17 +01:00
LuK1337
3633fe6cbe oplus: Get rid of in_ prefix
Change-Id: Ibdafd315098ccc54ec19f298bdb28cb894017489
2025-09-04 11:17:09 +00:00
pjgowtham
b122025d2d Introduce vendor.oplus.hardware.performance-service
Dummy service named differently from the stock one to avoid conflicts.

This can be used on devices that do not include CPU ricing, but still
require the service to register for camera and prebuilt audio stack to
actually work.

Change-Id: I41087aefe9af57e7a1161a3a71ab3b9e849925f2
2025-09-04 10:14:22 +00:00
pjgowtham
8ecfa3412a interfaces: Add vendor.oplus.hardware.performance V1
Change-Id: I5a56cdc826495e1770905e3286bcbc2bef0cf2a3
2025-09-04 10:16:09 +01:00
LineageOS Infra
826524b2cb Automatic translation import
Change-Id: I433a0975161c90f6e9cec98e824f56c3c80e39a1
2025-09-01 14:54:29 +00:00
Bruno Martins
8393454ee6 usb_compositions: Restore QCOM VID/PID combos for diag
This re-allows installing Qualcomm drivers for accessing diag,
serial_cdev, rmnet (and others) devices. Needed for QPST Flash Tool.

Change-Id: Iafe2236bb63adb005bfecae46887c58c69db8ca2
2025-09-01 14:03:27 +00:00
dianlujitao
0b09eeb4b7 KeyHandler: Populate tri-state-key state on boot
Change-Id: I11e785b5824d581f748e038f292c8846b2a13a0f
2025-09-01 14:50:41 +01:00
LuK1337
23a4f0c429 sepolicy: qti: Add system_oplus_radio_prop to *.ignore.cil
Change-Id: If943028a54f7a7f32f289bf080f6565052bdaf40
2025-08-31 20:00:33 +02:00
pjgowtham
0ad31fba1e sepolicy: qti: Let qti secure_element rw /dev/nq-nci
vendor.qti.secu: type=1400 audit(0.0:2346): avc:  denied  { getattr }
for  path=/dev/nq-nci dev=tmpfs ino=1371
scontext=u:r:hal_secure_element_default:s0
tcontext=u:object_r:nfc_device:s0 tclass=chr_file permissive=1

Spotted on ferrari.

Change-Id: I8869fffae3cc6028b6b8ff009bd84108e2a53ada
2025-08-25 13:59:35 +02:00
pjgowtham
9b27b2665b fingerprint: Shim property_get() as well
On OnePlus Nord CE3 (ziti), shimming `__system_property_get()` is not
enough. Without this change, `vendor.fingerprint.cali` is set to 0 when
`ro.boot.vbmeta.device_state` is unset.

Test: Ensure adb logcat | grep "lcd LockState" does not show up as NULL
      Ensure adb shell getprop vendor.fingerprint.cali is 1
Change-Id: I913f00db1542a28aaaa11dba93fcce67b39717bf
2025-08-25 09:49:43 +00:00
pjgowtham
1477e8b42e sepolicy: qti: Label awinic vibrator sysfs for ziti
Change-Id: I6543983b6de8f7852015ea6a304be9aa809dc65f
2025-08-24 21:23:41 +05:30
LuK1337
4af7f26d3f sepolicy: qti: oplusSensor -> oplus_sensor
Matches new AIDL naming style.

Change-Id: I93a22091f54df5c48d105bc82d51b90bcf1e59e3
2025-08-22 10:06:40 +02:00
pjgowtham
04441ff343 sepolicy: qti: Label and add rules for oplusSensor AIDL
Change-Id: I451d7bf6bb110ed900ff5258cdcf6566945ab490
2025-08-22 10:06:39 +02:00
pjgowtham
93e8cfc069 sepolicy: qti: Let vendor_hal_oplusSensor_default search /dev/block
Change-Id: I248bd96c9753a4c9f51643368a0a5f67d52729df
2025-08-22 09:58:37 +02:00
pjgowtham
17d525da8f sepolicy: qti: Let hal_oplus_charger_aidl rw /dev/oplus_chg
Change-Id: I222aed7542f5750a3fe2f062998237bc00d22a3a
2025-08-22 09:49:45 +02:00
pjgowtham
af977627d4 sepolicy: qti: Let hal_oplus_charger_aidl rw vendor_sysfs_battery_supply
Change-Id: I058aad89acba10eaae84734341d30d1efa8e4a2f
2025-08-22 09:49:45 +02:00