Commit Graph

2540 Commits

Author SHA1 Message Date
chrisl7 6774b84b9b common: sepolicy: bengal: Add missing label partitions to 5.15 variant
[1] - I don't know why qcom left this missing, but it breaks flash build on sideload, as well as a possible OTA update.

Change-Id: I2f209f73b6199a93fe5e4745ac4410f6090daba0
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-08-26 23:16:13 +00:00
Adithya R 4b832f6436 vendor: init: Revert back to original init.kernel.post_boot-cape.sh
Disabling LPM on production devices?? WHY????

This partially reverts commit f0a254e386.

Change-Id: Iedcd9d04aea1e38c5b2ba86d5ef554762462610c
2023-08-25 17:21:45 +00:00
chrisl7 4b61c9162e common: sepolicy: kona: Remove duplicate sepolicy
[1] - bedc30ef74 (diff-09112ee2412ac4f3dccef5052cfbb1b943415434585d17d7d523bf06452c29bcR130)

Change-Id: Ic2bdb81c658bb4bccbac54ee15b2596a5f77a7ab
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-08-19 23:39:13 +00:00
PainKiller3 2ccc02a122
common: sepolicy: legacy: Restore WFD policy
* It was removed in 2b1d3d1de6 (diff-eee4628467d1bbed9c0d16dde6195afd47af1d2efb7ca18d829bc07bd0bb71c2)
* Fixes QTI Wifi Display on sdm845.

Change-Id: I1df9432041400808e94c1072f5bddf2eb9c18059
2023-08-01 19:28:01 +05:30
Jake Weinstein 96bbd3839c common: overlay: Allow VoLTE and VoWiFi/WFC by default
Also comment other changes

Disable VoLTE on TIM Brasil because it is
not allowed on unsupported devices.

Change-Id: I0df3d87074378224a6b29b26166dcf2fc59f34c2
2023-07-30 06:55:53 +00:00
Andy Hung c2766ea86f vendor: init: audio HAL: Optimize for Spatial Audio
Add CAP_SYS_NICE.
Allow util_clamp_min for Spatializer Effect worker thread.
Reduce glitches caused by core migration.
Reduce power consumption as Spatializer Effect is DSP compute bound.
This change only affects Spatial Audio Effect processing.

Test: instrumented
Test: adb shell 'uclampset -a -p $(pgrep -of android.hardware.audio.service)'
Test: adb shell cat "/proc/$(adb shell pgrep -of android.hardware.audio.service)/status"
Test: adb shell 'ps -Tl -p $(pgrep -of android.hardware.audio.service)'
Bug: 181148259
Bug: 260918856
Bug: 261228892
Bug: 261686532
Bug: 262803152
Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-07-22 16:17:12 -04:00
Andy Hung c2afed343c vendor: init: audio HAL: Enable RT priority inheritance
Test: instrumented
Bug: 181148259
Bug: 260918856
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-07-22 16:16:19 -04:00
Suren Baghdasaryan 65e91c922a vendor: init: Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Signed-off-by: CHRISL7 <wandersonrodriguesf1@gmail.com>
2023-07-22 16:15:14 -04:00
Gokul 2ccd0dbb2e Revert "sepolicy: generic: Label more discard_max_bytes sysfs" for Kona
Partially reverts commit: 2e80055990

Change-Id: I90905f82566c90996618c4b5b463798f86a08a19
2023-07-12 04:10:28 +00:00
Jake Weinstein 570068bfa0 common: Allow overriding component selection logic
If either a device needs to override the variant in
device tree for a specific reason or all devices
on a particular kernel version and SoC
need to override the variant in common.mk,
they can do that.

USE ONLY IF YOU KNOW WHAT YOU'RE DOING

Change-Id: I2fa57d544956966b18b6d16fba056bb225e1a898
[cyberknight777: Use conditional assignment operators]
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2023-07-09 16:22:43 +00:00
Jprimero15 2b9c5a2d01 common: sepolicy: lahaina: Remove all duplicates
* already existed in sepolicy_vndr.

Change-Id: I43a0ae29821823c5988ab49c822cf244dc3253a9
2023-07-09 15:26:47 +00:00
enesykaya 5db051bcce common: sepolicy: Move hub_app to private
Change-Id: Iaab3e1f4486008ed9781598e22ccae368705cd16
2023-07-08 00:43:20 +03:00
Jprimero15 94991550b0
vendor: gps-legacy: Fix soong namespace path
Change-Id: Ic3aef0bc9f96dacb2972717270373f1ffc638e2f
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-07-07 15:30:08 +08:00
Jprimero15 db236980f2 common: sepolicy: lahaina: Remove duplicated labels
Added at 6847922d6d
but already existed in sepolicy_vndr.

Change-Id: I5846db90f9f44986e948cd42d2fe89d0bb783ee5
2023-07-02 14:14:58 +00:00
BladeRunner-A2C 159fb0fde2
common: sepolicy: Remove duplicate declarations
Already defined at 'sepolicy_vndr'

Change-Id: I5664aa362c5cdb0b6c34f3aac1f16e134994b0c3
Signed-off-by: BladeRunner-A2C <john.smith@unused.email>
2023-06-30 21:02:00 +06:00
Prashant Beniwal ad9b662205 vendor: init: Update lineptr_value drm sysfs config node
Change-Id: If13225c6d1eeaca83b670cb1239aefff781dbc43
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:06:20 +00:00
Michael Bestas 9e87365194 sepolicy: qva: label bengal extcon
Change-Id: Ie9f50b544665a8b66b172f35c0f45c5404628595
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:06:11 +00:00
Michael Bestas 4727d6c50e sepolicy: bengal: Label discard_max_bytes sysfs
Change-Id: I1cc993d353cf2966685a3276b4c97d86c7030326
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:06:04 +00:00
Quallenauge d9da0846c1 sepolicy: generic: Allow qti_init_shell to set proc_watermark_scale_factor.
Change-Id: I4a4812393c50ffec9d64dc1ad13514551c47985e
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:05:55 +00:00
Saikumar Vutukuri 43b7538598 sepolicy: generic: Sepolicy:Add rules for init-qti-dcvs-sh
Change-Id: Idd7c3635afd8fa6539d6d4a447cbb0962aefd684
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:05:48 +00:00
Michael Bestas 2e80055990 sepolicy: generic: Label more discard_max_bytes sysfs
Change-Id: I43e2c93d5915157c7a87a8f0799c45a54e251040
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:05:39 +00:00
dianlujitao e4a3635313 sepolicy: generic: Allow init write to discard_max_bytes
Change-Id: If22a1fe0036f49d5cfb3f3c21cd9c44b96ac6ae8
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:05:30 +00:00
Michael Bestas f058740ce4 sepolicy: generic: msmnile: Add some misc wakeup nodes for msmnile
* Can't have them in hardware/oplus/sepolicy/qti/vendor/genfs_contexts
   because it conflicts with generic/vendor/lahaina/genfs_contexts here.

Change-Id: I542e7b542aec7a7270095c82bfbd0c22941dc9cd
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:05:21 +00:00
LuK1337 71d2e76304 sepolicy: generic: msmnile: Add some misc wakeup nodes for msmnile
* Can't have them in hardware/oplus/sepolicy/qti/vendor/genfs_contexts
   because it conflicts with generic/vendor/kona/genfs_contexts here.

Change-Id: I36d28dc8dc4e2e86b30f623023cf2757d35bccf0
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:05:11 +00:00
chrisl7 6c9c88bb3e common: sepolicy: Update SM8450 sepolicy rules
[1] - LA.VENDOR.1.0.r1-22200-WAIPIO.QSSI14.0

Change-Id: I26b9080ec5419d45f3b4d1efe793b61b4708de06
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:05:01 +00:00
chrisl7 6847922d6d sepolicy: Update SM8150-8350 sepolicy rules
[1] - LA.UM.9.14.1.r1-10000-QCM6490.QSSI13.0

Change-Id: I724f66c9c0076cfadcbb6ade745c9b83d5992e7f
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-26 13:03:57 +00:00
chrisl7 860c085143 vendor: Introduce gps-legacy component and vendor proprietary
[1] - Qualcomm is using the exact same hal and GPS blobs for all SoC with A11 GRF, so we will define this as Common
[2] - Use HAL and Blobs from LA.UM.9.15.2.r1 because it updates faster than other platforms
[3] - HAL and blobs from LA.UM.9.15.2.r1-06600-KAMORTA.QSSI-13.0

Change-Id: Ia4c40020ff9155f178fd52e307ef278806f40046
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-24 15:52:24 +00:00
Immanuel Raj e7171e0a2d vendor: telephony: Conditionlly set `advancedscan` prop to legacy platforms
Ref: https://git.codelinaro.org/clo/la/platform/vendor/qcom/falcon_64/-/blob/LA.UM.11.2.1.r1-02600-sdm660.0/sdm660_64.mk#L483
Change-Id: Ie9d6e3278bc1324a4fc6c590141437b3f728efbb
2023-06-22 19:25:45 +00:00
BladeRunner-A2C f8c928b9e4
vendor: init: Add charger service back to legacy qcom init
Fixes offline charging for devices that aren't using charger component

Partially reverts 0238ca328f.

Change-Id: Ib23dac9c20f160ebf1d5f8ae9ab4bff1beadd55d
Signed-off-by: BladeRunner-A2C <john.smith@unused.email>
2023-06-22 21:35:11 +06:00
chrisl7 9e90b95e0c vendor: alarm: Fix power_off_alarm on offline charging
[1] - Qualcomm doesn't enable this by default on some platforms, so some OEMs like Xiaomi and OnePlus add this to fix it.

Change-Id: I7c786e090d96d6c5b71eaa4a18222434167a59dc
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-22 02:29:56 +00:00
chrisl7 5d404e2955 vendor: wlan/wlan-legacy: Clear all unnecessary conditions and stuff
Change-Id: I1fdae38147a6b2a3d7d4326fb0d31894b1d12338
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-22 01:51:25 +00:00
chrisl7 71f3d3fde0 vendor: wlan/wlan-legacy: Remove soong condition to IPACM
[1] - We already have the component conditions for this

Change-Id: I10e0a72c0d9b32cfeab709d98b94125a7fade286
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-22 01:49:34 +00:00
Alexander Koskovich c2c40e1539 common: overlay: Drop explicit 'sdk_version' declaration
* We don't need to manually set this anymore.

Change-Id: I1239ba541636e53f8ea4373d3815024f2cd60824
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-06-21 08:07:04 +00:00
BladeRunner-A2C 83542ae86f fixup! vendor: display: Disable SF client composition cache for <5.4 targets
Change-Id: I25f6f4ff9bd52a8f30205a88f392f0d87c5dff83
2023-06-18 19:25:43 +00:00
Jake Weinstein 2b26f89854 common: system: Update to LA.QSSI.13.0.r1-10000.02-qssi.0
Change-Id: I36448a0b42a903056ca1a52fff4886c474dd3e03
2023-06-17 17:49:34 +09:00
electimon ed1167bf41
common: Introduce alarm component
* Based upon LA.UM.9.14.r1-21000-LAHAINA.QSSI12.0
             LA.QSSI.13.0.r1-09700-qssi.0

Change-Id: I7085e5686c6cc2d63a62f84557bc1bac3d579e67
Signed-off-by: electimon <electimon@gmail.com>
2023-06-08 19:49:10 +09:00
Pritama Biswas 4b413f61dd vendor: init: Add permission for brightness sysfs for eDP
Change-Id: I211ba4f0bb6b2fbfe30009e4cd7d38581a451e67
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-06-04 13:46:12 +00:00
Jprimero15 c82350882a common: sepolicy: legacy: allow qti_init_shell to write on watermark_scale_factor
* https://github.com/AOSPA/android_device_qcom_common/blob/topaz/vendor/init/init.qcom.post_boot.sh#L824

Change-Id: I66139b318596d54dcb811620a2c4ecf8950b3b44
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-06-02 13:46:16 +00:00
Jprimero15 ce7c22c056 common: sepolicy: legacy: define wcnss_persist_file
Change-Id: I8068109c5abd85d390e9f93877186e991df0af9f
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-05-31 08:19:25 +00:00
Jprimero15 384d73e77c common: sepolicy: legacy: define proc_boot_reason
Change-Id: I24f29c536503fc45f12b036ec2a96eb2d413ea23
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-05-31 08:19:25 +00:00
Ahmed Harhash 2751d5571c
sepolicy: vendor: kona: Remove duplicate wakeup entries
Change-Id: I013f96dc9d2ec8dfef06f667fc9348e7d11ff3aa
2023-05-29 05:02:25 +03:00
Jprimero15 6c657541a4 common: sepolicy: legacy: More init denial fixes
Change-Id: Ia651fe66461e9ca7c915af3c3553c2f23fdaf8ec
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-05-28 01:30:23 +00:00
Jprimero15 a296eb57a5 common: sepolicy: legacy: More WIFI HAL denial fixes
Change-Id: I9f736317b8157838a65e3107d8c6aceb29a045a9
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-05-28 01:30:04 +00:00
Jprimero15 d41d3eb369 common: sepolicy: legacy: Label QTI GNSS HAL
Change-Id: I40207d672743bf367b21cd6f2453a1f8aee69993
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-05-28 01:29:52 +00:00
Jprimero15 83ca0e2869 common: sepolicy: legacy: allow qti_init_shell to read boot_reason
[   15.742123] type=1400 audit(4539769.653:274): avc: denied { read } for comm="cat" name="boot_reason" dev="proc" ino=14760 scontext=u:r:qti_init_shell:s0 tcontext=u:object_r:proc_boot_reason:s0 tclass=file permissive=0

Signed-off-by: Jprimero15 <jprimero155@gmail.com>

Change-Id: I0014b14ae63a11123b827be4e3bcab16cfdb7484
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-05-28 01:29:41 +00:00
Jprimero15 540f8fe0bf common: components: Drop QCOM WFD legacy
* Does not work on A13 anymore
* legacy devices should use AOSP WFD instead.

Change-Id: I05b834b39720bb2b224eaaab24bb76cf9136ddb9
Signed-off-by: Jprimero15 <jprimero155@gmail.com>
2023-05-28 01:28:22 +00:00
electimon 0e822f7572 common: vendor/display: Only copy feature enabler rc for lahaina
test: Observe no crashing on holi due to missing QSEE app.
Change-Id: Ia56f3e13c99a4f90f6fecd9888ee429e444b2fa3
Signed-off-by: electimon <electimon@gmail.com>
2023-05-27 07:42:08 +00:00
Jprimero15 9db506c58d common: sepolicy: legacy: Label init.qti.chg_policy.sh
* should not be limited to sdm710 and sdm845 because this is needed for charging component
* follow the format of other qti init shell labeling

Change-Id: Ie05fddd1dbf8e5789831f6ec5c7450607705b4f4
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-05-27 06:51:41 +00:00
Jprimero15 15172436cc common: vendor/init: Don't configure QTI Bservice here
* even with 2gb ram this is too agressive.
* let it be configured on perfconfigstore only because we can also set it per ram size there.

example:
<Prop Name="ro.vendor.qti.sys.fw.bservice_age" Value="5000" Ram="3" />

Change-Id: I94b98ebc400ac52eef735e6fcbf9ffd5d9eb9265
Signed-off-by: Jprimero15 <jprimero15@aospa.co>
2023-05-26 23:41:06 +00:00
Kumar Anurag Singh 0100f737fd vnedor: init: ueventd.rc: Add permissions for msm_lsm cdev
permissions are required for sthal communication
with kernel module to work.

Change-Id: I6f3daed36d20f70ce0fb789cc9142a4cd5a3923f
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-05-25 21:30:46 +00:00