potter: what a derp
This commit is contained in:
204
Android.mk
204
Android.mk
@@ -1,103 +1,103 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2016 The CyanogenMod Project
|
# Copyright (C) 2016 The CyanogenMod 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.
|
||||||
# You may obtain a copy of the License at
|
# You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
ifneq ($(filter potter,$(TARGET_DEVICE)),)
|
ifneq ($(filter potter,$(TARGET_DEVICE)),)
|
||||||
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
FIRMWARE_ADSP_IMAGES := \
|
FIRMWARE_ADSP_IMAGES := \
|
||||||
adsp.b00 adsp.b01 adsp.b02 adsp.b03 adsp.b04 adsp.b05 adsp.b06 \
|
adsp.b00 adsp.b01 adsp.b02 adsp.b03 adsp.b04 adsp.b05 adsp.b06 \
|
||||||
adsp.b07 adsp.b08 adsp.b09 adsp.b10 adsp.b11 adsp.b12 adsp.b13 \
|
adsp.b07 adsp.b08 adsp.b09 adsp.b10 adsp.b11 adsp.b12 adsp.b13 \
|
||||||
adsp.mdt
|
adsp.mdt
|
||||||
|
|
||||||
FIRMWARE_ADSP_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_MODEM_IMAGES)))
|
FIRMWARE_ADSP_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_MODEM_IMAGES)))
|
||||||
$(FIRMWARE_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
$(FIRMWARE_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||||
@echo "ADSP Firmware link: $@"
|
@echo "ADSP Firmware link: $@"
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
@rm -rf $@
|
@rm -rf $@
|
||||||
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
||||||
|
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_ADSP_SYMLINKS)
|
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_ADSP_SYMLINKS)
|
||||||
|
|
||||||
FIRMWARE_CPPF_IMAGES := \
|
FIRMWARE_CPPF_IMAGES := \
|
||||||
cppf.b00 cppf.b01 cppf.b02 cppf.b03 cppf.b04 cppf.b05 cppf.b06 cppf.mdt
|
cppf.b00 cppf.b01 cppf.b02 cppf.b03 cppf.b04 cppf.b05 cppf.b06 cppf.mdt
|
||||||
|
|
||||||
FIRMWARE_CPPF_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_CPPF_IMAGES)))
|
FIRMWARE_CPPF_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_CPPF_IMAGES)))
|
||||||
$(FIRMWARE_CPPF_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
$(FIRMWARE_CPPF_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||||
@echo "Fingerprint Firmware link: $@"
|
@echo "Fingerprint Firmware link: $@"
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
@rm -rf $@
|
@rm -rf $@
|
||||||
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
||||||
|
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_CPPF_SYMLINKS)
|
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_CPPF_SYMLINKS)
|
||||||
|
|
||||||
FIRMWARE_FINGERPRINT_IMAGES := \
|
FIRMWARE_FINGERPRINT_IMAGES := \
|
||||||
fpctzappfingerprint.b00 fpctzappfingerprint.b01 fpctzappfingerprint.b02 \
|
fpctzappfingerprint.b00 fpctzappfingerprint.b01 fpctzappfingerprint.b02 \
|
||||||
fpctzappfingerprint.b03 fpctzappfingerprint.b04 fpctzappfingerprint.b05 \
|
fpctzappfingerprint.b03 fpctzappfingerprint.b04 fpctzappfingerprint.b05 \
|
||||||
fpctzappfingerprint.b06 fpctzappfingerprint.mdt
|
fpctzappfingerprint.b06 fpctzappfingerprint.mdt
|
||||||
|
|
||||||
FIRMWARE_FINGERPRINT_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_FINGERPRINT_IMAGES)))
|
FIRMWARE_FINGERPRINT_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_FINGERPRINT_IMAGES)))
|
||||||
$(FIRMWARE_FINGERPRINT_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
$(FIRMWARE_FINGERPRINT_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||||
@echo "Fingerprint Firmware link: $@"
|
@echo "Fingerprint Firmware link: $@"
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
@rm -rf $@
|
@rm -rf $@
|
||||||
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
||||||
|
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_FINGERPRINT_SYMLINKS)
|
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_FINGERPRINT_SYMLINKS)
|
||||||
|
|
||||||
FIRMWARE_MODEM_IMAGES := \
|
FIRMWARE_MODEM_IMAGES := \
|
||||||
modem.b00 modem.b01 modem.b02 modem.b04 modem.b05 modem.b06 \
|
modem.b00 modem.b01 modem.b02 modem.b04 modem.b05 modem.b06 \
|
||||||
modem.b07 modem.b08 modem.b09 modem.b10 modem.b11 modem.b12 \
|
modem.b07 modem.b08 modem.b09 modem.b10 modem.b11 modem.b12 \
|
||||||
modem.b13 modem.b16 modem.b17 modem.b18 modem.b19 modem.b20 \
|
modem.b13 modem.b16 modem.b17 modem.b18 modem.b19 modem.b20 \
|
||||||
modem.mdt
|
modem.mdt
|
||||||
|
|
||||||
FIRMWARE_MODEM_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_MODEM_IMAGES)))
|
FIRMWARE_MODEM_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_MODEM_IMAGES)))
|
||||||
$(FIRMWARE_MODEM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
$(FIRMWARE_MODEM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||||
@echo "Modem Firmware link: $@"
|
@echo "Modem Firmware link: $@"
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
@rm -rf $@
|
@rm -rf $@
|
||||||
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
||||||
|
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MODEM_SYMLINKS)
|
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MODEM_SYMLINKS)
|
||||||
|
|
||||||
FIRMWARE_WCNSS_IMAGES := \
|
FIRMWARE_WCNSS_IMAGES := \
|
||||||
wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 \
|
wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 \
|
||||||
wcnss.b09 wcnss.b10 wcnss.b11 wcnss.b12 wcnss.mdt
|
wcnss.b09 wcnss.b10 wcnss.b11 wcnss.b12 wcnss.mdt
|
||||||
|
|
||||||
FIRMWARE_WCNSS_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_WCNSS_IMAGES)))
|
FIRMWARE_WCNSS_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FIRMWARE_WCNSS_IMAGES)))
|
||||||
$(FIRMWARE_WCNSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
$(FIRMWARE_WCNSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||||
@echo "WCNSS Firmware link: $@"
|
@echo "WCNSS Firmware link: $@"
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
@rm -rf $@
|
@rm -rf $@
|
||||||
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
||||||
|
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_WCNSS_SYMLINKS)
|
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_WCNSS_SYMLINKS)
|
||||||
|
|
||||||
FIRMWARE_WIDEVINE_IMAGES := \
|
FIRMWARE_WIDEVINE_IMAGES := \
|
||||||
widevine.b00 widevine.b01 widevine.b02 widevine.b03 \
|
widevine.b00 widevine.b01 widevine.b02 widevine.b03 \
|
||||||
widevine.b04 widevine.b05 widevine.b06 widevine.mdt
|
widevine.b04 widevine.b05 widevine.b06 widevine.mdt
|
||||||
|
|
||||||
FIRMWARE_WIDEVINE_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/firmware/,$(notdir $(FIRMWARE_WIDEVINE_IMAGES)))
|
FIRMWARE_WIDEVINE_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/firmware/,$(notdir $(FIRMWARE_WIDEVINE_IMAGES)))
|
||||||
$(FIRMWARE_WIDEVINE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
$(FIRMWARE_WIDEVINE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
||||||
@echo "Widevine Firmware link: $@"
|
@echo "Widevine Firmware link: $@"
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
@rm -rf $@
|
@rm -rf $@
|
||||||
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
||||||
|
|
||||||
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_WIDEVINE_SYMLINKS)
|
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_WIDEVINE_SYMLINKS)
|
||||||
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||||
|
|
||||||
endif
|
endif
|
||||||
340
BoardConfig.mk
340
BoardConfig.mk
@@ -1,170 +1,170 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2016 The CyanogenMod Project
|
# Copyright (C) 2016 The CyanogenMod Project
|
||||||
# Copyright (C) 2017 The LineageOS Project
|
# Copyright (C) 2017 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.
|
||||||
# You may obtain a copy of the License at
|
# You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
-include vendor/motorola/potter/BoardConfigVendor.mk
|
-include vendor/motorola/potter/BoardConfigVendor.mk
|
||||||
|
|
||||||
DEVICE_PATH := device/motorola/potter
|
DEVICE_PATH := device/motorola/potter
|
||||||
|
|
||||||
BOARD_VENDOR := motorola-qcom
|
BOARD_VENDOR := motorola-qcom
|
||||||
|
|
||||||
TARGET_SPECIFIC_HEADER_PATH := $(VENDOR_PATH)/include
|
TARGET_SPECIFIC_HEADER_PATH := $(VENDOR_PATH)/include
|
||||||
|
|
||||||
# Platform
|
# Platform
|
||||||
TARGET_BOARD_PLATFORM := msm8953
|
TARGET_BOARD_PLATFORM := msm8953
|
||||||
TARGET_BOARD_PLATFORM_GPU := qcom-adreno506
|
TARGET_BOARD_PLATFORM_GPU := qcom-adreno506
|
||||||
|
|
||||||
# Bootloader
|
# Bootloader
|
||||||
TARGET_BOOTLOADER_BOARD_NAME := MSM8953
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8953
|
||||||
TARGET_NO_BOOTLOADER := true
|
TARGET_NO_BOOTLOADER := true
|
||||||
|
|
||||||
# Architecture
|
# Architecture
|
||||||
TARGET_ARCH := arm
|
TARGET_ARCH := arm
|
||||||
TARGET_ARCH_VARIANT := armv7-a-neon
|
TARGET_ARCH_VARIANT := armv7-a-neon
|
||||||
TARGET_CPU_ABI := armeabi-v7a
|
TARGET_CPU_ABI := armeabi-v7a
|
||||||
TARGET_CPU_ABI2 := armeabi
|
TARGET_CPU_ABI2 := armeabi
|
||||||
TARGET_CPU_VARIANT := cortex-a53
|
TARGET_CPU_VARIANT := cortex-a53
|
||||||
|
|
||||||
# Asserts
|
# Asserts
|
||||||
TARGET_OTA_ASSERT_DEVICE := potter,potter_retail
|
TARGET_OTA_ASSERT_DEVICE := potter,potter_retail
|
||||||
|
|
||||||
# Init
|
# Init
|
||||||
TARGET_INIT_VENDOR_LIB := libinit_potter
|
TARGET_INIT_VENDOR_LIB := libinit_potter
|
||||||
TARGET_RECOVERY_DEVICE_MODULES := libinit_potter
|
TARGET_RECOVERY_DEVICE_MODULES := libinit_potter
|
||||||
|
|
||||||
# Kernel
|
# Kernel
|
||||||
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=30 msm_rtb.filter=0x237
|
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=30 msm_rtb.filter=0x237
|
||||||
BOARD_KERNEL_CMDLINE += ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 vmalloc=350M
|
BOARD_KERNEL_CMDLINE += ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 vmalloc=350M
|
||||||
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
|
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
|
||||||
BOARD_KERNEL_BASE := 0x80000000
|
BOARD_KERNEL_BASE := 0x80000000
|
||||||
BOARD_KERNEL_PAGESIZE := 2048
|
BOARD_KERNEL_PAGESIZE := 2048
|
||||||
BOARD_KERNEL_SEPARATED_DT := true
|
BOARD_KERNEL_SEPARATED_DT := true
|
||||||
TARGET_CUSTOM_DTBTOOL := dtbTool_moto
|
TARGET_CUSTOM_DTBTOOL := dtbTool_moto
|
||||||
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100
|
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100
|
||||||
TARGET_KERNEL_ARCH := arm
|
TARGET_KERNEL_ARCH := arm
|
||||||
TARGET_KERNEL_CONFIG := potter_defconfig
|
TARGET_KERNEL_CONFIG := potter_defconfig
|
||||||
TARGET_KERNEL_SOURCE := kernel/motorola/msm8953
|
TARGET_KERNEL_SOURCE := kernel/motorola/msm8953
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
|
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
|
||||||
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
|
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
|
||||||
AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
|
AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true
|
||||||
AUDIO_FEATURE_ENABLED_FLUENCE := true
|
AUDIO_FEATURE_ENABLED_FLUENCE := true
|
||||||
AUDIO_FEATURE_ENABLED_HFP := true
|
AUDIO_FEATURE_ENABLED_HFP := true
|
||||||
AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
|
AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
|
||||||
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
|
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
|
||||||
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
|
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
|
||||||
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
|
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
|
||||||
BOARD_USES_ALSA_AUDIO := true
|
BOARD_USES_ALSA_AUDIO := true
|
||||||
USE_CUSTOM_AUDIO_POLICY := 1
|
USE_CUSTOM_AUDIO_POLICY := 1
|
||||||
USE_XML_AUDIO_POLICY_CONF := 1
|
USE_XML_AUDIO_POLICY_CONF := 1
|
||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
|
||||||
BOARD_HAVE_BLUETOOTH := true
|
BOARD_HAVE_BLUETOOTH := true
|
||||||
BOARD_HAVE_BLUETOOTH_QCOM := true
|
BOARD_HAVE_BLUETOOTH_QCOM := true
|
||||||
BLUETOOTH_HCI_USE_MCT := true
|
BLUETOOTH_HCI_USE_MCT := true
|
||||||
|
|
||||||
# Camera
|
# Camera
|
||||||
TARGET_CAMERASERVICE_CLOSES_NATIVE_HANDLES := true
|
TARGET_CAMERASERVICE_CLOSES_NATIVE_HANDLES := true
|
||||||
USE_DEVICE_SPECIFIC_CAMERA := true
|
USE_DEVICE_SPECIFIC_CAMERA := true
|
||||||
|
|
||||||
# Charger
|
# Charger
|
||||||
BACKLIGHT_PATH := /sys/class/leds/lcd-backlight/brightness
|
BACKLIGHT_PATH := /sys/class/leds/lcd-backlight/brightness
|
||||||
BOARD_CHARGER_ENABLE_SUSPEND := true
|
BOARD_CHARGER_ENABLE_SUSPEND := true
|
||||||
BOARD_NO_CHARGER_LED := true
|
BOARD_NO_CHARGER_LED := true
|
||||||
|
|
||||||
# CMHW
|
# CMHW
|
||||||
BOARD_USES_CYANOGEN_HARDWARE := true
|
BOARD_USES_CYANOGEN_HARDWARE := true
|
||||||
BOARD_HARDWARE_CLASS += hardware/cyanogen/cmhw
|
BOARD_HARDWARE_CLASS += hardware/cyanogen/cmhw
|
||||||
|
|
||||||
# Crypto
|
# Crypto
|
||||||
TARGET_HW_DISK_ENCRYPTION := true
|
TARGET_HW_DISK_ENCRYPTION := true
|
||||||
|
|
||||||
# Display
|
# Display
|
||||||
HAVE_ADRENO_SOURCE:= false
|
HAVE_ADRENO_SOURCE:= false
|
||||||
BOARD_USES_ADRENO := true
|
BOARD_USES_ADRENO := true
|
||||||
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
||||||
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
|
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
|
||||||
TARGET_USES_C2D_COMPOSITION := true
|
TARGET_USES_C2D_COMPOSITION := true
|
||||||
TARGET_USES_ION := true
|
TARGET_USES_ION := true
|
||||||
TARGET_USES_NEW_ION_API := true
|
TARGET_USES_NEW_ION_API := true
|
||||||
USE_OPENGL_RENDERER := true
|
USE_OPENGL_RENDERER := true
|
||||||
MAX_EGL_CACHE_KEY_SIZE := 12*1024
|
MAX_EGL_CACHE_KEY_SIZE := 12*1024
|
||||||
MAX_EGL_CACHE_SIZE := 2048*1024
|
MAX_EGL_CACHE_SIZE := 2048*1024
|
||||||
|
|
||||||
TARGET_USES_SDM := false
|
TARGET_USES_SDM := false
|
||||||
|
|
||||||
# FM
|
# FM
|
||||||
BOARD_HAVE_QCOM_FM := true
|
BOARD_HAVE_QCOM_FM := true
|
||||||
TARGET_QCOM_NO_FM_FIRMWARE := true
|
TARGET_QCOM_NO_FM_FIRMWARE := true
|
||||||
|
|
||||||
# Keymaster
|
# Keymaster
|
||||||
TARGET_PROVIDES_KEYMASTER := true
|
TARGET_PROVIDES_KEYMASTER := true
|
||||||
|
|
||||||
# Lights
|
# Lights
|
||||||
TARGET_PROVIDES_LIBLIGHT := true
|
TARGET_PROVIDES_LIBLIGHT := true
|
||||||
|
|
||||||
# Media
|
# Media
|
||||||
TARGET_USES_MEDIA_EXTENSIONS := true
|
TARGET_USES_MEDIA_EXTENSIONS := true
|
||||||
|
|
||||||
# Partitions
|
# Partitions
|
||||||
BOARD_FLASH_BLOCK_SIZE := 131072
|
BOARD_FLASH_BLOCK_SIZE := 131072
|
||||||
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||||
BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216 # 16384 * 1024 mmcblk0p37
|
BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216 # 16384 * 1024 mmcblk0p37
|
||||||
BOARD_CACHEIMAGE_PARTITION_SIZE := 260014080 # 253920 * 1024 mmcblk0p52
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 260014080 # 253920 * 1024 mmcblk0p52
|
||||||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16879616 # 16484 * 1024 mmcblk0p38
|
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16879616 # 16484 * 1024 mmcblk0p38
|
||||||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3510353920 # 3428080 * 1024 mmcblk0p53
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3510353920 # 3428080 * 1024 mmcblk0p53
|
||||||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 26401026048 # 25782252 * 1024 mmcblk0p54
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 26401026048 # 25782252 * 1024 mmcblk0p54
|
||||||
|
|
||||||
# Peripheral manager
|
# Peripheral manager
|
||||||
TARGET_PER_MGR_ENABLED := true
|
TARGET_PER_MGR_ENABLED := true
|
||||||
|
|
||||||
# Power
|
# Power
|
||||||
TARGET_POWERHAL_VARIANT := qcom
|
TARGET_POWERHAL_VARIANT := qcom
|
||||||
|
|
||||||
# Qualcomm support
|
# Qualcomm support
|
||||||
BOARD_USES_QCOM_HARDWARE := true
|
BOARD_USES_QCOM_HARDWARE := true
|
||||||
BOARD_USES_QC_TIME_SERVICES := true
|
BOARD_USES_QC_TIME_SERVICES := true
|
||||||
TARGET_USE_SDCLANG := true
|
TARGET_USE_SDCLANG := true
|
||||||
|
|
||||||
# Radio
|
# Radio
|
||||||
BOARD_PROVIDES_LIBRIL := true
|
BOARD_PROVIDES_LIBRIL := true
|
||||||
BOARD_PROVIDES_RILD := true
|
BOARD_PROVIDES_RILD := true
|
||||||
|
|
||||||
# Recovery
|
# Recovery
|
||||||
BOARD_HAS_NO_SELECT_BUTTON := true
|
BOARD_HAS_NO_SELECT_BUTTON := true
|
||||||
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
|
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
|
||||||
TARGET_USERIMAGES_USE_EXT4 := true
|
TARGET_USERIMAGES_USE_EXT4 := true
|
||||||
TARGET_USERIMAGES_USE_F2FS := true
|
TARGET_USERIMAGES_USE_F2FS := true
|
||||||
|
|
||||||
# SELinux
|
# SELinux
|
||||||
include device/qcom/sepolicy/sepolicy.mk
|
include device/qcom/sepolicy/sepolicy.mk
|
||||||
BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy
|
BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy
|
||||||
|
|
||||||
# Sensor
|
# Sensor
|
||||||
USE_SENSOR_MULTI_HAL := true
|
USE_SENSOR_MULTI_HAL := true
|
||||||
|
|
||||||
# Wifi
|
# Wifi
|
||||||
BOARD_HAS_QCOM_WLAN := true
|
BOARD_HAS_QCOM_WLAN := true
|
||||||
BOARD_HAS_QCOM_WLAN_SDK := true
|
BOARD_HAS_QCOM_WLAN_SDK := true
|
||||||
BOARD_WLAN_DEVICE := qcwcn
|
BOARD_WLAN_DEVICE := qcwcn
|
||||||
BOARD_HOSTAPD_DRIVER := NL80211
|
BOARD_HOSTAPD_DRIVER := NL80211
|
||||||
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_qcwcn
|
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_qcwcn
|
||||||
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
||||||
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_qcwcn
|
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_qcwcn
|
||||||
WIFI_DRIVER_FW_PATH_AP := "ap"
|
WIFI_DRIVER_FW_PATH_AP := "ap"
|
||||||
WIFI_DRIVER_FW_PATH_STA := "sta"
|
WIFI_DRIVER_FW_PATH_STA := "sta"
|
||||||
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
||||||
|
|||||||
@@ -1,37 +1,37 @@
|
|||||||
/*
|
/*
|
||||||
# Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
# Copyright (c) 2016, The Linux Foundation. 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
|
||||||
# met:
|
# met:
|
||||||
# * Redistributions of source code must retain the above copyright
|
# * Redistributions of source code must retain the above copyright
|
||||||
# notice, this list of conditions and the following disclaimer.
|
# notice, this list of conditions and the following disclaimer.
|
||||||
# * Redistributions in binary form must reproduce the above
|
# * Redistributions in binary form must reproduce the above
|
||||||
# copyright notice, this list of conditions and the following
|
# copyright notice, this list of conditions and the following
|
||||||
# disclaimer in the documentation and/or other materials provided
|
# disclaimer in the documentation and/or other materials provided
|
||||||
# with the distribution.
|
# with the distribution.
|
||||||
# * Neither the name of The Linux Foundation nor the names of its
|
# * Neither the name of The Linux Foundation nor the names of its
|
||||||
# contributors may be used to endorse or promote products derived
|
# contributors may be used to endorse or promote products derived
|
||||||
# from this software without specific prior written permission.
|
# from this software without specific prior written permission.
|
||||||
#
|
#
|
||||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <private/android_filesystem_config.h>
|
#include <private/android_filesystem_config.h>
|
||||||
|
|
||||||
#define NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS
|
#define NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS
|
||||||
const struct fs_path_config android_device_files[] = {
|
const struct fs_path_config android_device_files[] = {
|
||||||
// { 00755, AID_UID, AID_GID, (1ULL << CAPABILITY), "PATH_TO_BINARY" },
|
// { 00755, AID_UID, AID_GID, (1ULL << CAPABILITY), "PATH_TO_BINARY" },
|
||||||
{ 00755, AID_SYSTEM, AID_SYSTEM, (1ULL << CAP_NET_BIND_SERVICE), "system/bin/imsdatadaemon" },
|
{ 00755, AID_SYSTEM, AID_SYSTEM, (1ULL << CAP_NET_BIND_SERVICE), "system/bin/imsdatadaemon" },
|
||||||
{ 00755, AID_SYSTEM, AID_RADIO, (1ULL << CAP_NET_BIND_SERVICE), "system/bin/ims_rtp_daemon" },
|
{ 00755, AID_SYSTEM, AID_RADIO, (1ULL << CAP_NET_BIND_SERVICE), "system/bin/ims_rtp_daemon" },
|
||||||
};
|
};
|
||||||
@@ -1,138 +1,138 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<!-- Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
<!-- Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
||||||
|
|
||||||
Not a Contribution.
|
Not a Contribution.
|
||||||
|
|
||||||
Copyright 2016 The Android Open Source Project
|
Copyright 2016 The Android Open Source 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.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<MediaCodecs>
|
<MediaCodecs>
|
||||||
<Encoders>
|
<Encoders>
|
||||||
<MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" update="true">
|
<MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" update="true">
|
||||||
<Limit name="measured-frame-rate-176x144" range="374-377" />
|
<Limit name="measured-frame-rate-176x144" range="374-377" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.google.h264.encoder" type="video/avc" update="true">
|
<MediaCodec name="OMX.google.h264.encoder" type="video/avc" update="true">
|
||||||
<Limit name="measured-frame-rate-320x240" range="245-250" />
|
<Limit name="measured-frame-rate-320x240" range="245-250" />
|
||||||
<Limit name="measured-frame-rate-720x480" range="96-97" />
|
<Limit name="measured-frame-rate-720x480" range="96-97" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="48-48" />
|
<Limit name="measured-frame-rate-1280x720" range="48-48" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="24-24" />
|
<Limit name="measured-frame-rate-1920x1080" range="24-24" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es" update="true">
|
<MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es" update="true">
|
||||||
<Limit name="measured-frame-rate-176x144" range="382-385" />
|
<Limit name="measured-frame-rate-176x144" range="382-385" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
|
<MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
|
||||||
<Limit name="measured-frame-rate-320x180" range="111-112" />
|
<Limit name="measured-frame-rate-320x180" range="111-112" />
|
||||||
<Limit name="measured-frame-rate-640x360" range="37-37" />
|
<Limit name="measured-frame-rate-640x360" range="37-37" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="33-33" />
|
<Limit name="measured-frame-rate-1280x720" range="33-33" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="19-19" />
|
<Limit name="measured-frame-rate-1920x1080" range="19-19" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" update="true">
|
<MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" update="true">
|
||||||
<Limit name="measured-frame-rate-320x240" range="282-285" />
|
<Limit name="measured-frame-rate-320x240" range="282-285" />
|
||||||
<Limit name="measured-frame-rate-720x480" range="83-83" />
|
<Limit name="measured-frame-rate-720x480" range="83-83" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="36-36" />
|
<Limit name="measured-frame-rate-1280x720" range="36-36" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="32-32" />
|
<Limit name="measured-frame-rate-1920x1080" range="32-32" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.encoder.h263" type="video/3gpp" update="true">
|
<MediaCodec name="OMX.qcom.video.encoder.h263" type="video/3gpp" update="true">
|
||||||
<Limit name="measured-frame-rate-176x144" range="355-358" />
|
<Limit name="measured-frame-rate-176x144" range="355-358" />
|
||||||
<Limit name="measured-frame-rate-352x288" range="283-284" />
|
<Limit name="measured-frame-rate-352x288" range="283-284" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.encoder.hevc" type="video/hevc" update="true">
|
<MediaCodec name="OMX.qcom.video.encoder.hevc" type="video/hevc" update="true">
|
||||||
<Limit name="measured-frame-rate-320x240" range="269-272" />
|
<Limit name="measured-frame-rate-320x240" range="269-272" />
|
||||||
<Limit name="measured-frame-rate-720x480" range="83-83" />
|
<Limit name="measured-frame-rate-720x480" range="83-83" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="36-36" />
|
<Limit name="measured-frame-rate-1280x720" range="36-36" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="32-32" />
|
<Limit name="measured-frame-rate-1920x1080" range="32-32" />
|
||||||
<Limit name="measured-frame-rate-3840x2160" range="9-9" />
|
<Limit name="measured-frame-rate-3840x2160" range="9-9" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" update="true">
|
<MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" update="true">
|
||||||
<Limit name="measured-frame-rate-176x144" range="356-359" />
|
<Limit name="measured-frame-rate-176x144" range="356-359" />
|
||||||
<Limit name="measured-frame-rate-352x288" range="277-278" />
|
<Limit name="measured-frame-rate-352x288" range="277-278" />
|
||||||
<Limit name="measured-frame-rate-640x480" range="149-150" />
|
<Limit name="measured-frame-rate-640x480" range="149-150" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.encoder.vp8" type="video/x-vnd.on2.vp8" update="true">
|
<MediaCodec name="OMX.qcom.video.encoder.vp8" type="video/x-vnd.on2.vp8" update="true">
|
||||||
<Limit name="measured-frame-rate-320x180" range="267-271" />
|
<Limit name="measured-frame-rate-320x180" range="267-271" />
|
||||||
<Limit name="measured-frame-rate-640x360" range="126-126" />
|
<Limit name="measured-frame-rate-640x360" range="126-126" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="34-34" />
|
<Limit name="measured-frame-rate-1280x720" range="34-34" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="30-30" />
|
<Limit name="measured-frame-rate-1920x1080" range="30-30" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
</Encoders>
|
</Encoders>
|
||||||
<Decoders>
|
<Decoders>
|
||||||
<MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" update="true">
|
<MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" update="true">
|
||||||
<Limit name="measured-frame-rate-176x144" range="185-191" />
|
<Limit name="measured-frame-rate-176x144" range="185-191" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.google.h264.decoder" type="video/avc" update="true">
|
<MediaCodec name="OMX.google.h264.decoder" type="video/avc" update="true">
|
||||||
<Limit name="measured-frame-rate-320x240" range="317-326" />
|
<Limit name="measured-frame-rate-320x240" range="317-326" />
|
||||||
<Limit name="measured-frame-rate-720x480" range="132-133" />
|
<Limit name="measured-frame-rate-720x480" range="132-133" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="57-57" />
|
<Limit name="measured-frame-rate-1280x720" range="57-57" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="24-24" />
|
<Limit name="measured-frame-rate-1920x1080" range="24-24" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.google.hevc.decoder" type="video/hevc" update="true">
|
<MediaCodec name="OMX.google.hevc.decoder" type="video/hevc" update="true">
|
||||||
<Limit name="measured-frame-rate-352x288" range="460-471" />
|
<Limit name="measured-frame-rate-352x288" range="460-471" />
|
||||||
<Limit name="measured-frame-rate-640x360" range="238-240" />
|
<Limit name="measured-frame-rate-640x360" range="238-240" />
|
||||||
<Limit name="measured-frame-rate-720x480" range="218-220" />
|
<Limit name="measured-frame-rate-720x480" range="218-220" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="97-98" />
|
<Limit name="measured-frame-rate-1280x720" range="97-98" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="54-54" />
|
<Limit name="measured-frame-rate-1920x1080" range="54-54" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.google.mpeg4.decoder" type="video/mp4v-es" update="true">
|
<MediaCodec name="OMX.google.mpeg4.decoder" type="video/mp4v-es" update="true">
|
||||||
<Limit name="measured-frame-rate-176x144" range="205-210" />
|
<Limit name="measured-frame-rate-176x144" range="205-210" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
|
<MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
|
||||||
<Limit name="measured-frame-rate-320x180" range="631-634" />
|
<Limit name="measured-frame-rate-320x180" range="631-634" />
|
||||||
<Limit name="measured-frame-rate-640x360" range="179-182" />
|
<Limit name="measured-frame-rate-640x360" range="179-182" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="40-41" />
|
<Limit name="measured-frame-rate-1280x720" range="40-41" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="17-17" />
|
<Limit name="measured-frame-rate-1920x1080" range="17-17" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
|
<MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
|
||||||
<Limit name="measured-frame-rate-320x180" range="376-382" />
|
<Limit name="measured-frame-rate-320x180" range="376-382" />
|
||||||
<Limit name="measured-frame-rate-640x360" range="183-183" />
|
<Limit name="measured-frame-rate-640x360" range="183-183" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="90-91" />
|
<Limit name="measured-frame-rate-1280x720" range="90-91" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="50-50" />
|
<Limit name="measured-frame-rate-1920x1080" range="50-50" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" update="true">
|
<MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" update="true">
|
||||||
<Limit name="measured-frame-rate-320x240" range="270-275" />
|
<Limit name="measured-frame-rate-320x240" range="270-275" />
|
||||||
<Limit name="measured-frame-rate-720x480" range="230-233" />
|
<Limit name="measured-frame-rate-720x480" range="230-233" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="133-134" />
|
<Limit name="measured-frame-rate-1280x720" range="133-134" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="53-53" />
|
<Limit name="measured-frame-rate-1920x1080" range="53-53" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.decoder.h263" type="video/3gpp" update="true">
|
<MediaCodec name="OMX.qcom.video.decoder.h263" type="video/3gpp" update="true">
|
||||||
<Limit name="measured-frame-rate-176x144" range="422-429" />
|
<Limit name="measured-frame-rate-176x144" range="422-429" />
|
||||||
<Limit name="measured-frame-rate-352x288" range="427-431" />
|
<Limit name="measured-frame-rate-352x288" range="427-431" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.decoder.hevc" type="video/hevc" update="true">
|
<MediaCodec name="OMX.qcom.video.decoder.hevc" type="video/hevc" update="true">
|
||||||
<Limit name="measured-frame-rate-352x288" range="341-345" />
|
<Limit name="measured-frame-rate-352x288" range="341-345" />
|
||||||
<Limit name="measured-frame-rate-640x360" range="266-269" />
|
<Limit name="measured-frame-rate-640x360" range="266-269" />
|
||||||
<Limit name="measured-frame-rate-720x480" range="250-252" />
|
<Limit name="measured-frame-rate-720x480" range="250-252" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="120-121" />
|
<Limit name="measured-frame-rate-1280x720" range="120-121" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="56-56" />
|
<Limit name="measured-frame-rate-1920x1080" range="56-56" />
|
||||||
<Limit name="measured-frame-rate-3840x2160" range="13-13" />
|
<Limit name="measured-frame-rate-3840x2160" range="13-13" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.decoder.mpeg4" type="video/mp4v-es" update="true">
|
<MediaCodec name="OMX.qcom.video.decoder.mpeg4" type="video/mp4v-es" update="true">
|
||||||
<Limit name="measured-frame-rate-176x144" range="428-433" />
|
<Limit name="measured-frame-rate-176x144" range="428-433" />
|
||||||
<Limit name="measured-frame-rate-480x360" range="409-412" />
|
<Limit name="measured-frame-rate-480x360" range="409-412" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" update="true">
|
<MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" update="true">
|
||||||
<Limit name="measured-frame-rate-320x180" range="434-436" />
|
<Limit name="measured-frame-rate-320x180" range="434-436" />
|
||||||
<Limit name="measured-frame-rate-640x360" range="357-358" />
|
<Limit name="measured-frame-rate-640x360" range="357-358" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="321-321" />
|
<Limit name="measured-frame-rate-1280x720" range="321-321" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="148-148" />
|
<Limit name="measured-frame-rate-1920x1080" range="148-148" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
<MediaCodec name="OMX.qcom.video.decoder.vp9" type="video/x-vnd.on2.vp9" update="true">
|
<MediaCodec name="OMX.qcom.video.decoder.vp9" type="video/x-vnd.on2.vp9" update="true">
|
||||||
<Limit name="measured-frame-rate-320x180" range="422-424" />
|
<Limit name="measured-frame-rate-320x180" range="422-424" />
|
||||||
<Limit name="measured-frame-rate-640x360" range="305-306" />
|
<Limit name="measured-frame-rate-640x360" range="305-306" />
|
||||||
<Limit name="measured-frame-rate-1280x720" range="308-309" />
|
<Limit name="measured-frame-rate-1280x720" range="308-309" />
|
||||||
<Limit name="measured-frame-rate-1920x1080" range="161-161" />
|
<Limit name="measured-frame-rate-1920x1080" range="161-161" />
|
||||||
<Limit name="measured-frame-rate-3840x2160" range="36-36" />
|
<Limit name="measured-frame-rate-3840x2160" range="36-36" />
|
||||||
</MediaCodec>
|
</MediaCodec>
|
||||||
</Decoders>
|
</Decoders>
|
||||||
</MediaCodecs>
|
</MediaCodecs>
|
||||||
|
|||||||
596
device.mk
596
device.mk
@@ -1,298 +1,298 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2016 The CyanogenMod Project
|
# Copyright (C) 2016 The CyanogenMod Project
|
||||||
# Copyright (C) 2017 The LineageOS Project
|
# Copyright (C) 2017 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.
|
||||||
# You may obtain a copy of the License at
|
# You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
||||||
|
|
||||||
# Overlay
|
# Overlay
|
||||||
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
||||||
|
|
||||||
# These are the hardware-specific features
|
# These are the hardware-specific features
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
|
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
|
||||||
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
|
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
|
||||||
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
|
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
|
||||||
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
|
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
|
||||||
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
|
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
|
||||||
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
|
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
|
||||||
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
|
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
|
||||||
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
|
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
|
||||||
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
|
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
|
||||||
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
|
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
|
||||||
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
|
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
|
||||||
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
|
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
|
||||||
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
|
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
|
||||||
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
|
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
|
||||||
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
|
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
|
||||||
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
|
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
|
||||||
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
|
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
|
||||||
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
|
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
|
||||||
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
|
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
|
||||||
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
|
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
|
||||||
frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:system/etc/permissions/android.hardware.vulkan.level.xml \
|
frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:system/etc/permissions/android.hardware.vulkan.level.xml \
|
||||||
frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:system/etc/permissions/android.hardware.vulkan.version.xml \
|
frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:system/etc/permissions/android.hardware.vulkan.version.xml \
|
||||||
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
|
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
|
||||||
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
|
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
|
||||||
frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
|
frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
|
||||||
frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
|
frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
|
||||||
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
|
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
|
||||||
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
|
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
|
||||||
|
|
||||||
# Motorola Camera permissions
|
# Motorola Camera permissions
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/com.motorola.cameraone.xml:system/etc/permissions/com.motorola.cameraone.xml
|
$(LOCAL_PATH)/configs/com.motorola.cameraone.xml:system/etc/permissions/com.motorola.cameraone.xml
|
||||||
|
|
||||||
# Screen density
|
# Screen density
|
||||||
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
||||||
PRODUCT_AAPT_CONFIG := normal
|
PRODUCT_AAPT_CONFIG := normal
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
audiod \
|
audiod \
|
||||||
audio.a2dp.default \
|
audio.a2dp.default \
|
||||||
audio.primary.msm8953 \
|
audio.primary.msm8953 \
|
||||||
audio.r_submix.default \
|
audio.r_submix.default \
|
||||||
audio.usb.default \
|
audio.usb.default \
|
||||||
libaudio-resampler \
|
libaudio-resampler \
|
||||||
libqcomvisualizer \
|
libqcomvisualizer \
|
||||||
libqcomvoiceprocessing \
|
libqcomvoiceprocessing \
|
||||||
libqcompostprocbundle \
|
libqcompostprocbundle \
|
||||||
libshim_adsp \
|
libshim_adsp \
|
||||||
tinymix
|
tinymix
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
|
$(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
|
||||||
$(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
|
$(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
|
||||||
$(LOCAL_PATH)/audio/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
|
$(LOCAL_PATH)/audio/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
|
||||||
$(LOCAL_PATH)/audio/audio_platform_info_extcodec.xml:system/etc/audio_platform_info_extcodec.xml \
|
$(LOCAL_PATH)/audio/audio_platform_info_extcodec.xml:system/etc/audio_platform_info_extcodec.xml \
|
||||||
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \
|
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \
|
||||||
$(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml \
|
$(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml \
|
||||||
$(LOCAL_PATH)/audio/audio_ext_spkr.conf:system/etc/audio_ext_spkr.conf \
|
$(LOCAL_PATH)/audio/audio_ext_spkr.conf:system/etc/audio_ext_spkr.conf \
|
||||||
$(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml
|
$(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
|
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml \
|
||||||
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
|
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \
|
||||||
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
|
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \
|
||||||
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
|
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \
|
||||||
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
|
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml
|
||||||
|
|
||||||
# Browser
|
# Browser
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
Gello
|
Gello
|
||||||
|
|
||||||
# Camera
|
# Camera
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
camera.msm8953 \
|
camera.msm8953 \
|
||||||
libbson \
|
libbson \
|
||||||
libshim_camera \
|
libshim_camera \
|
||||||
Snap
|
Snap
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/camera/msm8953_mot_potter_camera.xml:system/etc/camera/msm8953_mot_potter_camera.xml \
|
$(LOCAL_PATH)/configs/camera/msm8953_mot_potter_camera.xml:system/etc/camera/msm8953_mot_potter_camera.xml \
|
||||||
$(LOCAL_PATH)/configs/camera/mot_ov5695_chromatix.xml:system/etc/camera/mot_ov5695_chromatix.xml \
|
$(LOCAL_PATH)/configs/camera/mot_ov5695_chromatix.xml:system/etc/camera/mot_ov5695_chromatix.xml \
|
||||||
$(LOCAL_PATH)/configs/camera/mot_imx362_chromatix.xml:system/etc/camera/mot_imx362_chromatix.xml
|
$(LOCAL_PATH)/configs/camera/mot_imx362_chromatix.xml:system/etc/camera/mot_imx362_chromatix.xml
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/gps/etc/flp.conf:system/etc/flp.conf \
|
$(LOCAL_PATH)/gps/etc/flp.conf:system/etc/flp.conf \
|
||||||
$(LOCAL_PATH)/gps/etc/gps.conf:system/etc/gps.conf \
|
$(LOCAL_PATH)/gps/etc/gps.conf:system/etc/gps.conf \
|
||||||
$(LOCAL_PATH)/gps/etc/izat.conf:system/etc/izat.conf \
|
$(LOCAL_PATH)/gps/etc/izat.conf:system/etc/izat.conf \
|
||||||
$(LOCAL_PATH)/gps/etc/lowi.conf:system/etc/lowi.conf \
|
$(LOCAL_PATH)/gps/etc/lowi.conf:system/etc/lowi.conf \
|
||||||
$(LOCAL_PATH)/gps/etc/sap.conf:system/etc/sap.conf \
|
$(LOCAL_PATH)/gps/etc/sap.conf:system/etc/sap.conf \
|
||||||
$(LOCAL_PATH)/gps/etc/xtwifi.conf:system/etc/xtwifi.conf
|
$(LOCAL_PATH)/gps/etc/xtwifi.conf:system/etc/xtwifi.conf
|
||||||
|
|
||||||
# CMActions
|
# CMActions
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
CMActions
|
CMActions
|
||||||
|
|
||||||
# Display
|
# Display
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
gralloc.msm8953 \
|
gralloc.msm8953 \
|
||||||
copybit.msm8953 \
|
copybit.msm8953 \
|
||||||
liboverlay \
|
liboverlay \
|
||||||
hwcomposer.msm8953 \
|
hwcomposer.msm8953 \
|
||||||
memtrack.msm8953 \
|
memtrack.msm8953 \
|
||||||
libtinyxml
|
libtinyxml
|
||||||
|
|
||||||
# Display Calibration
|
# Display Calibration
|
||||||
# PRODUCT_PACKAGES += \
|
# PRODUCT_PACKAGES += \
|
||||||
# libjni_livedisplay
|
# libjni_livedisplay
|
||||||
|
|
||||||
# DRM
|
# DRM
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libprotobuf-cpp-lite
|
libprotobuf-cpp-lite
|
||||||
|
|
||||||
# Ebtables
|
# Ebtables
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
ebtables \
|
ebtables \
|
||||||
ethertypes \
|
ethertypes \
|
||||||
libebtc
|
libebtc
|
||||||
|
|
||||||
# Fingerprint
|
# Fingerprint
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
fingerprintd
|
fingerprintd
|
||||||
|
|
||||||
# FM
|
# FM
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
FMRadio \
|
FMRadio \
|
||||||
libfmjni
|
libfmjni
|
||||||
|
|
||||||
# For android_filesystem_config.h
|
# For android_filesystem_config.h
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
fs_config_files
|
fs_config_files
|
||||||
|
|
||||||
# IMS
|
# IMS
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libshim_ims
|
libshim_ims
|
||||||
|
|
||||||
# IPA Manager
|
# IPA Manager
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
ipacm \
|
ipacm \
|
||||||
IPACM_cfg.xml
|
IPACM_cfg.xml
|
||||||
|
|
||||||
# IRSC
|
# IRSC
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
|
$(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
|
||||||
|
|
||||||
# Keylayouts
|
# Keylayouts
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \
|
$(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \
|
||||||
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|
||||||
$(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
|
$(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
|
||||||
$(LOCAL_PATH)/keylayout/synaptics_dsxv26.kl:system/usr/keylayout/synaptics_dsxv26.kl \
|
$(LOCAL_PATH)/keylayout/synaptics_dsxv26.kl:system/usr/keylayout/synaptics_dsxv26.kl \
|
||||||
$(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl \
|
$(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl \
|
||||||
$(LOCAL_PATH)/keylayout/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl
|
$(LOCAL_PATH)/keylayout/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl
|
||||||
|
|
||||||
# IDC
|
# IDC
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/idc/uinput-fpc.idc:system/usr/idc/uinput-fpc.idc
|
$(LOCAL_PATH)/idc/uinput-fpc.idc:system/usr/idc/uinput-fpc.idc
|
||||||
|
|
||||||
# Lights
|
# Lights
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
lights.msm8953
|
lights.msm8953
|
||||||
|
|
||||||
# Media
|
# Media
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libc2dcolorconvert
|
libc2dcolorconvert
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
|
$(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
|
||||||
$(LOCAL_PATH)/configs/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
|
$(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 \
|
||||||
$(LOCAL_PATH)/configs/media_profiles_rc.xml:system/etc/media_profiles_rc.xml
|
$(LOCAL_PATH)/configs/media_profiles_rc.xml:system/etc/media_profiles_rc.xml
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
|
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
|
||||||
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
|
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
|
||||||
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml
|
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml
|
||||||
|
|
||||||
# NFC
|
# NFC
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml
|
frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
|
$(LOCAL_PATH)/configs/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
|
||||||
$(LOCAL_PATH)/configs/libnfc-nxp.conf:system/etc/libnfc-nxp.conf
|
$(LOCAL_PATH)/configs/libnfc-nxp.conf:system/etc/libnfc-nxp.conf
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libnfc \
|
libnfc \
|
||||||
libnfc_jni \
|
libnfc_jni \
|
||||||
nfc_nci.pn54x.default \
|
nfc_nci.pn54x.default \
|
||||||
NfcNci \
|
NfcNci \
|
||||||
Tag \
|
Tag \
|
||||||
com.android.nfc_extras
|
com.android.nfc_extras
|
||||||
|
|
||||||
# OMX
|
# OMX
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libOmxAacEnc \
|
libOmxAacEnc \
|
||||||
libOmxAmrEnc \
|
libOmxAmrEnc \
|
||||||
libOmxCore \
|
libOmxCore \
|
||||||
libOmxEvrcEnc \
|
libOmxEvrcEnc \
|
||||||
libOmxQcelp13Enc \
|
libOmxQcelp13Enc \
|
||||||
libOmxVdec \
|
libOmxVdec \
|
||||||
libOmxVenc \
|
libOmxVenc \
|
||||||
libOmxVidcCommon \
|
libOmxVidcCommon \
|
||||||
libstagefrighthw
|
libstagefrighthw
|
||||||
|
|
||||||
# Power
|
# Power
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
power.msm8953
|
power.msm8953
|
||||||
|
|
||||||
# Ramdisk
|
# Ramdisk
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
init.mmi.touch.sh \
|
init.mmi.touch.sh \
|
||||||
init.qcom.ril.sh
|
init.qcom.ril.sh
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
fstab.qcom \
|
fstab.qcom \
|
||||||
init.mmi.boot.sh \
|
init.mmi.boot.sh \
|
||||||
init.mmi.laser.sh \
|
init.mmi.laser.sh \
|
||||||
init.mmi.rc \
|
init.mmi.rc \
|
||||||
init.mmi.usb.rc \
|
init.mmi.usb.rc \
|
||||||
init.qcom.rc \
|
init.qcom.rc \
|
||||||
ueventd.qcom.rc
|
ueventd.qcom.rc
|
||||||
|
|
||||||
# RIL
|
# RIL
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
librmnetctl \
|
librmnetctl \
|
||||||
libxml2
|
libxml2
|
||||||
|
|
||||||
# Sensors
|
# Sensors
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/sensors/hals.conf:system/etc/sensors/hals.conf \
|
$(LOCAL_PATH)/configs/sensors/hals.conf:system/etc/sensors/hals.conf \
|
||||||
$(LOCAL_PATH)/configs/sensors/sensor_def_qcomdev.conf:system/etc/sensors/sensor_def_qcomdev.conf
|
$(LOCAL_PATH)/configs/sensors/sensor_def_qcomdev.conf:system/etc/sensors/sensor_def_qcomdev.conf
|
||||||
|
|
||||||
# Thermal
|
# Thermal
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/thermal-engine-potter.conf:system/etc/thermal-engine-potter.conf
|
$(LOCAL_PATH)/configs/thermal-engine-potter.conf:system/etc/thermal-engine-potter.conf
|
||||||
|
|
||||||
# Wifi
|
# Wifi
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
hostapd_default.conf \
|
hostapd_default.conf \
|
||||||
hostapd \
|
hostapd \
|
||||||
wpa_supplicant \
|
wpa_supplicant \
|
||||||
wpa_supplicant.conf
|
wpa_supplicant.conf
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
p2p_supplicant_overlay.conf \
|
p2p_supplicant_overlay.conf \
|
||||||
wpa_supplicant_overlay.conf
|
wpa_supplicant_overlay.conf
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libcurl \
|
libcurl \
|
||||||
libqsap_sdk \
|
libqsap_sdk \
|
||||||
libQWiFiSoftApCfg \
|
libQWiFiSoftApCfg \
|
||||||
tcpdump \
|
tcpdump \
|
||||||
wcnss_service
|
wcnss_service
|
||||||
|
|
||||||
# Wifi Symlinks
|
# Wifi Symlinks
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
WCNSS_qcom_cfg.ini \
|
WCNSS_qcom_cfg.ini \
|
||||||
WCNSS_qcom_wlan_nv.bin \
|
WCNSS_qcom_wlan_nv.bin \
|
||||||
WCNSS_qcom_wlan_nv_Argentina.bin \
|
WCNSS_qcom_wlan_nv_Argentina.bin \
|
||||||
WCNSS_qcom_wlan_nv_Brazil.bin \
|
WCNSS_qcom_wlan_nv_Brazil.bin \
|
||||||
WCNSS_qcom_wlan_nv_India.bin \
|
WCNSS_qcom_wlan_nv_India.bin \
|
||||||
WCNSS_wlan_dictionary.dat
|
WCNSS_wlan_dictionary.dat
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
kernel/motorola/msm8953/drivers/staging/prima/firmware_bin/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
|
kernel/motorola/msm8953/drivers/staging/prima/firmware_bin/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
|
||||||
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
|
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
|
||||||
|
|
||||||
# ZAF
|
# ZAF
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/zaf/zaf_mot_imx362.json:system/etc/zaf/zaf_mot_imx362.json
|
$(LOCAL_PATH)/configs/zaf/zaf_mot_imx362.json:system/etc/zaf/zaf_mot_imx362.json
|
||||||
|
|
||||||
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
|
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
|
||||||
|
|
||||||
PRODUCT_GMS_CLIENTID_BASE := android-motorola
|
PRODUCT_GMS_CLIENTID_BASE := android-motorola
|
||||||
|
|||||||
112
extract-files.sh
112
extract-files.sh
@@ -1,57 +1,57 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016 The CyanogenMod Project
|
# Copyright (C) 2016 The CyanogenMod 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.
|
||||||
# You may obtain a copy of the License at
|
# You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
DEVICE=potter
|
DEVICE=potter
|
||||||
VENDOR=motorola
|
VENDOR=motorola
|
||||||
|
|
||||||
# Load extractutils and do some sanity checks
|
# Load extractutils and do some sanity checks
|
||||||
MY_DIR="${BASH_SOURCE%/*}"
|
MY_DIR="${BASH_SOURCE%/*}"
|
||||||
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
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/cm/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
|
||||||
fi
|
fi
|
||||||
. "$HELPER"
|
. "$HELPER"
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
SRC=adb
|
SRC=adb
|
||||||
else
|
else
|
||||||
if [ $# -eq 1 ]; then
|
if [ $# -eq 1 ]; then
|
||||||
SRC=$1
|
SRC=$1
|
||||||
else
|
else
|
||||||
echo "$0: bad number of arguments"
|
echo "$0: bad number of arguments"
|
||||||
echo ""
|
echo ""
|
||||||
echo "usage: $0 [PATH_TO_EXPANDED_ROM]"
|
echo "usage: $0 [PATH_TO_EXPANDED_ROM]"
|
||||||
echo ""
|
echo ""
|
||||||
echo "If PATH_TO_EXPANDED_ROM is not specified, blobs will be extracted from"
|
echo "If PATH_TO_EXPANDED_ROM is not specified, blobs will be extracted from"
|
||||||
echo "the device using adb pull."
|
echo "the device using adb pull."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Initialize the helper
|
# Initialize the helper
|
||||||
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT"
|
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT"
|
||||||
|
|
||||||
extract "$MY_DIR"/proprietary-files.txt "$SRC"
|
extract "$MY_DIR"/proprietary-files.txt "$SRC"
|
||||||
|
|
||||||
"$MY_DIR"/setup-makefiles.sh
|
"$MY_DIR"/setup-makefiles.sh
|
||||||
@@ -1,22 +1,22 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2015 The CyanogenMod Project
|
# Copyright (C) 2015 The CyanogenMod 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.
|
||||||
# You may obtain a copy of the License at
|
# You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
# Inherit from potter device
|
# Inherit from potter device
|
||||||
$(call inherit-product, device/motorola/potter/device.mk)
|
$(call inherit-product, device/motorola/potter/device.mk)
|
||||||
|
|
||||||
# Device identifier. This must come after all inclusions
|
# Device identifier. This must come after all inclusions
|
||||||
PRODUCT_DEVICE := potter
|
PRODUCT_DEVICE := potter
|
||||||
PRODUCT_NAME := full_potter
|
PRODUCT_NAME := full_potter
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
[
|
[
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|||||||
84
lineage.mk
84
lineage.mk
@@ -1,43 +1,43 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2016 The CyanogenMod Project
|
# Copyright (C) 2016 The CyanogenMod Project
|
||||||
# Copyright (C) 2017 The LineageOS Project
|
# Copyright (C) 2017 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.
|
||||||
# You may obtain a copy of the License at
|
# You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
# Inherit from those products. Most specific first.
|
# Inherit from those products. Most specific first.
|
||||||
$(call inherit-product, device/motorola/potter/full_potter.mk)
|
$(call inherit-product, device/motorola/potter/full_potter.mk)
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
||||||
|
|
||||||
# for specific
|
# for specific
|
||||||
$(call inherit-product, vendor/motorola/potter/potter-vendor.mk)
|
$(call inherit-product, vendor/motorola/potter/potter-vendor.mk)
|
||||||
|
|
||||||
# Inherit some common CM stuff.
|
# Inherit some common CM stuff.
|
||||||
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
|
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
|
||||||
|
|
||||||
# Boot animation
|
# Boot animation
|
||||||
TARGET_SCREEN_WIDTH := 1080
|
TARGET_SCREEN_WIDTH := 1080
|
||||||
TARGET_SCREEN_HEIGHT := 1920
|
TARGET_SCREEN_HEIGHT := 1920
|
||||||
|
|
||||||
## Device identifier. This must come after all inclusions
|
## Device identifier. This must come after all inclusions
|
||||||
PRODUCT_DEVICE := potter
|
PRODUCT_DEVICE := potter
|
||||||
PRODUCT_NAME := lineage_potter
|
PRODUCT_NAME := lineage_potter
|
||||||
PRODUCT_BRAND := motorola
|
PRODUCT_BRAND := motorola
|
||||||
PRODUCT_MANUFACTURER := motorola
|
PRODUCT_MANUFACTURER := motorola
|
||||||
|
|
||||||
PRODUCT_SYSTEM_PROPERTY_BLACKLIST := ro.product.model
|
PRODUCT_SYSTEM_PROPERTY_BLACKLIST := ro.product.model
|
||||||
|
|
||||||
PRODUCT_BUILD_PROP_OVERRIDES += \
|
PRODUCT_BUILD_PROP_OVERRIDES += \
|
||||||
BUILD_FINGERPRINT=motorola/potter/potter:7.0/NPN25.137-35/37:user/release-keys \
|
BUILD_FINGERPRINT=motorola/potter/potter:7.0/NPN25.137-35/37:user/release-keys \
|
||||||
PRIVATE_BUILD_DESC="potter-7.0/NPN25.137-35/37:user/release-keys" \
|
PRIVATE_BUILD_DESC="potter-7.0/NPN25.137-35/37:user/release-keys" \
|
||||||
PRODUCT_NAME="Moto G5 Plus"
|
PRODUCT_NAME="Moto G5 Plus"
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,47 +1,47 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016 The CyanogenMod Project
|
# Copyright (C) 2016 The CyanogenMod 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.
|
||||||
# You may obtain a copy of the License at
|
# You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Required!
|
# Required!
|
||||||
DEVICE=potter
|
DEVICE=potter
|
||||||
VENDOR=motorola
|
VENDOR=motorola
|
||||||
|
|
||||||
# Load extractutils and do some sanity checks
|
# Load extractutils and do some sanity checks
|
||||||
MY_DIR="${BASH_SOURCE%/*}"
|
MY_DIR="${BASH_SOURCE%/*}"
|
||||||
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
|
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/cm/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
|
||||||
fi
|
fi
|
||||||
. "$HELPER"
|
. "$HELPER"
|
||||||
|
|
||||||
# Initialize the helper
|
# Initialize the helper
|
||||||
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT"
|
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT"
|
||||||
|
|
||||||
# Copyright headers and guards
|
# Copyright headers and guards
|
||||||
write_headers
|
write_headers
|
||||||
|
|
||||||
# The standard blobs
|
# The standard blobs
|
||||||
write_makefiles "$MY_DIR"/proprietary-files.txt
|
write_makefiles "$MY_DIR"/proprietary-files.txt
|
||||||
|
|
||||||
# We are done!
|
# We are done!
|
||||||
write_footers
|
write_footers
|
||||||
Reference in New Issue
Block a user