Skip to content

Commit

Permalink
fox : twrp_* --> fox_*
Browse files Browse the repository at this point in the history
  • Loading branch information
kelexine committed Feb 13, 2024
1 parent 4a41eb4 commit d18a8a9
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 48 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_ofox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
MAKEFILE_NAME:
description: 'MAKEFILE_NAME'
required: true
default: 'twrp_kelly'
default: 'fox_kelly'
BUILD_TARGET:
description: 'BUILD_TARGET'
required: true
Expand Down Expand Up @@ -95,7 +95,6 @@ jobs:
set +e
source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
export FDEVICE="kelly"
set -e
lunch ${{ github.event.inputs.MAKEFILE_NAME }}-eng && make clean && mka adbd ${{ github.event.inputs.BUILD_TARGET }}image -j$(nproc --all)
working-directory: ${{ steps.pwd.outputs.workspace-folder }}
Expand Down
8 changes: 4 additions & 4 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/twrp_kelly.mk
$(LOCAL_DIR)/fox_kelly.mk

COMMON_LUNCH_CHOICES := \
twrp_kelly-user \
twrp_kelly-userdebug \
twrp_kelly-eng
fox_kelly-user \
fox_kelly-userdebug \
fox_kelly-eng
2 changes: 1 addition & 1 deletion BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ TW_INCLUDE_NTFS_3G := true
TW_NO_SCREEN_BLANK := true
TW_SCREEN_BLANK_ON_BOOT := true
TW_INCLUDE_RESETPROP := true
TW_INCLUDE_REPACKTOOLS := true
TW_INCLUDE_REPACKTOOLS := false
TW_HAS_MTP := true
TW_FRAMERATE := 60
TW_PREPARE_DATA_MEDIA_EARLY := true
Expand Down
3 changes: 1 addition & 2 deletions twrp_kelly.mk → fox_kelly.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#
# Copyright (C) 2022 The Android Open Source Project
# Copyright (C) 2022 SebaUbuntu's TWRP device tree generator
#
Expand All @@ -22,7 +21,7 @@ $(call inherit-product, vendor/twrp/config/common.mk)

# Device identifier. This must come after all inclusions
PRODUCT_DEVICE := kelly
PRODUCT_NAME := twrp_kelly
PRODUCT_NAME := fox_kelly
PRODUCT_BRAND := tecno
PRODUCT_MODEL := kelly
PRODUCT_MANUFACTURER := Tecno Mobile Limited
Expand Down
Binary file modified prebuilt/kernel
Binary file not shown.
76 changes: 37 additions & 39 deletions vendorsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Please maintain this if you use this script or any part of it
#

FDEVICE="kelly"
export FDEVICE="kelly"

fox_get_target_device() {
local chkdev=$(echo "$BASH_SOURCE" | grep $FDEVICE)
Expand All @@ -35,63 +35,61 @@ if [ -z "$1" -a -z "$FOX_BUILD_DEVICE" ]; then
fi

if [ "$1" = "$FDEVICE" -o "$FOX_BUILD_DEVICE" = "$FDEVICE" ]; then
export PLATFORM_VERSION="16.1.0"
export PLATFORM_SECURITY_PATCH="2099-12-31"
export TW_DEFAULT_LANGUAGE="en"
export LC_ALL="C"
export FOX_AB_DEVICE=1
export OF_USE_GREEN_LED=0
export OF_FBE_METADATA_MOUNT_IGNORE=1
export OF_USE_MAGISKBOOT=1
export OF_USE_NEW_MAGISKBOOT=1
export OF_USE_MAGISKBOOT_FOR_ALL_PATCHES=1
export OF_DONT_PATCH_ENCRYPTED_DEVICE=1
export FOX_USE_TWRP_RECOVERY_IMAGE_BUILDER=1
export OF_NO_TREBLE_COMPATIBILITY_CHECK=1
export OF_NO_MIUI_PATCH_WARNING=1
export FOX_USE_BASH_SHELL=1
export FOX_ASH_IS_BASH=1
export FOX_USE_TAR_BINARY=1
export FOX_USE_SED_BINARY=1
export FOX_USE_XZ_UTILS=1
export OF_SKIP_MULTIUSER_FOLDERS_BACKUP=1
export OF_QUICK_BACKUP_LIST="/boot;/data;"
export OF_PATCH_AVB20=1
export FOX_DELETE_AROMAFM=1
export FOX_BUGGED_AOSP_ARB_WORKAROUND="1510672800"; # Tue Nov 14 15:20:00 GMT 2017
export FOX_ENABLE_APP_MANAGER=0
export FOX_DISABLE_APP_MANAGER=1
export TW_DEFAULT_LANGUAGE="en"
export LC_ALL="C"
export FOX_AB_DEVICE=1
export OF_USE_GREEN_LED=0
export OF_FBE_METADATA_MOUNT_IGNORE=1
export OF_USE_MAGISKBOOT=1
export OF_USE_NEW_MAGISKBOOT=1
export OF_USE_MAGISKBOOT_FOR_ALL_PATCHES=1
export OF_DONT_PATCH_ENCRYPTED_DEVICE=1
export FOX_USE_TWRP_RECOVERY_IMAGE_BUILDER=1
export OF_NO_TREBLE_COMPATIBILITY_CHECK=1
export OF_NO_MIUI_PATCH_WARNING=1
export FOX_USE_BASH_SHELL=1
export FOX_ASH_IS_BASH=1
export FOX_USE_TAR_BINARY=1
export FOX_USE_SED_BINARY=1
export FOX_USE_XZ_UTILS=1
export OF_SKIP_MULTIUSER_FOLDERS_BACKUP=1
export OF_QUICK_BACKUP_LIST="/boot;/data;"
export OF_PATCH_AVB20=1
export FOX_DELETE_AROMAFM=1
export FOX_BUGGED_AOSP_ARB_WORKAROUND="1510672800"; # Tue Nov 14 15:20:00 GMT 2017
export FOX_ENABLE_APP_MANAGER=0
export FOX_DISABLE_APP_MANAGER=1
export FOX_DELETE_MAGISK_ADDON=1

# use system (ROM) fingerprint where available
export OF_USE_SYSTEM_FINGERPRINT=1

# OTA for custom ROMs
export OF_KEEP_DM_VERITY=1
export OF_KEEP_DM_VERITY=1
export OF_SUPPORT_ALL_BLOCK_OTA_UPDATES=0
export OF_FIX_OTA_UPDATE_MANUAL_FLASH_ERROR=1
export OF_DISABLE_MIUI_OTA_BY_DEFAULT=1

# -- add settings for build version --
export FOX_VERSION="R11.1_2"
export OF_MAINTAINER="kelexine"
export FOX_BUILD_TYPE="Official"
export FOX_BUILD_TYPE="OFFICIAL"

# screen settings
export OF_SCREEN_H=1612
export OF_STATUS_H=40
export OF_ALLOW_DISABLE_NAVBAR=0 # We don't have physical buttons
export OF_STATUS_INDENT_LEFT=48
export OF_STATUS_INDENT_RIGHT=48
export OF_CLOCK_POS=1
export OF_HIDE_NOTCH=0
export OF_SCREEN_H=1612
export OF_STATUS_H=40
export OF_ALLOW_DISABLE_NAVBAR=0 # We don't have physical buttons
export OF_STATUS_INDENT_LEFT=48
export OF_STATUS_INDENT_RIGHT=48
export OF_CLOCK_POS=1
export OF_HIDE_NOTCH=0

# run a process after formatting data to work-around MTP issues
export OF_RUN_POST_FORMAT_PROCESS=1
export OF_SKIP_ORANGEFOX_PROCESS=1
export OF_RUN_POST_FORMAT_PROCESS=1
export OF_SKIP_ORANGEFOX_PROCESS=1

# senter
export OF_FL_PATH1="/sys/devices/virtual/torch/torch/torch_level"
export OF_FL_PATH1="/sys/devices/virtual/torch/torch/torch_level"
export OF_FLASHLIGHT_ENABLE=1

# let's see what are our build VARs
Expand Down

0 comments on commit d18a8a9

Please sign in to comment.