LOCAL_PATH := $(call my-dir)
-ifneq ($(filter enchilada,$(TARGET_DEVICE)),)
+ifneq ($(filter fajita,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif
#
PRODUCT_MAKEFILES := \
- $(LOCAL_DIR)/omni_enchilada.mk
+ $(LOCAL_DIR)/omni_fajita.mk
BOARD_KERNEL_CMDLINE += skip_override androidboot.fastboot=1
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 4096
-TARGET_PREBUILT_KERNEL := device/oneplus/enchilada/prebuilt/Image.gz-dtb
+TARGET_PREBUILT_KERNEL := device/oneplus/fajita/prebuilt/Image.gz-dtb
# Platform
TARGET_BOARD_PLATFORM := sdm845
TW_RECOVERY_ADDITIONAL_RELINK_FILES := ${OUT}/system/lib64/android.hardware.boot@1.0.so
TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888
TW_NO_SCREEN_BLANK := true
-TW_EXCLUDE_TWRPAPP := true
# Encryption
PLATFORM_SECURITY_PATCH := 2025-12-31
-# Device Tree for OnePlus 6 (enchilada)
-
-The OnePlus 6 (codenamed _"enchilada"_) is a flagship smartphone from OnePlus.
-It was released in May 2018.
-
-| Basic | Spec Sheet |
-| -----------------------:|:------------------------------------------------------------------------------------------------------------------------------ |
-| CPU | Octa-core (4x2.8 GHz Kryo 385 Gold & 4x1.7 GHz Kryo 385 Silver) |
-| Chipset | Qualcomm SDM845 Snapdragon 845 |
-| GPU | Adreno 630 |
-| Memory | 6/8 GB RAM |
-| Shipped Android Version | 8.1 |
-| Storage | 64/128/256 GB |
-| Battery | Non-removable Li-Po 3300 mAh battery |
-| Display | Optic AMOLED, 1080 x 2280 pixels, 19:9 ratio (~402 ppi density) |
-| Camera (Back) | Dual: 16 MP (f/1.7, 27mm, 1/2.6", 1.22µm, gyro-EIS, OIS) + 20 MP (16 MP effective, f/1.7, 1/2.8", 1.0µm), PDAF, dual-LED flash |
-| Camera (Front) | 16 MP (f/2.0, 25mm, 1/3", 1.0µm), gyro-EIS, Auto HDR, 1080p |
-
-Copyright 2018 - The LineageOS Project.
-
-![OnePlus 6](https://cdn2.gsmarena.com/vv/pics/oneplus/oneplus-6-5.jpg "OnePlus 6")
-
-
-## Compile
-
-First checkout minimal twrp with omnirom tree:
-
-```
-repo init -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-8.1
-repo sync
-```
-
-Then add these projects to .repo/manifest.xml:
-
-```xml
-<project path="device/oneplus/enchilada" name="mauronofrio/android_device_oneplus_enchilada" remote="github" revision="android-8.1" />
-```
-
-To make all works you need to modify the buildinfo.sh in build/tools
-echo "ro.build.version.release=$PLATFORM_VERSION"
-echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
-to
-echo "ro.build.version.release_orig=$PLATFORM_VERSION"
-echo "ro.build.version.security_patch_orig=$PLATFORM_SECURITY_PATCH"
-
-And you need to increase the PLATFORM_VERSION to 16.1.0 in build/core/version_defaults.mk to override Google's anti-rollback features
-
-```
-
-Finally execute these:
-
-```
-. build/envsetup.sh
-export ALLOW_MISSING_DEPENDENCIES=true # Only if you use minimal twrp tree.
-lunch omni_enchilada-eng
-mka adbd recoveryimage
-```
-
-To test it:
-
-```
-fastboot boot out/target/product/enchilada/recovery.img
-```
-## Thanks
-```
-- @engstk to make TWRP works on PIE
-- @joemossjr16 for some tips
-- @Dees-Troy for some tips
-- @wuxianlin for initial bring up
+# android_device_oneplus_fajita
+Waiting for some additional infos
\ No newline at end of file
-LOCAL_PATH := device/oneplus/enchilada
+LOCAL_PATH := device/oneplus/fajita
# Getting this to build in my local omni tree proved quite difficult so just using a prebuilt update_engine_sideload for now.
# Oddly enough, OnePlus stock recovery does not include an update_engine_sideload binary either.
# Enable update engine sideloading by including the static version of the
# boot_control HAL and its dependencies.
#PRODUCT_STATIC_BOOT_CONTROL_HAL := \
-# bootctrl.msm8998 \
# libsparse
#PRODUCT_PACKAGES += \
--- /dev/null
+#
+# Copyright 2017 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.
+#
+
+# Release name
+PRODUCT_RELEASE_NAME := fajita
+
+$(call inherit-product, build/target/product/embedded.mk)
+
+# Inherit from our custom product configuration
+$(call inherit-product, vendor/omni/config/common.mk)
+
+# Inherit from hardware-specific part of the product configuration
+$(call inherit-product, device/oneplus/fajita/device.mk)
+
+## Device identifier. This must come after all inclusions
+PRODUCT_DEVICE := fajita
+PRODUCT_NAME := omni_fajita
+PRODUCT_BRAND := OnePlus
+PRODUCT_MODEL := OnePlus A6013
+PRODUCT_MANUFACTURER := OnePlus
+
+PRODUCT_BUILD_PROP_OVERRIDES += \
+ PRODUCT_NAME=OnePlus6T \
+ BUILD_PRODUCT=OnePlus6T \
+ TARGET_DEVICE=OnePlus6T
+++ /dev/null
-# blu_spark extras
-
-on property:sys.boot_completed=1
- # Tweak IO performance after boot complete
- write /sys/block/dm-0/queue/scheduler "zen"
- write /sys/block/dm-1/queue/scheduler "zen"
- write /sys/block/sda/queue/scheduler "zen"
- write /sys/block/sde/queue/scheduler "zen"
- write /sys/block/dm-0/queue/read_ahead_kb 128
- write /sys/block/dm-0/queue/iostats 1
- write /sys/block/dm-0/queue/nr_requests 128
- write /sys/block/dm-1/queue/read_ahead_kb 128
- write /sys/block/dm-1/queue/iostats 1
- write /sys/block/dm-1/queue/nr_requests 128
- write /sys/block/sda/queue/read_ahead_kb 128
- write /sys/block/sda/queue/iostats 1
- write /sys/block/sda/queue/nr_requests 128
- write /sys/block/sde/queue/read_ahead_kb 128
- write /sys/block/sde/queue/iostats 1
- write /sys/block/sde/queue/nr_requests 128
-
- # Disable Adaptive LMK
- write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 0
-
- # Input boost and stune configuration
- write /sys/module/cpu_boost/parameters/input_boost_freq "0:1056000 1:0 2:0 3:0 4:0 5:0 6:0 7:0"
- write /sys/module/cpu_boost/parameters/input_boost_ms 500
- write /sys/module/cpu_boost/parameters/dynamic_stune_boost 15
-
- # Set min cpu freq
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 576000
- write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 825600
-
- # Disable scheduler core_ctl
- write /sys/devices/system/cpu/cpu0/core_ctl/enable 0
- write /sys/devices/system/cpu/cpu4/core_ctl/enable 0
-
- # Configure governor settings for little cluster
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "blu_schedutil"
- write /sys/devices/system/cpu/cpu0/cpufreq/blu_schedutil/up_rate_limit_us 0
- write /sys/devices/system/cpu/cpu0/cpufreq/blu_schedutil/down_rate_limit_us 0
-
- # Configure governor settings for big cluster
- write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "blu_schedutil"
- write /sys/devices/system/cpu/cpu4/cpufreq/blu_schedutil/up_rate_limit_us 0
- write /sys/devices/system/cpu/cpu4/cpufreq/blu_schedutil/down_rate_limit_us 0
-
- # OTG on by default
- write /sys/class/power_supply/usb/otg_switch 1
-
- write /dev/kmsg "Boot blu_spark completed "
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-import /init.blu_spark.rc
on fs
wait /dev/block/platform/soc/${ro.boot.bootdevice}
-ro.display.series=OnePlus 6
+ro.display.series=OnePlus 6T
-add_lunch_combo omni_enchilada-eng
-add_lunch_combo omni_enchilada-userdebug
+add_lunch_combo omni_fajita-eng