Commit Graph

657 Commits

Author SHA1 Message Date
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
Michael Bestas
53e71f35a1 sm8250-common: Reapply "Set ro.boot.hardware.revision based on RF version"
ro.boot.hardware.revision is used in fastbootd UI, getvar hw-revision
output and Settings app.

Set based on the RF version so external tools can use it to flash
the correct firmware variant and show the HW variant in Settings.

Change-Id: I1adfb6514fdbaa2e5b9782c37d9eaf8112a110fc
2022-08-19 21:59:20 +02:00
Lisa Liu
b98ac39ce4 sm8250-common: Enable LZ4 compression for ramdisks
* This shortens the time to unpack initramfs.

Change-Id: Id23daba43ae7a6003cbde29480d2f433f344df73
2022-08-19 21:59:20 +02:00
Alexander Koskovich
b2d4d167ad sm8250-common: Drop updatable GPU drivers
* Doesn't work, can't switch between default and oplus
   GPU driver. Looking at oplus' APK, there is nothing
   really inside just a shell. There were no updates for
   the app in the Play Store either.

Change-Id: I0ec61c3b9abfa86368e6c23481d7edf5d8f6a036
2022-08-19 21:59:20 +02:00
Alexander Koskovich
7d7cee08b1 sm8250-common: init: Fix "Invalid section keyword found" on ueventd
Change-Id: I8a3eb3abea82feb5e1a92cc859cd6498ee68666e
2022-08-19 21:59:20 +02:00
Deevana Murthy Bandaru
506603029d sm8250-common: Enable suspend while charging
Change-Id: I1b0258b1ae80d35a104ef976738ad843c053f60f
2022-08-19 21:59:20 +02:00
Alexander Koskovich
eae05afd47 sm8250-common: Drop ro.charger.disable_init_blank
* Don't need this on a modern platform like lahaina.

Change-Id: I567429a34059247a488bf513217dccefd60bb1d3
2022-08-19 21:59:20 +02:00
Alexander Koskovich
9bc232a64b sm8250-common: Drop camera.disable_zsl_mode
* Set as apart of calibrationOutput_uw.rc.

Change-Id: I7ac6c4ad993509c40b42518a574f8945a2934127
2022-08-19 21:59:20 +02:00
Alexander Koskovich
9da731496d sm8250-common: Remove ro.com.android.dataroaming override
* build/make/target/product/full_base_telephony.mk
   24:    ro.com.android.dataroaming?=true

 * system_ext/etc/build.prop:ro.com.android.dataroaming=false
   vendor/build.prop:ro.com.android.dataroaming=true

   In QSSI builds the partition priority is: odm, vendor,
   product, system_ext, system.

Change-Id: Ia90d73ce62a156e4b88731cffd4d5f7a6dd795e6
2022-08-19 21:59:20 +02:00
Alexander Koskovich
31e1297d77 sm8250-common: Drop QSPM vendor property
* Only used in system_ext libraries that we don't include.

Change-Id: I5ddcb48558df9b396cf4753aca9044978d3ddcb5
2022-08-19 21:59:20 +02:00
Alexander Koskovich
fb99e77372 sm8250-common: Drop PASR properties
* vendor.power.pasr.enabled is unused and vendor.pasr.activemode.enabled
   is only used on property:vendor.pasr.enabled=true, which isn't the
   case since we disable memory hotplugging kernel.

verify_pasr_support()
{
         if [ -d /sys/kernel/mem-offline ]; then
                setprop vendor.pasr.enabled true
         fi
}

Change-Id: I73145cb15bd970eaec3bd96f87a48c44e3115a3b
2022-08-19 21:59:20 +02:00
Alexander Koskovich
db3cac8c18 sm8250-common: Drop shutdown wait time property
* Can't find anything that uses it.

Change-Id: I146158a8f37fb888a3ae88e5241ab68f62d69194
2022-08-19 21:59:20 +02:00
Alexander Koskovich
684fb794c9 sm8250-common: Drop some audio packages
* All of these are implied, except libcirrusspkrprot
   which was removed as we are not using any Cirrus
   hardware, and even hardware supported by it is hard
   to find in production.

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