-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I20117649a80db95fd3026058949e893af316351f
- Loading branch information
Showing
12 changed files
with
773 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# | ||
# Copyright (C) 2018 The LineageOS 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. | ||
# | ||
|
||
# | ||
# This contains the module build definitions for the hardware-specific | ||
# components for this device. | ||
# | ||
# As much as possible, those components should be built unconditionally, | ||
# with device-specific names to avoid collisions, to avoid device-specific | ||
# bitrot and build breakages. Building a component unconditionally does | ||
# *not* include it on all devices, so it is safe even with hardware-specific | ||
# components. | ||
# | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
ifeq ($(TARGET_DEVICE),fajita) | ||
include $(call all-makefiles-under,$(LOCAL_PATH)) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# Copyright (C) 2018 The LineageOS 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. | ||
# | ||
|
||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/lineage_fajita.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Copyright (C) 2018 The LineageOS 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. | ||
# | ||
|
||
# Inherit from oneplus sdm845-common | ||
-include device/oneplus/sdm845-common/BoardConfigCommon.mk | ||
|
||
DEVICE_PATH := device/oneplus/fajita | ||
|
||
# Bluetooth | ||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include | ||
|
||
# Kernel | ||
TARGET_KERNEL_CONFIG := enchilada_defconfig | ||
|
||
# inherit from the proprietary version | ||
-include vendor/oneplus/fajita/BoardConfigVendor.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Device Tree for OnePlus 6T (fajita) | ||
|
||
The OnePlus 6T (codenamed _"fajita"_) is a flagship smartphone from OnePlus. | ||
It was released in November 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 | 9 | | ||
| Storage | 64/128/256 GB | | ||
| Battery | Non-removable Li-Po 3700 mAh battery | | ||
| Display | Optic AMOLED, 1080 x 2340 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. | ||
|
||
 | ||
|
||
## Temporary build instructions | ||
|
||
``` | ||
# Compiling | ||
$ m[ake|ka] bootimage systemimage | ||
# Installing | ||
$ fastboot --disable-verity --disable-verification flash vbmeta stock_vbmeta.img | ||
$ fastboot flash boot boot.img | ||
$ fastboot flash system system.img | ||
$ fastboot -w reboot | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
* Not a Contribution, Apache license notifications and license are retained | ||
* for attribution purposes only. | ||
* | ||
* Copyright (C) 2012 The Android Open Source Project | ||
* Copyright (C) 2018 The LineageOS 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. | ||
*/ | ||
|
||
#ifndef _BDROID_BUILDCFG_H | ||
#define _BDROID_BUILDCFG_H | ||
|
||
#define BTM_DEF_LOCAL_NAME "OnePlus 6T" | ||
// Disables read remote device feature | ||
#define MAX_ACL_CONNECTIONS 16 | ||
#define MAX_L2CAP_CHANNELS 16 | ||
#define BLE_VND_INCLUDED TRUE | ||
// skips conn update at conn completion | ||
#define BT_CLEAN_TURN_ON_DISABLED 1 | ||
/* Increasing SEPs to 12 from 6 to support SHO/MCast i.e. two streams per codec */ | ||
#define AVDT_NUM_SEPS 12 | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Copyright (C) 2018 The LineageOS 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. | ||
# | ||
|
||
# | ||
# This file sets variables that control the way modules are built | ||
# thorughout the system. It should not be used to conditionally | ||
# disable makefiles (the proper mechanism to control what gets | ||
# included in a build is to use PRODUCT_PACKAGES in a product | ||
# definition file). | ||
# | ||
|
||
# Overlays | ||
DEVICE_PACKAGE_OVERLAYS += \ | ||
$(LOCAL_PATH)/overlay | ||
|
||
# Device uses high-density artwork where available | ||
PRODUCT_AAPT_CONFIG := normal | ||
PRODUCT_AAPT_PREF_CONFIG := xxhdpi | ||
|
||
# Boot animation | ||
TARGET_SCREEN_HEIGHT := 2340 | ||
TARGET_SCREEN_WIDTH := 1080 | ||
|
||
# Inherit from oneplus sdm845-common | ||
$(call inherit-product, device/oneplus/sdm845-common/common.mk) | ||
|
||
# Inherit from vendor blobs | ||
#$(call inherit-product, vendor/oneplus/fajita/fajita-vendor.mk) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (C) 2018 The LineageOS 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. | ||
# | ||
|
||
set -e | ||
|
||
export DEVICE=fajita | ||
export DEVICE_COMMON=sdm845-common | ||
export VENDOR=oneplus | ||
|
||
export DEVICE_BRINGUP_YEAR=2018 | ||
|
||
./../../$VENDOR/$DEVICE_COMMON/extract-files.sh $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[ | ||
{ | ||
"repository": "android_device_oneplus_sdm845-common", | ||
"target_path": "device/oneplus/sdm845-common" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# | ||
# Copyright (C) 2018 The LineageOS 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. | ||
# | ||
|
||
# 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) | ||
|
||
# Inherit from fajita device | ||
$(call inherit-product, device/oneplus/fajita/device.mk) | ||
|
||
# Inherit some common Lineage stuff. | ||
$(call inherit-product, vendor/lineage/config/common_full_phone.mk) | ||
|
||
PRODUCT_NAME := lineage_fajita | ||
PRODUCT_DEVICE := fajita | ||
PRODUCT_MANUFACTURER := OnePlus | ||
PRODUCT_BRAND := OnePlus | ||
PRODUCT_MODEL := ONEPLUS A6013 | ||
|
||
PRODUCT_GMS_CLIENTID_BASE := android-oneplus | ||
|
||
TARGET_VENDOR_PRODUCT_NAME := OnePlus6T | ||
TARGET_VENDOR_DEVICE_NAME := OnePlus6T | ||
|
||
PRODUCT_BUILD_PROP_OVERRIDES += \ | ||
TARGET_DEVICE=OnePlus6T \ | ||
PRODUCT_NAME=OnePlus6T \ | ||
PRIVATE_BUILD_DESC="OnePlus6T-user 9 PKQ1.180716.001 1812260627 release-keys" | ||
|
||
BUILD_FINGERPRINT := OnePlus/OnePlus6T/OnePlus6T:9/PKQ1.180716.001/1812260627:user/release-keys |
Oops, something went wrong.