-
Notifications
You must be signed in to change notification settings - Fork 6
/
lineage_a6000.mk
77 lines (63 loc) · 2.77 KB
/
lineage_a6000.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright (C) 2015-2017 The CyanogenMod Project
# 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 those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)
$(call inherit-product, device/lenovo/a6010/device.mk)
$(call inherit-product, vendor/lineage/config/common_mini_go_phone.mk)
# Must define platform variant before including any common things
TARGET_BOARD_PLATFORM_VARIANT := msm8916
# Assert
TARGET_OTA_ASSERT_DEVICE := a6010
TARGET_VENDOR := Lenovo
PRODUCT_DEVICE := a6000
PRODUCT_NAME := lineage_a6000
BOARD_VENDOR := Lenovo
PRODUCT_BRAND := Lenovo
PRODUCT_MODEL := Lenovo A6000
PRODUCT_MANUFACTURER := Lenovo
# Build fingerprint
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildDesc="Kraft-A6000-user 5.0.2 LRX22G Kraft-A6000_S061_160727 release-keys" \
BuildFingerprint=Lenovo/Kraft-A6000/Kraft-A6000:5.0.2/LRX22G/Kraft-A6000_S061_160727:user/release-keys \
DeviceName=a6000
# GMS
PRODUCT_GMS_CLIENTID_BASE := android-lenovo
# First api level, device has been commercially launched
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.first_api_level=19
# Device was launched with KK
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_k.mk)
# Use Etar as calendar
PRODUCT_PACKAGES += \
Etar
# Makes device compatible with Google Dialer Go.
# In best case this file should be a part of Gapps
# but we don't ship Gapps in this target
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/googledialergo-sysconfig.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/googledialergo-sysconfig.xml
# Lights
PRODUCT_PACKAGES += \
# RIL
PRODUCT_PROPERTY_OVERRIDES += \
persist.data.target=dpm1 \
persist.radio.ecc_hard_1=112,911,110,122,119,120,000,118
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/acdb/a6000/QRD_General_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/QRD/QRD_General_cal.acdb \
$(LOCAL_PATH)/audio/acdb/a6000/QRD_Global_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/QRD/QRD_Global_cal.acdb \
$(LOCAL_PATH)/audio/acdb/a6000/QRD_Speaker_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/QRD/QRD_Speaker_cal.acdb
$(call inherit-product, vendor/lenovo/a6010/a6010-vendor.mk)
$(call inherit-product, vendor/lenovo/a6010/a6000.mk)