Commit graph

232 commits

Author SHA1 Message Date
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
Woomymy 2648454f4f X6833B: Build a vendor_dlkm image
* vendor_dlkm contains kernel modules that were previously located to
  /vendor/lib/modules and is updatable separately, making us able to
  test kernel modifications faster

* Reference: https://source.android.com/docs/core/architecture/partitions/vendor-odm-dlkm-partition

Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I38f5989d4e5a52bf295add8099f6bf6cb8ea3288
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 538a5a47db X6833B: Build default Health HIDL service and impl
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I41d6d524f88cb67156ba0f536e015cbc0f95f7cd
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 1c19ac55d1 X6833B: Build fastbootD and default fastboot HAL implementation
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I2f4577f6019d00e672ace8da8170ecd3eb92fe99
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 888899f732 X6833B: Build bootctrl into vendor
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: Icdc56ceab2fe3b54c8538574d406dd4ce1f0a5de
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 63c102bfb1 X6833B: Build MTK boot control hal V1.2 in recovery
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I0a8864bc326e83b63de346f685e1a651abb0a1e1
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 5037cc244c X6833B: Fix ota postinstall file systems
* X6833B uses EROFS

Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I693d3f4474ba592919ef815a3c225ce9de1350e5
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy a928b14e91 X6833B: Ensure GSI AVB Keys are moved to vendor ramdisk
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I97ee5fcb14d73bfcd406c6d18d54235d89119bdc
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 5634ef65c7 X6833B: Install fstab.mt6789 into first_stage_ramdisk
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I6a0a98dcd8e5ff73dc8a934d1ea9fe43fd5107ca
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 94c27c1f16 X6833B: Add A/B OTA configuration
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: If5e2f40b6bf55ffa7a62cc67ff3a0b1e8de6d5b3
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 34b1f449e1 [TMP] X6833B: Make SELinux Permissive
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I07a8d77555b7d123535b4b1ef9431b3907e92838
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Sebastiano Barezzi 0c3cdc7d43 X6833B: Enable full VNDK
Change-Id: I74c5cc17c614672aa24bf84b222c36c657693170
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 89cdacccaf X6833B: Define vendor security patch level
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I03ff642961ba273413b547b189d8f31c72446237
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Jyotiraditya 024aa1485a X6833B: Specify AVB recovery flags
Change-Id: I591687c9b7642685601831a16275f34f05b888a1
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Christian Oder 9121d86d51 X6833B: Build disabled VBMeta image
Change-Id: I48e3ff106a2e4e044ed39b86a94f3bc80b93f530
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy bf2a36e7cf X6833B: Add recovery init scripts and required flags
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I6a3b4ba0037d9fec49e8445ed8e615b2d14e8c7f
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy d286f54a21 X6833B: Fix recovery kernel modules instalation
* BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD should contain the
  list of modules loaded with the recovery, but the modules should be
  installed using BOARD_VENDOR_RAMDISK_KERNEL_MODULES

Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I72768f8325017e0f5b969a7eb03ccccbf4b7eae0
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 82ef6c6eac X6833B: Add vendor ramdisk and recovery dlkm configs
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I09cadc101b57511e9441b0ca7349121d2a5521d6
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 91e0624897 X6833B: Inherit virtual ab launch_with_vendor_ramdisk makefile
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: Ie8f796d45b3d303cd784dcc702769d17e075b250
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy dde543333f X6833B: Add partitions configuration
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I9e08db2236376b1132aa3bd8a7abf19aa70ba48c
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
dodyirawan85 da948b70ac X6833B: Add kernel flags
* Kernel is built separatly and placed in device/infinix/X6833B-kernel

Co-authored-by: Woomymy <woomy@woomy.be>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
Woomymy 379954f35c X6833B: Add boot image(s) configuration
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: Ic22269332239db8f3bd770f678f92e9e8da20e7a
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:44 +07:00
bengris32 61dec5aeda X6833B: Define Bootloader and Platform flags
Change-Id: I8a4aad74ec90124cc35847c64d4db23f97af7ad7
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 949b047edd X6833B: Define architecture flags
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:35 +07:00
dodyirawan85 80a9d11b09 X6833B: Initial skeleton tree
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-13 01:10:17 +07:00
dodyirawan85 a3c237ed82 X6833B: Add device specsheet
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-12 23:42:51 +07:00