From 21fe927e6f41a61227a6981091d46f150e547f61 Mon Sep 17 00:00:00 2001 From: RunningMango <36758157+RunningMango@users.noreply.github.com> Date: Fri, 8 Feb 2019 11:21:31 +0500 Subject: [PATCH] Add files via upload --- Android.mk | 10 ++++ BoardConfig.mk | 18 ++++++ README | 1 + README.md | 2 + bluetooth/bdroid_buildcfg.h | 8 +++ device.mk | 10 ++++ full_on5xelte.mk | 18 ++++++ lineage.mk | 9 +++ .../base/core/res/res/values/strings.xml | 8 +++ .../base/core/res/res/xml/power_profile.xml | 56 +++++++++++++++++++ system_prop.mk | 6 ++ vendorsetup.sh | 2 + 12 files changed, 148 insertions(+) create mode 100644 Android.mk create mode 100644 BoardConfig.mk create mode 100644 README create mode 100644 README.md create mode 100644 bluetooth/bdroid_buildcfg.h create mode 100644 device.mk create mode 100644 full_on5xelte.mk create mode 100644 lineage.mk create mode 100644 overlay/frameworks/base/core/res/res/values/strings.xml create mode 100644 overlay/frameworks/base/core/res/res/xml/power_profile.xml create mode 100644 system_prop.mk create mode 100644 vendorsetup.sh diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..0a7147b --- /dev/null +++ b/Android.mk @@ -0,0 +1,10 @@ +# Copyright (C) 2018 The LineageOS Project +# SPDX-License-Identifier: Apache-2.0 + +LOCAL_PATH := $(call my-dir) + +ifneq ($(filter on5xelte, $(TARGET_DEVICE)),) + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +endif diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..9af3088 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,18 @@ +# Copyright (C) 2018 The LineageOS Project +# SPDX-License-Identifier: Apache-2.0 + +DEVICE_PATH := device/samsung/on5xelte + +# Assert +TARGET_OTA_ASSERT_DEVICE := on5xeltexx,on5xelteks,on5xelte + +# Kernel +TARGET_KERNEL_CONFIG := on5xelte_00_defconfig +TARGET_KERNEL_CUSTOM_TOOLCHAIN := /home/nick/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- +BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive + +# Bluetooth +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth + +# Inherit common board flags +include device/samsung/universal7570-common/BoardConfigCommon.mk diff --git a/README b/README new file mode 100644 index 0000000..7b0c20d --- /dev/null +++ b/README @@ -0,0 +1 @@ +Samsung Galaxy J5 Prime Device Tree. diff --git a/README.md b/README.md new file mode 100644 index 0000000..8c9cdb6 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# adroid_device_on5xelte_lineage +# adroid_device_on5xelte_lineage diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h new file mode 100644 index 0000000..3372ee6 --- /dev/null +++ b/bluetooth/bdroid_buildcfg.h @@ -0,0 +1,8 @@ +#ifndef _BDROID_BUILDCFG_H +#define _BDROID_BUILDCFG_H + +#define BTM_DEF_LOCAL_NAME "Galaxy J5 Prime" + +#define BLE_VND_INCLUDED TRUE + +#endif diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..0d808f4 --- /dev/null +++ b/device.mk @@ -0,0 +1,10 @@ +# Copyright (C) 2018 The LineageOS Project +# SPDX-License-Identifier: Apache-2.0 + +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + +# Property overrides +-include $(LOCAL_PATH)/system_prop.mk + +# Inherit common device configuration +$(call inherit-product, device/samsung/universal7570-common/universal7570-common.mk) diff --git a/full_on5xelte.mk b/full_on5xelte.mk new file mode 100644 index 0000000..9e177af --- /dev/null +++ b/full_on5xelte.mk @@ -0,0 +1,18 @@ +# Copyright (C) 2018 The LineageOS Project +# SPDX-License-Identifier: Apache-2.0 + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_o.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) + +# Inherit device configuration +$(call inherit-product, device/samsung/on5xelte/device.mk) + +# Device identifier. This must come after all inclusions +PRODUCT_DEVICE := on5xelte +PRODUCT_NAME := full_on5xelte +PRODUCT_MODEL := SM-G570F +PRODUCT_BRAND := samsung +PRODUCT_MANUFACTURER := samsung +PRODUCT_GMS_CLIENTID_BASE := android-samsung diff --git a/lineage.mk b/lineage.mk new file mode 100644 index 0000000..32c620c --- /dev/null +++ b/lineage.mk @@ -0,0 +1,9 @@ +# Copyright (C) 2018 The LineageOS Project +# SPDX-License-Identifier: Apache-2.0 + +$(call inherit-product, device/samsung/on5xelte/full_on5xelte.mk) + +# Inherit some common Lineage stuff. +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +PRODUCT_NAME := lineage_on5xelte diff --git a/overlay/frameworks/base/core/res/res/values/strings.xml b/overlay/frameworks/base/core/res/res/values/strings.xml new file mode 100644 index 0000000..94b37a8 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/strings.xml @@ -0,0 +1,8 @@ + + + + Galaxy J5 Prime + diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..1f468d7 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,56 @@ + + + 0 + 59 + 195 + 0.8 + 97 + 0.2 + 181 + 368 + 38 + + 6 + 6 + + 75 + 157 + 2400 + 3.9 + 10 + + 1430000 + 1378000 + 1274000 + 1144000 + 1040000 + 962000 + 829000 + 757000 + 676000 + 546000 + + + 74 + 69 + 62 + 52 + 46 + 42 + 40 + 38 + 31 + 28 + + 40 + 170 + + .0002 + .002 + .02 + .2 + 2 + + 431 + 110 + diff --git a/system_prop.mk b/system_prop.mk new file mode 100644 index 0000000..b9bf787 --- /dev/null +++ b/system_prop.mk @@ -0,0 +1,6 @@ +# Copyright (C) 2018 The LineageOS Project +# SPDX-License-Identifier: Apache-2.0 +# Device specific property overrides + +PRODUCT_PROPERTY_OVERRIDES += \ + ro.sf.lcd_density=320 diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100644 index 0000000..69b9416 --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1,2 @@ +add_lunch_combo lineage_on5xelte-eng +add_lunch_combo lineage_on5xelte-userdebug