Commit graph

125 commits

Author SHA1 Message Date
dodyirawan85 f221093e08 X6833B: Configure NVRAM stack
Refs: c94ea4a3cc

Co-authored-by: electimon <electimon@gmail.com>
Co-authored-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:12:55 +07:00
Josh Wu 3bd5cb997b X6833B: Switch BtAudio to AIDL
Test: m
Bug: 203490261

Change-Id: I80eced28790a15ad5485c9780ccf5812ab75dc1d
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:12:42 +07:00
bengris32 94e76e82af X6833B: Import Bluetooth A2DP blobs
* Dependency of Audio stack.

Change-Id: I99c0a380f2ef37df8a6186eab67897e5ddea3019
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:12:42 +07:00
dodyirawan85 2bd6390627 X6833B: Configure Bluetooth stack
Refs: 8162996196

Co-authored-by: electimon <electimon@gmail.com>
Co-authored-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:12:28 +07:00
dodyirawan85 f401f30c14 X6833B: Configure Sensors stack
Refs: 3bf7b31611

Co-authored-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:11:38 +07:00
bengris32 8551890ccc X6833B: Switch to prebuilt libwifi-hal
* Reference: https://github.com/moto-common/android_device_mediatek_common/tree/master/vendor/wlan

* Perhaps it will help with the Wi-Fi scanning issues,
  and intermittent disconnections we're having. Besides,
  we can't legally use the OSS one anyway.

Change-Id: I9bbf289ad88a12bbdc68ab0abdee410678bf1420
Co-authored-by: electimon <electimon@gmail.com>
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:11:18 +07:00
dodyirawan85 5a3219062d X6833B: Configure Wi-Fi stack
Refs: c0fb62cdc9

Co-authored-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:11:17 +07:00
dodyirawan85 c2abe75e9d X6833B: Configure TEE stack
Refs: fc96a49e41/proprietary-files.txt (L2218)

Co-authored-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:10:59 +07:00
dodyirawan85 3bdc1968d8 X6833B: Configure keymint stack
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:10:39 +07:00
dodyirawan85 59562c7f2d X6833B: Configure keymaster stack
Refs:
  https://github.com/nashc-dev/android_device_realme_nashc/tree/lineage-20
  8488358d93

Co-authored-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:10:38 +07:00
dodyirawan85 626802d56e X6833B: Configure Gatekeeper stack
Reference: 92e9728591

Co-authored-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:10:19 +07:00
bengris32 36ca054d30 X6833B: Build android.hidl.allocator@1.0 vendor variant
* Dependency of PQ HAL.

Change-Id: I6050c49755c93ac24f62ca7ea0f0a1ea96e477cd
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:10:19 +07:00
Davide Garberi 06bf29b379 X6833B: Add libhwbinder and libhidltransport vendor lib
Change-Id: I7044b92fe012ace6005e1a3ae8534e9167da15ce
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:10:19 +07:00
dodyirawan85 1d3a267c6b X6833B: Configure audio stack
* References
  8e94cbd6b0
  https://github.com/xiaomi-mt6789-devs/android_device_xiaomi_yunluo/blob/lineage-20/Android.mk

Co-authored-by: electimon <electimon@gmail.com>
Co-authored-by: bengris32 <bengris32@protonmail.ch>
Co-authored-by: Woomymy <woomy@woomy.be>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:08:53 +07:00
dodyirawan85 820687dc8a X6833B: Configure Perf/Power stack
Refs: https://github.com/nashc-dev/android_device_realme_nashc/tree/lineage-20

Co-authored-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:08:33 +07:00
SamarV-121 c1d70a0738 X6833B: Link older libutils for PQ HAL
* Abort message: 'incStrongRequireStrong() called on 0xb400007c5afa7250 which isn't already owned'

Change-Id: I7ea86d3d7c68ba183b4838cb1f35a9fc58cfbf67
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:03:31 +07:00
dodyirawan85 5ca665b1a5 X6833B: Configure Display Stack
* Reference
  cbfb355770
  https://github.com/xiaomi-mt6789-devs/android_device_xiaomi_yunluo/tree/lineage-20 (Lib symlinks)

Co-authored-by: electimon <electimon@gmail.com>
Co-authored-by: bengris32 <bengris32@protonmail.ch>
Co-authored-by: Woomymy <woomy@woomy.be>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:03:04 +07:00
dodyirawan85 155ab29290 X6833B: Import vendor firmware blobs
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 08:59:02 +07:00
dodyirawan85 17b307a980 X6833B: Import device manifest from stock
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 08:57:51 +07:00
SebaUbuntu a103d7499c X6833B: Add a script to reorder blobs list
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 02:10:36 +07:00
dianlujitao 48e7f75d49 X6833B: update-sha1sums: Handle line with opts
Change-Id: Ia41000b36f3535a3cf0ef8d7650d0d540de728de
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 02:10:36 +07:00
dianlujitao 070e5ca3bc X6833B: update-sha1sums: Better handle line breaks
Change-Id: I15cfda82a5bc6f05c0d7b9db209064ba498dac11
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 02:10:36 +07:00
dianlujitao 0e310f4b18 X6833B: Format update-sha1sums.py with yapf
Change-Id: I396ad6d79ea6e47ba8b9a56da317123c7579aa67
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 02:10:36 +07:00
Bruno Martins f7c52faf7f X6833B: Add unpinning support to update-sha1sums.py script
Change-Id: I9035b449cea6d78927a459dc247075b3d4512e46
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 02:10:36 +07:00
LuK1337 ba84c1e629 X6833B: Handle moved blobs in update-sha1sums.py script
Change-Id: Iccab8c8620c7ff680768aac2d9cbf5b5067af8d7
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 02:10:36 +07:00
LuK1337 e45ec37c4f X6833B: Add script to update sha1sums of kanged blobs
Change-Id: Id2e8cfb8d3b6f65f69c91a89bacd615fdcc45753
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 02:10:28 +07:00
dodyirawan85 673758727a X6833B: Define screen density
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
Woomymy 23230d0990 X6833B: Install generated kernel headers from X6833B-kernel
* When generating kernel includes, lineage's generator was using kernel
  source from kernel/infinix/x6833b. Use kernel headers generated by the
  kernel build system instead (kernel-headers.tar.gz) and a Makefile to
  copy them during `make headers_install`.

Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I2c3972604822ce89201d8a317292cd045e77c705
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
dodyirawan85 9e3ab39265 X6833B: rootdir: Build fstab to vendor
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
dodyirawan85 fa8f6e4d47 X6833B: rootdir: Cleanup non-existance and unused service import
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
Sushrut1101 35cb24fd47 X6833B: Replace ro.vendor.init.sensor.rc with full path
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
dodyirawan85 992874ff2b X6833B: rootdir: Replace ro.vendor.rc with full path
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
dodyirawan85 b38e1df29a X6833B: rootdir: Drop undefined tran_factory_reset service
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
dodyirawan85 5103b6e0df X6833B: Import rootdir from 231102V2897
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
dodyirawan85 ac8af3424c X6833B: Allow duplicate and copy prebuilt elf rules
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
dodyirawan85 1f96867457 X6833B: Kang init usb recovery from yunluo
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
dodyirawan85 e088d86d5d X6833B: Configure odm_dlkm partition
* Also reorder `AB_OTA_PARTITIONS` and `BOARD_MTK_DYNAMIC_PARTITIONS_PARTITION_LIST`  list while we're at it

Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
dodyirawan85 f559c6e678 X6833B: rootdir: Convert to blueprint configuration
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
Woomymy 3ca34aee0d X6833B: Build update_engine_sideload
* Required to sideload updates in recovery

Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: Ia6b02f099ae6ffbe60d92dcb8d59e8e1e073f062
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
Woomymy cdcb0b652a X6833B: device: Use 6GB Dalvik heap configuration
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I88dfc4f139414de43d42ef97dc0b883fd7dc2081
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
Luca Stefani fcae87f206 X6833B: Enable updatable APEX
Change-Id: Iae629b36fdacec47744b8132dd6699a2ea9c68ff
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
Woomymy fc8e3d288f X6833B: Enable userspace reboots
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I94bf051477e4dd84660603bb598fefa4fb384ed4
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
Daniel Rosenberg 1247d88371 X6833B: Enable Project ID Quota support on userdata.
* These features enable wide inodes on userdata, which
   is required for project ID quotas. Wide inodes can
   only be set at MKFS time.

 * This also enables casefolding, which is required for the
   removal of SDCardFS.

Bug: 138321217
Test: Examine filesystem features for project quota and wide inodes.
Change-Id: I9c17cda2af34c6fbd73c2d90eb6b465f4939df67
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
Woomymy f6b3a1566a X6833B: Install developer gsi keys
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I3d4a330788e32d8ba967420c602436f882a26b92
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
Woomymy 57c9f55335 X6833B: Inherit generic_ramdisk product
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I93e080fd483d88be3a389a0ac64542ee04298f03
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:45 +07:00
bengris32 4c74de02a9 X6833B: Switch to AOSP Boot implementation
* We can no longer use the MediaTek boot control implementation
  due to legal issues. Switch to the AOSP one.

Change-Id: I1d983fd7148ca40a00c3cf21b6773d2c5ecb78f4
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 163424c5da X6833B: Add system_ext to dynamic partitions
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: Ia7fb66843e67e131e0368b2d3c7c678eb5f29994
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
bengris32 41204d107a X6833B: Build VBMeta image with --set_hashtree_disabled_flag
* This is equivalent to building with --flags 1, which just
  disables hashtree verification. This is enough for the bootloader
  to pass "androidboot.vbmeta.device_state=unlocked androidboot.veritymode=disabled"
  in the kernel command line, which is what we wanted this entire time.

* As explained in an earlier commit, any image with flags 3 will cause
  the bootloader to totally break, which is why we must use flags 1
  instead. Besides, flags 1 does exactly what we want it to now.

* PS: MediaTek fix your stupid bootloader

Change-Id: I7b9e5f7181f1b861bb416329ad90725fd6ec2c39
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
bengris32 f744f4b3cf X6833B: Re-configure AVB flags to match stock
* We have a very, very broken bootloader. LK is extremely
  fussy about our AVB setup, and if either --flags 3 is set
  (hashtree verification disabled), or the wrong AVB algorithm
  is used, it will cause the bootloader to crash shortly after
  loading the boot image, which can be seen from the bootloader logs:

* [1111] [avb] img_auth_required = 0
  [1116] invalid pubk size
  [1116] avb_slot_verify.c[1116] :[1116] 851[1116] : ERROR: [1116] vbmeta_a[1116] : Public key used to sign data rejected.
  [1370] [AVB20] malloc: heap size not enough
  [1370] avb_util.c[1370] :[1370] 224[1370] : ERROR: [1370] Failed to allocate memory.
  [1370] [avb] boot/recovery vfy time = 270 ms
  [1370] mblock_create mblock start: 0xb0c00000 size: 0x8c00000 name: avb
  [1371] [avb] avb_ret = 1
  [1371] [avb] ret = 0
  [6694] panic (caller 0x4822b7f1): ASSERT at (platform/common/boot/boot_info.c:616): g_boot_info.hdr_loaded

* Re-enable hashtree verification and match the AVB algorithm
  with what MediaTek does on stock. Also create vbmeta images
  for system, product and vendor partitions since that is done
  as well. Use test keys for signing to make our lives easier.

* Also change BOARD_AVB_RECOVERY* to BOARD_AVB_BOOT*, AVB
  recovery flags are no-ops on A/B devices since the recovery
  ramdisk is in the boot image, so we should be enabling
  chained vbmeta for boot instead.

Change-Id: I66c03f819178d00db956095e835e8e304ab1aab7
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
dodyirawan85 406ee82a5f X6833B: Use ext4 for vendor_dlkm
* Match stock configuration

Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00