Skip to content

Commit 7908b40

Browse files
committed
Merge some upstream updates
Signed-off-by: engstk <eng.stk@sapo.pt>
1 parent 12e4ca6 commit 7908b40

File tree

5 files changed

+52
-19
lines changed

5 files changed

+52
-19
lines changed
File renamed without changes.

BoardConfig.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ TW_NO_SCREEN_BLANK := true
9595
TW_USE_TOOLBOX := true
9696

9797
# Encryption
98-
PLATFORM_SECURITY_PATCH := 2025-12-31
98+
PLATFORM_SECURITY_PATCH := 2099-12-31
9999
TW_INCLUDE_CRYPTO := true
100100
TW_INCLUDE_CRYPTO_FBE := true
101101

@@ -110,3 +110,5 @@ TW_Y_OFFSET := 80
110110
TW_H_OFFSET := -80
111111
TW_HAS_EDL_MODE := true
112112
TW_NO_USB_STORAGE := true
113+
PLATFORM_VERSION := 18.0.0
114+
TW_INCLUDE_RESETPROP := true

device.mk

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,38 @@
11

22
LOCAL_PATH := device/oneplus/enchilada
33

4-
# Getting this to build in my local omni tree proved quite difficult so just using a prebuilt update_engine_sideload for now.
5-
# Oddly enough, OnePlus stock recovery does not include an update_engine_sideload binary either.
4+
# define hardware platform
5+
PRODUCT_PLATFORM := sdm845
6+
7+
#TEST
8+
# A/B support
9+
PRODUCT_PACKAGES += \
10+
otapreopt_script \
11+
cppreopts.sh \
12+
update_engine \
13+
update_verifier \
14+
update_engine_sideload
15+
16+
PRODUCT_PACKAGES += \
17+
bootctrl.sdm845
18+
19+
AB_OTA_POSTINSTALL_CONFIG += \
20+
RUN_POSTINSTALL_system=true \
21+
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
22+
FILESYSTEM_TYPE_system=ext4 \
23+
POSTINSTALL_OPTIONAL_system=true
24+
625
# Enable update engine sideloading by including the static version of the
726
# boot_control HAL and its dependencies.
8-
#PRODUCT_STATIC_BOOT_CONTROL_HAL := \
9-
# bootctrl.msm8998 \
10-
# libsparse
27+
PRODUCT_STATIC_BOOT_CONTROL_HAL := \
28+
bootctrl.sdm845 \
29+
libgptutils \
30+
libz \
31+
libcutils
32+
33+
34+
# Boot control HAL
35+
PRODUCT_PACKAGES += \
36+
android.hardware.boot@1.0-impl \
37+
android.hardware.boot@1.0-service
1138

12-
#PRODUCT_PACKAGES += \
13-
# update_engine_sideload

omni_enchilada.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@ $(call inherit-product, device/oneplus/enchilada/device.mk)
2929
PRODUCT_DEVICE := enchilada
3030
PRODUCT_NAME := omni_enchilada
3131
PRODUCT_BRAND := OnePlus
32-
PRODUCT_MODEL := OnePlus A6003
32+
PRODUCT_MODEL := OnePlus A6000
3333
PRODUCT_MANUFACTURER := OnePlus
3434

3535
PRODUCT_BUILD_PROP_OVERRIDES += \
3636
PRODUCT_NAME=OnePlus6 \
3737
BUILD_PRODUCT=OnePlus6 \
3838
TARGET_DEVICE=OnePlus6
39+
40+
# HACK: Set vendor patch level
41+
PRODUCT_PROPERTY_OVERRIDES += \
42+
ro.vendor.build.security_patch=2099-12-31
43+

recovery/root/sbin/prepdecrypt.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,26 @@ mount -t ext4 -o ro "$syspath" /s
3232

3333
is_fastboot_twrp=$(getprop ro.boot.fastboot)
3434
if [ ! -z "$is_fastboot_twrp" ]; then
35-
osver=$(getprop ro.build.version.release_orig)
36-
patchlevel=$(getprop ro.build.version.security_patch_orig)
37-
setprop ro.build.version.release "$osver"
38-
setprop ro.build.version.security_patch "$patchlevel"
35+
osver=$(getprop ro.build.version.release)
36+
patchlevel=$(getprop ro.build.version.security_patch)
37+
resetprop ro.build.version.release "$osver"
38+
resetprop ro.build.version.security_patch "$patchlevel"
3939
finish
4040
fi
4141

4242
if [ -f /s/system/build.prop ]; then
4343
# TODO: It may be better to try to read these from the boot image than from /system
4444
osver=$(grep -i 'ro.build.version.release' /s/system/build.prop | cut -f2 -d'=')
4545
patchlevel=$(grep -i 'ro.build.version.security_patch' /s/system/build.prop | cut -f2 -d'=')
46-
setprop ro.build.version.release "$osver"
47-
setprop ro.build.version.security_patch "$patchlevel"
46+
resetprop ro.build.version.release "$osver"
47+
resetprop ro.build.version.security_patch "$patchlevel"
4848
finish
4949
else
5050
# Be sure to increase the PLATFORM_VERSION in build/core/version_defaults.mk to override Google's anti-rollback features to something rather insane
51-
osver=$(getprop ro.build.version.release_orig)
52-
patchlevel=$(getprop ro.build.version.security_patch_orig)
53-
setprop ro.build.version.release "$osver"
54-
setprop ro.build.version.security_patch "$patchlevel"
51+
osver=$(getprop ro.build.version.release)
52+
patchlevel=$(getprop ro.build.version.security_patch)
53+
resetprop ro.build.version.release "$osver"
54+
resetprop ro.build.version.security_patch "$patchlevel"
5555
finish
5656
fi
5757

@@ -101,3 +101,4 @@ relink /v/bin/hw/android.hardware.keymaster@3.0-service-qti
101101

102102
finish
103103
exit 0
104+

0 commit comments

Comments
 (0)