Commit graph

1000 commits

Author SHA1 Message Date
Ethan Chen
4efd4900c5
kunlun2: Enable Pixel atrace HAL
Change-Id: I34691e5e909b6ca76dc97fd5c45328e3f80b67e1
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:48:16 +02:00
Hai Shalom
a811bb4204
kunlun2: Disable WPA2 to WPA3 auto-upgrade in P18 and P19 devices
Disable WPA2 to WPA3 auto-upgrade in P18 and P19 devices.
These devices do not support roaming in WPA3 networks. Reduce the
probability of roaming issues by using WPA2 and not upgrading to WPA3.

Bug: 169948620
Test: atest ClientModeImplTest ScanResultMatchInfoTest WifiCandidatesTest
Change-Id: I9f7ec5c0007efcc5c6669d013c8b24347b15f7c4
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:47:05 +02:00
Mingguang Xu
d76a37d4c8
kunlun2: WifiOverlay: enable minimum confirmation duration
for sending network score to connectivity service

Bug: 166152800

Test: verified feature works on device

Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: I646709894682e73cce6e181098b75587551d7604
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:45:29 +02:00
Sunil Ravi
438c054c19
kunlun2: wifi: Disable TDLS offchannel.
TDLS off-channel feature is needed only for
certification. Disable the feature in production
builds.

Bug: 161320896
Test: Basic wifi sanity test.
Change-Id: I99e34efdc1137e10d31de985771e84b8b1aa3d86
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:45:01 +02:00
David Su
38ba53ff7c
kunlun2: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:44:35 +02:00
Bruno Martins
b032505ae4
kunlun2: Add missing IMS symlinks
Change-Id: Id29022e1c46d5b386aeaec78f80b244e220c55c6
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:42:52 +02:00
Nolen Johnson
4f4b23a436
kunlun2: bluetooth: Disable clean turn on
* This isn't needed anymore.

Change-Id: Ib77e5212099d82bbc07aea6044eb35109faff5cb
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:42:08 +02:00
DennySPb
96b8fa6c22
Kang renderscript drivers from crosshatch
2x faster then generic implementation

Change-Id: Id1eb5820479c3e5cc7f01502f79181f432398237
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:40:33 +02:00
Giammarco Senatore
f63ead3994
kunlun2: Remove unnened lenovo init scripts
and some cleanup
2021-07-17 18:14:46 +02:00
Giammarco Senatore
c119216557
kunlun2: Address some initial denials
- Nuke folder creation that breaks encryption
- Nuke permissivers and other creepy things
- Properly label light and fp HALs
- Address initial fingerprint denials
- Label camera zui prop
2021-07-17 18:11:00 +02:00
Fiona Campbell
e6d6a83f22
kunlun2: Add brightness float values to config file.
Test: manual testing - ensure that the brightness value in
Settings>Display>Brightness Level can go the full range from 0% to 100%.

Change-Id: I9e57760f9eb78bf944cea4e808866c16e3ffa695
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 11:27:27 +02:00
Pig
d06a7361f4
light: Remove backlight support in favour of hwcomposer
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: Ia05d24423bb80bb5df6a5352ea68bd8e971d5b32
2021-07-16 23:40:47 +02:00
Bruno Martins
0e256fece3
Ditch vendor.rild.libpath prop
This is only needed for AOSP rild services. It's currently
unused since the move to QCRIL.

Change-Id: I5eb4d0bc2d086d5a2f29e3c3f5ee2d8f0220f5f5
2021-07-16 23:38:58 +02:00
DennySPb
0ab66457c6
kunlun2: Sort and cleanup vendor.prop 2021-07-16 23:32:06 +02:00
Bruno Martins
961898527d
sepolicy: Add thermal-engine rules
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I4ef5664b036d0cff81ebb39646276b208da4986b
2021-07-16 23:25:14 +02:00
DennySPb
37b5c61917
sepolicy: Fix camera properties for vendor build
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I9eda9aa87102c44400c4dfb48588835d6ecb834f
2021-07-16 22:07:31 +02:00
GiaSen
57e6de12d3
sepolicy: address some more denials
and nuke neverallows
2021-07-16 18:44:08 +02:00
Bruno Martins
cb9efcce49
kunlun2: Opt-in for QC RIL service
Change-Id: I8f25446824efad6a14211cc77264524f908df7cd
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:07 +02:00
Alex Naidis
24a8008375
wifi: enable QPower and Deep sleep at the same time
* This enables Deep Sleep mode, additionally to QPower
* With this configuration, QPower manages the new Deep sleep mode
 -> Leads to amazing power savings

Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I052498f312b3b3f7c6d843c9b69a9aca9aecb72a
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:07 +02:00
George Chang
c78d20bfcd
rootdir: Default enable uicc se
It should be true in new versions.
uicc_se_enabled is true by default, but persist property
may remain false after ota

Bug: 149075883
Test: enable uicc_se
Change-Id: I78f8d51cb9ffb92f4eb7dea232920c2b69ce359d
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:07 +02:00
Adam Shih
84460e3bdf
sepolicy: gmscore_app: suppress denials on firmware
Bug: 149543390
Bug: 149062700
Bug: 151195371
Test: boot with no gmscore_app avc error
Change-Id: I4c667b86863121529f7c3a24b9daf615260104c7
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:07 +02:00
Pig
be846c32da
sepolicy: ignore hardless QCOM denials
Change-Id: Ie8f74bde8aeedbd134b11307221c1f930ea4f5dc
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:07 +02:00
Pig
d87e39409a
Move DPM feature property to /system_ext
* DPM blobs are under /system_ext.

Change-Id: I6bafdc3b310168c6b4d681c9eb94eb4e2e43c5e5
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:06 +02:00
Chenyang Zhong
0dbccb45e2
props: inline DPM prop changes
with LA.UM.9.8.r1-02700-SDM710.0

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
Change-Id: I5f24de9adea5fcc971b3d139ebbfd088182112af
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:06 +02:00
Ray Essick
7e231d0a53
seccomp: Allow mremap to use MEMRMREMAP_MAYMOVE flag
Bug: 151163101
Bug: 152908945
Test: see bug, shouldn't see crash in mediacodec minijail

Merged-In: If25dc5a56fe2f549d7867aa5a459b949be7e6947
Change-Id: I9835b0e8ef2e8286b5142c6bec9fb7796d3947cc
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:06 +02:00
Alessandro Astone
974954b682
Import codec2 seccomp policy
Change-Id: I9efcb2f71a3917c4e317fdde754fc10905b91cc9
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:06 +02:00
Ashwin R C
ec1d9ed563
sepolicy: Allow hal_audio_default to read audio_device
audio_hw_primary: pcm_open_prepare_helper: cannot open device '/dev/snd/pcmC0D0p': Permission denied

Change-Id: I8fb7ec2c269fca6b8bf21aacf521990e9279418d
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:06 +02:00
LuK1337
4652cba66e
sepolicy: Address hal_audio_default denials
Change-Id: I67b064ccf1d84ca4b891f1cdb4f4d6ecebdbce23
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:05 +02:00
LuK1337
1efea1f5bc
kunlun2: sepolicy: Address time_daemon denials
Change-Id: I83947a673ed19cfc20c130fb133d1957aa44d284
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:05 +02:00
LuK1337
2f47635396
kunlun2: sepolicy: Address qti_init_shell denials
Change-Id: I21807dc3ae7b7c073b3b06f1412ccc21a727b497
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:05 +02:00
LuK1337
7f69622f6f
sepolicy: Address kernel denials
Change-Id: Ie506bd769173d1c5780cfbf8b2740b5c5d66d8c5
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:44:05 +02:00
Scott Warner
933e39f1c8
sepolicy: Address hal_graphics_composer_default denials
Change-Id: Iff994cc69d8e11b746cda5a5517c0cf0deea8c86
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:43:59 +02:00
Scott Warner
047ebfb3ab
sepolicy: Address sensors denials
Change-Id: Iff842e7333fba5dd17cb3675caede95dd37e3780
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:42:51 +02:00
LuK1337
ff0ea35f8a
kunlun2: sepolicy: Address hal_sensors_default denials
Change-Id: I211841e7709e6e54edcce9951f5a52f7b7be6158
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:34:31 +02:00
LuK1337
cd50185651
sepolicy: rild: file->dir
Change-Id: I631cc080ad0dedecf24476bac84064575b809809
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:34:31 +02:00
LuK1337
da6ae287a6
sepolicy: Address rild denials
Change-Id: Ia081566c64e7cdc4007baab0de61ba8e62906a61
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-16 18:34:21 +02:00
Giammarco Senatore
dfbc4aeaba
kunlun2: Nuke neverallows
for real now
2021-07-16 18:33:17 +02:00
Giammarco Senatore
dedb2fbbcc
kunlun2: Don't ignore neverallows anymore
now that vendor is source built
2021-07-16 18:00:05 +02:00
Giammarco Senatore
8542e2767b
kunlun2: Use prebuilt audio HAL
Import some more needed configs as well (from stock)
and cleanup unused ones
2021-07-16 17:55:02 +02:00
Jake Weinstein
24e8915eaa
kunlun2: Do not balance msm_drm and kgsl-3d0 IRQs
These are critical for display performance and should not be balanced
in order to improve latency and responsiveness.

Change-Id: I811699d0181427de21830c4ccbaf520ecea9e91a
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
2021-07-16 17:55:01 +02:00
Giammarco Senatore
8300ea271d
kunlun2: Import msm irqbalance 2021-07-16 17:55:01 +02:00
Giammarco Senatore
807b9d621b
kunlun2: add android.hardware.contexthub entry 2021-07-16 17:55:01 +02:00
Giammarco Senatore
835641f2cf
kunlun2: drop livedisplay
This is eleven branch, not plus
* Yeah I am debugging on Plus idk why
2021-07-16 17:55:01 +02:00
Giammarco Senatore
11d6885d93
Drop android.hardware.thermal HAL 2021-07-16 17:55:01 +02:00
Giammarco Senatore
f751694588
kunlun2: add missing vendor.qti.ims.factory manifest entry 2021-07-16 17:55:01 +02:00
Giammarco Senatore
4f9dd57777
kunlun2: Import Wi-Fi Firmware from stock 2021-07-16 17:55:00 +02:00
Giammarco Senatore
d3e806d4c3
kunlun2: Import libdrm
hwcomposer dependency
2021-07-16 17:55:00 +02:00
Dillon Brosche
c695b9e482
Update qti privapp permissions 2021-07-16 17:55:00 +02:00
Giammarco Senatore
207b6143df
kunlun2: uprev vendor.qti.esepowermanager to 1.1 2021-07-16 17:55:00 +02:00
Giammarco Senatore
d30642f65a
kunlun2: Add missing camera and FM blobs
- Camera blobs
- FM blobs
- Build vendor livedisplay too
2021-07-16 17:55:00 +02:00