Commit Graph

526 Commits

Author SHA1 Message Date
Sebastiano Barezzi
58ec93f5a8
sm8250-common: Move seccomp policy to proprietary-files.txt
Change-Id: Ic5130a08e873558f694a41414abbd769c1a55ccf
2021-04-22 00:48:54 +02:00
Sebastiano Barezzi
84ab096e95
sm8250-common: Move GPS configs to proprietary-files.txt
Change-Id: Ia5ae3e3d3ccd70366608d365ea167fbe11b3ea04
2021-04-22 00:48:54 +02:00
Danny Baumann
d6767ff446 sm8250-common: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2021-04-14 10:10:47 +02:00
Sebastiano Barezzi
bd6d215f11
sm8250-common: Update blobs from lmi V12.2.6.0.RJKMIXM
* From lmi-user 11 RKQ1.200826.002 V12.2.6.0.RJKMIXM release-keys

Change-Id: I5bf78d123397e39c80a56810a83374affe289cc4
2021-04-12 22:55:01 +02:00
Sebastiano Barezzi
263f491c12
fixup! sm8250-common: Update blobs from lmi V12.2.5.0.RJKMIXM
Change-Id: I0f37339ecad5873649509f8d720d107b924aaa4d
2021-04-12 19:36:50 +02:00
Wang Han
6ce1dded34
sm8250-common: Add missing config_intrusiveNotificationLed overlay
Change-Id: I3138140812d85074eca058bcc2c1c69160daaa7c
2021-04-11 22:12:13 +02:00
Sebastiano Barezzi
e034bbae4c
sm8250-common: Update audio props from lmi stock
* From lmi-user 11 RKQ1.200826.002 V12.2.5.0.RJKMIXM release-keys

Change-Id: I4500e4b44c5e36c5ac2aa5c37c96e9ff3b54d047
2021-04-11 20:10:45 +02:00
Sebastiano Barezzi
2887577f80
sm8250-common: Drop displayfeature
Co-authored-by: Ramii Ahmed <ramy@ahmedramy.com>

Change-Id: I78719e1f66aa0bc6df366424e3aeb92433d3d899
2021-04-10 23:45:19 +02:00
Jaideep Sharma
f0064f055d
sm8250-common: provide support for callscreening for kona/lito.
add support for callscreening support in audio_policy_configuration
- add mixer paths related to proxy ports needed in call_screening

Change-Id: Ib0c220fa44c23454e71e772bfa406bd82c06b90d
2021-04-01 01:39:47 +02:00
Lakshman Chaluvaraju
d282ea9cbe
sm8250-common: Enable Mono channel support for voip over audio path
Add changes to support mono channel configuration
for voip over audio path.

Change-Id: Ib454d24a4017d3f91d429d47c52d4f86e5a18e97
2021-04-01 01:39:47 +02:00
Sebastiano Barezzi
88cf7693b2
sm8250-common: audio: Also add Line Out routings
* From instantnoodle

Change-Id: I7ec1a41d422ad1902d1e9c680869d3b53116fabd
2021-04-01 01:39:47 +02:00
Jasmine Cha
092a27da8e
sm8250-common: audio: Add hotword input for hotword mic concurrency
Bug: 126595113
Bug: 129733664
Bug: 133123985
Bug: 130316160

Test:
 (ST: sound trigger, VO: VoIP, PH: phone call,
  NR: media recording, PL: playback music)
 ST->VO (MO/MT),  ST->PH (MO/MT)
 ST->NR->PH (MO/MT), ST->NR->VO (MO/MT)
 ST->PL->PH (MO/MT), ST->PL->VO (MO/MT)
 ST->NR->PL->PH (MO/MT),  ST->NR->PL->VO (MO/MT)

Change-Id: I11513994c7a34364de38e00fc8ff999efe3dbb6c
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2021-04-01 01:39:47 +02:00
Sebastiano Barezzi
08732c250c
sm8250-common: Decommonize display calibration data
Change-Id: Id5848074a0e378b6d84a7a6260dff65b43bd2f92
2021-04-01 01:39:47 +02:00
Sebastiano Barezzi
1d10eddb92
sm8250-common: Label /dev/ir_spi
Change-Id: I75f980c424b11583fc097da1481f4c9ee7ba1b79
2021-04-01 01:39:47 +02:00
Sebastiano Barezzi
662e7c6833
sm8250-common: Import libcapiv2svarnn.so
Change-Id: I9cb0191111fe97821f73bbddb6ca0e9e40c34a04
2021-04-01 01:39:47 +02:00
Sebastiano Barezzi
b9978e12fa
sm8250-common: audio: Remove misoundfx
Change-Id: I0a93dbfced55d851d3a7e5b57c1ff9a251777094
2021-03-31 11:39:20 +02:00
Sebastiano Barezzi
c1d245bfbc
sm8250-common: audio: Add missed wired headphones routings
Change-Id: I2789f1a796da8c34d9c8cdf874ec62b3c5261a66
2021-03-31 11:39:20 +02:00
Sebastiano Barezzi
6e848ff338
sm8250-common: Use AOSP A2DP Input config
Change-Id: I654283643c28f2ea087d6bfbda807d1abc7c34af
2021-03-31 11:39:20 +02:00
Sebastiano Barezzi
794b5cc797
sm8250-common: Import recovery init files
* From lmi-user 11 RKQ1.200826.002 V12.2.4.0.RJKMIXM release-keys
2021-03-29 09:29:20 +02:00
Sebastiano Barezzi
c2c941216a
sm8250-common: Initial common sepolicies
* Adapted from xiaomi-sm6150 and xiaomi-sm6250

Co-authored-by: Pig <pig.priv@gmail.com>
Co-authored-by: Zinadin Zidan <zidan.roking@gmail.com>
Co-authored-by: Utsav Balar <utsavbalar1231@gmail.com>
Co-authored-by: Ramii Ahmed <ramy@ahmedramy.com>
Change-Id: Ie64d863d6d36bdebb79d328de9ede5826b1cd486
2021-03-29 08:27:20 +02:00
Sebastiano Barezzi
a7a2424315
sm8250-common: Edit wifi symlinks for CAF qca_cld driver
Change-Id: Ia83f27c125ea2f672a787c15c4cf639f47b21a66
2021-03-28 05:07:07 +02:00
Akhil Narang
c870ec5c7c
sm8250-common: releasetools: flash vbmeta_system as well
Change-Id: I2ecbf573fc7fa14ed7abff615c5353934f56aaee
2021-03-28 05:07:07 +02:00
XiNGRZ
725e027d3d
sm8250-common: releasetools: Ship and update vbmeta image
Change-Id: I8bb4da99945eceae3beab77489e6b9e2a47ab972
2021-03-28 05:07:07 +02:00
XiNGRZ
5aa2996a9d
sm8250-common: releasetools: Add dtbo image to the output zip if present
Change-Id: I8bb4da99945eceae3beab77489e6b9e2a47ab972
2021-03-28 05:07:07 +02:00
Sebastiano Barezzi
5055f65485
sm8250-common: Update rootdir from lmi V12.2.5.0.RJKMIXM
* From lmi-user 11 RKQ1.200826.002 V12.2.5.0.RJKMIXM release-keys

Change-Id: Ia42b7def56f44d8688b3d56b7573ebcef15f188f
2021-03-25 00:34:10 +01:00
Sebastiano Barezzi
47d8a188d6
sm8250-common: Update blobs from lmi V12.2.5.0.RJKMIXM
* From lmi-user 11 RKQ1.200826.002 V12.2.5.0.RJKMIXM release-keys

Change-Id: Ia42b7def56f44d8688b3d56b7573ebcef15f188f
2021-03-25 00:18:49 +01:00
Dan Pasanen
dd1e933e0e
sm8250-common: vibration: Enable config_vibrateOnIconAnimation
* Need those sexy vibes.

Change-Id: If5671135879f6f4069d0ed881b41b0a243890349
2021-03-12 08:42:30 +01:00
Sebastiano Barezzi
7c4982bf5e
sm8250-common: Don't use custom format for RAW10
Change-Id: I8516b17ad33f31eb0abe922646f1d31ea5eba1fa
2021-03-12 08:42:30 +01:00
Sebastiano Barezzi
ef8568548a
Revert "sm8250-common: Use prebuilt gralloc libs"
This reverts commit d333e8805b.

Change-Id: I729c17c656eadc1fcedbfe667a900e74779825a2
2021-03-12 08:42:30 +01:00
Sebastiano Barezzi
b6db17f87d
sm8250-common: Kill console parameters
Change-Id: I69a14e00cfc3291175351259f2d8cbd6b0dc827a
2021-03-12 08:42:30 +01:00
Sebastiano Barezzi
06426098e3
fixup! sm8250-common: Override QTI power AIDL init entry
* Actually copy the init file

Change-Id: Ia899d265688acc190d515d07e26b741dc1819109
2021-02-22 20:50:39 +01:00
Sebastiano Barezzi
ba0ba991a1
sm8250-common: Adapt audio policy configuration for AOSP bluetooth audio
Change-Id: Idf63c8f118c1fe5c40fa77a62df9f321658f3adf
2021-02-22 16:07:17 +01:00
Sebastiano Barezzi
9e2826dcbb
sm8250-common: Override QTI power AIDL init entry
* Add the AIDL to group input

Change-Id: I048e8a340322b97a7da0bcc78edbdcab63449f66
2021-02-22 15:56:26 +01:00
Sebastiano Barezzi
4ff0cae557
sm8250-common: Remove install-recovery.sh
* Cringe bro

Change-Id: I20656cc2eeca036f5e446b4d16675ed792b3f2d3
2021-02-22 14:53:35 +01:00
Sebastiano Barezzi
284fdf3e93
sm8250-common: Cleanup audio init scripts
* We don't even ship tinymix...

Change-Id: I1f8f5af4e0ca4bc51622c3bfefb24f4e7de7ab03
2021-02-22 14:51:52 +01:00
Sebastiano Barezzi
8f39ecb05e
sm8250-common: Add BUILD_BROKEN_DUP_RULES
* We're overriding some libraries with prebuilts

Change-Id: I4075aa87380e26583aad9909bde5e9f9b8bf5b14
2021-02-21 16:47:29 +01:00
Sebastiano Barezzi
380b727cc4
sm8250-common: Build android.hidl.base@1.0
Change-Id: I5457ebbadd95e4c43af4f4dd2e1a1413a241d865
2021-02-21 16:47:29 +01:00
Sebastiano Barezzi
d98969aa5c
sm8250-common: Move mlipay blobs to a different section
Change-Id: I93efb99fd294eab5a6a533b11f558a69e5d74ef6
2021-02-21 16:47:29 +01:00
sbwml
af53cc5f71
sm8250-common: Drop mfidoca and mtdservice
* mlipay doesn't need these services to work
* Test object: org.ifaa.android.manager

Change-Id: Ide12a876e16c49ca49440d12494140f386984985
2021-02-21 00:55:35 +01:00
Carlos Ayrton Lopez Arroyo
7e1592cdae
sm8250-common: power: Scan available DT2W devices for xiaomi-sm8250
Preserve the previous input devices defined and define the screen drivers
present on the xiaomi-sm8250 kernel in order to be scanned depending on the
device that is running (tested on lmi/lmipro).

Change-Id: I8e9410ee0c1b70d8d84ea4c711d0947f4163f4d4
2021-02-20 17:25:13 +01:00
Bruno Martins
5f1b8d41b5
sm8250-common: Import power AIDL extension for DT2W
This is a squash of the following commits:

	From: Bruno Martins <bgcngm@gmail.com>
	Date: Fri, 31 Jan 2020 23:10:19 +0000
	Subject: sm8250-common: power: Scan input devices for eligible DT2W node

		It is no longer a surprise for anyone to see Xiaomi shipping the same
		device with different displays and different displays usually mean
		different touchscreen drivers.

		The current double tap handling in the power HAL only takes into
		account one specific node, meant to be set in the device tree.
		However, if the touchscreen was registered as a different input device
		it would cause the feature to be broken. Address the issue by iterating
		through the input devices in order to find one supported touchscreen
		input to be used.

		Co-authored-by: LuK1337 <priv.luk@gmail.com>
		Change-Id: I2f7fb4a8b0c9cd1a16d6c2b93602d285a191f170

	From: Bruno Martins <bgcngm@gmail.com>
	Date: Fri, 9 Oct 2020 12:19:37 +0100
	Subject: sm8250-common: power: Adapt extension to new aidl power HAL

		Change-Id: I58ac49957d8d28ad904912986d89ac8db4820ff9

Change-Id: If30eaca900f0a046f7740c681e8707b5dce8e1a9
2021-02-20 01:34:26 +01:00
Ryan Mitchell
1705788c35
sm8250-common: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default.

Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
      adb shell pm query-services \
      com.android.bluetooth/.hid.HidDeviceService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2021-02-20 00:43:33 +01:00
Luca Stefani
9632f46f43
sm8250-common: Import CAF bluetooth overlay
Change-Id: If2f8b03515bc5e3c4ed89ef2b1a1a7128bd50015
2021-02-20 00:43:33 +01:00
Sebastiano Barezzi
5c426c197c
sm8250-common: Decommonize device-specific audio configs
Change-Id: I6324d8d2e7f056e92f20524f58aa7760d3d2b330
2021-02-20 00:17:28 +01:00
Sebastiano Barezzi
433318744a
sm8250-common: Decommonize displayfeature HAL
Change-Id: Id3262d81330c2c557b95078e29beebd86f8d0aa0
2021-02-19 23:48:20 +01:00
Sebastiano Barezzi
ab46ebb536
sm8250-common: Import mi_thermald
* From lmi-user 11 RKQ1.200826.002 V12.2.4.0.RJKMIXM release-keys

Change-Id: I144856d66cc719747119678fdc2b85b4ca5be1e8
2021-02-19 23:08:18 +01:00
Sebastiano Barezzi
5ee669c101
sm8250-common: Build QTI thermal HIDL
Change-Id: Id8d468198cef11a67cd40a93a3c50de7185bec43
2021-02-19 23:08:18 +01:00
Sebastiano Barezzi
d333e8805b
sm8250-common: Use prebuilt gralloc libs
* Fixes the following issue:
02-15 08:36:20.560   882   882 E qdgralloc: GetGpuPixelFormat: No map for format: 0x72656666
02-15 08:36:20.560   882   882 E AdrenoUtils: <validate_memory_layout_input_parmas:1962>: Unknown Format 0
02-15 08:36:20.560   882   882 E AdrenoUtils: <adreno_init_memory_layout:4689>: Memory Layout input parameter validation failed!
02-15 08:36:20.560   882   882 E qdgralloc: GetGpuResourceSizeAndDimensions Graphics metadata init failed
02-15 08:36:20.560   933  1040 E GraphicBufferAllocator: Failed to allocate (1440 x 1080) layerCount 1 format 1919247974 usage 6d69546c61655b5f: 1
02-15 08:36:20.560   933  1040 E BufferQueueProducer: [SurfaceView - org.lineageos.snap/com.android.camera.CameraActivity#0](id:3a500000028,api:4,p:1220,c:933) dequeueBuffer: createGraphicBuffer failed
02-15 08:36:20.560  1220 10451 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Out of memory (-12)

Change-Id: Idf8b232020e1b19fbe339768b9fdd88e88e2ccf0
2021-02-15 18:54:38 +01:00
Sebastiano Barezzi
e668167ef1
sm8250-common: Add additional gralloc usage bit for camera
Change-Id: Ie0a4c25ce86fa23ee90ef1441aa9a1b053fff785
2021-02-15 18:54:38 +01:00
Sebastiano Barezzi
1093d57bb0
sm8250-common: parts: Enable FOD service with prop
Change-Id: I570e00d8f25900fd9484083c0b661acb407a5931
2021-02-15 18:54:37 +01:00