land -> karate
This commit is contained in:
parent
548ce6fa4f
commit
1a9958ec8f
10 changed files with 45 additions and 64 deletions
|
@ -22,6 +22,6 @@
|
||||||
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
ifeq ($(TARGET_DEVICE),land)
|
ifeq ($(TARGET_DEVICE),karate)
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -14,4 +14,4 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
PRODUCT_MAKEFILES := \
|
PRODUCT_MAKEFILES := \
|
||||||
$(LOCAL_DIR)/lineage_land.mk
|
$(LOCAL_DIR)/lineage_karate.mk
|
||||||
|
|
|
@ -16,25 +16,25 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# inherit from common msm8937-common
|
# inherit from common msm8937-common
|
||||||
-include device/xiaomi/msm8937-common/BoardConfigCommon.mk
|
-include device/lenovo/msm8937-common/BoardConfigCommon.mk
|
||||||
|
|
||||||
DEVICE_PATH := device/xiaomi/land
|
DEVICE_PATH := device/lenovo/karate
|
||||||
|
|
||||||
# Camera
|
# Camera
|
||||||
BOARD_QTI_CAMERA_32BIT_ONLY := true
|
BOARD_QTI_CAMERA_32BIT_ONLY := true
|
||||||
USE_DEVICE_SPECIFIC_CAMERA := true
|
USE_DEVICE_SPECIFIC_CAMERA := true
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
TARGET_KERNEL_CONFIG := lineageos_land_defconfig
|
TARGET_KERNEL_CONFIG := lineageos_land_defconfig ## TODO: replace with lenovo kernel
|
||||||
|
|
||||||
# Libinit
|
# Libinit
|
||||||
TARGET_LIBINIT_MSM8937_DEFINES_FILE := $(DEVICE_PATH)/libinit/init_land.cpp
|
TARGET_LIBINIT_MSM8937_DEFINES_FILE := $(DEVICE_PATH)/libinit/init_karate.cpp
|
||||||
|
|
||||||
# Libshim
|
# Libshim
|
||||||
TARGET_LD_SHIM_LIBS := /vendor/bin/mm-qcamera-daemon|vendor/lib/libshims_camera.so
|
TARGET_LD_SHIM_LIBS := /vendor/bin/mm-qcamera-daemon|vendor/lib/libshims_camera.so
|
||||||
|
|
||||||
# Security patch level
|
# Security patch level
|
||||||
VENDOR_SECURITY_PATCH := 2017-04-01
|
VENDOR_SECURITY_PATCH := 2018-11-01
|
||||||
|
|
||||||
# Inherit the proprietary files
|
# Inherit the proprietary files
|
||||||
-include vendor/xiaomi/land/BoardConfigVendor.mk
|
-include vendor/lenovo/karate/BoardConfigVendor.mk
|
||||||
|
|
36
README.md
36
README.md
|
@ -1,26 +1,26 @@
|
||||||
# Common device configuration for Xiaomi Redmi 3S
|
# Common device configuration for Lenovo K6 (karate)
|
||||||
|
|
||||||
## Spec Sheet
|
## Spec Sheet
|
||||||
|
|
||||||
| Feature | Specification |
|
Basic | Spec Sheet
|
||||||
| :---------------------- | :-------------------------------- |
|
-------:|:-------------------------
|
||||||
| CPU | Octa-core 1.4 GHz Cortex-A53 |
|
CPU | Octa-core 1.4 GHz ARM Cortex-A53 (ARMv7)
|
||||||
| Chipset | Qualcomm MSM8937 Snapdragon 430 |
|
Chipset | Qualcomm Snapdragon 430 MSM8937
|
||||||
| GPU | Adreno 505 |
|
GPU | Adreno 505 @ 450 MHz
|
||||||
| Memory | 2/3 GB |
|
Memory | 3/4 GB RAM
|
||||||
| Shipped Android Version | 6.0.1 |
|
Shipped Android Version | 6.0.1
|
||||||
| Storage | 16/32 GB |
|
Storage | 16/32 GB
|
||||||
| MicroSD | Up to 256 GB |
|
MicroSD | Up to 128GB
|
||||||
| Battery | 4100 mAh (non-removable) |
|
Battery | Non-removable Li-Po 4000 mAh battery
|
||||||
| Dimensions | 139.3 x 69.6 x 8.5 mm |
|
Display | 1080x1920 pixels, 5.0 inches (~441 ppi pixel density)
|
||||||
| Display | 720 x 1280 pixels, 5.0" IPS LCD |
|
Dimensions | 141.9 x 70.3 x 9.3 mm
|
||||||
| Rear Camera | 13 MP, LED flash |
|
Camera | Primary: 13 MP PDAF, LED-Flash, FHD (Sony IMX219/Samsung S5K3P3)
|
||||||
| Front Camera | 5 MP |
|
Camera (front) | 8 MP, Fixed-focus, FHD
|
||||||
| Release Date | June 2016 |
|
Fingerprint | Focaltech Fingerprint Sensor (FPC) 1020
|
||||||
|
Other Sensors | Gravity, Proximity, Light, Vibrator, Gyroscope, Accelerometer
|
||||||
|
|
||||||
## Device Picture
|
## Device Picture
|
||||||
|
![Lenovo K6 Power](http://i.imgur.com/lTgLIRg.jpg "Lenovo K6 Power")
|
||||||
![Redmi 3S](http://cdn2.gsmarena.com/vv/pics/xiaomi/xiaomi-redmi-3-pro-2.jpg "Redmi 3S")
|
|
||||||
|
|
||||||
## Copyright
|
## Copyright
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,10 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
DEVICE_PATH := device/xiaomi/land
|
DEVICE_PATH := device/lenovo/karate
|
||||||
|
|
||||||
# Inherit proprietary files
|
# Inherit proprietary files
|
||||||
$(call inherit-product-if-exists, vendor/xiaomi/land/land-vendor.mk)
|
$(call inherit-product-if-exists, vendor/lenovo/karate/karate-vendor.mk)
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
@ -42,4 +42,4 @@ PRODUCT_PACKAGES += \
|
||||||
-include $(DEVICE_PATH)/vendor_prop.mk
|
-include $(DEVICE_PATH)/vendor_prop.mk
|
||||||
|
|
||||||
# Inherit from msm8937-common
|
# Inherit from msm8937-common
|
||||||
$(call inherit-product, device/xiaomi/msm8937-common/msm8937.mk)
|
$(call inherit-product, device/lenovo/msm8937-common/msm8937.mk)
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
DEVICE=land
|
DEVICE=karate
|
||||||
VENDOR=xiaomi
|
VENDOR=lenovo
|
||||||
|
|
||||||
# Load extract_utils and do some sanity checks
|
# Load extract_utils and do some sanity checks
|
||||||
MY_DIR="${BASH_SOURCE%/*}"
|
MY_DIR="${BASH_SOURCE%/*}"
|
||||||
|
|
|
@ -52,7 +52,7 @@ void init_target_properties()
|
||||||
std::string buf;
|
std::string buf;
|
||||||
|
|
||||||
std::string product = GetProperty("ro.product.name", "");
|
std::string product = GetProperty("ro.product.name", "");
|
||||||
if (product.find("land") == std::string::npos)
|
if (product.find("karate") == std::string::npos)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fin.open("/proc/cmdline");
|
fin.open("/proc/cmdline");
|
||||||
|
@ -60,24 +60,5 @@ void init_target_properties()
|
||||||
if (buf.find("board_id") != std::string::npos)
|
if (buf.find("board_id") != std::string::npos)
|
||||||
break;
|
break;
|
||||||
fin.close();
|
fin.close();
|
||||||
|
property_set("ro.product.model", "Lenovo K6");
|
||||||
if (buf.find("S88537AA1") != std::string::npos) {
|
|
||||||
property_set("ro.build.display.wtid", "SW_S88537AA1_V080_M20_MP_XM");
|
|
||||||
} else if (buf.find("S88537AB1") != std::string::npos) {
|
|
||||||
property_set("ro.build.display.wtid", "SW_S88537AB1_V080_M20_MP_XM");
|
|
||||||
} else if (buf.find("S88537AC1") != std::string::npos) {
|
|
||||||
property_set("ro.build.display.wtid", "SW_S88537AC1_V080_M20_MP_XM");
|
|
||||||
} else if (buf.find("S88537BA1") != std::string::npos) {
|
|
||||||
property_set("ro.build.display.wtid", "SW_S88537BA1_V080_M20_MP_XM");
|
|
||||||
} else if (buf.find("S88537CA1") != std::string::npos) {
|
|
||||||
property_set("ro.build.display.wtid", "SW_S88537CA1_V080_M20_MP_XM");
|
|
||||||
} else if (buf.find("S88537EC1") != std::string::npos) {
|
|
||||||
property_set("ro.build.display.wtid", "SW_S88537EC1_V080_M20_MP_XM");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (buf.find("S88537AB1") != std::string::npos) {
|
|
||||||
property_set("ro.product.model", "Redmi 3X");
|
|
||||||
} else {
|
|
||||||
property_set("ro.product.model", "Redmi 3S");
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"repository": "android_device_xiaomi_msm8937-common",
|
"repository": "android_device_lenovo_msm8937-common",
|
||||||
"target_path": "device/xiaomi/msm8937-common"
|
"target_path": "device/lenovo/msm8937-common"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -26,19 +26,19 @@ $(call inherit-product, vendor/lineage/config/common_full_phone.mk)
|
||||||
# Inherit from land device
|
# Inherit from land device
|
||||||
$(call inherit-product, $(LOCAL_PATH)/device.mk)
|
$(call inherit-product, $(LOCAL_PATH)/device.mk)
|
||||||
|
|
||||||
PRODUCT_BRAND := Xiaomi
|
PRODUCT_BRAND := Lenovo
|
||||||
PRODUCT_DEVICE := land
|
PRODUCT_DEVICE := karate
|
||||||
PRODUCT_MANUFACTURER := Xiaomi
|
PRODUCT_MANUFACTURER := Lenovo
|
||||||
PRODUCT_NAME := lineage_land
|
PRODUCT_NAME := lineage_karate
|
||||||
|
|
||||||
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
|
PRODUCT_GMS_CLIENTID_BASE := android-lenovo
|
||||||
|
|
||||||
TARGET_VENDOR_PRODUCT_NAME := land
|
TARGET_VENDOR_PRODUCT_NAME := karate
|
||||||
|
|
||||||
PRODUCT_BUILD_PROP_OVERRIDES += \
|
PRODUCT_BUILD_PROP_OVERRIDES += \
|
||||||
PRIVATE_BUILD_DESC="land-user 6.0.1 MMB29M V9.6.1.0.MALMIFD release-keys"
|
PRIVATE_BUILD_DESC="karate-user 6.0.1 MMB29M V9.6.1.0.MALMIFD release-keys"
|
||||||
|
|
||||||
BUILD_FINGERPRINT := Xiaomi/land/land:6.0.1/MMB29M/V9.6.1.0.MALMIFD:user/release-keys
|
BUILD_FINGERPRINT := Lenovo/karate/karate:6.0.1/MMB29M/V9.6.1.0.MALMIFD:user/release-keys
|
||||||
|
|
||||||
PRODUCT_SYSTEM_PROPERTY_BLACKLIST += \
|
PRODUCT_SYSTEM_PROPERTY_BLACKLIST += \
|
||||||
ro.product.model
|
ro.product.model
|
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
DEVICE=land
|
DEVICE=karate
|
||||||
VENDOR=xiaomi
|
VENDOR=lenovo
|
||||||
|
|
||||||
INITIAL_COPYRIGHT_YEAR=2018
|
INITIAL_COPYRIGHT_YEAR=2018
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue