Commit Graph

705 Commits

Author SHA1 Message Date
KakatkarAkshay
9b2d4d1ecf avicii: Initial rename from sm8250-common
Change-Id: Ied88e7cdac0624470c40d734957db1b4695d9021
2023-02-06 01:11:12 +05:30
LuK1337
b3996b9e9b sm8250-common: Register wise light as android.sensor.light
Sadly a lot of apps aren't aware of config_displayLightSensorType.

Change-Id: Ib1c2f0ba8305dbfe262722f2a1862dafaac973df
2023-01-21 01:50:46 +01:00
LuK1337
b572742ed2 sm8250-common: Unpin WFD system stack
Change-Id: I2d844412768c0468fe03ae11ea9a181267777acb
2023-01-15 13:22:19 +01:00
jabashque
852815b998 sm8250-common: init: Move VOOC-related writes back to init
This allows these same writes to happen in both Android and offline
charging mode, thus enabling VOOC during offline charging.

Change-Id: Iacf85966b5fa37eedb42887d666369fb63e13c33
2023-01-13 12:25:20 +01:00
Edwin Moquete
d62a96ef8d sm8250-common: Add missing vendor.qti.hardware.btconfigstore@2.0 impl
Change-Id: I93d20f9ab01f330da3060a25a9869d45e0269615
2023-01-13 13:23:26 +02:00
Michael Bestas
87cb64eee0 sm8250-common: Remove unused a2dp_audio_policy_configuration.xml
Change-Id: I36a06d3829b0ec2fd89ae49899f3ed268f6d9993
2023-01-09 17:59:40 +01:00
llololo
8244196031 sm8250-common: Remove A2DP input module in audio policy configuration
No Pixel device support A2DP sink functionality.

Bug: 163050296
Test: A2DP related test.
Change-Id: I269220cf29451ea79362fc004fa073713f72fdb2
2023-01-09 17:59:40 +01:00
Alice Kuo
9d8d2c79a1 sm8250-common: Disable LE audio related profiles
Bug: 231671426
Test: build
Change-Id: I57eaa7abe70e4c7739c707b09dc95530e10b5586
2023-01-09 17:59:40 +01:00
LuK1337
7ef0e52de4 sm8250-common: Update from OOS 11.F.15
Change-Id: If46b0ab89648c902be840b32e7420da68c35ada3
2023-01-09 01:16:03 +01:00
Edwin Moquete
e53be2ef64 sm8250-common: Remove unused persist.bluetooth.a2dp_offload.cap property
This prop has no effect as of T QPR1.

See: cf25e33147

Change-Id: Ic762812dd59429d344ccc55c01bf96b0ffd6dbab
2023-01-07 09:30:54 +00:00
Edwin Moquete
04e09521ef sm8250-common: Restore vendor bluetooth props
These are read by the BT audio blobs, even without the
QTI BT stack.

Change-Id: Ia2335bedfd7e19899c2cb32c23fcc664f2cfe8ce
2023-01-07 09:20:21 +00:00
LuK1337
bb5ca4c5c7 sm8250-common: Pull CarrierConfig overlay from OOS 11.F.13
Change-Id: Iff51b578735ec208427dd8f506d8119f8ec1be8c
2022-12-21 22:22:58 +01:00
LuK1337
bf4440b788 sm8250-common: Update from OOS 11.F.13
Change-Id: I4abe5d56416fdf5e1a41b62f2217c70ae15d21a7
2022-12-21 22:22:58 +01:00
LuK1337
faeaa51dee sm8250-common: Add stmvl53l1 TOF sensor support
Change-Id: Ic310be7daf4ff3f8700383fd1f8731c6bce62d56
2022-12-21 20:56:07 +01:00
LuK1337
8fa430ac92 sm8250-common: Update from OOS 11.C.36
Change-Id: Ia70263b10d0455e9c74a1481e50f795ddcafcb15
2022-11-26 16:16:43 +01:00
LuK1337
6fa8797615 sm8250-common: Use libcamera_metadata_shim for unlocking cameras
Change-Id: I985c6e317b36d8cdc6b41a9f9f625b293a8987eb
2022-11-25 15:48:13 +01:00
Michael Wright
0bd5603fc5 sm8250-common: overlay: Enable haptic text cursor
Support has landed in WebView, so time to turn it on in framework!

Change-Id: I064cf3512928637895932b3405adaec74b1ceed2
2022-11-16 13:21:20 +01:00
Dan Pasanen
f49ac8cad2 sm8250-common: Enable config_vibrateOnIconAnimation
* Need those sexy vibes.

Change-Id: If5671135879f6f4069d0ed881b41b0a243890349
2022-11-16 13:21:19 +01:00
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