54 Commits

Author SHA1 Message Date
Sebastiano Barezzi
214de489e0
sm6250-common: Drop QTI camera device usage
* qcom-camera topic hasn't been ported to 19.1
* Keep building vendor.qti.hardware.camera.device@1.0 interface lib, IMS stack and possibly camera HAL still needs it

Change-Id: I87bcd5b54ad986d5844df50de243fc1a18507198
2022-06-10 18:56:56 +01:00
Sebastiano Barezzi
b6ffec238a
sm6250-common: Add power AIDL DT2W support via sysfs node
Change-Id: Idcff758444a5c89ba20f2ae804a407ee78c445cb
2022-06-10 18:56:54 +01:00
Sebastiano Barezzi
0f2706fdbf
sm6250-common: Drop power AIDL extension
Change-Id: Ied144ee0f7840ab43499d43f3d0c64dfd414d99f
2022-06-10 18:56:54 +01:00
Alexander Winkowski
6bef2ba651
sm6250-common: Update blobs from V12.5.5.0.RJWINXM
Change-Id: Id7856c2376aaa7090625a8c93f641c339441cb50
2022-05-17 13:30:48 +00:00
Alexander Winkowski
6a0edfb87a
sm6250-common: Build LiveDisplay
Change-Id: I05d9aaea5177f005885194c94b08642024bdc623
2022-04-14 20:16:50 +01:00
Alexander Winkowski
49c7ddc218
sm6250-common: Switch back to the default sepolicy path
This reverts commit 1379e4ef1725d84e816ea39ac68f453a90477a1f.

Change-Id: I1f05b4040d7e3e28a718e92aa40532e2afa84780
2022-02-23 17:59:03 +00:00
Chenyang Zhong
1379e4ef17
sm6250-common: update qcom sepolicy include path
Change-Id: Ia3aa7efb75c86921fd10a23180ed95259798970e
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-01-02 05:35:31 +00:00
Alexander Winkowski
64688290d4
sm6250-common: Adapt for Pixel Experience
Change-Id: Iaa035b171c96ba36c92f59d29b0b5dc0fd53473c
2022-01-02 05:35:26 +00:00
Alexander Winkowski
6c3fad175c
sm6250-common: Switch to uncompressed kernel image
Change-Id: Ia5830b38a2d882abab9df87d6c1e6e674eeb0c51
2022-01-01 05:42:11 +00:00
Aaron Ding
b68ae9202c
sm6250-common: change TARGET_ARCH_VARIANT to armv8-a
Bug: 158427009
Test: Build and Boot Pass
Change-Id: Ia1127679815e7778b418e44dd3acafc8ca026fe2
2021-12-31 15:40:29 +00:00
Alexander Winkowski
b68c6447fa
sm6250-common: Add a shim to silence prebuilt audio HAL
For some reason Xiaomi built audio HAL with "very very verbose logging"
enabled [1] and it spams really too much. Until Xiaomi builds audio HAL
with sane logging level or a way to resolve OSS audio HAL issues is
found, just shim the whole log function to return nothing.

[1] https://github.com/LineageOS/android_hardware_qcom_audio/blob/c659e83702/hal/audio_hw.c#L41

Co-authored-by: Jan Engelmohr <jan.engelmohr@mailbox.tu-dresden.de>
Change-Id: Iff278c44f203dc7b81bccb2281edfc3f5687a47c
2021-12-31 15:37:44 +00:00
Alexander Winkowski
6dcf5c2248
sm6250-common: Update blobs from V12.5.1.0.RJWMIXM
Change-Id: I38a50bdefebe3074266f02e8fb3ab30043a72dc7
2021-12-31 15:36:44 +00:00
Roger Ellis
96eb6668ba
sm6250-common: Add exclusion for vendor ELF prebuilts
- ELF prebuilts were banned in PRODUCT_COPY_FILES starting May 11.
 - Adding BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true to
BoardConfig.mk temoporarily.
 - See b/156534160 for long-term fix which should override this change.

Test: Build
Bug: 156534160
Change-Id: I7d80798d3b2d3818bc835fcede21de2e7ab04735
2021-12-26 16:43:26 +00:00
George Zacharia
cf9e7d64fb
fixup! sm6250-common: Define partition rules
We need to account for overhead size
Currently set to 4MB as per docs[1]

[1] https://source.android.com/devices/tech/ota/dynamic_partitions/implement#board-configuration-changes

Change-Id: I4c5b696a07ec18b7d717aea0caba08b0dc646c0d
2021-12-21 15:46:39 +00:00
Alexander Koskovich
34dcc11300
sm6250-common: Remove vendor RenderScript implementation.
* RenderScript is deprecated on newer platforms and
   is being officially replaced.

 * On April 19, 2021, Google announced that RenderScript
   will be deprecated in Android 12, and recommended
   porting existing code to Vulkan.

   https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html

Change-Id: I19460ef266a646b046f1e7d2f0b4eab7c48ae536
2021-09-23 18:42:57 +02:00
Alexander Winkowski
a99d14b726
sm6250-common: Move LineageOS HALs to a separate compatibility matrix
Change-Id: If2f6d49cfc8609e15bc1ce5d725f54cdb91c5a4e
2021-09-09 18:46:36 +02:00
Alexander Winkowski
c653ce51be
sm6250-common: Pull SELinux policy from Xiaomi SM8250 tree
Change-Id: I83dce3c678f796034fd39947414c8067d338edf2
2021-09-09 18:46:35 +02:00
Jimmy Chen
18066f4ebc
sm6250-common: wifi: move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: Icea6361942873b5177c5fa59f9628c3b383b4509
2021-09-09 18:46:32 +02:00
Sebastiano Barezzi
bad4e02fbf
sm6250-common: Build Wi-Fi stack
Change-Id: I2e99bb95cbcdb2fdb652e20bb1e9e55b53cab2eb
2021-09-09 18:46:31 +02:00
Volodymyr Zhdanov
ff31615379
sm6250-common: Build RenderScript HAL from source
Change-Id: I3c2451d6d3ead4d4ef364523c0617bf1ce5af33f
2021-09-09 18:46:28 +02:00
Bruno Martins
0e4b40db0a
sm6250-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
2021-09-09 18:46:25 +02:00
Sebastiano Barezzi
6fae12a724
sm6250-common: Build FM libs
Change-Id: If5d73c3a142f44f3b9af69dbe287c362117c254e
2021-09-09 18:46:19 +02:00
Sebastiano Barezzi
f0c75277aa
sm6250-common: Build DRM HIDL
Change-Id: I51a46b9dd23b4de19708ad8ffbfba7f939230238
2021-09-09 18:46:17 +02:00
Sebastiano Barezzi
e0a9f12805
sm6250-common: Build display stack
Change-Id: I42bdf9aad5f6619469c5e11487b92b1837dd252d
2021-09-09 18:46:17 +02:00
PIPIPIG233666
1dd5cac91d
sm6250-common: Disable UBWC
Change-Id: If28a6bce43640b854a66b51944575a892da6bdbc
2021-09-09 18:46:16 +02:00
Sebastiano Barezzi
d0046db961
sm6250-common: Build camera libs
Change-Id: I9b5d730c54018614c8e28a946a1d234663339b0c
2021-09-09 18:46:16 +02:00
Sebastiano Barezzi
c9751304db
sm6250-common: Commonize bluetooth config
Change-Id: I44a7841dfef8fe399d242c0de8475bda9f11664a
2021-09-09 18:46:16 +02:00
Bruno Martins
3f85485d2d
sm6250-common: Build opensource soundtrigger HAL
Change-Id: I956d53a67841a9e1e296de6b73f08ef2efac7470
2021-09-09 18:46:12 +02:00
Sebastiano Barezzi
7723d44913
sm6250-common: Build audio stack
Change-Id: Id1e28604c0c83093e309656a2059c517084984f5
2021-09-09 18:46:12 +02:00
Alexander Winkowski
4a2375f2bc
sm6250-common: rootdir: Import rootdir files
* From curtana-user 11 RKQ1.200826.002 V12.0.4.0.RJWMIXM release-keys

Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ibcf71853e6d45b4ca6948f5267f2af26bf8b812a
2021-09-09 18:46:05 +02:00
David Ng
e5bcbf6389
sm6250-common: Add common config.fs AID/fs configuration file
Common config.fs/$TARGET_FS_CONFIG_GEN AID/fs configuration
file for all chipset inheriting from base.mk.

Since legacy device-specific android_filesystem_config.h and
config.fs do not co-exist, temporarily include config.fs only
if legacy file is absent.  Once all legacy, device-specific
files have been deleted, config.fs can be made unconditional.

Change-Id: Ie100d0cd9db808b82d99be7139f0709390c7f3a2
2021-09-09 18:46:04 +02:00
Demon000
3e433303bf
sm6250-common: Inherit proprietary blobs
Change-Id: Ib182c1a70449097e332c1233c7909fc419b65091
2021-09-09 18:46:00 +02:00
Shivaprasad Hongal
5c18a2d726
sm6250-common: avb: Compile recovery image as a chain partition
Add AVB flags to compile recovery image
as a chained partition. This is required
for safe OTA when multislot support is
not present.

Change-Id: I1115eba4038e6fcaa61440846a25861366996ed4
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
2021-09-09 18:45:59 +02:00
Nolen Johnson
8b15fb7dae
sm6250-common: Simplify AVB flag logic
* AVB's `--flags 3` argument builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Change-Id: Ibe9ee322a5af58f13e76d53e18dee49451fe8838
2021-09-09 18:45:59 +02:00
Christian Oder
c9394889aa
sm6250-common: Build disabled VBMeta image
Partitions that use vbmeta_system can be found by looking at
avb flag in fstab from boot ramdisk.

--flags 2 makes the verification function of avb always return a
positive result.

--set_hashtree_disabled_flag builds the vbmeta images with the
HASHTREE_DISABLED bit set and as a result they don't need to manually
disable dm-verity via e.g. 'adb disable-verity'.

The rest of the configuration is taken from
https://source.android.com/devices/tech/ota/dynamic_partitions/implement#avb-configuration-changes

Change-Id: I381feef8f6fefc8449ca50d85d704b67bcc8a77e
2021-09-09 18:45:59 +02:00
Demon000
aab5ab4811
sm6250-common: Include qcom sepolicy
Change-Id: Iaf54a187cda5e6921b791031fa2132a91a62d184
2021-09-09 18:45:59 +02:00
Demon000
86f966abab
sm6250-common: Define security patch level
Can be found by checking the value of ro.vendor.build.security_patch
on stock.

Change-Id: I1d4a8bb4a5b6fdb4d1213fab0ea5e19eb7904ff7
2021-09-09 18:45:59 +02:00
Demon000
16b28c14ac
sm6250-common: Define vendor RIL service usage
This can be checked by looking for a rild service in system.
If it's missing, then a vendor ril service is being used, in
our case, it is qcrild.

Change-Id: I5378de6eec4ff2511a49c19c0fc474658efe338f
2021-09-09 18:45:58 +02:00
XiNGRZ
d0df23cd8c
sm6250-common: releasetools: Add dtbo image to the output zip if present
Change-Id: I8bb4da99945eceae3beab77489e6b9e2a47ab972
2021-09-09 18:45:58 +02:00
Demon000
76fd1493b6
sm6250-common: Specify recovery flags
Change-Id: I203a86d59908b96ab90f1599f3426ba4ebd8ba26
2021-09-09 18:45:58 +02:00
Alexander Winkowski
28e76b69d4
sm6250-common: Initial build properties
* From curtana-user 11 RKQ1.200826.002 V12.0.4.0.RJWMIXM release-keys

Change-Id: I6898416bacc3ebde9938f9a9cd455d90e3dcef0a
2021-09-09 18:45:57 +02:00
Sebastiano Barezzi
b6871b71e6
sm6250-common: Declare BOARD_VENDOR
* Needed for xiaomi-perfmgr power AIDL guards

Change-Id: I54f2377ac529053906ee4dbdc16def74c8ed80fc
2021-09-09 18:45:56 +02:00
Alexander Winkowski
1f48e70a82
sm6250-common: Add platform flags
Change-Id: I06431ef5fb73eceda5bbff8706d45303fe6f5aab
2021-09-09 18:45:56 +02:00
Volodymyr Zhdanov
e7b68cf01e
sm6250-common: Reserve some space in dynamic partitions
Change-Id: If5546e4459da7408932c797d1c239b6442f96dd7
2021-09-09 18:45:56 +02:00
Demon000
fab0daa3bd
sm6250-common: Define partition rules
Partition sizes can be found by query-ing sysfs.
For example, for super partition.

> ls -la /dev/block/by-name/super
lrwxrwxrwx 1 root root   16 1970-03-23 06:51 super -> /dev/block/sda17
> cat /proc/partitions | grep sda17
 259        1    8388608 sda17

The size needs to be multiplied by the block size used by
/proc/partitions, which is 1024 bytes.

Logical partitions found inside the physical super partition
can be found by looking for entries with the logical flag in the
fstab inside boot ramdisk.

Change-Id: Ic65df8e093a601e3f603c40174b116b20072ee27
2021-09-09 18:45:56 +02:00
Albert I
af4ac57c6e
sm6250-common: Use as many LLVM tools as possible
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3cff2a996944d8fe354859fa51b71d21475c3972
2021-09-09 18:45:56 +02:00
Demon000
f874e702d7
sm6250-common: Define kernel rules
Change-Id: Iba6e0617d69a6c1ef2266dddf551613e5876aa56
2021-09-09 18:45:55 +02:00
Sebastiano Barezzi
27c7899680
sm6250-common: Initial variant handler libinit
* This libinit has been made to commonize device variants props handling

[dereference23: Adapt for Xiaomi SM6250]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Iab68ff451ab1d6e861fb4cda4ef07fad3123ecde
2021-09-09 18:45:55 +02:00
Alexander Winkowski
223d20e8cd
sm6250-common: Add framework compatibility matrix
* Generated with https://gist.github.com/SebaUbuntu/ec053a00a9988eaea091fb1cc1f19324

Change-Id: Ic40d19adb0d47a52c4b82eb71bb60ddaff76548d
2021-09-09 18:45:55 +02:00
Alexander Winkowski
fee6e4e2c5
sm6250-common: Import compatibility matrix and manifest
* From mojito-user 11 RKQ1.201022.002 V12.5.2.0.RKGMIXM release-keys

Change-Id: I9ffb0687e0f8bdfdec3253f198a6e08b93543a01
2021-09-09 18:45:54 +02:00