Add everything except the recovery folder
This commit is contained in:
parent
509dc6c64a
commit
80396baa27
13 changed files with 330 additions and 0 deletions
11
Android.mk
Normal file
11
Android.mk
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023 The Android Open Source Project
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
|
ifeq ($(TARGET_DEVICE),rtwo)
|
||||||
|
include $(call all-subdir-makefiles,$(LOCAL_PATH))
|
||||||
|
endif
|
||||||
11
AndroidProducts.mk
Normal file
11
AndroidProducts.mk
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023 The Android Open Source Project
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
PRODUCT_MAKEFILES := \
|
||||||
|
$(LOCAL_DIR)/twrp_rtwo.mk
|
||||||
|
|
||||||
|
COMMON_LUNCH_CHOICES := \
|
||||||
|
twrp_rtwo-eng
|
||||||
189
BoardConfig.mk
Normal file
189
BoardConfig.mk
Normal file
File diff suppressed because one or more lines are too long
18
bootimg.mk
Normal file
18
bootimg.mk
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#MKBOOTIMG := device/motorola/rtwo/mkbootimg
|
||||||
|
|
||||||
|
FLASH_IMAGE_TARGET ?= $(PRODUCT_OUT)/recovery.tar
|
||||||
|
|
||||||
|
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(BOOTIMAGE_EXTRA_DEPS)
|
||||||
|
$(call pretty,"Target boot image: $@")
|
||||||
|
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(INTERNAL_MKBOOTIMG_VERSION_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@
|
||||||
|
$(hide) echo -n "SEANDROIDENFORCE" >> $@
|
||||||
|
@echo "Made boot image: $@"
|
||||||
|
|
||||||
|
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(recovery_ramdisk) $(recovery_kernel) $(RECOVERYIMAGE_EXTRA_DEPS)
|
||||||
|
@echo "----- Making recovery image ------"
|
||||||
|
$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(INTERNAL_MKBOOTIMG_VERSION_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@
|
||||||
|
@echo "----- Lying about SEAndroid state to Samsung bootloader ------"
|
||||||
|
$(hide) echo -n "SEANDROIDENFORCE" >> $@
|
||||||
|
@echo "Made recovery image: $@"
|
||||||
|
$(hide) tar -C $(PRODUCT_OUT) -c recovery.img > $(FLASH_IMAGE_TARGET)
|
||||||
|
@echo "Made flashable $(FLASH_IMAGE_TARGET): $@"
|
||||||
42
device.mk
Normal file
42
device.mk
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023 The 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 := device/motorola/rtwo
|
||||||
|
|
||||||
|
# Dynamic partitions
|
||||||
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
||||||
|
|
||||||
|
# fastbootd
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
android.hardware.fastboot@1.0-impl-mock \
|
||||||
|
fastbootd
|
||||||
|
|
||||||
|
# qcom decryption
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
qcom_decrypt \
|
||||||
|
qcom_decrypt_fbe
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
TARGET_RECOVERY_DEVICE_MODULES += \
|
||||||
|
libion \
|
||||||
|
libdmabufheap
|
||||||
|
|
||||||
|
RECOVERY_LIBRARY_SOURCE_FILES += \
|
||||||
|
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so \
|
||||||
|
$(TARGET_OUT_SHARED_LIBRARIES)/libdmabufheap.so
|
||||||
|
|
||||||
|
# Enable Fuse Passthrough
|
||||||
|
PRODUCT_PROPERTY_OVERRIDES += persist.sys.fuse.passthrough.enable=true
|
||||||
BIN
mkbootimg
Normal file
BIN
mkbootimg
Normal file
Binary file not shown.
BIN
prebuilt/dtb.img
Normal file
BIN
prebuilt/dtb.img
Normal file
Binary file not shown.
0
prebuilt/kernel
Normal file
0
prebuilt/kernel
Normal file
6
system.prop
Normal file
6
system.prop
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
ro.display.series=Motorola Edge 40 Pro
|
||||||
|
ro.product.board=kalama
|
||||||
|
ro.board.platform=kalama
|
||||||
|
sys.usb.controller=a600000.dwc3
|
||||||
|
ro.boot.dynamic_partitions=true
|
||||||
|
ro.boot.bootdevice=1d84000.ufshc
|
||||||
8
twrp.dependencies
Normal file
8
twrp.dependencies
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"remote": "TeamWin",
|
||||||
|
"repository": "android_device_qcom_twrp-common",
|
||||||
|
"target_path": "device/qcom/twrp-common",
|
||||||
|
"revision": "android-12.1"
|
||||||
|
}
|
||||||
|
]
|
||||||
29
twrp_rtwo.mk
Normal file
29
twrp_rtwo.mk
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023 The Android Open Source Project
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
# Release name
|
||||||
|
PRODUCT_RELEASE_NAME := rtwo
|
||||||
|
|
||||||
|
# Inherit from those products. Most specific first.
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
||||||
|
|
||||||
|
# Enable project quotas and casefolding for emulated storage without sdcardfs
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
|
||||||
|
|
||||||
|
# Inherit some common TWRP stuff.
|
||||||
|
$(call inherit-product, vendor/twrp/config/common.mk)
|
||||||
|
|
||||||
|
# Inherit device configuration
|
||||||
|
$(call inherit-product, device/motorola/rtwo/device.mk)
|
||||||
|
|
||||||
|
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,device/motorola/rtwo/recovery/root,recovery/root)
|
||||||
|
|
||||||
|
PRODUCT_DEVICE := rtwo
|
||||||
|
PRODUCT_NAME := twrp_rtwo
|
||||||
|
PRODUCT_BRAND := motorola
|
||||||
|
PRODUCT_MODEL := Motorola Edge 40 Pro
|
||||||
|
PRODUCT_MANUFACTURER := motorola
|
||||||
9
vendor.prop
Normal file
9
vendor.prop
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Crypto
|
||||||
|
ro.crypto.allow_encrypt_override=true
|
||||||
|
ro.crypto.dm_default_key.options_format.version=2
|
||||||
|
ro.crypto.volume.metadata.method=dm-default-key
|
||||||
|
ro.crypto.volume.filenames_mode=aes-256-cts
|
||||||
|
ro.crypto.volume.options=aes-256-xts:aes-256-cts:v2
|
||||||
|
ro.security.keystore.keytype=sakv2,gak,sgak,rkp
|
||||||
|
ro.hardware.keystore=mdfpp
|
||||||
|
ro.hardware.gatekeeper=mdfpp
|
||||||
7
vendorsetup.sh
Normal file
7
vendorsetup.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023 The Android Open Source Project
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
add_lunch_combo twrp_rtwo-eng
|
||||||
Loading…
Reference in a new issue