Commit Graph

823 Commits

Author SHA1 Message Date
LuK1337
b542d1243b sm7250-common: Adjust for recent tri state key changes
tri-state-key package has been integrated into KeyHandler app, and
KeyHandler itself no longer needs to be added to lineage-sdk overlays.

Change-Id: I13b8f05e8e0b036c9303a01ec0c7e2d99b6756f7
2022-01-05 11:00:41 +05:30
Akshay Kakatkar
6173497850 sm7250-common: ims: Pin from LA.QSSI.11.0.r1-07500-qssi.0 2022-01-05 11:00:41 +05:30
Akshay Kakatkar
c75de081a4 sm7250-common: Update Blobs from RKQ1.201217.002 2109152230 2022-01-05 11:00:41 +05:30
Ido Ben-Hur
234c789c62 sm7250-common: overlay: Default to 90Hz refresh rate
This fixes automatic refresh rate and should default to 90Hz upon clean
flashing
2022-01-05 11:00:41 +05:30
Akshay Kakatkar
8895c7e6e9 Revert "sm7250-common: Build Health HAL 2.0"
This reverts commit 0d195728de.
2022-01-05 11:00:41 +05:30
Sebastiano Barezzi
ded5788f32 sm7250-common: Build extra VNDK version 30
* Basically make system a GSI, but this should avoid us the headache made by VNDK libs not being built based on proprietary interfaces

Change-Id: I1ca876b5d2a82d41af76f4c327b89a181bb3d6bd
2022-01-05 11:00:41 +05:30
Sushil Chauhan
c1f00a4b32 sm7250-common: Enable H/W Composition
Enable H/W Composition.

Change-Id: I9f4c5435d51d1dfaead1c11208059e7a6f922cbb
Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: Raj Jadeja <rajsjadeja4@gmail.com>
2022-01-05 11:00:41 +05:30
Wilson Sung
d05b413779 sm7250-common: Set SOC properties for SM7250
Bug: 158284209
Bug: 180589452
Change-Id: I31ec2aff20a4efb3c502ee5c8c6463e31c892bd5
Signed-off-by: Wilson Sung <wilsonsung@google.com>
2022-01-05 11:00:41 +05:30
Edwin Wong
edd64739bd sm7250-common: Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I406b7d3c2921d4698535421894c6eb3785eb1c0d
2022-01-05 11:00:41 +05:30
Akshay Kakatkar
f5288875e7 sm7250-common: Ignore vendor property namespace 2022-01-05 11:00:41 +05:30
Chenyang Zhong
62ecd25cbb sm7250-common: relax sysprop owner enforcement
Quoting commit afc09932f6fa07c5f6beffbcdc2bb4691e527321 in
system/sepolicy [1]:

"Devices launching with R or eariler can this by setting following
under BoardConfig.mk"

It is impractical to replace every prop definition from qcom to
vendor_property_type for old platforms like SDM845, so relax the
enforcement to avoid triggering millions of neverallows.

ref:
[1] afc09932f6

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-01-05 11:00:41 +05:30
Felix
bfc76cf497 sm7250-common: sepolicy: Use BOARD_VENDOR_SEPOLICY_DIRS
BOARD_SEPOLICY_DIRS is deprecated

Change-Id: I046282b2a2e8c541726fb29cb0044503322d4be9
2022-01-05 11:00:41 +05:30
Rohan Hasabe
7a8c707f4e sm7250-common: Build vendor HIDL interfaces
Change-Id: I8695467802fdaccef3887d1cfc76a6313feaef83
2021-10-30 18:20:44 +02:00
Kevin Jeon
bf9c298800 sm7250-common: Update SurfaceFlinger pin
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
2021-10-30 18:20:44 +02:00
Nicolas Geoffray
c9d5bf8570 sm7250-common: Remove odex/oat files from pinner list
Change-Id: Ie42190ebb02dd898f2f4f6ae126db2b0375f5ebd
2021-10-30 18:20:44 +02:00
Roger Ellis
b5c0571daf sm7250-common: Add exclusion for vendor ELF prebuilts
- ELF prebuilts were banned in PRODUCT_COPY_FILES starting May 11.
 - Adding BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true to
BoardConfig.mk temoporarily.
 - See b/156534160 for long-term fix which should override this change.

Test: Build
Bug: 156534160
Change-Id: I7d80798d3b2d3818bc835fcede21de2e7ab04735
2021-10-30 18:20:44 +02:00
TheScarastic
b7ee7e9a4e sm7250-common: Switch to udfps 2021-10-30 18:20:40 +02:00
Michael Bestas
c2b95ec33d sm7250-common: sepolicy: exported2_default_prop -> build_prop
Change-Id: I535b88b360d3bf6a4487086c15d90a2800667056
2021-10-18 18:20:58 +02:00
maitreya29
3cb351509c sm7250-common: SEPolicy: Get ro.gfx.driver.1 sepolicy in accordance to master 2021-10-18 18:20:58 +02:00
Chandra Chaganti
e60b2b84df sm7250-common: nuke livedisplay 2021-10-18 18:20:54 +02:00
Daniel Jacob Chittoor
2bc920aa2a sm7250-common: Decommonize Keyhandler overlays
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-10-10 15:55:40 +02:00
Jake Weinstein
84e9206b3a sm7250-common: Enable color mode & set display calibration on color mode settings
* sRGB on Natural and Boosted
   Unmanaged on Saturated
   P3 on Automatic

 * Set color mode to Natural by default

 * Adjust display composition color spaces

Change-Id: If73eafa82395e80acf84445fcab2f1ce25a33e23
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2021-10-10 15:55:40 +02:00
KakatkarAkshay
830a408488 sm7250-common: sepolicy: Fix some denials 2021-10-10 15:55:40 +02:00
Adithya R
2c5cef5bf9 sm7250-common: overlay: Enable refresh_rate_controls setting
Change-Id: I27d8f40936b56e0d28c97123c7c73f410e6fea83
2021-10-10 15:55:40 +02:00
Philipp Albrecht
1b996894a3 sm7250-common: Decommonize persist.vendor.audio.voicecall.speaker.stereo prop
* Breaks speaker during call on OnePlus Nord
2021-10-10 15:55:40 +02:00
Daniel Jacob Chittoor
822cfc7148 sm7250-common: Decommonize CNSS subsystem daemon
* ConNectivity SubSystem daemon from OnePlus Nord CE (ebba)
   does not load bdwlan data for OnePlus Nord (avicii) properly
   therefore, decommonize the daemon from the common inheritance.

Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-10-10 15:55:40 +02:00
KakatkarAkshay
add7eaf495 sm7250-common: Decommonize vendor/bin/rmt_storage
* OnePlus Nord uses oem_stanvbk partition while Nord CE uses oplusdycnvbk partition
2021-10-10 15:55:40 +02:00
LuK1337
a8cdb505a2 sm7250-common: Set vendor.boot.rf_version=${ro.boot.rf_version} too
liboemnvbk_img_helper uses it, no clue what for but it doesn't hurt.

Change-Id: Ic2869ae3deb81bf35ca873e4ddebb89810e5c9b8
2021-10-10 15:55:40 +02:00
LuK1337
6fa63e1690 sm7250-common: Set vendor props for RF and PRJ version
These props are used by cnss-daemon in order to load
proper bdwlan firmware. Apparently these should be
set automatically via some QMI/RIL binary but I don't
really care enough to figure out as to how that works.

Change-Id: I06effa06321e9e00994ce7918c14bbc929d3d1cd
2021-10-10 15:55:40 +02:00
KakatkarAkshay
cdaa648a69 Revert "sm7250-common: overlay: SystemUI: Enable status bar burn in protection"
This reverts commit ea52e81145e4e1225473c9e489129cab6302c08a.
2021-10-10 15:55:40 +02:00
Aayush Gupta
46598f7f46 sm7250-common: Fix namespace prefix in nfcee_access.xml 2021-10-10 15:55:39 +02:00
Daniel Jacob Chittoor
0e3ec1e429 sm7250-common: Align radio vendor properties to that of stock
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-10-10 15:55:39 +02:00
Daniel Jacob Chittoor
9e8a0c206a sm7250-common: Align display vendor properties to that of stock
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-10-10 15:55:39 +02:00
Daniel Jacob Chittoor
1e2593b9e3 sm7250-common: Align bluetooth vendor properties to that of stock
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-10-10 15:55:38 +02:00
Daniel Jacob Chittoor
338fc65777 sm7250-common: Align audio vendor properties to that of stock
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-10-10 15:55:38 +02:00
Daniel Jacob Chittoor
365a2863f9 sm7250-common: Correct Bluetooth SoC properties
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-10-10 15:55:38 +02:00
LuK1337
f99ea532c1 sm8250-common: audio: Disable ULL mode
* Ultra low latency playback is currently broken. Crackling audio
   can be well noticed while playing WhatsApp audio messages or even
   during some games.

 * This patch routes all audio that normally used audio-ull-playback
   paths to low-latency-playback paths instead, thus meaning we're
   switching from ULL to LL mode.

Change-Id: I7d672f1ff10b984c8096c9c4ca83475e730fd16f
2021-10-10 15:55:38 +02:00
KakatkarAkshay
6d5fe9e407 sm7250-common: Decommonise Audio Blobs 2021-10-10 15:55:38 +02:00
KakatkarAkshay
044a1120f9 sm7250-common: sepolicy: Address NFC Denials
Change-Id: I67138bb9133d12703445cf3c3010c493eecda1b0
2021-10-10 15:55:38 +02:00
Wang Han
e1f4ee1aed sm7250-common: rootdir: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2021-10-10 15:55:38 +02:00
Christian Oder
ca5e9e9676 sm7250-common: Patch fingerprint blobs to different prop
libgf_ud_hal.so looks for vendor.boot.verifiedbootstate to be set to the phones true state
in our case, for an unlocked phone, it must be orange
(green = locked with factory rom, orange = unlocked no checking, yellow = locked with user key)

Change it to look for vendor.boot.fingerprintbstate which we set to orange without having to mess with anything safetynet related.

Co-authored-by: Matt Filetto <matt.filetto@gmail.com>
2021-10-10 15:55:38 +02:00
jjpprrrr
1df183455b sm7250-common: props: Enable Seamless Transfer
It allows users to switch between audio output devices by tapping the music
note icon on the notification of a music app

Change-Id: I71cdc10d21c53345666d372f71ade982c4a37277
2021-10-10 15:55:38 +02:00
Hikari-no-Tenshi
6345b24bfc sm7250-common: Define OnePlus infrared proximity sensor for pocket detection
OnePlus pocket sensor is broken on Android 11 custom ROMs.
Blinking dot can be seen on screen, but this is better than nothing.

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Change-Id: Ie6e8c8d025316a9e482ff840c857b64ff58377e7
2021-10-10 15:55:38 +02:00
TARKZiM
0d195728de sm7250-common: Build Health HAL 2.0
Co-authored-by: HELLBOY017 <abhaygill017@gmail.com>
2021-10-10 15:55:38 +02:00
maxwen
b39b365153 sm7250-common: overlay: Hide sRGB toggle in developer options
* This is only available on Nexus/Pixel devices. Already implemented
   in LiveDisplay for devices that have the proper profile in the
   QDCM calibration file or provide the commands via sysfs node.

Change-Id: I1dbeafdef930bcfeb2b950b3adce293307abff85
2021-10-10 15:55:38 +02:00
Satheesh Kumar Pallemoni
f78ec61591 sm7250-common: AAC frame control enabled for hal implementation.
Added below two changes to enable the AAC frame control
when property persist.vendor.bt.a2dp.hal.implementation
has nbeen enabled.

- Send bitrate value to MM on basis of MTU and sample rate.
  CRs-Fixed: 2402346
  Change-Id: I6c964311dfa5db335d3b9dd21c60d1f9dcc61ebe

- A2dpSrc: Calculate bitrate with exact peer MTU value.
  CRs-Fixed: 2466969
  Change-Id: I95e93cb29d1add0b2bca8f99827849519311a0b1

CRs-Fixed: 2474400
Change-Id: I8eea975fac290c117d9781c1455e81e9404f6bd6
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-10-10 15:55:38 +02:00
M Safoorah Banu
9913fa00f1 sm7250-common: Enable TWS plus feature using persist property
- Enable/Disable TWS plus feature support using persist
   property - "persist.vendor.btstack.enable.twsplus"

 - TWS plus feature is supported only if property is set to
   "True" else feature is not supported.By default property
   is set to False.

CRs-Fixed: 2344895
Change-Id: I855f448146424b7b647ca599f3d830073ec7c409
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-10-10 15:55:38 +02:00
xiaowang
d35eafe026 sm7250-common: Add support for low power adaptive control feature
High power consumption issues were reported for some HS/CK/Speaker
in close range(1 meter) on hastings platform as they may not have
perfect RSSI golden range logic for power control and always request
SOC to increase TX power to max power level. Newer hastings SOC support
LPA power control to avoid unnecessary higher power consumption.

The change enable this soc feature according to value of property.
And disable it for special remote devices which have been added in BL
when new ACL link is created.

If feature is enabled, controllable power level for remote is L0-L9,
BT controller increase it to L10 or L11 according to RSSI and NAK rate.
Otherwise controllable power level for remote is from 0 to max power
level signified in NVM, most likely L11 for hastings.

CRs-Fixed: 2597191
Change-Id: I354bb34a84aa7a55537e3a595daac54c46d90603
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-10-10 15:55:38 +02:00
Bruno Martins
80150924c4 sm7250-common: Match QVA static overlay configs for BT
Change-Id: I211ac4648d9762ded00cce7ed40af495e3b87766
2021-10-10 15:55:37 +02:00
PIPIPIG233666
386e70b688 sm7250-common: Split component-overrides to support pure AOSP/QTI BT stack
Change-Id: Ia40a996ba5164ba8a6fc5dde0dfb3ef859af1477
2021-10-10 15:55:37 +02:00