70 Commits

Author SHA1 Message Date
kamikaonashi
000a7e0d94 a71-common: Add charging bypass manual toggle [2/2] 2026-01-23 10:28:46 +07:00
justinntime
1b586eef17 a71-common: sepolicy: Introduce Charging info tile functionality [2/2] 2026-01-23 10:28:45 +07:00
just_inntime
e0273caad0 a71-common: sepolicy: Update parts thermal access 2026-01-23 10:28:45 +07:00
just_inntime
0f4987a59e a71-common: Introduce parts [2/2]
Based on XiaomiParts for peridot
Special thanks to kenway214
2026-01-23 10:28:45 +07:00
Starlix
0ab7cdb440 sepolicy: define type sysfs_camera and sysfs_camera_writable
This is needed by the private sepolicy for the flashlight control app
2026-01-23 10:28:45 +07:00
Starlix
d90c25eb5c sepolicy: Add hal_samsung_camera_flashlight_default.te
This is needed by the flashlight control app.
2026-01-23 10:28:44 +07:00
Bruno Martins
7b6fb669ab a71-common: sepolicy: Adapt gatekeeper HAL rules
Ref: e8d66734f9%5E%21/
Change-Id: I4d6b0762ed22d533cc1a2c8a40735525a06aae86
2025-12-18 17:18:17 +01:00
Michael Bestas
c0e6e55e57 a71-common: sepolicy: Commonize SEC NFC device label
Change-Id: I6c856d9317097e73eff944edfb2c37f8b4b51785
2025-11-26 02:47:17 +02:00
Bruno Martins
4907663b70 a71-common: Migrate to LiveDisplay AIDL HAL
Change-Id: Iafa206bb882cc49866a4b94b3ac03f15c4399c30
2025-09-27 23:08:53 +02:00
Bruno Martins
4e773050c5 a71-common: Move to Samsung common LiveDisplay HAL
Change-Id: I5df8cede62b050f9e562e680d171768d4c9ad26c
2025-09-03 13:32:38 +00:00
Bruno Martins
85a8d4099f a71-common: sepolicy: Migrate to LiveDisplay QTI domain
Change-Id: I59f1e145cab525a69065296778ec4e48645bd439
2025-09-03 13:32:33 +00:00
Bruno Martins
651dde32ef a71-common: Move to Samsung common Touch HAL
Change-Id: I5c4de6e4956e316600e327b725b863ddf9e63fc1
2025-09-02 18:51:48 +01:00
LuK1337
71270c3e5d a71-common: Migrate to lineagehealth IFastCharge
Change-Id: Ia2f1f213de2f2e5afd913e5de38712fddc386b49
2025-09-02 18:51:48 +01:00
Bruno Martins
6c21d28670 a71-common: touch: Migrate to AIDL
Change-Id: Ibbac9b4320fc64c5b6f365b8e9bd977d71d0d4dd
2025-09-02 18:51:48 +01:00
Wei Wang
215e699033 a71-common: Move PowerHAL into Pixel common
Bug: 129495482
Bug: 111098032
Test: Boot and check PowerHAL
Change-Id: I79b7276ff0c28885877af8b0533fe1f9d81b3b0c
2024-12-30 00:11:38 +01:00
Haky86
803945287b a71-common: Restore sehradiomanager service
* Due to 401683 in fw/opt/telephony, signal bar become empty after rebooting so removing that commit has fixed it.

Change-Id: I1c64fe0d6ae06d97c4a091af133d7cf9f837730a
2024-11-09 20:28:07 +00:00
Bruno Martins
f00f61c27e a71-common: Switch to health AIDL HAL
Change-Id: I0600fbe80dbd538dfe2aef0538b68e4e399c915e
2024-10-01 03:29:25 +02:00
Haky86
ad165aab25 a71-common: sepolicy: Fix additional denials for U
* Fixes:
08-02 20:20:52.378  2552  2552 W chown   : type=1400 audit(0.0:233): avc:  denied  { setattr } for  name="hispeed_load" dev="sysfs" ino=87107 scontext=u:r:vendor_qti_init_shell:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=file permissive=0

08-03 02:30:37.542  2574  2574 I auditd  : type=1400 audit(0.0:207): avc:  denied  { setattr } for  comm="chown" name="reset_enabled" dev="sysfs" ino=35551 scontext=u:r:vendor_qti_init_shell:s0 tcontext=u:object_r:sysfs_ss_writable:s0 tclass=file permissive=0

08-03 02:30:22.642  1017  1017 I auditd  : type=1400 audit(0.0:86): avc:  denied  { search } for  comm="adsprpcd" name="sensors" dev="sysfs" ino=43196 scontext=u:r:vendor_adsprpcd:s0 tcontext=u:object_r:vendor_sysfs_sensors:s0 tclass=dir permissive=0

08-03 03:05:15.202   925   925 I auditd  : type=1400 audit(0.0:162): avc:  denied  { read } for  comm="LocApiMsgTask" name="u:object_r:system_prop:s0" dev="tmpfs" ino=27113 scontext=u:r:vendor_hal_gnss_qti:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0

Change-Id: I6d1650af5e3f2d3bc8da3eaecaa04bf5ff9d6c1b
2024-08-03 10:17:43 +02:00
Haky86
0ecdaa8052 a71-common: sepolicy: Add additional hal_audio_default labels
* Fixes:
08-02 20:02:11.507   915   915 I auditd  : type=1400 audit(0.0:243): avc:  denied  { search } for  comm="writer" name="/" dev="sda9" ino=2 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:efs_file:s0 tclass=dir permissive=0
08-02 20:02:11.507   915   915 W writer  : type=1400 audit(0.0:243): avc:  denied  { search } for  name="/" dev="sda9" ino=2 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:efs_file:s0 tclass=dir permissive=0
08-02 20:02:11.507   915   915 I auditd  : type=1400 audit(0.0:243): avc:  denied  { search } for  comm="writer" name="/" dev="sda9" ino=2 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:efs_file:s0 tclass=dir permissive=0
08-02 20:02:11.507   915   915 W writer  : type=1400 audit(0.0:243): avc:  denied  { search } for  name="/" dev="sda9" ino=2 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:efs_file:s0 tclass=dir permissive=0

Change-Id: I12e024836682f1487c6022c3a1a7346dd02ca634
2024-08-02 20:22:03 +02:00
Haky86
a9f791cb62 a71-common: sepolicy: Add additional hal_health_default labels
* Fixes:
08-02 19:08:15.916   926   926 I auditd  : type=1400 audit(0.0:91): avc:  denied  { read } for  comm="android.hardwar" name="type" dev="sysfs" ino=67722 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file

Change-Id: I134e461517f1aa5859ad90463b54ba0770851c63
2024-08-02 20:06:03 +02:00
Haky86
2f195efaea a71-common: sepolicy: Label paramblk_device
* Fixes:
08-02 18:56:07.876    78    78 I auditd  : type=1400 audit(0.0:505): avc:  denied  { read } for  comm="kworker/7:2" name="sda7" dev="tmpfs" ino=27047 scontext=u:r:kernel:s0 tcontext=u:object_r:paramblk_device:s0 tclass=blk_file permissive=0

Test: Build, flash then go to Settings > Battery and you can enable/disable "Fast charging" toggle in enforcing mode too.
Change-Id: I25a7e4ad673d95d3c9f0a8fd4d30361e1f49472c
2024-08-02 19:17:39 +02:00
Haky86
b4130544c1 a71-common: sepolicy: Label persist.vendor.cne prop
* Fixes:
12-04 22:56:54.049     1     1 I auditd  : type=1107 audit(0.0:13): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=persist.vendor.cne.feature pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_cnd_prop:s0 tclass=property_service permissive=0'

Change-Id: I22483a67f3bfda664f181daf077dbec84f6dc9dd
2024-08-02 18:55:23 +02:00
Haky86
0e9856b84f a71-common: sepolicy: Label bluetooth_nv_ver
* Fixes:
08-02 17:27:36.706     0     0 E [5:           init:  472] init: Unable to set property 'vendor.bluetooth_nv_ver' from uid:1002 gid:1002 pid:916: SELinux permission check failed

Change-Id: If401b07877394ecbb56b18e3e166ba27abf6454e
2024-08-02 18:12:52 +02:00
Haky86
4c3881ea23 a71-common: sepolicy: Label slot_id0/slot_id1
* Fixes:
08-02 14:45:50.489  1115  1262 W libc    : Unable to set property "vendor.calls.slot_id1" to "1": error code: 0x18

Change-Id: I13f4e43a136c6bde23849f152c252eafbbb50f82
2024-08-02 17:41:45 +02:00
Haky86
c464de1f85 a71-common: Drop sehradiomanager for now
* It cause a random sim restart, I'll check later the issue.

Change-Id: I543720ac5a25f433826ad4b097fb275d088d3f28
2024-07-31 16:53:40 +02:00
Simon1511
494bcaafdb a71-common: Switch to U RIL
- Pull RIL and QMI blobs from A715FXXSBDXB1 (T)
- Build sehradiomanager for working signal strength
- Update SMSC and slotID patches accordingly
- Build vendor.samsung.hardware.radio@2.[0,1,2] from source

Change-Id: Icb3596c38d8f86db9813ff5f8586b7602c6bd80f
2024-07-31 14:53:01 +02:00
Tim Zimmermann
60f2eaeae4 a71-common: Switch to AIDL camera HAL
* Built from hardware/samsung.

Change-Id: I063aa09ce875f049deb86d98046059761bcb7e64
2024-07-31 14:11:10 +02:00
Tim Zimmermann
226a9b1131 a71-common: Switch to hardware/samsung camera provider HAL
* Built from hardware/samsung.

Change-Id: Ic65da5d94888a9c9dc68dbf59f52f611dca8924c
2024-07-31 14:09:48 +02:00
Christian Hoffmann
58a9c8f169 a71-common: sepolicy: Avoid vendor_radio_data_file as it breaks selinux tests
* sepolicy test (runs with 'm' command) stops and complains about:
* "The following types on /data/ /odm/ /product/ /vendor/ must not be.
* associated with the "app_data_file_type" attribute: vendor_radio_data_file...".
* Just use different type as some google pixel do.

Change-Id: I3fc1f1ab8e8009a41ffffd47054fb9cc26ecef0b
2024-07-31 14:09:20 +02:00
Tim Zimmermann
21a8a7c480 a71-common: Switch to AIDL fingerprint HAL
Change-Id: I3fc354e931676f4d43170d290185017ad4cb51b5
2024-07-31 13:56:28 +02:00
Haky86
f33a8813b3 a71-common: Decommonize NFC configs/service impl
Change-Id: I15ff480f37e96321e70442487f2ecebe91e11560
2024-07-30 01:15:46 +02:00
Simon1511
cf8073641d a71-common: Kill unused partitions
Change-Id: I3a450661ab9ebd8e67970764fde3c364fe13d885
2024-07-29 20:55:16 +02:00
Haky86
8dc98261ef a71-common: sepolicy: Label input2 node
* Fixes fod on aod and screenoff long press.

Change-Id: I59321439156f2cec1c699b7ba6a01f3554565b4b
2024-07-29 19:17:31 +02:00
Haky86
aa77fdc324 a71-common: Switch to the QTI Power HAL again instead of Pixel one
* Taken from vendor/qcom/opensource.

Change-Id: I18e24124885f014c0329bfcc26161d2310766b81
2024-07-29 14:39:34 +02:00
Wei Wang
26407713c9 a71-common: Switch to libperfmgr for powerhint
Test: boot and do powerhint
Bug: 62041945
Bug: 69270928
Change-Id: I068237813c2b4b51a8d2d5db3931927198e1627b
2024-07-29 14:39:26 +02:00
Davide Garberi
e1a5d2d67c a71-common: Add fastcharge HAL sepolicy
Change-Id: Icf0f85243e0bc7bce8e38742f2f01c1db2137c33
2024-07-29 14:39:26 +02:00
Tim Zimmermann
5a85a9fe5b a71-common: light: Convert to AIDL implementation
* Built from hardware/samsung.

Change-Id: Ie15a6316a12abd00b83c6db988692f581660711f
2024-07-29 14:39:26 +02:00
Haky86
21afdd6622 a71-common: sepolicy: Cleanup fastcharge rules
Change-Id: I0349e7d278f28d111366fe5325be20251914ee83
2024-07-29 14:39:26 +02:00
Francescodario Cuzzocrea
d0f5c1997a a71-common: Build fastcharge implementation from source
* Built from hardware/samsung.

Change-Id: I9327f064af1817053425523dfddec5161b30b2b7
2024-07-29 14:39:26 +02:00
Haky86
3d616873df a71-common: sepolicy Add more FastCharge labels
Change-Id: If0941863c945be1834c55c45efae06b1212380b4
2024-07-29 14:39:26 +02:00
Tim Zimmermann
59291d3451 a71-common: Build gs201 usb gadget HAL from source
* Built from hardware/samsung.

Change-Id: If4aec2c038ea4cd33e5c056f1b1659b059e1cd48
2024-07-29 14:37:58 +02:00
Francescodario Cuzzocrea
8831d1ec5d a71-common: Add fastcharge implementation
* Disabling fast charge may be useful for reducing the heat produced by
   the device while charging, or for extending the lifespan of the battery

 * This commit introduces the fastcharge HIDL, which writes in the node

              /sys/class/sec/switch/afc_disable

   0 or 1 depeding on user selection.
   0 means that fastcharge is enabled, while 1 means that fastcharge is
     disabled

Change-Id: I0f41b0acb1580270d541d832d1cc6c337c8add3a
2024-07-29 14:37:58 +02:00
Tim Zimmermann
dbf4727d82 a71-common: Switch to health AIDL HAL
* Built from hardware/samsung.

Change-Id: Id8bf559ec0cd5cc2b53deef1aaa885cd9e8d2d6a
2024-07-29 14:36:12 +02:00
Tim Zimmermann
68bfbe95c0 a71-common: vibrator: Switch to OSS HAL
* Built from hardware/samsung.

Change-Id: I8a3d332079b695b19286da251a864ce46491043f
2024-07-29 14:33:57 +02:00
Haky86
be0a4bfa5d a71-common: sepolicy: Include DT2W nodes for sm7150 devices
* Fixes Double Tap to Wake on Galaxy A71 and M51.

Change-Id: If07a32c8434b10898edbb9caad31995435330df0
2024-07-29 14:33:57 +02:00
Simon1511
c1112b1a8b a71-common: sepolicy: Address system_suspend denials
Change-Id: Iad3fcce4f13fb290d5435d6a9c946fb54495e0b1
2024-07-29 14:33:57 +02:00
Simon1511
59daf24958 a71-common: fingerprint: Switch to OSS HAL
* Built from hardware/samsung.

Change-Id: I93deb525557b1018b29d8d38d94e3702d25b728d
2024-07-29 14:33:57 +02:00
Simon1511
1fe7091281 a71-common: sensors: Toggle touchscreen on/off if needed
* Due to config_powerDecoupleInteractiveModeFromDisplay we need to wait for the sensors sub HAL to re-start every time we fail a fingerprint unlock with screen off or on AOD.
* To prevent killing said overlay and having the touchscreen constantly enabled on AOD, we simply toggle the touchscreen on/off with every screen-off-UDFPS unlock.

Change-Id: I635909ecb8b3494a43246c45c55d6ef3f020d1f9
2024-07-29 13:30:52 +02:00
Haky86
76cb1fb09c a71-common: Drop BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE flag
* Fastbootd is working anyways, with or without that prop.
* Fixes:
1 violations found:
ro.fastbootd.available                           u:object_r:exported_default_prop:s0

Change-Id: I3e3b4819ec8589188d2459accfec8beaf18ecfab
2024-07-29 13:30:52 +02:00
Michael Bestas
e9ab454477 a71-common: sepolicy: Label sysfs_batteryinfo
* Needed by power_supply paths.

Change-Id: Ic4703b66084b7cfbdfbce4923a0a3f6ab198cc8b
2024-07-29 13:30:52 +02:00