Commit Graph

588 Commits

Author SHA1 Message Date
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
Chandra Chaganti
9367c62504 sm7250-common: Add notch hide support 2021-10-10 15:55:37 +02:00
Anirudh Gupta
fbf5e1f507 sm7250-common: overlay: Show audio panel on left side
Signed-off-by: chandra <chandra.chaganti@hotmail.com>
2021-10-10 15:55:37 +02:00
Anirudh Gupta
6a2a901268 sm7250-common: overlay: SystemUI: Enable status bar burn in protection
Also set interval to 40 instead of default 60 since HBM mode is a thing

Change-Id: Idade7f5e786c350e58160e0ed49cd3e7de98951c
2021-10-10 15:55:37 +02:00
KakatkarAkshay
328f7c6ebd sm7250-common: hide ringer button above volume slider 2021-10-10 15:55:37 +02:00
chandra
a532717179 sm7250-common: Use OnePlus pocket sensor for Pocket Judge 2021-10-10 15:55:37 +02:00
Chandra
475fe63116 sm7250-common: overlay: touch gestures as per PixelExperience 2021-10-10 15:55:37 +02:00
Chandra Chaganti
424e901ea2 sm7250-common: overlay: enable oem fast charge
Signed-off-by: chandra <chandra.chaganti@hotmail.com>
2021-10-10 15:55:37 +02:00
Chandra Chaganti
cbdaae6070 sm7250-common: Switch back to bool for FOD 2021-10-10 15:55:37 +02:00
Chandra Chaganti
9d40bc895a sm7250-common: remove lineage trust 2021-10-10 15:55:36 +02:00
Chandra Chaganti
19d897b8d0 sm7250-common: PixelExperience Bringup 2021-10-10 15:55:13 +02:00
Bruno Martins
46020fe68b sm7250-common: sepolicy: Fix labelling of project_info
There seems to be a race condition somewhere that prevents
it to be properly labelled, so move to genfs.

Change-Id: Ie2d1deeb19a871eb0b9f5120a92432fda658d725
2021-09-26 09:22:28 +02:00
LuK1337
10aaf01d9d sm7250-common: Remove wlchgd
Nords don't have wireless charging

Change-Id: Ifdc76ca918c2e67affa54c3ce61558b65f98558c
2021-09-26 09:22:28 +02:00
LuK1337
7dd1345dc6 sm7250-common: sepolicy: Drop labels for all socket devices
These don't exist anymore.

Change-Id: I25e15cc3d2f68d00e4ab85ed955b014da727294b
2021-09-26 09:22:28 +02:00
LuK1337
909a5b20d6 sm7250-common: sepolicy: Remove u:object_r:memplus_device:s0 type
/dev/memplus doesn't exist anymore.

Change-Id: Ib0cf673039769465b50901db9a6575ab322d1095
2021-09-26 09:22:28 +02:00
LuK1337
bde9286ca3 sm7250-common: sepolicy: Regenerate labels for wakeup dirs
The list of folders for genfscon was generated using following script:
  for f in `adb shell "find /sys/devices -name wakeup -type d"`; do
      adb shell "ls -Z '$f' | grep -qv u:object_r:sysfs:s0 || echo '$f'"
  done

While list for regular file_contexts was just a simple grep "wakeup[0-9]".

Change-Id: I66abd501ce53b84e7268948d01d7b6c6c42cfbd1
2021-09-26 09:22:28 +02:00
LuK1337
01388d7ea8 sm7250-common: sepolicy: Remove procfs_oem_wireless type
SM7250 devices don't have /proc/wireless or /proc/skin_temp_thrd.

Change-Id: Ib3a67f7c508ab3aea0bee28866b7293c8a785739
2021-09-26 09:22:28 +02:00
Bruno Martins
e3e752c978 sm7250-common: sepolicy: Re-label health sysfs nodes
Change-Id: I648046582f54a254d61c6c76ec5747357bdeca59
2021-09-26 09:22:28 +02:00
KakatkarAkshay
081114eed3 sm7250-common: Use prebuilt audio stack 2021-09-26 09:22:28 +02:00
KakatkarAkshay
ac964c8409 sm7250-common: Decommonise ADSP Modules 2021-09-26 09:22:28 +02:00
Daniel Jacob Chittoor
3b26cd28c4 sm7250-common: Remove duplicate audio property
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-09-26 09:22:28 +02:00
Daniel Jacob Chittoor
08df6f4455 sm7250-common: Use 24bit pulse-code modulation for deep buffer playback
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-09-26 09:22:28 +02:00
LuK1337
28b5bf48f7 sm7250-common: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-09-26 09:22:28 +02:00
Daniel Jacob Chittoor
5bf3e75c4d sm7250-common: Set correct pulse-code modulation format for primary output
OnePlus had made the corresponding change in the IO policy config
but however it seems that policy side configuration was left as is
due to which format routing to device was broken as the IO policy
specificed a 24bit PCM format for primary audio meanwhile the policy
config marked 16bit PCM as the format.

Signed-off-by: KakatkarAkshay <akshayakakatkaraa@gmail.com>
2021-09-26 09:22:28 +02:00
craftju
7427e26e20 sm7250-common: Disable Rescue Party mechanism on userdebug & eng build
Bug: 151191362
Test: adb shell getprop | grep persist.sys.disable_rescue => Pass
Change-Id: Idf12b1c817b45bb0b7ffe2189b86a745813b56fa

Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
2021-09-26 09:22:28 +02:00
KakatkarAkshay
d0559544ba sm7250-common: Build system variant of libhidltransport and libhwbinder
* Needed by libnxpnfc-nci.so
2021-09-26 09:22:28 +02:00
KakatkarAkshay
a758a52641 sm7250-common: Sync WifiResCommon with stock 2021-09-26 09:22:22 +02:00
KakatkarAkshay
e37c3e0fa3 sm7250-common: Sync Graphics props with stock 2021-09-26 09:22:16 +02:00
dianlujitao
f8a7c0b95b sm7250-common: Switch to QTI bt stack
Change-Id: I47016b066ae800d0071dbad6a1235cbc9db3cf80
Signed-off-by: KakatkarAkshay <akshayakakatkaraa@gmail.com>
2021-09-26 09:22:16 +02:00
KakatkarAkshay
5d1a5c70b0 sm7250-common: Remove PowerShare Sepolicy
None of the lito family of OnePlus devices has this feature.

Signed-off-by: KakatkarAkshay <akshayakakatkaraa@gmail.com>
2021-09-26 09:22:10 +02:00
LuK1337
47489d34cb sm7250-common: Switch MDM remote fs symlinks to MSM
7250 has MSM baseband rather than MDM

Change-Id: Ie70a0c5dce177f293ccc0ff1b46a642527f85549
2021-09-26 09:21:30 +02:00
KakatkarAkshay
fc45f13046 sm7250-common: Load QCACLD module during boot event trigger
Signed-off-by: KakatkarAkshay <akshayakakatkaraa@gmail.com>
2021-09-26 09:21:30 +02:00
KakatkarAkshay
2bc4b7fb8c sm7250-common: Decommonise tri-state-key packages
* Only Nord has alert slider
2021-09-26 09:21:30 +02:00
KakatkarAkshay
f2f3e53131 sm7250-common: sepolicy: Fix build errors 2021-09-26 09:21:11 +02:00
KakatkarAkshay
01ff2a2cce sm7250-common: Decommonise vibrator package
* Some devices don't have oneplus haptics
2021-09-26 09:21:10 +02:00
KakatkarAkshay
bbd0232c2a sm7250-common: set TARGET_SCREEN_DENSITY to 450
* All devices in oneplus sm7250 lineup have 1080p display
2021-09-26 09:20:40 +02:00