Commit Graph

815 Commits

Author SHA1 Message Date
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
KakatkarAkshay
e9a33ef666 sm7250-common: Disable Audio DTS and Dolby Feature flags 2021-09-26 09:20:40 +02:00
LuK1337
5b8806c5cd sm7250-common: Build android.hardware.thermal@2.0-service.qti
As seen on stock ROM.

Change-Id: I950ab50ded7b3c1164ff88ab18d7f1e3365a6086
2021-09-26 09:20:40 +02:00
KakatkarAkshay
040e4cca66 sm7250-common: Sync CarrierConfig overlay with OnePlusNordCE OOS 11.0.4.4 2021-09-26 09:20:40 +02:00
LuK1337
4c73bc4db6 sm7250-common: Enable DPM Connection Tracking (CT)
Change-Id: I25991ee34c87ce1de4fb234518238f3fc906b54b
2021-09-26 09:20:40 +02:00
KakatkarAkshay
6b283d6a53 sm7250-common: Sync sensor props with stock 2021-09-26 09:20:40 +02:00
LuK1337
95f057b641 sm7250-common: Enable NR by default for SIM2 slot
Change-Id: I9fbe74cfed75754b950931ce712d278421327d13
2021-09-26 09:20:40 +02:00
LuK1337
60541fe2a0 sm7250-common: wifi-mac-generator: Fix byte order
Change-Id: I42b39015b518ad4b707e2023d7a3fef01dc8d825
2021-09-26 09:20:40 +02:00
LuK1337
a56ed01f90 sm7250-common: Add wifi mac generator shell script
Change-Id: I95593db840dc4a668f899d248b2c8e03d4ebbc3e
2021-09-26 09:20:40 +02:00
LuK1337
e442fed8ca sm7250-common: wifi: Enable read_mac_addr_from_mac_file
This is needed to make WiFi driver load wlan_mac.bin file.

Change-Id: Ifdffd86cc412de1338996055cafa08d753fe0426
2021-09-26 09:20:40 +02:00
LuK1337
4de7bfdcde sm7250-common: Use local WCNSS_qcom_cfg.ini
Change-Id: Iecca4f981fdf838020d74cbabc57088b1ac1a18c
2021-09-26 09:20:40 +02:00
KakatkarAkshay
d179c3dd27 sm7250-common: Revise feature permission sets 2021-09-26 09:20:40 +02:00
KakatkarAkshay
61ca4dcdee sm7250-common: Sync audio props with stock 2021-09-26 09:20:40 +02:00
Jaideep Sharma
10676df95f sm7250-common: Add property for timecheck timeout duration.
Timecheck timeout set to 20sec based on the property
vendor.audio.hal.boot.timeout.ms before system is ready.
It updates to default timeout of 5sec, once the system
is ready.

Change-Id: I651fea37fc7093e196fc2f5e540e6d9447f88b71
2021-09-26 09:20:40 +02:00
Lokesh Gidra
2c85ec0e33 sm7250-common: Use 6GB dalvik-heap config
We are currently using 2GB dalvik-heap config.

Bug: 145823510
Test: MPTS
Change-Id: I086d4a5c09634c3c7bd51ec5d08dcaa1551511b4
2021-09-26 09:20:40 +02:00
LuK1337
89753766b7 sm7250-common: Don't pass OEM_TARGET_PRODUCT to kernel build cmdline
Not needed on this platform.

Change-Id: I6cbb2772b8a79a7d50be113e493ae9743238cc8e
2021-09-26 09:20:40 +02:00
Bruno Martins
5070d63e70 sm7250-common: Bring up DSDS radio
Change-Id: I290532f7a9f3477b0a13f73d6818a16134df1caa
2021-09-26 09:20:40 +02:00
KakatkarAkshay
0386782fa7 sm7250-common: Fix haptics and health node path 2021-09-26 09:20:40 +02:00
LuK1337
f7de707b05 sm7250-common: Update wlan symlinks
Change-Id: I4f0ae4ee4a9b5e39325405c9388466438b5b8535
2021-09-26 09:20:40 +02:00
LuK1337
e0e0ff94b1 sm7250-common: Build libhidltransport.vendor
Needed for NFC.
2021-09-26 09:20:40 +02:00
LuK1337
da0be68686 sm7250-common: Fix host_init_verifier errors
Change-Id: I6d6ca2bd57ef36916e17cc91fea13839d03d02a8
2021-09-26 09:20:40 +02:00
KakatkarAkshay
ee5e276e9b sm7250-common: Update wifi configs from OnePlusNordCE OxygenOS 11.0.4.4 2021-09-26 09:20:40 +02:00
KakatkarAkshay
b2e970992b sm7250-common: Update gps configs from from OnePlusNordCE OxygenOS 11.0.4.4 2021-09-26 09:20:40 +02:00
KakatkarAkshay
bddc776409 sm7250-common: Update audio and media configs from OnePlusNordCE OxygenOS 11.0.4.4 2021-09-26 09:20:40 +02:00