cleanup
This commit is contained in:
parent
b2f1d5e268
commit
af0b9f5c13
10 changed files with 53 additions and 110 deletions
|
@ -1,5 +1,5 @@
|
||||||
# Copyright (C) 2016 The CyanogenMod Project
|
# Copyright (C) 2014-2016 The CyanogenMod Project
|
||||||
# Copyright (C) 2017 The LineageOS Project
|
# Copyright (C) 2017-2018 The LineageOS Project
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
|
@ -22,21 +22,32 @@ TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
|
||||||
|
|
||||||
TARGET_OTA_ASSERT_DEVICE := viennalte,viennaltexx
|
TARGET_OTA_ASSERT_DEVICE := viennalte,viennaltexx
|
||||||
|
|
||||||
# BLOCK_BASED_OTA:= false
|
|
||||||
# WITH_TWRP := true
|
# WITH_TWRP := true
|
||||||
|
|
||||||
# Use Snapdragon LLVM if available on build server
|
# Audio
|
||||||
TARGET_USE_SDCLANG := true
|
BOARD_HAVE_NEW_QCOM_CSDCLIENT := true
|
||||||
|
USE_CUSTOM_AUDIO_POLICY := 1
|
||||||
|
|
||||||
# ADB Legacy Interface
|
# Bluetooth
|
||||||
TARGET_USES_LEGACY_ADB_INTERFACE := true
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
|
||||||
|
BOARD_CUSTOM_BT_CONFIG := $(LOCAL_PATH)/bluetooth/vnd_viennalte.txt
|
||||||
|
BOARD_HAVE_BLUETOOTH_BCM := true
|
||||||
|
BOARD_HAVE_SAMSUNG_BLUETOOTH := true
|
||||||
|
|
||||||
# Bootloader
|
# Bootloader
|
||||||
TARGET_BOOTLOADER_BOARD_NAME := MSM8974
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8974
|
||||||
|
|
||||||
|
# Camera
|
||||||
|
USE_DEVICE_SPECIFIC_CAMERA := true
|
||||||
|
|
||||||
|
# Extended Filesystem Support
|
||||||
|
TARGET_EXFAT_DRIVER := sdfat
|
||||||
|
|
||||||
|
# HIDL
|
||||||
|
DEVICE_MANIFEST_FILE += $(LOCAL_PATH)/manifest.xml
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
BOARD_KERNEL_BASE := 0x00000000
|
BOARD_KERNEL_BASE := 0x00000000
|
||||||
#BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3
|
|
||||||
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 androidboot.selinux=permissive
|
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 androidboot.selinux=permissive
|
||||||
BOARD_KERNEL_IMAGE_NAME := zImage
|
BOARD_KERNEL_IMAGE_NAME := zImage
|
||||||
BOARD_KERNEL_PAGESIZE := 2048
|
BOARD_KERNEL_PAGESIZE := 2048
|
||||||
|
@ -52,31 +63,10 @@ TARGET_KERNEL_SOURCE := kernel/samsung/msm8974
|
||||||
TARGET_INIT_VENDOR_LIB := libinit_msm8974
|
TARGET_INIT_VENDOR_LIB := libinit_msm8974
|
||||||
TARGET_LIBINIT_MSM8974_DEFINES_FILE := device/samsung/viennalte/init/init_viennalte.cpp
|
TARGET_LIBINIT_MSM8974_DEFINES_FILE := device/samsung/viennalte/init/init_viennalte.cpp
|
||||||
|
|
||||||
# Audio
|
|
||||||
BOARD_HAVE_NEW_QCOM_CSDCLIENT := true
|
|
||||||
USE_CUSTOM_AUDIO_POLICY := 1
|
|
||||||
|
|
||||||
# Binder API version
|
|
||||||
TARGET_USES_64_BIT_BINDER := true
|
|
||||||
|
|
||||||
# Bluetooth
|
|
||||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
|
|
||||||
BOARD_CUSTOM_BT_CONFIG := $(LOCAL_PATH)/bluetooth/vnd_viennalte.txt
|
|
||||||
BOARD_BLUETOOTH_USES_HCIATTACH_PROPERTY := false
|
|
||||||
BOARD_HAVE_BLUETOOTH_BCM := true
|
|
||||||
|
|
||||||
# Camera
|
|
||||||
TARGET_HAS_LEGACY_CAMERA_HAL1 := true
|
|
||||||
USE_DEVICE_SPECIFIC_CAMERA := true
|
|
||||||
|
|
||||||
# Filesystem
|
|
||||||
TARGET_FS_CONFIG_GEN := $(LOCAL_PATH)/config.fs
|
|
||||||
|
|
||||||
# HIDL
|
|
||||||
DEVICE_MANIFEST_FILE += $(LOCAL_PATH)/manifest.xml
|
|
||||||
|
|
||||||
# Legacy BLOB Support
|
# Legacy BLOB Support
|
||||||
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true
|
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true
|
||||||
|
TARGET_LD_SHIM_LIBS += \
|
||||||
|
/system/vendor/lib/hw/camera.vendor.msm8974.so|libshim_camera.so
|
||||||
|
|
||||||
# Partitions
|
# Partitions
|
||||||
BOARD_FLASH_BLOCK_SIZE := 131072
|
BOARD_FLASH_BLOCK_SIZE := 131072
|
||||||
|
@ -90,7 +80,6 @@ BOARD_USERDATAIMAGE_PARTITION_SIZE := 27847015936
|
||||||
BOARD_CACHEIMAGE_PARTITION_SIZE := 524288000
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 524288000
|
||||||
TARGET_USERIMAGES_USE_EXT4 := true
|
TARGET_USERIMAGES_USE_EXT4 := true
|
||||||
TARGET_USERIMAGES_USE_F2FS := true
|
TARGET_USERIMAGES_USE_F2FS := true
|
||||||
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := f2fs
|
|
||||||
|
|
||||||
# Power HAL
|
# Power HAL
|
||||||
TARGET_POWERHAL_SET_INTERACTIVE_EXT := $(LOCAL_PATH)/power/power_ext.c
|
TARGET_POWERHAL_SET_INTERACTIVE_EXT := $(LOCAL_PATH)/power/power_ext.c
|
||||||
|
@ -111,15 +100,16 @@ BOARD_RECOVERY_SWIPE := true
|
||||||
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/etc/fstab.full
|
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/etc/fstab.full
|
||||||
|
|
||||||
# SELinux
|
# SELinux
|
||||||
-include device/qcom/sepolicy/sepolicy.mk
|
include $(LOCAL_PATH)/sepolicy/sepolicy.mk
|
||||||
|
|
||||||
BOARD_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy
|
|
||||||
|
|
||||||
# TWRP Support - Optional
|
# TWRP Support - Optional
|
||||||
ifeq ($(WITH_TWRP),true)
|
ifeq ($(WITH_TWRP),true)
|
||||||
-include $(LOCAL_PATH)/twrp.mk
|
-include $(LOCAL_PATH)/twrp.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Use Snapdragon LLVM if available on build server
|
||||||
|
TARGET_USE_SDCLANG := true
|
||||||
|
|
||||||
# Wifi
|
# Wifi
|
||||||
BOARD_HAVE_SAMSUNG_WIFI := true
|
BOARD_HAVE_SAMSUNG_WIFI := true
|
||||||
BOARD_WLAN_DEVICE := bcmdhd
|
BOARD_WLAN_DEVICE := bcmdhd
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
[AID_QCOM_DIAG]
|
|
||||||
value:2950
|
|
||||||
|
|
||||||
[AID_RFS]
|
|
||||||
value:2951
|
|
||||||
|
|
||||||
[AID_RFS_SHARED]
|
|
||||||
value:2952
|
|
25
device.mk
25
device.mk
|
@ -1,6 +1,6 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014-2016 The CyanogenMod Project
|
# Copyright (C) 2014-2016 The CyanogenMod Project
|
||||||
# Copyright (C) 2017 The LineageOS Project
|
# Copyright (C) 2017-2018 The LineageOS Project
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
|
@ -73,24 +73,18 @@ PRODUCT_PACKAGES += \
|
||||||
camera.device@1.0-impl \
|
camera.device@1.0-impl \
|
||||||
camera.msm8974 \
|
camera.msm8974 \
|
||||||
libshim_camera \
|
libshim_camera \
|
||||||
libxml2
|
libxml2 \
|
||||||
|
Snap
|
||||||
#PRODUCT_PACKAGES += \
|
|
||||||
# Snap
|
|
||||||
|
|
||||||
# Doze
|
# Doze
|
||||||
#PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
# SamsungDoze
|
SamsungDoze
|
||||||
|
|
||||||
# IPv6 tethering
|
# IPv6 tethering
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
ebtables \
|
ebtables \
|
||||||
ethertypes
|
ethertypes
|
||||||
|
|
||||||
# IR Blaster
|
|
||||||
#PRODUCT_PACKAGES += \
|
|
||||||
# consumerir.msm8974
|
|
||||||
|
|
||||||
# Input device
|
# Input device
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/idc/sec_e-pen.idc:system/usr/idc/sec_e-pen.idc \
|
$(LOCAL_PATH)/idc/sec_e-pen.idc:system/usr/idc/sec_e-pen.idc \
|
||||||
|
@ -112,12 +106,12 @@ PRODUCT_PACKAGES += \
|
||||||
|
|
||||||
# Media
|
# Media
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/configs/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
|
||||||
$(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml
|
$(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml
|
||||||
|
|
||||||
# Radio
|
# Radio
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libsecnativefeature \
|
libsecnativefeature
|
||||||
libshim_cutils_atomic
|
|
||||||
|
|
||||||
# Ramdisk
|
# Ramdisk
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
@ -148,5 +142,10 @@ PRODUCT_COPY_FILES += \
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
su
|
su
|
||||||
|
|
||||||
|
# ADB
|
||||||
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
|
||||||
|
persist.sys.usb.config=adb \
|
||||||
|
ro.adb.secure=0
|
||||||
|
|
||||||
# common msm8974
|
# common msm8974
|
||||||
$(call inherit-product, device/samsung/msm8974-common/msm8974.mk)
|
$(call inherit-product, device/samsung/msm8974-common/msm8974.mk)
|
||||||
|
|
|
@ -28,7 +28,7 @@ if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
||||||
|
|
||||||
CM_ROOT="$MY_DIR"/../../..
|
CM_ROOT="$MY_DIR"/../../..
|
||||||
|
|
||||||
HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh
|
HELPER="$CM_ROOT"/vendor/lineage/build/tools/extract_utils.sh
|
||||||
if [ ! -f "$HELPER" ]; then
|
if [ ! -f "$HELPER" ]; then
|
||||||
echo "Unable to find helper script at $HELPER"
|
echo "Unable to find helper script at $HELPER"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
||||||
Copyright (c) 2017, The LineageOS Project. All rights reserved.
|
Copyright (c) 2017-2018, The LineageOS Project. All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted provided that the following conditions are
|
modification, are permitted provided that the following conditions are
|
||||||
|
|
|
@ -15,28 +15,19 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// rt hdr
|
// rt hdr
|
||||||
const char *_ZN7android16CameraParameters10KEY_RT_HDRE = "rt-hdr";
|
const char _ZN7android16CameraParameters10KEY_RT_HDRE[] = "rt-hdr";
|
||||||
const char *_ZN7android16CameraParameters20KEY_SUPPORTED_RT_HDRE = "rt-hdr-values";
|
const char _ZN7android16CameraParameters20KEY_SUPPORTED_RT_HDRE[] = "rt-hdr-values";
|
||||||
const char *_ZN7android16CameraParameters9RTHDR_OFFE = "off";
|
const char _ZN7android16CameraParameters9RTHDR_OFFE[] = "off";
|
||||||
const char *_ZN7android16CameraParameters8RTHDR_ONE = "on";
|
const char _ZN7android16CameraParameters8RTHDR_ONE[] = "on";
|
||||||
|
|
||||||
// phase af
|
// phase af
|
||||||
const char *_ZN7android16CameraParameters12KEY_PHASE_AFE = "phase-af";
|
const char _ZN7android16CameraParameters12KEY_PHASE_AFE[] = "phase-af";
|
||||||
const char *_ZN7android16CameraParameters22KEY_SUPPORTED_PHASE_AFE = "phase-af-values";
|
const char _ZN7android16CameraParameters22KEY_SUPPORTED_PHASE_AFE[] = "phase-af-values";
|
||||||
const char *_ZN7android16CameraParameters7PAF_OFFE = "off";
|
const char _ZN7android16CameraParameters7PAF_OFFE[] = "off";
|
||||||
const char *_ZN7android16CameraParameters6PAF_ONE = "on";
|
const char _ZN7android16CameraParameters6PAF_ONE[] = "on";
|
||||||
|
|
||||||
// dynamic range control
|
// dynamic range control
|
||||||
const char *_ZN7android16CameraParameters25KEY_DYNAMIC_RANGE_CONTROLE = "dynamic-range-control";
|
const char _ZN7android16CameraParameters25KEY_DYNAMIC_RANGE_CONTROLE[] = "dynamic-range-control";
|
||||||
const char *_ZN7android16CameraParameters35KEY_SUPPORTED_DYNAMIC_RANGE_CONTROLE = "dynamic-range-control-values";
|
const char _ZN7android16CameraParameters35KEY_SUPPORTED_DYNAMIC_RANGE_CONTROLE[] = "dynamic-range-control-values";
|
||||||
const char *_ZN7android16CameraParameters7DRC_OFFE = "off";
|
const char _ZN7android16CameraParameters7DRC_OFFE[] = "off";
|
||||||
const char *_ZN7android16CameraParameters6DRC_ONE = "on";
|
const char _ZN7android16CameraParameters6DRC_ONE[] = "on";
|
||||||
|
|
||||||
int _ZNK7android16CameraParameters8getInt64EPKc(const char *key);
|
|
||||||
|
|
||||||
int _ZNK7android16CameraParameters8getInt64EPKc(const char *key)
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
//int CameraParameters::getInt64(const char *key) const { return -1; };
|
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
[
|
[
|
||||||
{
|
|
||||||
"repository": "android_external_sony_boringssl-compat",
|
|
||||||
"target_path": "external/sony/boringssl-compat"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"repository": "android_device_samsung_msm8974-common",
|
"repository": "android_device_samsung_msm8974-common",
|
||||||
"target_path": "device/samsung/msm8974-common"
|
"target_path": "device/samsung/msm8974-common"
|
||||||
},
|
|
||||||
{
|
|
||||||
"repository": "android_external_stlport",
|
|
||||||
"target_path": "external/stlport"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
11
manifest.xml
11
manifest.xml
|
@ -17,19 +17,10 @@
|
||||||
<instance>default</instance>
|
<instance>default</instance>
|
||||||
</interface>
|
</interface>
|
||||||
</hal>
|
</hal>
|
||||||
<hal format="hidl">
|
|
||||||
<name>android.hardware.nfc</name>
|
|
||||||
<transport arch="32">passthrough</transport>
|
|
||||||
<version>1.0</version>
|
|
||||||
<interface>
|
|
||||||
<name>INfc</name>
|
|
||||||
<instance>default</instance>
|
|
||||||
</interface>
|
|
||||||
</hal>
|
|
||||||
<hal format="hidl">
|
<hal format="hidl">
|
||||||
<name>android.hardware.radio</name>
|
<name>android.hardware.radio</name>
|
||||||
<transport>hwbinder</transport>
|
<transport>hwbinder</transport>
|
||||||
<version>1.0</version>
|
<version>1.1</version>
|
||||||
<interface>
|
<interface>
|
||||||
<name>IRadio</name>
|
<name>IRadio</name>
|
||||||
<instance>slot1</instance>
|
<instance>slot1</instance>
|
||||||
|
|
|
@ -30,7 +30,7 @@ if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
||||||
|
|
||||||
CM_ROOT="$MY_DIR"/../../..
|
CM_ROOT="$MY_DIR"/../../..
|
||||||
|
|
||||||
HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh
|
HELPER="$CM_ROOT"/vendor/lineage/build/tools/extract_utils.sh
|
||||||
if [ ! -f "$HELPER" ]; then
|
if [ ! -f "$HELPER" ]; then
|
||||||
echo "Unable to find helper script at $HELPER"
|
echo "Unable to find helper script at $HELPER"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
12
system.prop
12
system.prop
|
@ -34,8 +34,6 @@ ro.qc.sdk.izat.premium_enabled=0
|
||||||
ro.qc.sdk.izat.service_mask=0x0
|
ro.qc.sdk.izat.service_mask=0x0
|
||||||
|
|
||||||
# Media
|
# Media
|
||||||
media.stagefright.legacyencoder=true
|
|
||||||
media.stagefright.less-secure=true
|
|
||||||
persist.media.treble_omx=false
|
persist.media.treble_omx=false
|
||||||
|
|
||||||
# Perf
|
# Perf
|
||||||
|
@ -47,8 +45,6 @@ persist.data.qmi.adb_logmask=0
|
||||||
persist.radio.add_power_save=1
|
persist.radio.add_power_save=1
|
||||||
rild.libpath=/system/vendor/lib/libsec-ril.so
|
rild.libpath=/system/vendor/lib/libsec-ril.so
|
||||||
ro.telephony.mms_data_profile=5
|
ro.telephony.mms_data_profile=5
|
||||||
ro.ril.telephony.data_reg_resp_strings=7
|
|
||||||
ro.ril.telephony.oper_resp_strings=4
|
|
||||||
ro.ril.telephony.qan_resp_strings=6
|
ro.ril.telephony.qan_resp_strings=6
|
||||||
|
|
||||||
# Ril sends only one RIL_UNSOL_CALL_RING, so set call_ring.multiple to false
|
# Ril sends only one RIL_UNSOL_CALL_RING, so set call_ring.multiple to false
|
||||||
|
@ -57,16 +53,8 @@ ro.telephony.call_ring.multiple=0
|
||||||
# Sensors
|
# Sensors
|
||||||
debug.sensors=1
|
debug.sensors=1
|
||||||
|
|
||||||
# Storage
|
|
||||||
ro.sys.sdcardfs=false
|
|
||||||
|
|
||||||
# Tethering
|
# Tethering
|
||||||
net.tethering.noprovisioning=true
|
net.tethering.noprovisioning=true
|
||||||
|
|
||||||
# WiFi
|
# WiFi
|
||||||
wifi.interface=wlan0
|
wifi.interface=wlan0
|
||||||
|
|
||||||
# Enable adb
|
|
||||||
#persist.service.adb.enable=1
|
|
||||||
#persist.service.debuggable=1
|
|
||||||
#ro.adb.secure=0
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue