Files
device_oplus_mt6893-common/Android.mk
Kuba Wojciechowski 84833de9bc RMX3031: 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>
Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Change-Id: Ie5e8fede0723a99e3b026eb740c8c85b5ea740c6
Signed-off-by: ManshuTyagi <himanshut567@gmail.com>
2021-10-10 18:14:06 +05:30

25 lines
773 B
Makefile

#
# Copyright (C) 2021 Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),RMX3031)
$(call add-radio-file,releasetools/dynamic-remove-oplus)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif