Commit Graph

109 Commits

Author SHA1 Message Date
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
TheScarastic
3d6e8c0036
sm8250-common: parts: Add FOD service
Change-Id: Ibc4ec25057d260e2dba9c221f0c79e6485ddf56d
2021-02-15 18:54:37 +01:00
Sebastiano Barezzi
131c25c742
sm8250-common: Import XiaomiParts from sdm845-common
* From commit beba0fc
* Kill Dirac and thermal stuff

Change-Id: I35edd8aa2698ba510d94285149d3e7a6c9ec7c52
2021-02-15 18:54:37 +01:00
TheScarastic
b4c826232c
sm8250-common: Initial hardware/xiaomi based FOD implementation
Change-Id: Idfd24c3dc96c442438a1cbafc64c344d9138180c
2021-02-15 18:54:37 +01:00
Sebastiano Barezzi
b413a1f435
sm8250-common: Declare notification LED capabilities
Change-Id: I89dab65991abcce2bcad52d65bdeb31fa637f334
2021-02-15 18:54:37 +01:00
Sebastiano Barezzi
7e58c6f7d8
sm8250-common: audio: Add wired headphones configuration
* Extracted from instantnoodle

Change-Id: If38f646e816a9233ea23245ffaa42f73c73c922b
2021-02-15 18:54:36 +01:00
Sebastiano Barezzi
e2679f7a74
sm8250-common: Build LiveDisplay HIDL
Change-Id: I6b767fe2269b679438c8fc0c49ceef9110a96a23
2021-02-15 18:54:36 +01:00
Sebastiano Barezzi
d65dfb692e
sm8250-common: media: Remove unsupported codecs
Change-Id: Ifcf19bfecb3a774b75667e0a4484fa8f6b298296
2021-02-15 18:54:36 +01:00
Dan Pasanen
bdbc0d65e4
sm8250-common: Reserve additional space on odm/product/system/system_ext/vendor
This is a squash of the following:

Author: Dan Pasanen <dan.pasanen@gmail.com>
Date:   Sat Oct 19 00:06:11 2019 -0500

    floral: Reserve additional space on system/product/vendor

    Change-Id: Iacd45444dd0d3f423314a8edb243370600f37cdb

Author: Nolen Johnson <johnsonnolen@gmail.com>
Date:   Sun Aug 16 03:27:34 2020 +0530

    floral: Don't reserve space for gapps WITH_GMS

    Change-Id: Ie95b32654772622f7a061947c252b09a45db8fdd

Author: LuK1337 <priv.luk@gmail.com>
Date:   Sun Sep 6 14:51:31 2020 +0200

    floral: Don't limit system inode count when !WITH_GMS

    Change-Id: I458edd755fa436feadeb9f5fb2aecb0da797b0ef

Author: Eamon Powell <eamonpowell@outlook.com>
Date:   Fri Jan 1 11:59:38 2021 +1100

    floral: Adjust reserved partition space

    * Increase reserved partition space for vendor and add reserved
      partition space for system_ext so both partitions can be
      written to, regardless of GMS presence.

    * Increase product reserved partition space so smaller addon
      packages that write to the product partition like MindTheGapps
      can be installed.

    * Increase the amount of available space on the system partition
      so the user can optionally choose to install other addon packages
      that write to the system partition such as OpenGapps.

    Change-Id: I8d3ecca3980d50621f960fd7dff22ba40f495fee

[SebaUbuntu] Always reserve at least 30MB on each partition

Change-Id: I0382f5070751ef4d1be0e48bb89c7abb7eba22c6
2021-02-15 18:54:36 +01:00
Sebastiano Barezzi
addecd1b2d
sm8250-common: Add missing interfaces in manifest
Change-Id: Iea236a92a6edd66b55f9d69a3a0eb86e1a84e709
2021-02-15 18:54:36 +01:00
Sebastiano Barezzi
acb43a1dde
sm8250-common: Initial lineage-sdk overlays
* Define hardware keys and add fastbootd to advanced reboot

Change-Id: I9d2728eeeef5c72488824670d2a4c2bde5db7d51
2021-02-15 18:54:36 +01:00
Sebastiano Barezzi
a53c754539
sm8250-common: Import CarrierConfig from CAF
* From LA.UM.9.12.r1-10300-SMxx50.0

Change-Id: Iac0ff2be55bb3b8a942e450010bf90776a6c5733
2021-02-15 18:54:36 +01:00
Sebastiano Barezzi
2f9aa86153
sm8250-common: Initial AOSP overlay
* Extracted from lmi-user 11 RKQ1.200826.002 V12.2.4.0.RJKMIXM release-keys

Change-Id: I3e54076c21bc06a2cbefb15d40e73d7bc50edb18
2021-02-15 18:54:35 +01:00
Sebastiano Barezzi
c5b104ab5b
sm8250-common: Import WifiResTarget from stock
* From lmi-user 11 RKQ1.200826.002 V12.2.4.0.RJKMIXM release-keys

Change-Id: Icfd70a632425aec908b2189710ecf31ee21449cc
2021-02-15 18:54:35 +01:00
Sebastiano Barezzi
b93af39cf6
sm8250-common: Initial build properties
Change-Id: I69c601e7899774d7d23853486404c4638c0b0f63
2021-02-15 18:54:35 +01:00
Sebastiano Barezzi
8b3ab991cb
sm8250-common: Reboot to recovery if init fails
Change-Id: I1d8f38620caa7b003911ff30f69ed7973c100e6d
2021-02-15 18:54:35 +01:00
Sebastiano Barezzi
9213e70145
sm8250-common: Kill AVB on fstab
Change-Id: Ie2aeb32701a2052cf8f372ef5aecc21840db6bb0
2021-02-15 18:54:35 +01:00
Sebastiano Barezzi
71e727030b
sm8250-common: Define recovery fstab
Change-Id: If6eeb10239ebe07decfed311d4f70661415c4a8e
2021-02-15 18:54:35 +01:00