Files
device_realme_nemo/Android.mk
Kuba Wojciechowski 7ccd7cd4ad nemo: Remove oppo logical partitions when necessary
Usually when building full OTAs for dynamic partition devices the whole partition table is removed and recreated, but in vendorless cases lineageos (and basically any other custom rom) has a patch to disable that functionality and
instead just resize the partitions. This, however, breaks the flashing if a new partition is added, because that partition is tried to be resized and, since it doesn't exist, the assert fails. This patch adds another dynamic patch
list to remove Oppo partitions or gracefully fail if it already removed (no assert).

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
Change-Id: I1f316c9f16b20324674b55b29f69dfc8c0d642a5
2025-09-10 22:00:58 +05:30

16 lines
374 B
Makefile

#
# Copyright (C) 2021-2025 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),nemo)
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
$(call add-radio-file,dynamic-remove-oppo)
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
include $(CLEAR_VARS)
endif