Commit Graph

687 Commits

Author SHA1 Message Date
Michael Bestas
1866366baf sm8250-common: overlay: Drop deprecated config_udfpsHbmType
Change-Id: Ie5aec6f2046a8eb9f0abb0913b675d291a242c1a
2022-11-16 13:21:17 +01:00
LuK1337
dd44d9bf8a sm8250-common: Update patched PowerOffAlarm.apk sha1sum
Somehow, the old patched PowerOffAlarm.apk got lost, so we have to
re-patch this apk again to not require oplus-specific permissions.
Update the sha1sum hash to match the new patched apk.

Change-Id: Id419245e7943de99d2316060205404b5c706f292
2022-11-10 12:05:48 +00:00
jabashque
9a408f0743 sm8250-common: Disallow aux cam usage for Zoom
Zoom seems to try using camera ID 2 for the back camera instead of
camera ID 0. Block access to aux camera for Zoom to force it to use
camera ID 0 for the back camera.

Change-Id: I99d79259a2a3adefb72a5ffed5fbbb37bd8b756d
2022-11-05 17:53:05 +00:00
LuK1337
ee35037bbb sm8250-common: Migrate vendor.camera.aux.packageexcludelist to overlay
Change-Id: Iee884cc98b5fada492b27e8085de98ae08406cf4
2022-11-04 20:30:09 +01:00
LuK1337
3892302e92 sm8250-common: overlay: Fix code formatting in config.xml
Change-Id: I5f1b157b01fd4e0beccd3fb7ed948f829a9f0b88
2022-11-04 20:29:08 +01:00
jabashque
af8b4dcede sm8250-common: Don't process display brightness on pxlw disp mode change
In libpwirissoft.so's `pxlw` class, `qcomSetDisplayMode()` ends up
calling `irisSetConfigEx()` with `brightness_level_` as one of the
parameters. `irisSetConfigEx()` ends up passing that `brightness_level_`
param to `processDisplayBrightness()`, which seems to do some sort of
additional dimming of the display output depending on what the current
brightness level is.

On AOSP, it looks like `brightness_level_` doesn't get set properly.
After hwcomposer is initialized for the first time (or terminated and
restarted), if we turn the panel off and back on at least once, and then
try changing display modes, hwcomposer seems to apply a constant dimming
of the display output regardless of the backlight level.

Let's work around that by nop-ing out the `irisSetConfigEx()` call in
`qcomSetDisplayMode()`. That way, `processDisplayBrightness()` won't get
called, and we will not get that dimming.

Change-Id: Ied87b229d596bcc597b9ccb0a47368cbcb97f54b
2022-10-17 18:27:36 +02:00
LuK1337
dc06d08c16 sm8250-common: Unlock more camera capabilities
Even though we now have gc5035 unlocked by default, this patch seems
to still be required to achieve the following:

* enables 48MP RAW10 Capture on third party camera apps
* enables long exposure capture support on all package names
* removes the 1/30s shutter speed cap from the viewfinder on third party
  camera apps
* enables support for the MFNR viewfinder on auxiliary lenses

Change-Id: If321a31aeffe22b471a08a58432096c9653c2f64
2022-10-16 23:39:54 +02:00
LuK1337
0f9d1c4d6a sm8250-common: Prevent adding same dependency twice in blob_fixup
Change-Id: Idedeb51e027a09f64a29ac67a3a2f2a0594213f6
2022-10-15 23:08:15 +02:00
LuK1337
82fe945b20 sm8250-common: Update WFD system stack from IN2020 11.F.06
Change-Id: I68b9187bb67275ff759fcfa42c41db9d9d208a17
2022-10-12 09:42:14 +02:00
AnierinB
4dfab1039e sm8250-common: Remove disabled and seclabel from wlchgmonitor.rc
* We aren't shipping wlchgmonitor for all devices, thus `disabled` is
  not necessary.
* Because we are properly labeling wlchgmonitor, we don't need
  `seclabel` either.

Change-Id: Ic0a28f6cef3a8dfeda560f6f04dc23feed0a601a
2022-10-04 20:09:48 +02:00
Michael Bestas
5256591ff9 fixup! sm8250-common: Build fastboot custom HAL
Change-Id: If8b60462306f2f92789f57749e9c6dcb81e2d096
2022-10-03 03:49:23 +03:00
Bruno Martins
4c81196793 sm8250-common: Import common bdroid_buildcfg
Now that BTM_DEF_LOCAL_NAME is gone (migrated to a sysprop)
we can commonize the header.

Change-Id: I67da0b9f877da358f71c7afdca448fc8cc58773e
2022-09-19 16:27:33 +02:00
Michael Bestas
172439ee05 sm8250-common: Fix disabling A2DP offload
Change-Id: I49c717a19afb2491b6280670fdbfe8765813a4dc
2022-09-19 16:27:33 +02:00
LuK1337
670bcba9dd sm8250-common: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2022-09-19 16:27:33 +02:00
Alexander Koskovich
310cdffbc9 sm8250-common: Switch to AOSP NXP NFC HAL
Test: Verified NFC turns on, can read tags, and went
      to a Dunkin Donuts and used Google Pay.

Change-Id: I8cd8815ab883d83a5c07c8f01a9bdeff594c470b
2022-09-19 16:27:33 +02:00
Alexander Koskovich
d71fe353e7 sm8250-common: Update device that aptX is pulled from
* Same SHAs, but nice to note that it's the same on
   the newest release available.

Change-Id: I5c862470ac6f54251c8fa61984c734a51d89a750
2022-09-19 16:27:33 +02:00
Bruno Martins
4045d01d6a sm8250-common: Remove QTI BT stack bits
Change-Id: Ice6c2b0735aa7cb4b2e638a794c778883e706c97
2022-09-19 16:27:30 +02:00
Michael Bestas
20623a55ab sm8250-common: Import audio policy configurations from audio HAL
Change-Id: I7615157268ca7bf5794fcfff54789a00c0d630d5
2022-09-19 13:18:16 +02:00
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