Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

CANDy-fied ONEPLUS2 Device Tree

  • Loading branch information
vibhoothiiaanand committed Mar 2, 2017
1 parent 1ac3a05 commit f0f95d2d3a03a43da91668f17f284a4b994d5f5f
Showing with 134 additions and 13 deletions.
  1. +4 −0 AndroidProducts.mk
  2. +1 −10 BoardConfig.mk
  3. +42 −0 candy.dependencies
  4. +42 −0 candy.mk
  5. +42 −0 candy_oneplus2.mk
  6. +3 −3 vendorsetup.sh
@@ -0,0 +1,4 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/device.mk \
$(LOCAL_DIR)/Android.mk \
$(LOCAL_DIR)/candy_oneplus2.mk
@@ -59,7 +59,7 @@ TARGET_2ND_CPU_VARIANT := cortex-a53.a57
TARGET_USES_64_BIT_BINDER := true

# Kernel
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-3
BOARD_KERNEL_CMDLINE :=androidboot.selinux=permissive androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-3
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_TAGS_OFFSET := 0x00000100
@@ -160,15 +160,6 @@ TARGET_NO_RPC := true
# Sensors
USE_SENSOR_MULTI_HAL := true

# Enable dexpreopt to speed boot time
ifeq ($(HOST_OS),linux)
ifneq ($(TARGET_BUILD_VARIANT),eng)
ifeq ($(WITH_DEXPREOPT),)
WITH_DEXPREOPT := true
endif
endif
endif

# Wifi
BOARD_HAS_QCOM_WLAN := true
BOARD_HAS_QCOM_WLAN_SDK := true
@@ -0,0 +1,42 @@
[
{
"repository" : "DirtyUnicorns/android_device_oppo_common",
"target_path": "device/oppo/common",
"branch" : "n7x-caf"
},
{
"repository" : "DirtyUnicorns/android_kernel_oneplus_msm8994",
"target_path": "kernel/oneplus/msm8994",
"branch" : "n7x-caf"
},
{
"repository" : "DirtyUnicorns/android_system_qcom",
"target_path": "system/qcom",
"branch" : "n7x-caf"
},
{
"repository" : "DirtyUnicorns/android_external_ant-wireless_ant_service",
"target_path": "external/ant-wireless/ant_service",
"branch" : "n7x-caf"
},
{
"repository" : "DirtyUnicorns/android_external_ant-wireless_ant_native",
"target_path": "external/ant-wireless/ant_native",
"branch" : "n7x-caf"
},
{
"repository" : "DirtyUnicorns/android_external_ant-wireless_antradio-library",
"target_path": "external/ant-wireless/antradio-library",
"branch" : "n7x-caf"
},
{
"repository" : "DirtyUnicorns/android_vendor_oneplus",
"target_path": "vendor/oneplus",
"branch" : "n7x-caf"
},
{
"repository" : "DirtyUnicorns/android_vendor_qcom_binaries",
"target_path": "vendor/qcom/binaries",
"branch" : "n7x-caf"
}
]
@@ -0,0 +1,42 @@
# Copyright (C) 2016 The CyanogenMod 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 oneplus2 device
$(call inherit-product, device/oneplus/oneplus2/device.mk)

# Inherit some common du stuff.
$(call inherit-product, vendor/candy/config/common_full_phone.mk)

PRODUCT_NAME := candy_oneplus2
PRODUCT_DEVICE := oneplus2
PRODUCT_MANUFACTURER := OnePlus
PRODUCT_BRAND := OnePlus

PRODUCT_GMS_CLIENTID_BASE := android-oneplus

TARGET_VENDOR_PRODUCT_NAME := OnePlus2
TARGET_VENDOR_DEVICE_NAME := OnePlus2
PRODUCT_BUILD_PROP_OVERRIDES += TARGET_DEVICE=OnePlus2 PRODUCT_NAME=OnePlus2

PRODUCT_BUILD_PROP_OVERRIDES += \
BUILD_FINGERPRINT=OnePlus/OnePlus2/OnePlus2:6.0.1/MMB29M/1447840920:user/release-keys \
PRIVATE_BUILD_DESC="OnePlus2-user 6.0.1 MMB29M 20 dev-keys"

PRODUCT_SYSTEM_PROPERTY_BLACKLIST += ro.product.model

TARGET_VENDOR := oneplus
@@ -0,0 +1,42 @@
# Copyright (C) 2016 The CyanogenMod 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 oneplus2 device
$(call inherit-product, device/oneplus/oneplus2/device.mk)

# Inherit some common du stuff.
$(call inherit-product, vendor/candy/config/common_full_phone.mk)

PRODUCT_NAME := candy_oneplus2
PRODUCT_DEVICE := oneplus2
PRODUCT_MANUFACTURER := OnePlus
PRODUCT_BRAND := OnePlus

PRODUCT_GMS_CLIENTID_BASE := android-oneplus

TARGET_VENDOR_PRODUCT_NAME := OnePlus2
TARGET_VENDOR_DEVICE_NAME := OnePlus2
PRODUCT_BUILD_PROP_OVERRIDES += TARGET_DEVICE=OnePlus2 PRODUCT_NAME=OnePlus2

PRODUCT_BUILD_PROP_OVERRIDES += \
BUILD_FINGERPRINT=OnePlus/OnePlus2/OnePlus2:6.0.1/MMB29M/1447840920:user/release-keys \
PRIVATE_BUILD_DESC="OnePlus2-user 6.0.1 MMB29M 20 dev-keys"

PRODUCT_SYSTEM_PROPERTY_BLACKLIST += ro.product.model

TARGET_VENDOR := oneplus
@@ -1,3 +1,3 @@
add_lunch_combo du_oneplus2-user
add_lunch_combo du_oneplus2-userdebug
add_lunch_combo du_oneplus2-eng
add_lunch_combo candy_oneplus2-user
add_lunch_combo candy_oneplus2-userdebug
add_lunch_combo candy_oneplus2-eng

0 comments on commit f0f95d2

Please sign in to comment.
You can’t perform that action at this time.