Bruno Martins
71c49fcc8c
sdm660-common: Migrate to Xiaomi power AIDL HAL
...
Change-Id: I42170d51a517170b58d532addd9c38496e43457c
jasmine_sprout: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
jasmine_sprout: Declare BOARD_VENDOR
* Needed for xiaomi-perfmgr power AIDL guards
Change-Id: Idbb48e0f9b01090a456ad5d3f2d51f4dfab55672
jasmine_sprout: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future
[SebaUbuntu]: Cleanup Android.bp and add copyright header
Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb
jasmine_sprout: libqti-perfd-client: Remove namespace declaration
It's pointless when using extern "C".
Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d
jasmine_sprout: libqti-perfd-client: return a dummy value
Return a positive integer for perf lock acquire and release so
that Goodix/FPC fingerprint sensor blobs will not complain.
Goodix:
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_acquire: Failed to acquire perf lock, err: 0
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_release: Perf lock release error 0
FPC:
E fpc_tac : fpc_perf_lock_acquire: Incorrect params, Failed to acquire perf lock, err
E fpc_tac : fpc_perf_lock_release: Perf lock release error 0
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I861672e9a738c2204755d802670f4b28b662f286
jasmine_sprout: libqti-perfd-client: Move to C
* Why bothering with C++ mangling when we can just build it as a standard C library?
Change-Id: I45ea977edf7ea7fab6fece76f3049654a8d24c5d
jasmine_sprout: Add powerhint.json jasmine
Change-Id: If270fc906fd833bb6b0d3b00621c0b079346e47d
jasmine_sprout: rootdir: Initial libperfmgr init config
* From coral, heavily stripped down
Change-Id: Ib6846e4f4f23baf56910d2330e26846b99830218
jasmine_sprout: sepolicy: Initial libperfmgr sepolicy
Change-Id: I3d0a259bc89b4ecd0bf1632199172710d98230e0
jasmine_sprout: Don't explicitly build older minor version HIDL libs
Change-Id: Ib0caa49054a79b1f01ffc751826286a29c642e06
jasmine_sprout: Remove QTI perf reminants
jasmine_sprout: Add back ro.vendor.extension_library definition
* We aren't using QCOM's perfd but our blobs still check for this.
* To avoid unnecessary errors, let's just add it back.
Change-Id: Icc44b330f21a658cfa8ded691a6628d8f62c3649
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-27 07:34:56 +01:00
Sebastiano Barezzi
c8d924ba0a
sdm660-common: Move to common Xiaomi lights AIDL
...
Change-Id: Icb3bb31ebad01519b91a6d41b47e1b57e1ac84e1
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-22 04:56:20 +01:00
pix106
2f38bc6da8
FIX sdm660-common: sepolicy: label init.goodix.sh and fingerprint datafile
2022-11-07 08:15:11 +01:00
Elektroschmock
c4050270fd
sdm660-common: sepolicy: Label /dev/stune(/.*) as cgroup
...
* avc: denied { write } for comm="adb_root" name="tasks" dev="tmpfs" ino=5693
scontext=u:r:adbroot:s0 tcontext=u:object_r:device:s0 tclass=file
permissive=0
* avc: denied { open } for comm="adb_root" name="tasks" dev="tmpfs" ino=5693
scontext=u:r:adbroot:s0 tcontext=u:object_r:device:s0 tclass=file
permissive=0
* avc: denied { write } for comm="installd" name="tasks" dev="tmpfs" ino=5693
scontext=u:r:installd:s0 tcontext=u:object_r:device:s0 tclass=file
permissive=0
* avc: denied { open } for comm="installd" name="tasks" dev="tmpfs" ino=5693
scontext=u:r:installd:s0 tcontext=u:object_r:device:s0 tclass=file
permissive=0
* avc: denied { write } for comm="netd" name="tasks" dev="tmpfs" ino=5693
scontext=u:r:netd:s0 tcontext=u:object_r:device:s0 tclass=file
permissive=0
* avc: denied { open } for comm="netd" name="tasks" dev="tmpfs" ino=5693
scontext=u:r:netd:s0 tcontext=u:object_r:device:s0 tclass=file
permissive=0
* avc: denied { write } for comm="storaged" name="tasks" dev="tmpfs" ino=5693
scontext=u:r:storaged:s0 tcontext=u:object_r:device:s0 tclass=file
permissive=0
* avc: denied { open } for comm="storaged" name="tasks" dev="tmpfs" ino=5693
scontext=u:r:storaged:s0 tcontext=u:object_r:device:s0 tclass=file
permissive=0
* avc: denied { write } for comm="apexd" name="tasks" dev="tmpfs" ino=5693
scontext=u:r:apexd:s0 tcontext=u:object_r:device:s0 tclass=file
permissive=0
Change-Id: Idc69978328640ff40ad5efe2f0abd79304e75893
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-10-11 08:47:30 +02:00
pix106
467daca424
sdm660-common: sepolicy: label init.goodix.sh and fingerprint datafile
...
Could not start service 'vendor.goodix_script' as part of class 'late_start': File /vendor/bin/init.goodix.sh (labeled u:object_r:vendor_file:s0) has incorrect label or no domain transition from u:r:init:s0 to another SELinux domain defined.
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-04 09:20:37 +02:00
pix106
ce09f0e3af
sdm660-common: DeviceSettings: Adapt vibration control to QTI Haptics
...
* needs kernel support
2022-07-29 13:48:08 +02:00
Adithya R
dd6db97ea5
sdm660-common: drop IFAA/mliplay completely
...
* no one actually uses this
Signed-off-by: SparXFusion <s2234nadar@gmail.com>
Signed-off-by: faham1997 <nafidfaham08@gmail.com>
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-06-06 12:41:59 +02:00
Edwin Moquete
097c21d39f
sdm660-common: Update radio blobs from ginkgo
...
* Cleanup and disable ATFWD
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-05-15 10:25:30 +02:00
clarencelol
68b51b59ee
sdm660-common: Nuke powerstats HAL
...
* Powerstats are so buggy lmao, it keeps error android.hardware.power.stats@1.0-service.xiaomi_sdm660: Failed to getEnergyData
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:35 +01:00
pix106
ba258d8957
sdm660-common: clover: sepolicy: change dt2w path for 4.19
...
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:35 +01:00
Max Weffers
bfd5bb16ae
sdm660-common: clover: sepolicy: Label dt2w nodes
...
Co-authored-by: pix106 <sbordenave@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:35 +01:00
pix106
7f5c98e112
sdm660-common: Bring back folio daemon and userspace hall switcher
...
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:35 +01:00
pix106
968d356efe
sdm660-common: sepolicy: rework wakeup nodes
...
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:55:38 +01:00
Max Weffers
bbc6ad98ce
sdm660-common: sepolicy: Add Hardware Info permssions and sepolicy rules
...
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:55:38 +01:00
Edwin Moquete
65b5513c79
sdm660-common: sepolicy: Label some wakeup nodes
...
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:34 +01:00
clarencelol
cdaf69248d
sdm660-common: sepolicy: Address pixel powerstats rules
...
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Ratoriku
a80975c3d7
sdm660-common: Switch to AIDL Light HAL
...
Signed-off-by: Ratoriku <a1063021545@gmail.com>
Change-Id: I2618bcb81902688b9b9b975f612c653707787202
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
pix106
58bbd5db55
sdm660-common: sepolicy: Label sysfs wakeup nodes
...
avc: denied { read } for comm="Binder:514_1" name="event_count" dev="sysfs" ino=53144 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
avc: denied { read } for comm="Binder:514_1" name="max_time_ms" dev="sysfs" ino=53149 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
avc: denied { read } for comm="Binder:514_1" name="wakeup_count" dev="sysfs" ino=53145 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
avc: denied { read } for comm="Binder:514_1" name="total_time_ms" dev="sysfs" ino=53148 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
avc: denied { read } for comm="Binder:514_1" name="expire_count" dev="sysfs" ino=53146 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
avc: denied { read } for comm="Binder:514_1" name="active_count" dev="sysfs" ino=53143 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
avc: denied { read } for comm="Binder:514_1" name="last_change_ms" dev="sysfs" ino=53150 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
avc: denied { read } for comm="Binder:514_1" name="prevent_suspend_time_ms" dev="sysfs" ino=53151 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
avc: denied { read } for comm="Binder:514_1" name="name" dev="sysfs" ino=53142 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
avc: denied { read } for comm="Binder:514_1" name="active_time_ms" dev="sysfs" ino=53147 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Sebastiano Barezzi
fa7fa65ffb
sdm660-common: ir: Rebrand to Xiaomi SDM660
...
Change-Id: I20146c0bc065a460f5a86455ed9a21abce5f9417
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-11-13 11:31:51 +01:00
OdSazib
5351cc35f9
sdm66-common: sepolicy: Fix labeling sysfs nodes for K4.19
...
- Address more denials and label some new nodes
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-07-16 15:56:07 +06:00
StyloGey
4ec9f92ace
sdm660-common: Update RIL from AOSPA
...
- update radio from LA.UM.9.12.r1-10800-SMxx50.0
- update telephony from qcom-common-AOSPA
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-07-15 17:00:40 +06:00
OdSazib
0a263a5716
sdm660-common: sepolicy: Update sepolicy for 4.19
2021-07-13 11:56:43 +06:00
clarencelol
20efaf472b
sdm660-common: Switch to Thermal 2.0 mock
...
* QTI Thermal couldn't read the temperature for some reason
2021-06-15 21:48:17 +06:00
sairam1411
77c4792ac9
sdm660-common: sepolicy: Adjust sepolicy for qti thermal
...
Change-Id: Ib8493f164f12614e6d0a7ea5bd060d05991822b8
2021-06-15 17:32:47 +06:00
Subhajeet Muhuri
1da7c15388
sdm660-common: /sys/devices/soc -> /sys/devices/platform/soc
...
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-07 09:21:11 +06:00
OdSazib
478a2b33b6
sdm660-common: sepolicy: Rework sepolicy (No more neverallow)
...
- Thanks to LineageOS and our sdm660 community
Change-Id: I54c7d76260041b7c383428449e149aa35d51de9b3c
2021-05-18 05:03:51 +06:00
OdSazib
6166317281
sdm660-common: Build power stats and label it
2021-03-15 12:21:09 +06:00
Subhajeet Muhuri
7c3beb85c9
sdm660-common: power-libperfmgr: Switch to AIDL Power HAL
...
hardware/google/pixel/power-libperfmgr from android-11.0.0_r25
SQUASHED:
Revert all HIDL interface and nuke previous changes
Import Pixel libperfmgr AIDL Power HAL
Adapt and rebrand for xiaomi_sdm660
Remove Google-specific display LPM control
Remove Google-specific camera and audio hints
Remove VR hints handling
Remove audio hints handling
Remove dumpstate support
Initialize powerHAL when boot is completed
Add support for tap-to-wake feature control
Add sepolicy rules for power-libperfmgr
Enable power-libperfmgr
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-03-10 12:37:27 +06:00
PIPIPIG233666
206f51bad0
sm660-common: Create socket for /dev/socket/audio_hw_socket
...
Change-Id: If4c5b944efb8dde3093ccb7b8f1dca746a02e043
2021-03-02 23:43:22 +06:00
Subhajeet Muhuri
7d8fc30985
sdm660-common: Kang more pixel power HAL sepolicy
...
* Kanged from mata (with all available nodes on msm4.4)
2021-02-20 11:55:25 +06:00
OdSazib
2135c18643
sdm660-common: DeviceSettings: Drop userspace hall switcher
...
* The sensor works as it is, hence not needed anymore
2021-02-03 23:05:50 +06:00
Subhajeet Muhuri
06dfda6946
sdm660-common: Add sepolicy rules for power-libperfmgr
...
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
OdSazib
9a192b7de0
sdm660-common: sepolicy: Update sepolicy and cleanup
...
* Address some denials from android 11
* Fix video recording
* Sort in alphabetic order
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-21 09:16:25 +06:00
Nolen Johnson
0d7a7d4ef5
sdm660-common: Move rtc contexts to device/qcom/sepolicy
...
* In device/qcom/sepolicy-legacy-um now.
Change-Id: I80b877d4b65a3d22cf7a61d70e08e48edeb627de
2020-12-13 18:38:07 +06:00
LuK1337
510d313d4e
sdm660-common: sepolicy: Label /persist
...
Change-Id: I471c0d1fedb51eabc32b54ab35a9823db8efd034
2020-12-13 18:37:01 +06:00
Max Weffers
a502a3904b
sdm660: sepolicy: Adjust sepolicy for new tap to wake nodes
2020-08-12 02:02:40 +06:00
Dušan Uverić
3476f16be6
sdm660-common: XiaomiParts: add notification LED brightness slider
...
Signed-off-by: Dušan Uverić <dusan.uveric9@gmail.com>
Change-Id: I86851420cca27d34e36f8e385859c5be63545bba
2020-08-12 02:02:38 +06:00
Max Weffers
b0fa4e9f51
sdm660-common: sepolicy: Adress few denials
...
Change-Id: I45c7af8087a8495e4e7902d74f7811c2d40f5197
2020-08-12 02:02:38 +06:00
dianlujitao
8d789ade9f
sdm660-common: sepolicy: Clean up sepolicy rules
...
Change-Id: I9d7312e6aaafdde2c0751f4887f05d8d5029ee04
2020-08-12 02:02:38 +06:00
Max Weffers
eb97b49f0c
sdm660-common: Address SELiunx denials and clean up
...
Change-Id: I997a268c9ce23eab80f1981293720e17d21bbb7a
2020-08-12 02:02:38 +06:00
dianlujitao
f735b1ab0c
sdm660-common: sepolicy: Label IR dev node for jason
...
Change-Id: I7ba6af074485509a501f656587379fb0ba5b07d3
2020-08-12 02:02:37 +06:00
Max Weffers
3c13d5743f
sdm660-common: sepolicy: Add sysfs Label for Platinas Fpc Fingerprint
...
Change-Id: I7423f84d6142b43818dfd2aa24ca935e6188c32f
2020-01-28 16:59:14 +01:00
Sebita
7f874140c7
sdm660-common: sepolicy: Label node for lavender dt2w
...
Signed-off-by: Sebita <kjjjnob.seba@gmail.com>
Change-Id: I3df604f9025a3517d19468e8fffc750dbfe479ba
2020-01-06 10:56:13 +01:00
Max Weffers
946a233a4b
sdm660: sepolicy: Add AuthSecret HAL service
2019-12-23 08:59:25 +01:00
Michael Bestas
4f0e9000c9
sdm660-common: Build vendor variant of tinymix
...
* Avoid SELinux neverallows, vendor services should use vendor tools
Change-Id: I2a97658db9a31dd0403f1b62386db2987bd9749c
2019-12-01 10:27:53 +01:00
Jeff Vander Stoep
c145e57b0f
sdm660: Move folio_daemon to system in sepolicy
...
Remove Treble violations.
Bug: 36867326
Bug: 62387246
Test: loaded on taimen, checked dmesg, and tested daemon with magnet
Change-Id: I4662b41206b94cae6ac9843b5dc7e1452003c63c
2019-10-19 20:50:52 +02:00
Andrew Lehmer
f08faed4c3
sdm660: Add support for folio cases
...
Bug: 35243564
Test: Used magnet to wake and lock device. Also tested during suspend.
Change-Id: I4b819e12cc23a3d7a8ce048e208c15eac4f8d6c5
2019-10-19 16:29:57 +02:00
Volodymyr Zhdanov
850c987c27
sdm660-common: remove input devices policies
...
* it's already fixed in system/sepolicy
Change-Id: If1bf165092df71cdc85a7a9118feb257e2bed350
2019-10-01 14:24:07 +02:00
Volodymyr Zhdanov
dfd6d14563
sdm660-common: sepolicy: add firmware labels
...
* Q sepolicy doesn't have labels for these root folders anymore
Change-Id: Ibc1f13968eb4de0868de149f1347ca07da1c581c
2019-09-27 17:27:20 +02:00
Max Weffers
e20f8804d6
sdm660-common: Adress denials for Hall Switch
2019-08-20 10:39:43 +02:00