diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000000000000000000000000000000000000..deb39a345589b596f19cad1fe26e97a8f777aba0 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,55 @@ +# +# Copyright (C) 2019 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. +# + +# Device path +LOCAL_PATH := device/lenovo/k5fpr + +# Build seperate vendor img +TARGET_COPY_OUT_VENDOR := vendor + +# Inherit common boardconfig +-include device/lenovo/mt6753-common/BoardConfigCommon.mk + +####################################################################### + +# Kernel +TARGET_KERNEL_SOURCE := kernel/lenovo/k5fpr +TARGET_KERNEL_CONFIG := k5fpr_defconfig +BOARD_NAME := A7010 + +# OTA assert +TARGET_OTA_ASSERT_DEVICE := A7010a48,LENOVO,k5fpr,a7010a48 + +# Bluetooth +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth + +# Partitions informations +BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216 +BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216 +BOARD_CACHEIMAGE_PARTITION_SIZE := 409600000 +BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2621440000 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 26725888000 +BOARD_VENDORIMAGE_PARTITION_SIZE := 526848000 +BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 +BOARD_FLASH_BLOCK_SIZE := 131072 + +# Partitions types +TARGET_USERIMAGES_USE_EXT4 := true +TARGET_USERIMAGES_USE_F2FS := true + +# DT2W +POWER_FEATURE_DOUBLE_TAP_TO_WAKE := "/sys/lenovo_tp_gestures/tpd_suspend_status" diff --git a/device_k5fpr.mk b/device_k5fpr.mk new file mode 100644 index 0000000000000000000000000000000000000000..4cd06535d04a39c32514c93e0cf4aa26ed04de08 --- /dev/null +++ b/device_k5fpr.mk @@ -0,0 +1,27 @@ +# +# Copyright (C) 2015-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. +# +LOCAL_PATH := device/lenovo/k5fpr + +# Hardware-specific permissions +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ + frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml + +# Vendor +$(call inherit-product, vendor/lenovo/k5fpr/k5fpr-vendor.mk) + +# Common +$(call inherit-product, device/lenovo/mt6753-common/mt6753.mk) diff --git a/lineage_k5fpr.mk b/lineage_k5fpr.mk new file mode 100644 index 0000000000000000000000000000000000000000..abcb12bcfcd403e9e448cbd2023e98a94f4f9d27 --- /dev/null +++ b/lineage_k5fpr.mk @@ -0,0 +1,35 @@ +# +# Copyright (C) 2017 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 A7010 device +$(call inherit-product, device/lenovo/k5fpr/device_k5fpr.mk) + +# Inherit some common LOS stuff. +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +PRODUCT_GMS_CLIENTID_BASE := android-lenovo + +PRODUCT_DEVICE := k5fpr +PRODUCT_NAME := lineage_k5fpr +PRODUCT_BRAND := Lenovo +PRODUCT_MANUFACTURER := Lenovo +PRODUCT_MODEL := Lenovo A7010a48 +PRODUCT_RELEASE_NAME := k5fpr + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRODUCT_NAME=k5fpr \ + PRIVATE_BUILD_DESC="k5fpr-user 6.0 MRA58K A7010a48_S232_161227_ROW release-keys" + +BUILD_FINGERPRINT := Lenovo/k5fpr/A7010a48:6.0/MRA58K/RA7010a48_S232_161227_ROW.12271429:user/release-keys \