Commit Graph

669 Commits

Author SHA1 Message Date
Michael Bestas
f29c731953 sm8250-common: Remove persist.sys.fflag.override.settings_bluetooth_hearing_aid
This has been replaced by `bluetooth.profile.asha.central.enabled`

Change-Id: I0bb72ec01a77f790ebeb594e45c695e9a087dc43
2022-09-19 13:18:16 +02:00
Alexander Koskovich
5a2761c2f8 sm8250-common: Move Bluetooth power overlays to sysprops
* These were moved to sysprops in Android 13 [1] and while
   frameworks reads the values directly from power_profile.xml
   Bluetooth app reads from the properties.

 [1] 976d33062b%5E%21/#F0

Change-Id: I5bff67a15c537e8a47a19f30776fca6bf2c9fbe5
2022-09-19 13:18:16 +02:00
Sal Savage
660518daf5 sm8250-common: Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Merged-In: Ie29700e8b87f6f3fc2da741411dfbe94fa56ca36
Change-Id: Ie29700e8b87f6f3fc2da741411dfbe94fa56ca36
2022-09-19 13:18:16 +02:00
Sal Savage
1f1ac763f8 sm8250-common: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Merged-In: I75a6fb83a6149f58372b7aa46ccc190fd4451ab0
Change-Id: I75a6fb83a6149f58372b7aa46ccc190fd4451ab0
2022-09-19 13:18:16 +02:00
Sal Savage
b9967697d8 sm8250-common: Update LE Audio profile properties
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Merged-In: I0d23d92ae4d75d6658c2ab2ca25122dd5ac68300
Change-Id: I0d23d92ae4d75d6658c2ab2ca25122dd5ac68300
2022-09-19 13:18:16 +02:00
Alexander Koskovich
9b0d9a88d8 sm8250-common: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2022-09-19 13:18:16 +02:00
Sal Savage
8fdaa1c171 sm8250-common: Enable Bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Merged-In: I0a76275baf2c80894b6be71d79b3265021ac921b
Change-Id: I0a76275baf2c80894b6be71d79b3265021ac921b
2022-09-19 13:18:16 +02:00
Woody Lin
a4bbf153b8 sm8250-common: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
2022-09-19 13:18:16 +02:00
Edwin Moquete
270ba54156 sm8250-common: Switch to legacy sepolicy_vndr
Change-Id: I13229c3057bf32c81b0fdace075f0791cb8ad380
2022-09-19 13:18:16 +02:00
Bowgo Tsai
322a00538d sm8250-common: Removing GSI keys
Those keys will be embedded into VtsSecurityAvb on host side
instead, to verify the GSI image used on the device.

Bug: 149806769
Test: build and checks those keys are removed from
      $OUT/recovery/root/first_stage_ramdisk/avb/
Change-Id: I8a002ba6f1421fb460056ccae6572050bdb0ce3c
2022-09-19 13:18:14 +02:00
jabashque
ebffc31753 sm8250-common: overlay: Decouple display state from auto-suspend
On stock, `config_powerDecoupleAutoSuspendModeFromDisplay` is set to
false. However, by leaving it set to false here, the device is unable to
enter deep sleep mode while Always-on Display is enabled. We will
deviate from stock by setting it to true here.

Change-Id: I47a0f78a43045718b3730387ea7b91c00b9c3794
2022-09-03 01:08:39 -07:00
SagarMakhar
a6287e33e1 sm8250-common: init: Enable fastchg_fw_update and ui_soc_decimal on boot
* `fastchg_fw_update` seems to be needed to initialize VOOC / Warp
   charging.
 * `ui_soc_decimal` isn't exactly needed, as it seems to be more for
   enabling the ability to calculate decimal percentages for remaining
   battery capacity on the lockscreen for Oxygen OS. Nevertheless, it
   doesn't seem to cause harm to enable this anyway.

Change-Id: I03dd1abe9c2c7be0b7b7576721b6f6338f1afd46
2022-08-19 21:59:31 +02:00
LuK1337
ec98bb0f8d sm8250-common: Hacks for FOD
Change-Id: I31db727d6c117060d1f3602d7253578590bd4038
2022-08-19 21:59:31 +02:00
Alexander Koskovich
49134dd07a sm8250-common: Switch to OSS NQ NFC
* Let's just use the OnePlus 8 Pro EU NFC configurations
   for everyone, they match the OnePlus 8/8T EU configurations
   so it should be fine.

Test: Verified NFC turns on, can read tags, and went
      to a Dunkin Donuts and used Google Pay.

Change-Id: I1478c92dba58209098f4d4ea37fcc2bceb3f4473
2022-08-19 21:59:31 +02:00
Santiago Seifert
bb4f40464c sm8250-common: Unpin updatable-media from memory
Bug: 214499288
Test: Presubmit
Change-Id: I83757ae6a053ec6b10b08322c4e76d988f1a4a48
2022-08-19 21:59:31 +02:00
Jayachandran C
f941b138c8 sm8250-common: Move default network property to vendor partition
This fixes GSI image overriding the default value

Bug: 153852350
Test: Manually verified after flashing the GSI image
Change-Id: I78b415862c420c23121ec03d6953814cd628ea9a
2022-08-19 21:59:31 +02:00
LuK1337
f82eb28086 sm8250-common: Disallow aux cam usage for Telegram / Telegram X
These seem to misbehave when they reach certain camera IDs.

Change-Id: Ib07269215d76a09bf5b305bfb6ae9b84f5c5a7d3
2022-08-19 21:59:31 +02:00
LuK1337
df005f2fb0 sm8250-common: Register IHighTouchPollingRate interface
Change-Id: I3c48324cd201e810f04ccaa39898d7c8e43fa2e5
2022-08-19 21:59:31 +02:00
LuK1337
421a93824f sm8250-common: overlay: Add VZW MMS UA profile config
config_mms_user_agent_profile_url seems dead but nonetheless stock still
seems to use it.

Change-Id: I78efbbfb5e2012f54905565e208a3b75fa05bf56
2022-08-19 21:59:31 +02:00
Alexander Koskovich
b6059af754 sm8250-common: overlay: Don't translate some strings
Change-Id: I1ea88f84af03f157894c11f857fc59ad0a4bae88
2022-08-19 21:59:31 +02:00
Alexander Koskovich
5da9896de4 sm8250-common: overlay: Drop explicit 'sdk_version' declaration
* We don't need to manually set this anymore.

Change-Id: I1239ba541636e53f8ea4373d3815024f2cd60824
2022-08-19 21:59:31 +02:00
Alexander Koskovich
388a6a38f5 sm8250-common: Define OPA device model ID for GMS
Change-Id: I3098054e9176fd3c4962791858e1047bbb94964a
2022-08-19 21:59:31 +02:00
Alexander Koskovich
5dbb2795dd sm8250-common: Move bootctrl and gpt-utils to hardware/oplus
Change-Id: Icccbb163ab5b1678a7e6a6b042afbf52ec1e6c85
2022-08-19 21:59:31 +02:00
Alexander Koskovich
8168c25ae4 sm8250-common: Drop implied Bluetooth properties
Change-Id: Ibf99eb0a1cfec92b849403db710df3239e1de203
2022-08-19 21:59:31 +02:00
Alexander Koskovich
c983dcfd64 sm8250-common: init: Update display panel firmware if newer
[TP0]touchpanel: tp_fw_update_work: fw_name = tp/19825/FW_S6SY792_SAMSUNG.bin
[TP0]touchpanel: fw_name_fae is tp/19825/FW_S6SY792_SAMSUNG_FAE.bin
sec-s6sy792 2-0048: Direct firmware load for tp/19825/FW_S6SY792_SAMSUNG_FAE.bin failed with error -2
sec-s6sy792 2-0048: Falling back to sysfs fallback for: tp/19825/FW_S6SY792_SAMSUNG_FAE.bin
[TP0]touchpanel: retry times 0
[TP]sec-s6sy792: sec_fw_update is called, force update:0
[TP]sec-s6sy792: img version in bin is 0x28240117, img version in ic is 0x28240117
[TP]sec-s6sy792: config version in bin is 0x28240108, config version in ic is 0x28240108
[TP]touch_interface: read block_1, free once.
[TP]touch_interface: read block_1, kzalloc success(len:1152, buf_size:1152).
[TP]sec-s6sy792: update firmware state: no need update!
[TP0]touchpanel: release all touch point and key, clear tp touch down flag
[TP]touch_interface: read block_2, kzalloc success(len:1, buf_size:256).
[TP]sec-s6sy792: sec_change_to_np_mode: change to np_mode time: 0 success!
[TP]sec-s6sy792: sec_enable_fingerprint_mode: touchhold_enable: 0 success!
[TP]sec-s6sy792: sec_enable_black_gesture, enable = 0
[TP]sec-s6sy792: sec_enable_black_gesture: 0 times change black gesture success
[TP]sec-s6sy792: limit_switch is 1
[TP]sec-s6sy792: sec_enable_charge_mode: state: 0 success!
[TP]sec-s6sy792: sec_enable_headset_mode: state: 0 success!
[TP0]touchpanel: add qos request in touch driver.
[TP0]touchpanel: fw update finished

Change-Id: Iba517b59fe2856ed6f991c07e0362b1be203af45
2022-08-19 21:59:31 +02:00
LuK1337
48f54a0197 sm8250-common: overlay: Set max network scan search time to 254
Matches value found in stock TeleServiceQcom.

Change-Id: If2b224298ffe731f8ccfd0b4f3b6d8a257b6f968
2022-08-19 21:59:31 +02:00
hpnightowl
d6b956b548 sm8250-common: Drop audio.a2dp.default
* Building from here:
   https://github.com/LineageOS/android_build/blob/lineage-18.1/target/product/full_base.mk#L35

Change-Id: Ib71c1abd381468ec3621d60e5ca959f738f51168
2022-08-19 21:59:31 +02:00
Alexander Koskovich
170928721e sm8250-common: Switch to SHA256_RSA4096 to match OOS
Change-Id: I9309c6ee4ea0f9085fe2bac1372f30476b404faa
2022-08-19 21:59:31 +02:00
Alexander Koskovich
d36b5f0e25 sm8250-common: Use content detection for refresh rate
Change-Id: I8e53f18cd07156d4d80c6f0238c7801fa887fa1f
2022-08-19 21:59:31 +02:00
Park Ju Hyung
5d2e8a3ecf sm8250-common: Relax timers for automatic refresh rate switching
* Due to visible gamma shifts on our panels, we should
   make the switchings to happen conservatively.

 * With idle timer >= touch timer, idle timer now always
   takes precedence, but we're leaving touch timer property
   to immediately switch back to 120Hz on touch input events.

 * Display power timer is left untouched as it's responsible
   for display mode changes such as Doze.

Change-Id: If8b1e00a2d2213c4d2288ab28fad4ba0826a36e8
2022-08-19 21:59:31 +02:00
Alexander Koskovich
bad7e9af6a sm8250-common: overlay: Define audio safety overlays
* From android_framework_res_overlay.audio.product.20853

Change-Id: Ib7be879ccce9d152ad4baaa6948b6d7141699d08
2022-08-19 21:59:31 +02:00
Alexander Koskovich
29bd4cff1d sm8250-common: Use nqnfcinfo to set chip ID and firmware version
Change-Id: Id29fcfd7e90735d76b1cc1dcafff419ad389b840
2022-08-19 21:59:31 +02:00
Dyneteve
84af0cbdac sm8250-common: CarrierConfig: Remove "SIM x is HD capable" message
sed -i '/config_update_service_status/ s/true/false/g' \
       overlay/CarrierConfigResCommon/res/xml/vendor.xml

Change-Id: I26ce187483d6d8c18bcd1901cd6d71ca6ec1e31f
2022-08-19 21:59:31 +02:00
Alexander Koskovich
c20e517ca4 sm8250-common: Move device specific audio configurations out of common
Change-Id: Ib52e1d21c1fab64a73e31c296e732bfa16032d9e
2022-08-19 21:59:31 +02:00
LuK1337
960da4eaf2 sm8250-common: Unlock aux cameras
This basically NOPs update_camera_metadata_entry() call that sets
ANDROID_REQUEST_AVAILABLE_CAPABILITIES_SYSTEM_CAMERA to 1 for aux cams.

Change-Id: Ie869b3eb0ea85af99904e2e23e86c4cd0acc3596
2022-08-19 21:59:31 +02:00
LuK1337
678199c03d sm8250-common: Workaround multisim prop setting race condition
It turns out that if we set multisim prop too late, then we end up with
broken RIL for the first boot.

Test: rm -rf /data/property && reboot
Change-Id: I6903691ca89f99529fc6cd372179a6b10513ec93
2022-08-19 21:59:31 +02:00
Alexander Koskovich
de4e0b7e7a sm8250-common: Use audio IO policy from IN2025_11.C.33
* Has important stuff for 24 bit playback.

Change-Id: I6b51ad80967293856145a0650c4df9971eadeabe
2022-08-19 21:59:31 +02:00
Sebastiano Barezzi
5cb6b9f81b sm8250-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2022-08-19 21:59:31 +02:00
LuK1337
98a9f6af5d sm8250-common: init: Set SSR restart level to 'RELATED'
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2022-08-19 21:59:31 +02:00
Michael Bestas
15a14297a8 sm8250-common: Automatically add apk/jar/vintf fragments to PRODUCT_PACKAGES
Change-Id: Iaa9d66b0bbdc55f046ee1347cbf83c7eecebb35e
2022-08-19 21:59:30 +02:00
Alexander Koskovich
4b2c223ed5 sm8250-common: Change GPS proxy app to default one
* This was the default in CAF before OnePlus changed
   it to com.oplus.locationproxy. This is apart of the
   framework 'oplus-lbs-services', which we don't use
   in Lineage.

Change-Id: I5144d32a6f63de5109ca2cc408bc895f621c1260
2022-08-19 21:59:20 +02:00
Alexander Koskovich
99a38b8469 sm8250-common: Import GPS configuration from IN2025_11.C.33
Change-Id: I64c78ddc6af425117af8dd85f2fc9a49ac3bb942
2022-08-19 21:59:20 +02:00
Cassie
91ca9fb3c3 sm8250-common: overlay: Use the new auto network selection UI
Change-Id: I76698911103601d5f3ad67e1099790af8c2fdc18
2022-08-19 21:59:20 +02:00
Alexander Koskovich
1eac128b2e sm8250-common: Move UDFPS color & HBM type to common
Change-Id: Ia5450a32cdc0bbedb2a7d370040315d664f5a4a6
2022-08-19 21:59:20 +02:00
Alexander Koskovich
8320352a5a sm8250-common: Switch to SPDX license identifiers
* Might as well be consistent.

Change-Id: Ib95789a0286785ba3b0b6df265291e87a13d2ef8
2022-08-19 21:59:20 +02:00
LuK1337
24936fa75f sm8250-common: overlay: Restore default config_proximityCheckTimeout
Apparently we can no longer expect proximity sensor to reply within
100ms...

Change-Id: Ifdeda8b9a310da9bd19b7d000b6ac7aa060ae742
2022-08-19 21:59:20 +02:00
Alexander Koskovich
3e8eab7fa5 sm8250-common: Sort common.mk
Change-Id: I556ecc99eed7ca71d01115a80f15bec4478073da
2022-08-19 21:59:20 +02:00
Alexander Koskovich
fcbf34d741 sm8250-common: init: Set model based on RF version
Co-authored-by: dianlujitao <dianlujitao@lineageos.org>
Change-Id: I06f9acda3fe77f57a1bc24ee5a802db0ab3b8d60
2022-08-19 21:59:20 +02:00
Peng Xu
8b77134184 sm8250-common: Enable support for IEEE80211AX
* This is to allow supporting WiFi 6 mobile hotspots,
   to be noted this is only supported on SDM855+ platforms.

Change-Id: Iab61bd12499968e8823b3078acd1c7b8bce46136
2022-08-19 21:59:20 +02:00
Vishalcj17
dce4de3df7 sm8250-common: Steal SurfaceFlinger offsets from taro
* Before:
   Jitter: 0.6ms
   Total duration: 7.1ms

 * After:
   Jitter: 0.3ms
   Total duration: 6.4ms

Change-Id: I878eb5cd7acb1fa322b28fce61ea59d8bfa47932
2022-08-19 21:59:20 +02:00