Commit Graph

22 Commits

Author SHA1 Message Date
KakatkarAkshay
73d30c6b7a avicii: Switch to PN553 NFC
Change-Id: Ia90aa2163fc69e75b4378936386629ec47456a93
2023-03-09 16:33:03 +05:30
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
6fa8797615 sm8250-common: Use libcamera_metadata_shim for unlocking cameras
Change-Id: I985c6e317b36d8cdc6b41a9f9f625b293a8987eb
2022-11-25 15:48:13 +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
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
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
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
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
Bruno Martins
253d6a5f43 sm8250-common: Update blobs to Android 12 (IN2025_11.C.33)
* Move some configurations to proprietary files since
   we make no edits to them.

Change-Id: Ia412660d84825b47c2f272f89baf73cf5981879c
2022-08-19 21:59:19 +02:00
LuK1337
901baf95a9 sm8250-common: Autopatch vendor.qti.hardware.camera.postproc impl
Change-Id: If9b730f83853a169066291c6787dd81d5609ac5e
2022-04-03 21:05:31 +02:00
LuK1337
9c9e8bdcd2 sm8250-common: Unlock gc5035 camera
This change lets us use gc5035 camera, which was blocked by OnePlus long
time ago after people discovered its *magic* capabilities. By default
only `com.oem.autotest` can use it, however if we replace the first
character with a NULL byte, then strncmp returns 0, and thus we pass the
check and allow everyone to use it.

You can see the logs below that led me to discover that behavior.

[DEBUG  ] JIANJIA.cpp:89 PretendOpenCamera() logicalCameraId 4, m_ClientPackageName 0
[DEBUG  ] STELLA.cpp:1445 informKernel() force: -1 value: 6 buf: 5
[DEBUG  ] chxextensionmodule.cpp:1005 ExtendOpen() You shall not pass 0
[DEBUG  ] chxextensioninterface.cpp:298 chi_extend_open() [OP_EXT] OPEN_CAMERA X
[ERROR][HAL    ] camxhal3module.cpp:772 ProcessCameraOpen() Camera Open failed with error status = CamxResultEInvalidArg

Change-Id: I9b3e4e55f07cef40886e09941f7ed0523cdf8cfa
2022-03-05 01:35:32 +01:00
Michael Bestas
866748273b sm8250-common: Switch to standalone extract utils
Align with templates while we are at it

Change-Id: Ife50623a3d1b8733f5cc76995c982d8950d39ad4
2021-01-03 12:48:22 +01:00
LuK1337
5d377ba4d6 sm8250-common: Update blobs from OOS11 2020-11-23 15:10:40 +01:00
LuK1337
d996e39f61 sm8250-common: Switch to blob_fixup()
Change-Id: Ic828da86cfe44a660c1e48a603ba48d584dfc755
2020-11-20 14:26:52 +01:00
LuK1337
cad7bf013a sdm845-common: Update blobs from OxygenOS 10.3.0
* Also pin P aptX blobs (they'll be updated in next patch)

Change-Id: I7d90dad4df10770d20818e683f2def428737af02
2019-12-20 16:05:33 +01:00
Christian Oder
f3af61404d sdm845-common: Unpin libwfdnative and patch it on the fly
Change-Id: Ia55cda25820e93f968999b17124e67415ddcb08e
2019-06-26 21:01:13 +02:00
Vladimir Oltean
164090d2d3 sdm845-common: Sync extractors with templates
* This introduces fixup scripts and kang mode and fixes
   passing of arguments longer than one word,
   such as --section "Hello world".

Change-Id: I42dde659e9bea4f7e1c9a7a3fa8da3243774ca4e
2019-05-08 13:51:04 +02:00
LuK1337
02a9fcb3e4 sdm845-common: Initial commit
Change-Id: I317c72bd943457c95d2b2c2c80ac0163c9f76a93
2018-07-07 18:44:53 +02:00