From 2cec38abd983777c4a27f97ffad90234f1569934 Mon Sep 17 00:00:00 2001 From: dd3boh Date: Tue, 31 Oct 2017 16:00:54 +0100 Subject: msm8996-common: Commonize the device tree Signed-off-by: dd3boh --- Android.mk | 2 +- AndroidProducts.mk | 17 - BoardConfig.mk | 218 ---- BoardConfigCommon.mk | 208 ++++ README.md | 2 +- audio/audio_platform_info.xml | 57 - audio/mixer_paths_tasha.xml | 2501 ----------------------------------------- bluetooth/bdroid_buildcfg.h | 20 +- device.mk | 273 ----- extract-files.sh | 74 -- gps/Android.mk | 2 +- init/Android.mk | 4 +- init/init_msm8996.cpp | 107 ++ init/init_z2_plus.cpp | 107 -- liblight/Android.mk | 27 - liblight/NOTICE | 190 ---- liblight/lights.c | 386 ------- lineage.mk | 41 - msm8996.mk | 265 +++++ proprietary-files.txt | 751 ------------- rootdir/etc/init.qcom.usb.rc | 4 +- setup-makefiles.sh | 67 -- system.prop | 1 - vendorsetup.sh | 2 - 24 files changed, 606 insertions(+), 4720 deletions(-) delete mode 100644 AndroidProducts.mk delete mode 100644 BoardConfig.mk create mode 100644 BoardConfigCommon.mk delete mode 100644 audio/audio_platform_info.xml delete mode 100644 audio/mixer_paths_tasha.xml delete mode 100755 device.mk delete mode 100644 extract-files.sh create mode 100644 init/init_msm8996.cpp delete mode 100644 init/init_z2_plus.cpp delete mode 100644 liblight/Android.mk delete mode 100644 liblight/NOTICE delete mode 100644 liblight/lights.c delete mode 100644 lineage.mk create mode 100755 msm8996.mk delete mode 100644 proprietary-files.txt delete mode 100755 setup-makefiles.sh delete mode 100755 vendorsetup.sh diff --git a/Android.mk b/Android.mk index 03f6f16..31beff4 100644 --- a/Android.mk +++ b/Android.mk @@ -26,7 +26,7 @@ LOCAL_PATH := $(call my-dir) -ifeq ($(TARGET_DEVICE),z2_plus) +ifneq ($(filter z2_plus z2_row,$(TARGET_DEVICE)),) include $(call all-makefiles-under,$(LOCAL_PATH)) include $(CLEAR_VARS) diff --git a/AndroidProducts.mk b/AndroidProducts.mk deleted file mode 100644 index 32be961..0000000 --- a/AndroidProducts.mk +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright (C) 2016 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -PRODUCT_MAKEFILES := \ - $(LOCAL_DIR)/aosp_z2_plus.mk diff --git a/BoardConfig.mk b/BoardConfig.mk deleted file mode 100644 index 1eb0fd3..0000000 --- a/BoardConfig.mk +++ /dev/null @@ -1,218 +0,0 @@ -# Copyright (C) 2013-2016, The CyanogenMod Project -# Copyright (C) 2017, The LineageOS Project -# Copyright (C) 2017 The halogenOS Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# This file sets variables that control the way modules are built -# thorughout the system. It should not be used to conditionally -# disable makefiles (the proper mechanism to control what gets -# included in a build is to use PRODUCT_PACKAGES in a product -# definition file). -# - -TARGET_OTA_ASSERT_DEVICE := z2,Z2,z2plus,z2_plus - -PLATFORM_PATH := device/zuk/z2_plus - -TARGET_SPECIFIC_HEADER_PATH := $(PLATFORM_PATH)/include - -BOARD_VENDOR := zuk - -# Bootloader -TARGET_BOOTLOADER_BOARD_NAME := msm8996 -TARGET_NO_BOOTLOADER := true - -# Platform -TARGET_BOARD_PLATFORM := msm8996 -TARGET_BOARD_PLATFORM_GPU := qcom-adreno530 - -# Properties -TARGET_SYSTEM_PROP += $(PLATFORM_PATH)/system.prop - -# Architecture -TARGET_ARCH := arm64 -TARGET_ARCH_VARIANT := armv8-a -TARGET_CPU_ABI := arm64-v8a -TARGET_CPU_ABI2 := -# TARGET_CPU_VARIANT := kryo -TARGET_CPU_VARIANT := generic - -TARGET_2ND_ARCH := arm -TARGET_2ND_ARCH_VARIANT := armv7-a-neon -TARGET_2ND_CPU_ABI := armeabi-v7a -TARGET_2ND_CPU_ABI2 := armeabi -# TARGET_2ND_CPU_VARIANT := kryo -TARGET_2ND_CPU_VARIANT := krait - -ENABLE_CPUSETS := true -TARGET_USES_64_BIT_BINDER := true - - -# Kernel -BOARD_KERNEL_CMDLINE := \ - androidboot.hardware=qcom \ - ehci-hcd.park=3 \ - lpm_levels.sleep_disabled=1 \ - cma=32M@0-0xffffffff \ - androidboot.selinux=permissive -BOARD_KERNEL_BASE := 0x80000000 -BOARD_KERNEL_PAGESIZE := 4096 -BOARD_KERNEL_TAGS_OFFSET := 0x00000100 -BOARD_RAMDISK_OFFSET := 0x01000000 -BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb -TARGET_KERNEL_ARCH := arm64 -TARGET_KERNEL_HEADER_ARCH := arm64 -TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- -TARGET_KERNEL_CONFIG := z2_plus_defconfig -TARGET_KERNEL_SOURCE := kernel/zuk/msm8996 -TARGET_KERNEL_BUILD_VARIANT := user - -# Webview defs -PREBUILT_WEBVIEW_VERSION := chromium - -# Audio -AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true -AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true -AUDIO_FEATURE_ENABLED_ANC_HEADSET := true -AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true -AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true -AUDIO_FEATURE_ENABLED_DEV_ARBI := true -AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true -AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true -AUDIO_FEATURE_ENABLED_FLUENCE := true -AUDIO_FEATURE_ENABLED_HFP := true -AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true -AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true -AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true -AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true -AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true -AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true -AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true -#BOARD_SUPPORTS_SOUND_TRIGGER := true -BOARD_USES_ALSA_AUDIO := true -USE_CUSTOM_AUDIO_POLICY := 1 -USE_XML_AUDIO_POLICY_CONF := 1 - -# Bluetooth -BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(PLATFORM_PATH)/bluetooth -BOARD_BLUETOOTH_BDROID_HCILP_INCLUDED := false -BOARD_HAS_QCA_BT_ROME := true -BOARD_HAVE_BLUETOOTH := true -BOARD_HAVE_BLUETOOTH_QCOM := true -QCOM_BT_USE_BTNV := true - -# Camera -BOARD_QTI_CAMERA_32BIT_ONLY := true -USE_DEVICE_SPECIFIC_CAMERA := true -TARGET_CAMERASERVICE_CLOSES_NATIVE_HANDLES := true - -# Charger -BOARD_CHARGER_ENABLE_SUSPEND := true -BOARD_CHARGER_DISABLE_INIT_BLANK := true - -# CNE and DPM -BOARD_USES_QCNE := true - -# Crypto -TARGET_HW_DISK_ENCRYPTION := true - -# Display -BOARD_USES_ADRENO := true -TARGET_CONTINUOUS_SPLASH_ENABLED := true -TARGET_USES_C2D_COMPOSITION := true -MAX_VIRTUAL_DISPLAY_DIMENSION := 4096 -TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true -TARGET_USES_ION := true -TARGET_USES_NEW_ION_API :=true -TARGET_USES_GRALLOC1 := true -TARGET_USES_HWC2 := true -TARGET_USES_OVERLAY := true -MAX_EGL_CACHE_KEY_SIZE := 12*1024 -MAX_EGL_CACHE_SIZE := 2048*1024 -NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 -SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000 -VSYNC_EVENT_PHASE_OFFSET_NS := 2000000 -OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so -USE_OPENGL_RENDERER := true - -# Filesystem -TARGET_FS_CONFIG_GEN := $(PLATFORM_PATH)/config.fs - -# Init -# TARGET_INIT_VENDOR_LIB := libinit_z2_plus -# TARGET_RECOVERY_DEVICE_MODULES := libinit_z2_plus -TARGET_PLATFORM_DEVICE_BASE := /devices/soc/ - -# Lineage Hardware -BOARD_HARDWARE_CLASS += \ - $(PLATFORM_PATH)/lineagehw - -# Keystore -TARGET_PROVIDES_KEYMASTER := true - -# Lights -TARGET_PROVIDES_LIBLIGHT := true - -# Media -TARGET_USES_MEDIA_EXTENSIONS := true - -# Partitions -BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 -BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 -BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864 -BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3154116608 -BOARD_USERDATAIMAGE_PARTITION_SIZE := 57436708864 -BOARD_FLASH_BLOCK_SIZE := 262144 - -# QCOM hardware -BOARD_USES_QCOM_HARDWARE := true - -# QCOM Power -TARGET_POWERHAL_VARIANT := qcom - -# Tap to wake node -TARGET_TAP_TO_WAKE_NODE := "/sys/devices/virtual/touch/tp_dev/gesture_on" - -# Recovery -TARGET_RECOVERY_FSTAB := $(PLATFORM_PATH)/rootdir/etc/fstab.qcom -TARGET_USERIMAGES_USE_EXT4 := true -TARGET_USERIMAGES_USE_F2FS := true - -# SELinux -# include device/qcom/sepolicy/sepolicy.mk -# BOARD_SEPOLICY_DIRS += $(PLATFORM_PATH)/sepolicy - -# Timeservice -BOARD_USES_QC_TIME_SERVICES := true - -# Use Snapdragon LLVM, if available -TARGET_USE_SDCLANG := true - -# Wifi -BOARD_HAS_QCOM_WLAN := true -BOARD_HAS_QCOM_WLAN_SDK := true -BOARD_WLAN_DEVICE := qcwcn -BOARD_WPA_SUPPLICANT_DRIVER := NL80211 -BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) -BOARD_HOSTAPD_DRIVER := NL80211 -BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) -HOSTAPD_VERSION := VER_0_8_X -WIFI_DRIVER_FW_PATH_AP := "ap" -WIFI_DRIVER_FW_PATH_STA := "sta" -WIFI_DRIVER_FW_PATH_P2P := "p2p" -WPA_SUPPLICANT_VERSION := VER_0_8_X - -# inherit from the proprietary version --include vendor/zuk/z2_plus/BoardConfigVendor.mk diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk new file mode 100644 index 0000000..938d632 --- /dev/null +++ b/BoardConfigCommon.mk @@ -0,0 +1,208 @@ +# Copyright (C) 2013-2016, The CyanogenMod Project +# Copyright (C) 2017, The LineageOS Project +# Copyright (C) 2017 The halogenOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# +# This file sets variables that control the way modules are built +# thorughout the system. It should not be used to conditionally +# disable makefiles (the proper mechanism to control what gets +# included in a build is to use PRODUCT_PACKAGES in a product +# definition file). +# + +VENDOR_PATH := device/zuk/msm8996-common + +TARGET_SPECIFIC_HEADER_PATH := $(VENDOR_PATH)/include + +BOARD_VENDOR := zuk + +# Bootloader +TARGET_BOOTLOADER_BOARD_NAME := msm8996 +TARGET_NO_BOOTLOADER := true + +# Platform +TARGET_BOARD_PLATFORM := msm8996 +TARGET_BOARD_PLATFORM_GPU := qcom-adreno530 + +# Properties +TARGET_SYSTEM_PROP += $(VENDOR_PATH)/system.prop + +# Architecture +TARGET_ARCH := arm64 +TARGET_ARCH_VARIANT := armv8-a +TARGET_CPU_ABI := arm64-v8a +TARGET_CPU_ABI2 := +# TARGET_CPU_VARIANT := kryo +TARGET_CPU_VARIANT := generic + +TARGET_2ND_ARCH := arm +TARGET_2ND_ARCH_VARIANT := armv7-a-neon +TARGET_2ND_CPU_ABI := armeabi-v7a +TARGET_2ND_CPU_ABI2 := armeabi +# TARGET_2ND_CPU_VARIANT := kryo +TARGET_2ND_CPU_VARIANT := krait + +ENABLE_CPUSETS := true +TARGET_USES_64_BIT_BINDER := true + + +# Kernel +BOARD_KERNEL_CMDLINE := \ + androidboot.hardware=qcom \ + ehci-hcd.park=3 \ + lpm_levels.sleep_disabled=1 \ + cma=32M@0-0xffffffff \ + androidboot.selinux=permissive +BOARD_KERNEL_BASE := 0x80000000 +BOARD_KERNEL_PAGESIZE := 4096 +BOARD_KERNEL_TAGS_OFFSET := 0x00000100 +BOARD_RAMDISK_OFFSET := 0x01000000 +BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb +TARGET_KERNEL_ARCH := arm64 +TARGET_KERNEL_HEADER_ARCH := arm64 +TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- +TARGET_KERNEL_SOURCE := kernel/zuk/msm8996 +TARGET_KERNEL_BUILD_VARIANT := user + +# Webview defs +PREBUILT_WEBVIEW_VERSION := chromium + +# Audio +AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true +AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true +AUDIO_FEATURE_ENABLED_ANC_HEADSET := true +AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true +AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true +AUDIO_FEATURE_ENABLED_DEV_ARBI := true +AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true +AUDIO_FEATURE_ENABLED_FLAC_OFFLOAD := true +AUDIO_FEATURE_ENABLED_FLUENCE := true +AUDIO_FEATURE_ENABLED_HFP := true +AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true +AUDIO_FEATURE_ENABLED_NT_PAUSE_TIMEOUT := true +AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true +AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true +AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true +AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true +#BOARD_SUPPORTS_SOUND_TRIGGER := true +BOARD_USES_ALSA_AUDIO := true +USE_CUSTOM_AUDIO_POLICY := 1 +USE_XML_AUDIO_POLICY_CONF := 1 + +# Bluetooth +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(VENDOR_PATH)/bluetooth +BOARD_BLUETOOTH_BDROID_HCILP_INCLUDED := false +BOARD_HAS_QCA_BT_ROME := true +BOARD_HAVE_BLUETOOTH := true +BOARD_HAVE_BLUETOOTH_QCOM := true +QCOM_BT_USE_BTNV := true + +# Camera +BOARD_QTI_CAMERA_32BIT_ONLY := true +USE_DEVICE_SPECIFIC_CAMERA := true +TARGET_CAMERASERVICE_CLOSES_NATIVE_HANDLES := true + +# Charger +BOARD_CHARGER_ENABLE_SUSPEND := true +BOARD_CHARGER_DISABLE_INIT_BLANK := true + +# CNE and DPM +BOARD_USES_QCNE := true + +# Crypto +TARGET_HW_DISK_ENCRYPTION := true + +# Display +BOARD_USES_ADRENO := true +TARGET_CONTINUOUS_SPLASH_ENABLED := true +TARGET_USES_C2D_COMPOSITION := true +MAX_VIRTUAL_DISPLAY_DIMENSION := 4096 +TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true +TARGET_USES_ION := true +TARGET_USES_NEW_ION_API :=true +TARGET_USES_GRALLOC1 := true +TARGET_USES_HWC2 := true +TARGET_USES_OVERLAY := true +MAX_EGL_CACHE_KEY_SIZE := 12*1024 +MAX_EGL_CACHE_SIZE := 2048*1024 +NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 +SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000 +VSYNC_EVENT_PHASE_OFFSET_NS := 2000000 +OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so +USE_OPENGL_RENDERER := true + +# Filesystem +TARGET_FS_CONFIG_GEN := $(VENDOR_PATH)/config.fs + +# Init +# TARGET_INIT_VENDOR_LIB := libinit_msm8996 +# TARGET_RECOVERY_DEVICE_MODULES := libinit_msm8996 +TARGET_PLATFORM_DEVICE_BASE := /devices/soc/ + +# Lineage Hardware +BOARD_HARDWARE_CLASS += \ + $(VENDOR_PATH)/lineagehw + +# Keystore +TARGET_PROVIDES_KEYMASTER := true + +# Media +TARGET_USES_MEDIA_EXTENSIONS := true + +# Partitions +BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 +BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 +BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864 +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3154116608 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 57436708864 +BOARD_FLASH_BLOCK_SIZE := 262144 + +# QCOM hardware +BOARD_USES_QCOM_HARDWARE := true + +# QCOM Power +TARGET_POWERHAL_VARIANT := qcom + +# Tap to wake node +TARGET_TAP_TO_WAKE_NODE := "/sys/devices/virtual/touch/tp_dev/gesture_on" + +# Recovery +TARGET_RECOVERY_FSTAB := $(VENDOR_PATH)/rootdir/etc/fstab.qcom +TARGET_USERIMAGES_USE_EXT4 := true +TARGET_USERIMAGES_USE_F2FS := true + +# SELinux +# include device/qcom/sepolicy/sepolicy.mk +# BOARD_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy + +# Timeservice +BOARD_USES_QC_TIME_SERVICES := true + +# Use Snapdragon LLVM, if available +TARGET_USE_SDCLANG := true + +# Wifi +BOARD_HAS_QCOM_WLAN := true +BOARD_HAS_QCOM_WLAN_SDK := true +BOARD_WLAN_DEVICE := qcwcn +BOARD_WPA_SUPPLICANT_DRIVER := NL80211 +BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) +BOARD_HOSTAPD_DRIVER := NL80211 +BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) +HOSTAPD_VERSION := VER_0_8_X +WIFI_DRIVER_FW_PATH_AP := "ap" +WIFI_DRIVER_FW_PATH_STA := "sta" +WIFI_DRIVER_FW_PATH_P2P := "p2p" +WPA_SUPPLICANT_VERSION := VER_0_8_X diff --git a/README.md b/README.md index a9722c0..9e28582 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Device configuration for ZUK Z2 +Common device tree for ZUK msm8996 devices diff --git a/audio/audio_platform_info.xml b/audio/audio_platform_info.xml deleted file mode 100644 index 7612497..0000000 --- a/audio/audio_platform_info.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/audio/mixer_paths_tasha.xml b/audio/mixer_paths_tasha.xml deleted file mode 100644 index f648aba..0000000 --- a/audio/mixer_paths_tasha.xml +++ /dev/null @@ -1,2501 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h index 8a7f266..88f5289 100644 --- a/bluetooth/bdroid_buildcfg.h +++ b/bluetooth/bdroid_buildcfg.h @@ -21,7 +21,25 @@ #ifndef _BDROID_BUILDCFG_H #define _BDROID_BUILDCFG_H -#define BTM_DEF_LOCAL_NAME "ZUK Z2 Plus" + +#include +#include + +static inline const char* BtmGetDefaultName() +{ + char product_device[PROPERTY_VALUE_MAX]; + property_get("ro.product.device", product_device, ""); + + if (strstr(product_device, "z2_plus")) + return "Zuk Z2 Plus"; + if (strstr(product_device, "z2_row")) + return "Zuk Z2 Pro"; + + // Fallback to ro.product.model + return ""; +} + +#define BTM_DEF_LOCAL_NAME BtmGetDefaultName() // Disables read remote device feature #define BTA_SKIP_BLE_READ_REMOTE_FEAT FALSE #define MAX_ACL_CONNECTIONS 7 diff --git a/device.mk b/device.mk deleted file mode 100755 index 4d95544..0000000 --- a/device.mk +++ /dev/null @@ -1,273 +0,0 @@ -# Copyright (C) 2013-2016, The CyanogenMod Project -# Copyright (C) 2017, The LineageOS Project -# Copyright (C) 2017 The halogenOS Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# This file sets variables that control the way modules are built -# thorughout the system. It should not be used to conditionally -# disable makefiles (the proper mechanism to control what gets -# included in a build is to use PRODUCT_PACKAGES in a product -# definition file). -# - -$(call inherit-product-if-exists, vendor/zuk/z2_plus/z2_plus-vendor.mk) - -# Hidl HALs -$(call inherit-product, $(LOCAL_PATH)/hidl.mk) - -# Overlays -DEVICE_PACKAGE_OVERLAYS += \ - $(LOCAL_PATH)/overlay - -# Permissions -PRODUCT_COPY_FILES += \ - frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ - frameworks/native/data/etc/android.hardware.audio.pro.xml:system/etc/permissions/android.hardware.audio.pro.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.xml:system/etc/permissions/android.hardware.bluetooth.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.full.xml:system/etc/permissions/android.hardware.camera.full.xml \ - frameworks/native/data/etc/android.hardware.camera.raw.xml:system/etc/permissions/android.hardware.camera.raw.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.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.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.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.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.hifi_sensors.xml:system/etc/permissions/android.hardware.sensor.hifi_sensors.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.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.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.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.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ - frameworks/native/data/etc/android.hardware.vulkan.level-0.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.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ - frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ - frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.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 - -# Device uses high-density artwork where available -PRODUCT_AAPT_CONFIG := normal -PRODUCT_AAPT_PREF_CONFIG := xxhdpi - -# Boot animation -TARGET_SCREEN_HEIGHT := 1920 -TARGET_SCREEN_WIDTH := 1080 - -# Haters gonna hate.. -PRODUCT_CHARACTERISTICS := nosdcard - -# Audio -PRODUCT_PACKAGES += \ - audiod \ - audio.a2dp.default \ - audio.primary.msm8996 \ - audio.r_submix.default \ - audio.usb.default \ - libaudio-resampler \ - libaudioroute \ - libbthost_if \ - libqcompostprocbundle \ - libqcomvisualizer \ - libqcomvoiceprocessing \ - libvolumelistener \ - tinymix - -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/audio/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \ - $(LOCAL_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \ - $(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ - $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ - $(LOCAL_PATH)/audio/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml \ - $(LOCAL_PATH)/audio/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ - $(LOCAL_PATH)/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \ - $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \ - $(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml - -PRODUCT_COPY_FILES += \ - $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ - $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ - $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ - $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ - $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml - -# Bluetooth -PRODUCT_PACKAGES += \ - libbt-vendor - -# Camera -PRODUCT_PACKAGES += \ - Camera2 \ - camera.msm8996 \ - libshim_camera - -# Display -PRODUCT_PACKAGES += \ - copybit.msm8996 \ - gralloc.msm8996 \ - hwcomposer.msm8996 \ - memtrack.msm8996 \ - libgenlock \ - liboverlay \ - libtinyxml - -# Fingerprint -PRODUCT_PACKAGES += \ - fingerprint.msm8996 - -# For config.fs -PRODUCT_PACKAGES += \ - fs_config_files - -# GPS -PRODUCT_PACKAGES += \ - gps.msm8996 \ - libcurl \ - libgnsspps \ - libshims_get_process_name - -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/gps/etc/flp.conf:system/etc/flp.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/lowi.conf:system/etc/lowi.conf \ - $(LOCAL_PATH)/gps/etc/sap.conf:system/etc/sap.conf \ - $(LOCAL_PATH)/gps/etc/xtwifi.conf:system/etc/xtwifi.conf - -# HIDL manifest -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/manifest.xml:system/vendor/manifest.xml - -# Graphics -PRODUCT_PACKAGES += \ - libsdm-disp-apis - -# IPA Manager -PRODUCT_PACKAGES += \ - ipacm \ - IPACM_cfg.xml - -# IPC router config -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config - -# Thermal -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/thermal-engine.conf:system/etc/thermal-engine.conf - -# IPv6 -PRODUCT_PACKAGES += \ - ebtables \ - ethertypes \ - libebtc - -# Keylayouts -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/keylayout/fpc1020tp.kl:system/usr/keylayout/fpc1020tp.kl \ - $(LOCAL_PATH)/keylayout/goodix-ts.kl:system/usr/keylayout/goodix-ts.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/msm8996-tasha-mtp-snd-card_Button_Jack.kl:system/usr/keylayout/msm8996-tasha-mtp-snd-card_Button_Jack.kl \ - $(LOCAL_PATH)/keylayout/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl - -# Lights -PRODUCT_PACKAGES += \ - lights.msm8996 - -# Media -PRODUCT_COPY_FILES += \ - $(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_profiles.xml:system/etc/media_profiles.xml - -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_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 - -# Miracast -PRODUCT_PROPERTY_OVERRIDES += \ - persist.debug.wfd.enable=1 - -# OMX -PRODUCT_PACKAGES += \ - libc2dcolorconvert \ - libextmedia_jni \ - libOmxAacEnc \ - libOmxAmrEnc \ - libOmxCore \ - libOmxEvrcEnc \ - libOmxQcelp13Enc \ - libOmxVdec \ - libOmxVenc \ - libOmxVdecHevc \ - libstagefrighthw - -# Power -PRODUCT_PACKAGES += \ - power.msm8996 - -# QMI -PRODUCT_PACKAGES += \ - libjson - -# Ramdisk -PRODUCT_PACKAGES += \ - fstab.qcom \ - init.qcom.power.rc \ - init.qcom.rc \ - init.qcom.sh \ - init.qcom.usb.rc \ - init.qcom.usb.sh \ - init.qcom.bt.sh \ - ueventd.qcom.rc - -# RIL -PRODUCT_PACKAGES += \ - librmnetctl \ - libxml2 - -# Seccomp policy -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/seccomp_policy/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ - $(LOCAL_PATH)/seccomp_policy/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy - -# Wifi -PRODUCT_PACKAGES += \ - libwpa_client \ - wificond \ - hostapd \ - readmac \ - wpa_supplicant \ - wpa_supplicant.conf - -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \ - $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf - -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \ - $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat - -# MSM8996 Headers -PRODUCT_VENDOR_KERNEL_HEADERS := hardware/qcom/msm8996/kernel-headers diff --git a/extract-files.sh b/extract-files.sh deleted file mode 100644 index c5e540e..0000000 --- a/extract-files.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2016 The CyanogenMod Project -# Copyright (C) 2017 The LineageOS Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -set -e - -# Required! -export DEVICE=z2_plus -export VENDOR=zuk - -export DEVICE_BRINGUP_YEAR=2016 - -# Load extract_utils and do some sanity checks -MY_DIR="${BASH_SOURCE%/*}" -if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi - -LINEAGE_ROOT="$MY_DIR"/../../.. - -HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh -if [ ! -f "$HELPER" ]; then - echo "Unable to find helper script at $HELPER" - exit 1 -fi -. "$HELPER" - -# Default to sanitizing the vendor folder before extraction -CLEAN_VENDOR=true - -while [ "$1" != "" ]; do - case $1 in - -p | --path ) shift - SRC=$1 - ;; - -s | --section ) shift - SECTION=$1 - CLEAN_VENDOR=false - ;; - -n | --no-cleanup ) CLEAN_VENDOR=false - ;; - esac - shift -done - -if [ -z "$SRC" ]; then - SRC=adb -fi - -# Initialize the helper for common device -setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" true "$CLEAN_VENDOR" - -extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION" - -if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then - # Reinitialize the helper for device - setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false "$CLEAN_VENDOR" - - extract "$MY_DIR"/../$DEVICE/proprietary-files.txt "$SRC" "$SECTION" -fi - -"$MY_DIR"/setup-makefiles.sh diff --git a/gps/Android.mk b/gps/Android.mk index f0927f7..0fe75aa 100644 --- a/gps/Android.mk +++ b/gps/Android.mk @@ -16,6 +16,6 @@ LOCAL_PATH := $(call my-dir) -ifeq ($(TARGET_DEVICE),z2_plus) +ifneq ($(filter z2_plus z2_row,$(TARGET_DEVICE)),) include $(call all-subdir-makefiles,$(LOCAL_PATH)) endif diff --git a/init/Android.mk b/init/Android.mk index 04ff837..987a868 100644 --- a/init/Android.mk +++ b/init/Android.mk @@ -21,8 +21,8 @@ include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_C_INCLUDES := system/core/init LOCAL_CFLAGS := -Wall -DANDROID_TARGET=\"$(TARGET_BOARD_PLATFORM)\" -LOCAL_SRC_FILES := init_z2_plus.cpp -LOCAL_MODULE := libinit_z2_plus +LOCAL_SRC_FILES := init_msm8996.cpp +LOCAL_MODULE := libinit_msm8996 LOCAL_STATIC_LIBRARIES := \ libbase diff --git a/init/init_msm8996.cpp b/init/init_msm8996.cpp new file mode 100644 index 0000000..04f02a7 --- /dev/null +++ b/init/init_msm8996.cpp @@ -0,0 +1,107 @@ +/* + Copyright (C) 2013-2016, The CyanogenMod Project + Copyright (C) 2017, The LineageOS Project + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include +#include +#include +#include +#include "property_service.h" +#include "vendor_init.h" + +using android::base::GetProperty; +using android::base::SetProperty; + +std::string heapminfree; +std::string heapmaxfree; + +static void init_alarm_boot_properties() +{ + int boot_reason; + FILE *fp; + + fp = fopen("/proc/sys/kernel/boot_reason", "r"); + fscanf(fp, "%d", &boot_reason); + fclose(fp); + + /* + * Setup ro.alarm_boot value to true when it is RTC triggered boot up + * For existing PMIC chips, the following mapping applies + * for the value of boot_reason: + * + * 0 -> unknown + * 1 -> hard reset + * 2 -> sudden momentary power loss (SMPL) + * 3 -> real time clock (RTC) + * 4 -> DC charger inserted + * 5 -> USB charger inserted + * 6 -> PON1 pin toggled (for secondary PMICs) + * 7 -> CBLPWR_N pin toggled (for external power supply) + * 8 -> KPDPWR_N pin toggled (power key pressed) + */ + SetProperty("ro.alarm_boot", boot_reason == 3 ? "true" : "false"); +} + +void check_ram() +{ + struct sysinfo sys; + + sysinfo(&sys); + + if (sys.totalram > 3072ull * 1024 * 1024) { + // from - phone-xxxhdpi-4096-dalvik-heap.mk + heapminfree = "4m"; + heapmaxfree = "16m"; + } else { + // from - phone-xxhdpi-3072-dalvik-heap.mk + heapminfree = "512k"; + heapmaxfree = "8m"; + } +} + +void vendor_load_properties() { + std::string platform; + + platform = GetProperty("ro.board.platform", ""); + if (platform != ANDROID_TARGET) + return; + + check_ram(); + + SetProperty("dalvik.vm.heapstartsize", "8m"); + SetProperty("dalvik.vm.heapgrowthlimit", "256m"); + SetProperty("dalvik.vm.heapsize", "512m"); + SetProperty("dalvik.vm.heaptargetutilization", "0.75"); + SetProperty("dalvik.vm.heapminfree", heapminfree); + SetProperty("dalvik.vm.heapmaxfree", heapmaxfree); + + init_alarm_boot_properties(); +} + diff --git a/init/init_z2_plus.cpp b/init/init_z2_plus.cpp deleted file mode 100644 index 04f02a7..0000000 --- a/init/init_z2_plus.cpp +++ /dev/null @@ -1,107 +0,0 @@ -/* - Copyright (C) 2013-2016, The CyanogenMod Project - Copyright (C) 2017, The LineageOS Project - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of The Linux Foundation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED - WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS - BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR - BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE - OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN - IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include -#include -#include -#include -#include -#include "property_service.h" -#include "vendor_init.h" - -using android::base::GetProperty; -using android::base::SetProperty; - -std::string heapminfree; -std::string heapmaxfree; - -static void init_alarm_boot_properties() -{ - int boot_reason; - FILE *fp; - - fp = fopen("/proc/sys/kernel/boot_reason", "r"); - fscanf(fp, "%d", &boot_reason); - fclose(fp); - - /* - * Setup ro.alarm_boot value to true when it is RTC triggered boot up - * For existing PMIC chips, the following mapping applies - * for the value of boot_reason: - * - * 0 -> unknown - * 1 -> hard reset - * 2 -> sudden momentary power loss (SMPL) - * 3 -> real time clock (RTC) - * 4 -> DC charger inserted - * 5 -> USB charger inserted - * 6 -> PON1 pin toggled (for secondary PMICs) - * 7 -> CBLPWR_N pin toggled (for external power supply) - * 8 -> KPDPWR_N pin toggled (power key pressed) - */ - SetProperty("ro.alarm_boot", boot_reason == 3 ? "true" : "false"); -} - -void check_ram() -{ - struct sysinfo sys; - - sysinfo(&sys); - - if (sys.totalram > 3072ull * 1024 * 1024) { - // from - phone-xxxhdpi-4096-dalvik-heap.mk - heapminfree = "4m"; - heapmaxfree = "16m"; - } else { - // from - phone-xxhdpi-3072-dalvik-heap.mk - heapminfree = "512k"; - heapmaxfree = "8m"; - } -} - -void vendor_load_properties() { - std::string platform; - - platform = GetProperty("ro.board.platform", ""); - if (platform != ANDROID_TARGET) - return; - - check_ram(); - - SetProperty("dalvik.vm.heapstartsize", "8m"); - SetProperty("dalvik.vm.heapgrowthlimit", "256m"); - SetProperty("dalvik.vm.heapsize", "512m"); - SetProperty("dalvik.vm.heaptargetutilization", "0.75"); - SetProperty("dalvik.vm.heapminfree", heapminfree); - SetProperty("dalvik.vm.heapmaxfree", heapmaxfree); - - init_alarm_boot_properties(); -} - diff --git a/liblight/Android.mk b/liblight/Android.mk deleted file mode 100644 index 0b0404a..0000000 --- a/liblight/Android.mk +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (C) 2014 The CyanogenMod Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -LOCAL_PATH:= $(call my-dir) -# HAL module implemenation stored in -# hw/..so -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := lights.c -LOCAL_MODULE_RELATIVE_PATH := hw -LOCAL_SHARED_LIBRARIES := liblog libcutils - -LOCAL_MODULE := lights.msm8996 -LOCAL_MODULE_TAGS := optional - -include $(BUILD_SHARED_LIBRARY) diff --git a/liblight/NOTICE b/liblight/NOTICE deleted file mode 100644 index 7340b9e..0000000 --- a/liblight/NOTICE +++ /dev/null @@ -1,190 +0,0 @@ - - Copyright (c) 2008, The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - diff --git a/liblight/lights.c b/liblight/lights.c deleted file mode 100644 index 14777a5..0000000 --- a/liblight/lights.c +++ /dev/null @@ -1,386 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * Copyright (C) 2014 The Linux Foundation. All rights reserved. - * Copyright (C) 2015 The CyanogenMod Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#define LOG_TAG "lights" - -#include - -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -#include - -/******************************************************************************/ - -static pthread_once_t g_init = PTHREAD_ONCE_INIT; -static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER; -static struct light_state_t g_attention; -static struct light_state_t g_notification; -static struct light_state_t g_battery; - -char const*const RED_LED_FILE - = "/sys/class/leds/led:rgb_red/brightness"; - -char const*const LCD_FILE - = "/sys/class/leds/lcd-backlight/brightness"; - -char const*const RED_DUTY_PCTS_FILE - = "/sys/class/leds/led:rgb_red/duty_pcts"; - -char const*const RED_START_IDX_FILE - = "/sys/class/leds/led:rgb_red/start_idx"; - -char const*const RED_PAUSE_LO_FILE - = "/sys/class/leds/led:rgb_red/pause_lo"; - -char const*const RED_PAUSE_HI_FILE - = "/sys/class/leds/led:rgb_red/pause_hi"; - -char const*const RED_RAMP_STEP_MS_FILE - = "/sys/class/leds/led:rgb_red/ramp_step_ms"; - -char const*const RED_BLINK_FILE - = "/sys/class/leds/led:rgb_red/blink"; - -#define RAMP_SIZE 8 -static int BRIGHTNESS_RAMP[RAMP_SIZE] - = { 0, 12, 25, 37, 50, 72, 85, 100 }; -#define RAMP_STEP_DURATION 50 - -/** - * device methods - */ - -void init_globals(void) -{ - // init the mutex - pthread_mutex_init(&g_lock, NULL); -} - -static int -write_int(char const* path, int value) -{ - int fd; - static int already_warned = 0; - - fd = open(path, O_RDWR); - if (fd >= 0) { - char buffer[20]; - int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); - ssize_t amt = write(fd, buffer, (size_t)bytes); - close(fd); - return amt == -1 ? -errno : 0; - } else { - if (already_warned == 0) { - ALOGE("write_int failed to open %s\n", path); - already_warned = 1; - } - return -errno; - } -} - -static int -write_str(char const* path, char* value) -{ - int fd; - static int already_warned = 0; - - fd = open(path, O_RDWR); - if (fd >= 0) { - char buffer[1024]; - int bytes = snprintf(buffer, sizeof(buffer), "%s\n", value); - ssize_t amt = write(fd, buffer, (size_t)bytes); - close(fd); - return amt == -1 ? -errno : 0; - } else { - if (already_warned == 0) { - ALOGE("write_int failed to open %s\n", path); - already_warned = 1; - } - return -errno; - } -} - -static int -is_lit(struct light_state_t const* state) -{ - return state->color & 0x00ffffff; -} - -static int -rgb_to_brightness(struct light_state_t const* state) -{ - int color = state->color & 0x00ffffff; - return ((77*((color>>16)&0x00ff)) - + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; -} - -static int -set_light_backlight(struct light_device_t* dev, - struct light_state_t const* state) -{ - int err = 0; - int brightness = rgb_to_brightness(state); - if(!dev) { - return -1; - } - pthread_mutex_lock(&g_lock); - err = write_int(LCD_FILE, brightness); - pthread_mutex_unlock(&g_lock); - return err; -} - - -static char* -get_scaled_duty_pcts(int brightness) -{ - char *buf = malloc(5 * RAMP_SIZE * sizeof(char)); - char *pad = ""; - int i = 0; - - memset(buf, 0, 5 * RAMP_SIZE * sizeof(char)); - - for (i = 0; i < RAMP_SIZE; i++) { - char temp[5] = ""; - snprintf(temp, sizeof(temp), "%s%d", pad, (BRIGHTNESS_RAMP[i] * brightness / 255)); - strcat(buf, temp); - pad = ","; - } - ALOGV("%s: brightness=%d duty=%s", __func__, brightness, buf); - return buf; -} - -static int -set_speaker_light_locked(struct light_device_t* dev, - struct light_state_t const* state) -{ - int red; - int blink; - int onMS, offMS, stepDuration, pauseHi; - unsigned int colorRGB; - char *duty; - - if(!dev) { - return -1; - } - - switch (state->flashMode) { - case LIGHT_FLASH_TIMED: - onMS = state->flashOnMS; - offMS = state->flashOffMS; - break; - case LIGHT_FLASH_NONE: - default: - onMS = 0; - offMS = 0; - break; - } - - colorRGB = state->color; - - ALOGV("set_speaker_light_locked mode %d, colorRGB=%08X, onMS=%d, offMS=%d\n", - state->flashMode, colorRGB, onMS, offMS); - - red = (colorRGB >> 16) & 0xFF; - - blink = onMS > 0 && offMS > 0; - - // disable all blinking to start - write_int(RED_BLINK_FILE, 0); - - if (blink) { - stepDuration = RAMP_STEP_DURATION; - pauseHi = onMS - (stepDuration * RAMP_SIZE * 2); - if (stepDuration * RAMP_SIZE * 2 > onMS) { - stepDuration = onMS / (RAMP_SIZE * 2); - pauseHi = 0; - } - - // red - write_int(RED_START_IDX_FILE, 0); - duty = get_scaled_duty_pcts(red); - write_str(RED_DUTY_PCTS_FILE, duty); - write_int(RED_PAUSE_LO_FILE, offMS); - // The led driver is configured to ramp up then ramp - // down the lut. This effectively doubles the ramp duration. - write_int(RED_PAUSE_HI_FILE, pauseHi); - write_int(RED_RAMP_STEP_MS_FILE, stepDuration); - free(duty); - - // start the party - write_int(RED_BLINK_FILE, red); - - } else { - write_int(RED_LED_FILE, red); - } - - - return 0; -} - -static void -handle_speaker_light_locked(struct light_device_t* dev) -{ - if (is_lit(&g_attention)) { - set_speaker_light_locked(dev, &g_attention); - } else if (is_lit(&g_notification)) { - set_speaker_light_locked(dev, &g_notification); - } else { - set_speaker_light_locked(dev, &g_battery); - } -} - -static int -set_light_battery(struct light_device_t* dev, - struct light_state_t const* state) -{ - pthread_mutex_lock(&g_lock); - g_battery = *state; - handle_speaker_light_locked(dev); - pthread_mutex_unlock(&g_lock); - return 0; -} - -static int -set_light_notifications(struct light_device_t* dev, - struct light_state_t const* state) -{ - pthread_mutex_lock(&g_lock); - - unsigned int brightness; - unsigned int color; - unsigned int rgb[3]; - - g_notification = *state; - - // If a brightness has been applied by the user - brightness = (g_notification.color & 0xFF000000) >> 24; - if (brightness > 0 && brightness < 0xFF) { - - // Retrieve each of the RGB colors - color = g_notification.color & 0x00FFFFFF; - rgb[0] = (color >> 16) & 0xFF; - rgb[1] = (color >> 8) & 0xFF; - rgb[2] = color & 0xFF; - - // Apply the brightness level - if (rgb[0] > 0) - rgb[0] = (rgb[0] * brightness) / 0xFF; - if (rgb[1] > 0) - rgb[1] = (rgb[1] * brightness) / 0xFF; - if (rgb[2] > 0) - rgb[2] = (rgb[2] * brightness) / 0xFF; - - // Update with the new color - g_notification.color = (rgb[0] << 16) + (rgb[1] << 8) + rgb[2]; - } - - handle_speaker_light_locked(dev); - pthread_mutex_unlock(&g_lock); - return 0; -} - -static int -set_light_attention(struct light_device_t* dev, - struct light_state_t const* state) -{ - pthread_mutex_lock(&g_lock); - g_attention = *state; - handle_speaker_light_locked(dev); - pthread_mutex_unlock(&g_lock); - return 0; -} - -/** Close the lights device */ -static int -close_lights(struct light_device_t *dev) -{ - if (dev) { - free(dev); - } - return 0; -} - - -/******************************************************************************/ - -/** - * module methods - */ - -/** Open a new instance of a lights device using name */ -static int open_lights(const struct hw_module_t* module, char const* name, - struct hw_device_t** device) -{ - int (*set_light)(struct light_device_t* dev, - struct light_state_t const* state); - - if (0 == strcmp(LIGHT_ID_BACKLIGHT, name)) - set_light = set_light_backlight; - else if (0 == strcmp(LIGHT_ID_BATTERY, name)) - set_light = set_light_battery; - else if (0 == strcmp(LIGHT_ID_NOTIFICATIONS, name)) - set_light = set_light_notifications; - else if (0 == strcmp(LIGHT_ID_ATTENTION, name)) - set_light = set_light_attention; - else - return -EINVAL; - - pthread_once(&g_init, init_globals); - - struct light_device_t *dev = malloc(sizeof(struct light_device_t)); - - if(!dev) - return -ENOMEM; - - memset(dev, 0, sizeof(*dev)); - - dev->common.tag = HARDWARE_DEVICE_TAG; - dev->common.version = 0; - dev->common.module = (struct hw_module_t*)module; - dev->common.close = (int (*)(struct hw_device_t*))close_lights; - dev->set_light = set_light; - - *device = (struct hw_device_t*)dev; - return 0; -} - -static struct hw_module_methods_t lights_module_methods = { - .open = open_lights, -}; - -/* - * The lights Module - */ -struct hw_module_t HAL_MODULE_INFO_SYM = { - .tag = HARDWARE_MODULE_TAG, - .version_major = 1, - .version_minor = 0, - .id = LIGHTS_HARDWARE_MODULE_ID, - .name = "ZUK Z2 Lights Module", - .author = "The CyanogenMod Project", - .methods = &lights_module_methods, -}; diff --git a/lineage.mk b/lineage.mk deleted file mode 100644 index a860e38..0000000 --- a/lineage.mk +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright (C) 2013-2016, The CyanogenMod Project -# Copyright (C) 2017, The LineageOS Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Inherit from those products. Most specific first. -$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) -$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) - -# Inherit from z2_plus device -$(call inherit-product, device/zuk/z2_plus/device.mk) - -# Inherit some common Lineage stuff. -$(call inherit-product, vendor/lineage/config/common_full_phone.mk) - -# Device identifier. This must come after all inclusions. -PRODUCT_NAME := lineage_z2_plus -PRODUCT_DEVICE := z2_plus -PRODUCT_BRAND := Zuk -PRODUCT_MODEL := Z2 Plus -PRODUCT_MANUFACTURER := Zuk -PRODUCT_GMS_CLIENTID_BASE := android-zuk - -# Fingerprint -PRODUCT_BUILD_PROP_OVERRIDES += \ - TARGET_DEVICE="z2_plus" \ - PRODUCT_NAME="z2_plus" \ - BUILD_FINGERPRINT="ZUK/z2_plus/z2_plus:7.0/NRD90M/2.5.412_170428:user/release-keys" \ - PRIVATE_BUILD_DESC="z2_plus-user 7.0 NRD90M 2.5.412_170428 release-keys" - -TARGET_VENDOR := Zuk diff --git a/msm8996.mk b/msm8996.mk new file mode 100755 index 0000000..d7df067 --- /dev/null +++ b/msm8996.mk @@ -0,0 +1,265 @@ +# Copyright (C) 2013-2016, The CyanogenMod Project +# Copyright (C) 2017, The LineageOS Project +# Copyright (C) 2017 The halogenOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# +# This file sets variables that control the way modules are built +# thorughout the system. It should not be used to conditionally +# disable makefiles (the proper mechanism to control what gets +# included in a build is to use PRODUCT_PACKAGES in a product +# definition file). +# + +# Hidl HALs +$(call inherit-product, $(LOCAL_PATH)/hidl.mk) + +# Overlays +DEVICE_PACKAGE_OVERLAYS += \ + $(LOCAL_PATH)/overlay + +# Permissions +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ + frameworks/native/data/etc/android.hardware.audio.pro.xml:system/etc/permissions/android.hardware.audio.pro.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.xml:system/etc/permissions/android.hardware.bluetooth.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.full.xml:system/etc/permissions/android.hardware.camera.full.xml \ + frameworks/native/data/etc/android.hardware.camera.raw.xml:system/etc/permissions/android.hardware.camera.raw.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.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.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.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.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.hifi_sensors.xml:system/etc/permissions/android.hardware.sensor.hifi_sensors.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.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.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.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.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ + frameworks/native/data/etc/android.hardware.vulkan.level-0.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.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ + frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ + frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.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 + +# Device uses high-density artwork where available +PRODUCT_AAPT_CONFIG := normal +PRODUCT_AAPT_PREF_CONFIG := xxhdpi + +# Boot animation +TARGET_SCREEN_HEIGHT := 1920 +TARGET_SCREEN_WIDTH := 1080 + +# Haters gonna hate.. +PRODUCT_CHARACTERISTICS := nosdcard + +# Audio +PRODUCT_PACKAGES += \ + audiod \ + audio.a2dp.default \ + audio.primary.msm8996 \ + audio.r_submix.default \ + audio.usb.default \ + libaudio-resampler \ + libaudioroute \ + libbthost_if \ + libqcompostprocbundle \ + libqcomvisualizer \ + libqcomvoiceprocessing \ + libvolumelistener \ + tinymix + +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/audio/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \ + $(LOCAL_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \ + $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ + $(LOCAL_PATH)/audio/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml \ + $(LOCAL_PATH)/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \ + $(LOCAL_PATH)/audio/sound_trigger_mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9330.xml \ + $(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml + +PRODUCT_COPY_FILES += \ + $(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ + $(TOPDIR)frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ + $(TOPDIR)frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ + $(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ + $(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml + +# Bluetooth +PRODUCT_PACKAGES += \ + libbt-vendor + +# Camera +PRODUCT_PACKAGES += \ + Camera2 \ + camera.msm8996 \ + libshim_camera + +# Display +PRODUCT_PACKAGES += \ + copybit.msm8996 \ + gralloc.msm8996 \ + hwcomposer.msm8996 \ + memtrack.msm8996 \ + libgenlock \ + liboverlay \ + libtinyxml + +# Fingerprint +PRODUCT_PACKAGES += \ + fingerprint.msm8996 + +# For config.fs +PRODUCT_PACKAGES += \ + fs_config_files + +# GPS +PRODUCT_PACKAGES += \ + gps.msm8996 \ + libcurl \ + libgnsspps \ + libshims_get_process_name + +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/gps/etc/flp.conf:system/etc/flp.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/lowi.conf:system/etc/lowi.conf \ + $(LOCAL_PATH)/gps/etc/sap.conf:system/etc/sap.conf \ + $(LOCAL_PATH)/gps/etc/xtwifi.conf:system/etc/xtwifi.conf + +# HIDL manifest +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/manifest.xml:system/vendor/manifest.xml + +# Graphics +PRODUCT_PACKAGES += \ + libsdm-disp-apis + +# IPA Manager +PRODUCT_PACKAGES += \ + ipacm \ + IPACM_cfg.xml + +# IPC router config +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config + +# Thermal +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/thermal-engine.conf:system/etc/thermal-engine.conf + +# IPv6 +PRODUCT_PACKAGES += \ + ebtables \ + ethertypes \ + libebtc + +# Keylayouts +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/keylayout/fpc1020tp.kl:system/usr/keylayout/fpc1020tp.kl \ + $(LOCAL_PATH)/keylayout/goodix-ts.kl:system/usr/keylayout/goodix-ts.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/msm8996-tasha-mtp-snd-card_Button_Jack.kl:system/usr/keylayout/msm8996-tasha-mtp-snd-card_Button_Jack.kl \ + $(LOCAL_PATH)/keylayout/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl + +# Media +PRODUCT_COPY_FILES += \ + $(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_profiles.xml:system/etc/media_profiles.xml + +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_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 + +# Miracast +PRODUCT_PROPERTY_OVERRIDES += \ + persist.debug.wfd.enable=1 + +# OMX +PRODUCT_PACKAGES += \ + libc2dcolorconvert \ + libextmedia_jni \ + libOmxAacEnc \ + libOmxAmrEnc \ + libOmxCore \ + libOmxEvrcEnc \ + libOmxQcelp13Enc \ + libOmxVdec \ + libOmxVenc \ + libOmxVdecHevc \ + libstagefrighthw + +# Power +PRODUCT_PACKAGES += \ + power.msm8996 + +# QMI +PRODUCT_PACKAGES += \ + libjson + +# Ramdisk +PRODUCT_PACKAGES += \ + fstab.qcom \ + init.qcom.power.rc \ + init.qcom.rc \ + init.qcom.sh \ + init.qcom.usb.rc \ + init.qcom.usb.sh \ + init.qcom.bt.sh \ + ueventd.qcom.rc + +# RIL +PRODUCT_PACKAGES += \ + librmnetctl \ + libxml2 + +# Seccomp policy +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/seccomp_policy/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ + $(LOCAL_PATH)/seccomp_policy/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy + +# Wifi +PRODUCT_PACKAGES += \ + libwpa_client \ + wificond \ + hostapd \ + readmac \ + wpa_supplicant \ + wpa_supplicant.conf + +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \ + $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf + +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \ + $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat + +# MSM8996 Headers +PRODUCT_VENDOR_KERNEL_HEADERS := hardware/qcom/msm8996/kernel-headers diff --git a/proprietary-files.txt b/proprietary-files.txt deleted file mode 100644 index 5b5c8a0..0000000 --- a/proprietary-files.txt +++ /dev/null @@ -1,751 +0,0 @@ -bin/rmt_storage -bin/pm-proxy -bin/radish -bin/iop -bin/mm-qcamera-app -bin/port-bridge -bin/tftp_server -bin/hci_qcomm_init -bin/cnss-daemon -bin/imscmservice -bin/cnd -bin/irsc_util -bin/msm_irqbalance -bin/imsdatadaemon -bin/pm-service -bin/wcnss_filter -bin/time_daemon -bin/loc_launcher -bin/qmuxd -bin/adsprpcd -bin/netmgrd -bin/ims_rtp_daemon -bin/sensors.qcom -bin/ipacm-diag -bin/mm-qcamera-daemon -bin/imsqmidaemon -bin/dpmd -bin/qseecomd -bin/energy-awareness -bin/btnvtool -etc/dpm/dpm.conf -etc/dpm/nsrm/NsrmConfiguration.xml -etc/firmware/a225_pm4.fw -etc/firmware/a420_pm4.fw -etc/firmware/a225_pfp.fw -etc/firmware/a540_gpmu.fw2 -etc/firmware/a225p5_pm4.fw -etc/firmware/a420_pfp.fw -etc/firmware/nvm_tlv_3.2.bin -etc/firmware/cpp_firmware_v1_12_0.fw -etc/firmware/cpp_firmware_v1_5_2.fw -etc/firmware/btfw32.tlv -etc/firmware/cpp_firmware_v1_1_1.fw -etc/firmware/a530_zap.elf -etc/firmware/a530v2_seq.fw2 -etc/firmware/rampatch_tlv_2.1.tlv -etc/firmware/a530v3_seq.fw2 -etc/firmware/a300_pm4.fw -etc/firmware/btnv32.bin -etc/firmware/nvm_tlv_2.1.bin -etc/firmware/cpp_firmware_v1_5_0.fw -etc/firmware/cpp_firmware_v1_4_0.fw -etc/firmware/a530_zap.b00 -etc/firmware/cpp_firmware_v1_6_0.fw -etc/firmware/bdwlan30.bin -etc/firmware/nvm_tlv_3.0.bin -etc/firmware/leia_pm4_470.fw -etc/firmware/rampatch_tlv_3.0.tlv -etc/firmware/a530v1_pm4.fw -etc/firmware/a330_pm4.fw -etc/firmware/leia_pfp_470.fw -etc/firmware/rampatch_tlv_3.2.tlv -etc/firmware/a300_pfp.fw -etc/firmware/cpp_firmware_v1_8_0.fw -etc/firmware/a530_zap.b01 -etc/firmware/a530_gpmu.fw2 -etc/firmware/a330_pfp.fw -etc/firmware/nvm_tlv_1.3.bin -etc/firmware/nvm_tlv.bin -etc/firmware/a530_zap.mdt -etc/firmware/rampatch_tlv_1.3.tlv -etc/firmware/a530_pfp.fw -etc/firmware/rampatch_tlv.img -etc/firmware/a530_zap.b02 -etc/firmware/a530v1_pfp.fw -etc/firmware/a530_pm4.fw -etc/firmware/a530v3_gpmu.fw2 -etc/firmware/cpp_firmware_v1_2_0.fw -etc/firmware/cpp_firmware_v1_10_0.fw -etc/firmware/cpp_firmware_v1_1_6.fw -etc/data/dsi_config.xml -etc/data/netmgr_config.xml -etc/data/qmi_config.xml -etc/cne/wqeclient/ROW/ROW_profile3.xml -etc/cne/wqeclient/ROW/ROW_profile4.xml -etc/cne/wqeclient/ROW/ROW_profile5.xml -etc/cne/wqeclient/ROW/ROW_profile1.xml -etc/cne/wqeclient/ROW/ROW_profile2.xml -etc/cne/wqeclient/ATT/ATT_profile1.xml -etc/cne/wqeclient/ATT/ATT_profile2.xml -etc/cne/wqeclient/ATT/ATT_profile4.xml -etc/cne/wqeclient/ATT/ATT_profile3.xml -etc/cne/wqeclient/VZW/VZW_profile5.xml -etc/cne/wqeclient/VZW/VZW_profile2.xml -etc/cne/wqeclient/VZW/VZW_profile4.xml -etc/cne/wqeclient/VZW/VZW_profile6.xml -etc/cne/wqeclient/VZW/VZW_profile1.xml -etc/cne/wqeclient/VZW/VZW_profile3.xml -etc/cne/SwimConfig.xml -etc/cne/andsfCne.xml -etc/capability.xml -etc/dhcpcd/dhcpcd.conf -etc/camera/s5k2m8sx_chromatix.xml -etc/camera/ov8865_chromatix.xml -etc/camera/msm8996_camera.xml -etc/sensors/sensor_def_qcomdev.conf -etc/acdbdata/Liquid/Liquid_Hdmi_cal.acdb -etc/acdbdata/Liquid/Liquid_Global_cal.acdb -etc/acdbdata/Liquid/Liquid_General_cal.acdb -etc/acdbdata/Liquid/Liquid_Headset_cal.acdb -etc/acdbdata/Liquid/Liquid_Handset_cal.acdb -etc/acdbdata/Liquid/Liquid_Bluetooth_cal.acdb -etc/acdbdata/Liquid/Liquid_Speaker_cal.acdb -etc/acdbdata/Fluid/Fluid_Speaker_cal.acdb -etc/acdbdata/Fluid/Fluid_Bluetooth_cal.acdb -etc/acdbdata/Fluid/Fluid_General_cal.acdb -etc/acdbdata/Fluid/Fluid_Hdmi_cal.acdb -etc/acdbdata/Fluid/Fluid_Handset_cal.acdb -etc/acdbdata/Fluid/Fluid_Headset_cal.acdb -etc/acdbdata/Fluid/Fluid_Global_cal.acdb -etc/acdbdata/QRD/QRD_Speaker_cal.acdb -etc/acdbdata/QRD/QRD_Headset_cal.acdb -etc/acdbdata/QRD/QRD_General_cal.acdb -etc/acdbdata/QRD/QRD_Bluetooth_cal.acdb -etc/acdbdata/QRD/QRD_Hdmi_cal.acdb -etc/acdbdata/QRD/QRD_Handset_cal.acdb -etc/acdbdata/QRD/QRD_Global_cal.acdb -etc/acdbdata/MTP/MTP_Speaker_cal.acdb -etc/acdbdata/MTP/MTP_General_cal.acdb -etc/acdbdata/MTP/MTP_Handset_cal.acdb -etc/acdbdata/MTP/MTP_Headset_cal.acdb -etc/acdbdata/MTP/MTP_Global_cal.acdb -etc/acdbdata/MTP/MTP_Hdmi_cal.acdb -etc/acdbdata/MTP/MTP_Bluetooth_cal.acdb -etc/permissions/com.qti.location.sdk.xml -etc/permissions/com.quicinc.cne.xml -etc/permissions/telephonyservice.xml -etc/permissions/com.qti.dpmframework.xml -etc/permissions/ConnectivityExt.xml -etc/permissions/qti_permissions.xml -etc/permissions/com.qualcomm.location.xml -etc/permissions/cneapiclient.xml -etc/permissions/com.qti.snapdragon.sdk.display.xml -etc/permissions/dpmapi.xml -etc/permissions/qcrilhook.xml -framework/ConnectivityExt.jar -framework/com.qti.dpmframework.jar -framework/tcmclient.jar -framework/com.qti.location.sdk.jar --framework/qcrilhook.jar -framework/dpmapi.jar -framework/com.qti.snapdragon.sdk.display.jar -framework/com.quicinc.cne.jar -framework/cneapiclient.jar -framework/QtiTelephonyServicelibrary.jar -framework/qti-telephony-common.jar -lib/libOmxVpp.so -lib/vendor.display.color@1.0.so -lib/libtfa98xx.so -lib/vendor.display.postproc@1.0.so -lib/libmmjpeg_interface.so -lib/libmmcamera_interface.so -lib/libextmedia_jni.so -lib/libmm-qcamera.so -lib/libvpplibrary.so -lib/libqomx_core.so -lib64/vendor.display.color@1.0.so -lib64/libtfa98xx.so -lib64/libloc_ds_api.so -lib64/lib_fpc_tac_shared.so -lib64/vendor.display.postproc@1.0.so -lib64/libloc_core.so -lib64/libloc_eng.so --lib64/libloc_api_v02.so -lib64/libextmedia_jni.so -usr/idc/usf_tsc_ptr.idc -usr/idc/usf_tsc_ext.idc -usr/idc/usf_tsc.idc -vendor/bin/pd-mapper -vendor/bin/perfd -vendor/bin/qseeproxydaemon -vendor/bin/qti -vendor/bin/thermal-engine -vendor/bin/hw/vendor.display.color@1.0-service -vendor/lib/libcneqmiutils.so -vendor/lib/libmmcamera_imglib_faceproc_adspstub.so -vendor/lib/lib-rtpsl.so -vendor/lib/libmmcamera_isp_mce40.so -vendor/lib/libmmcamera_paaf_lib.so -vendor/lib/libqmi_client_qmux.so -vendor/lib/libmmcamera_isp_color_xform_viewfinder46.so -vendor/lib/libqti-wl.so -vendor/lib/libchromatix_ov8865_hfr_60.so -vendor/lib/libsensor_reg.so -vendor/lib/libCB.so -vendor/lib/libadreno_utils.so -vendor/lib/libOmxAacDec.so -vendor/lib/libchromatix_ov8865_default_video_none.so -vendor/lib/libacdbmapper.so -vendor/lib/libsdmextension.so -vendor/lib/libmmcamera_dummyalgo.so -vendor/lib/libaudcal.so -vendor/lib/libtsvideoprocess.so -vendor/lib/libmmcamera_ov8856.so -vendor/lib/libchromatix_s5k2m8sx_default_video.so -vendor/lib/libchromatix_ov8865_hfr_90.so -vendor/lib/libdpmfdmgr.so -vendor/lib/libmmcamera_isp_bpc47.so -vendor/lib/libchromatix_s5k2m8sx_hfr_60_dw9767.so -vendor/lib/lib-rtpcore.so -vendor/lib/libadpcmdec.so -vendor/lib/libmmcamera_thread_services.so -vendor/lib/libslimclient.so -vendor/lib/libbtnv.so -vendor/lib/libjpegdmahw.so -vendor/lib/libchromatix_ov8865_default_video.so -vendor/lib/libqc-opt.so -vendor/lib/libqmi_common_so.so -vendor/lib/libchromatix_ov8865_video_full.so -vendor/lib/libchromatix_s5k2m8sx_hfr_90_dw9767.so -vendor/lib/lib-imsxml.so -vendor/lib/libmmcamera_imglib.so -vendor/lib/libmmcamera_dbg.so -vendor/lib/libI420colorconvert.so -vendor/lib/libchromatix_s5k2m8sx_cpp_preview.so -vendor/lib/libmmcamera_eeprom_util.so -vendor/lib/libchromatix_s5k2m8sx_zsl_video_dw9767.so -vendor/lib/libcneconn.so -vendor/lib/libqvop-service.so -vendor/lib/libdpmtcm.so -vendor/lib/rfsa/adsp/libvpp_svc_skel.so -vendor/lib/rfsa/adsp/us-syncproximity.so -vendor/lib/rfsa/adsp/libapps_mem_heap.so -vendor/lib/rfsa/adsp/libfastcvadsp_skel.so -vendor/lib/rfsa/adsp/libfastcvadsp.so -vendor/lib/rfsa/adsp/libdspCV_skel.so -vendor/lib/rfsa/adsp/libvpp_frc.so -vendor/lib/libmmcamera2_memleak.so -vendor/lib/lib-imsSDP.so -vendor/lib/libmmcamera_isp_bf_stats47.so -vendor/lib/vendor.display.color@1.0_vendor.so -vendor/lib/libllvm-glnext.so -vendor/lib/lib_drplugin_server.so -vendor/lib/libmmcamera_hdr_gb_lib.so -vendor/lib/libmmcamera_isp_cs_stats46.so -vendor/lib/libubifocus.so -vendor/lib/libchromatix_ov8865_hfr_60_none.so -vendor/lib/libchromatix_s5k2m8sx_common.so -vendor/lib/lib-rcsjni.so -vendor/lib/libchromatix_ov8865_zsl_preview.so -vendor/lib/libmmcamera2_mct.so -vendor/lib/libchromatix_ov8865_preview.so -vendor/lib/libchromatix_ov8865_cpp_hfr_90.so -vendor/lib/libmmcamera_isp_aec_bg_stats47.so -vendor/lib/libchromatix_s5k2m8sx_snapshot.so -vendor/lib/libmmcamera_isp_fovcrop_encoder46.so -vendor/lib/libchromatix_s5k2m8sx_default_video_dw9767.so -vendor/lib/libxml.so -vendor/lib/libFidoCryptoJNI.so -vendor/lib/libmmcamera_isp_demux40.so -vendor/lib/libfastcvopt.so -vendor/lib/libllvm-qcom.so -vendor/lib/libvendorconn.so -vendor/lib/libmmcamera2_q3a_core.so -vendor/lib/libmmjpeg.so -vendor/lib/libaudiodevarb.so -vendor/lib/libNimsWrap.so -vendor/lib/libsmwrapper.so -vendor/lib/libmmcamera_ppbase_module.so --vendor/lib/libgpustats.so -vendor/lib/libthermalclient.so -vendor/lib/libchromatix_ov8865_cpp_us_chromatix.so -vendor/lib/libchromatix_s5k2m8sx_liveshot.so -vendor/lib/libchromatix_ov8865_default_preview_none.so -vendor/lib/libchromatix_s5k2m8sx_cpp_snapshot.so -vendor/lib/libjpegdhw.so -vendor/lib/libjpegehw.so -vendor/lib/libchromatix_s5k2m8sx_hfr_120.so -vendor/lib/libmmcamera_isp_ihist_stats46.so -vendor/lib/libarcsoft_beautyshot.so -vendor/lib/libOmxAlacDec.so -vendor/lib/libcneapiclient.so -vendor/lib/libmmcamera_onsemi_cat24c64_eeprom.so -vendor/lib/libidl.so -vendor/lib/libmmcamera_isp_scaler_viewfinder46.so -vendor/lib/libOmxEvrcDec.so -vendor/lib/libllvm-qgl.so -vendor/lib/vendor.display.postproc@1.0_vendor.so -vendor/lib/libmmcamera_ppeiscore.so -vendor/lib/libmmcamera2_pp_buf_mgr.so -vendor/lib/libchromatix_ov8865_zsl_video.so -vendor/lib/libchromatix_ov8865_cpp_video_full.so -vendor/lib/libmmcamera_isp_scaler_encoder46.so -vendor/lib/libchromatix_s5k2m8sx_hfr_60.so -vendor/lib/libmmcamera_isp_color_correct46.so -vendor/lib/libmm-color-convertor.so -vendor/lib/mediadrm/libwvdrmengine.so -vendor/lib/libqti-perfd-client.so -vendor/lib/libmmcamera_isp_mesh_rolloff44.so -vendor/lib/libmpbase.so -vendor/lib/libmmosal.so -vendor/lib/libtm_interface.so -vendor/lib/lib-dplmedia.so -vendor/lib/lib-imsvt.so -vendor/lib/libmmcamera_isp_hdr46.so -vendor/lib/libmmcamera_isp_color_xform_encoder46.so -vendor/lib/libmmcamera2_stats_modules.so -vendor/lib/libmmcamera_isp_cac47.so -vendor/lib/libwvdrm_L3.so -vendor/lib/libmmcamera_isp_bg_stats46.so -vendor/lib/libOmxWmaDec.so -vendor/lib/libsdm-diag.so -vendor/lib/lib-imscamera.so -vendor/lib/libchromatix_ov8865_cpp_video.so -vendor/lib/libadm.so -vendor/lib/libmmqjpegdma.so -vendor/lib/libcne.so -vendor/lib/libmmcamera_hvx_add_constant.so -vendor/lib/libmmcamera_isp_scaler_video46.so -vendor/lib/libtzdrmgenprov.so -vendor/lib/libvpphvx.so -vendor/lib/libmmcamera_isp_fovcrop_viewfinder46.so -vendor/lib/libdiag.so -vendor/lib/libchromaflash.so -vendor/lib/libchromatix_ov8865_hfr_120.so -vendor/lib/sensors.ssc.so -vendor/lib/libmmcamera_eebinparse.so -vendor/lib/libmmcamera2_sensor_modules.so -vendor/lib/libQSEEComAPI.so -vendor/lib/libsd_sdk_display.so -vendor/lib/libwms.so -vendor/lib/librs_adreno_sha1.so -vendor/lib/libOmxApeDecSw.so -vendor/lib/libdsi_netctrl.so -vendor/lib/libqmiservices.so -vendor/lib/libchromatix_s5k2m8sx_cpp_liveshot.so -vendor/lib/libOmxApeDec.so -vendor/lib/libqmi_encdec.so -vendor/lib/libqti_performance.so -vendor/lib/libquipc_os_api.so -vendor/lib/libmorpho_image_stab4.so -vendor/lib/libmmcamera_isp_black_level47.so -vendor/lib/libmmcamera2_stats_algorithm.so -vendor/lib/libadsprpc.so -vendor/lib/libqomx_jpegenc.so -vendor/lib/libqdi.so -vendor/lib/libqti-gt.so -vendor/lib/libOmxAmrwbplusDec.so -vendor/lib/libmmcamera_isp_demosaic47.so -vendor/lib/libqcci_legacy.so -vendor/lib/libtrueportrait.so -vendor/lib/libmmcamera_isp_clamp_encoder40.so -vendor/lib/libmmcamera_isp_chroma_enhan40.so -vendor/lib/libchromatix_ov8865_hfr_90_none.so -vendor/lib/libmmcamera2_frame_algorithm.so -vendor/lib/lib-imsrcscm.so -vendor/lib/libhdr_tm.so -vendor/lib/libseemore.so -vendor/lib/libsensor1.so -vendor/lib/libchromatix_ov8865_snapshot.so -vendor/lib/libmmcamera_ov8865.so -vendor/lib/libqmi_cci.so -vendor/lib/libperipheral_client.so -vendor/lib/libOmxMux.so -vendor/lib/libacdbloader.so -vendor/lib/libjni_dualcamera.so -vendor/lib/libmmcamera_isp_clamp_viewfinder40.so -vendor/lib/libacdbrtac.so -vendor/lib/libFidoSuiJNI.so -vendor/lib/lib-imsrcs.so -vendor/lib/libqseed3.so -vendor/lib/libmmcamera_sw2d_lib.so -vendor/lib/libc2d30_bltlib.so --vendor/lib/libtime_genoff.so -vendor/lib/libmmcamera_isp_abf47.so -vendor/lib/libqdp.so -vendor/lib/libchromatix_ov8865_cpp_preview.so -vendor/lib/libchromatix_s5k2m8sx_hfr_90.so -vendor/lib/lib-imss.so -vendor/lib/libmmcamera2_c2d_module.so -vendor/lib/liboptizoom.so -vendor/lib/libqmi_client_helper.so -vendor/lib/libchromatix_s5k2m8sx_hfr_120_dw9767.so -vendor/lib/egl/eglSubDriverAndroid.so -vendor/lib/egl/libq3dtools_adreno.so -vendor/lib/egl/libGLESv1_CM_adreno.so -vendor/lib/egl/libEGL_adreno.so -vendor/lib/egl/libQTapGLES.so -vendor/lib/egl/libGLESv2_adreno.so -vendor/lib/libmdmdetect.so -vendor/lib/libchromatix_ov8865_cpp_hfr_120.so -vendor/lib/libchromatix_ov8865_cpp_ds_chromatix.so -vendor/lib/lib-imsdpl.so -vendor/lib/libdpmnsrm.so -vendor/lib/libdpmctmgr.so -vendor/lib/lib-imsqimf.so -vendor/lib/libchromatix_ov8865_cpp_hfr_60.so -vendor/lib/libmmcamera_isp_ltm47.so -vendor/lib/libTimeService.so -vendor/lib/libmmcamera2_isp_modules.so -vendor/lib/libmmcamera2_imglib_modules.so -vendor/lib/libqct_resampler.so -vendor/lib/lib-ims-rcscmjni.so -vendor/lib/libchromatix_s5k2m8sx_cpp_hfr_60.so -vendor/lib/lib-imsrcscmservice.so -vendor/lib/libsdm-color.so -vendor/lib/libmmcamera_gt24c08h_eeprom.so -vendor/lib/libchromatix_s5k2m8sx_zsl_preview_dw9767.so -vendor/lib/libmmcamera2_iface_modules.so -vendor/lib/libaudioalsa.so -vendor/lib/libmmcamera_hvx_grid_sum.so -vendor/lib/lib-rtpdaemoninterface.so -vendor/lib/libqomx_jpegenc_pipe.so -vendor/lib/lib_remote_simlock.so -vendor/lib/libmmcamera_isp_gic46.so -vendor/lib/librcc.so -vendor/lib/libmmcamera_hvx_zzHDR.so -vendor/lib/libchromatix_ov8865_cpp_liveshot.so -vendor/lib/libWVStreamControlAPI_L3.so -vendor/lib/libadiertac.so -vendor/lib/libmmcamera_isp_pedestal_correct46.so -vendor/lib/libchromatix_s5k2m8sx_cpp_hfr_90.so -vendor/lib/libmmcamera2_is.so -vendor/lib/libchromatix_ov8865_hfr_120_none.so -vendor/lib/libQtiTether.so -vendor/lib/libmmcamera_tuning_lookup.so -vendor/lib/libmmcamera2_cpp_module.so -vendor/lib/libOpenCL.so -vendor/lib/libacdb-fts.so -vendor/lib/libmmcamera_isp_chroma_suppress40.so -vendor/lib/libmmcamera_tuning.so -vendor/lib/libqomx_jpegdec.so -vendor/lib/libmmcamera_eztune_module.so -vendor/lib/libOmxVideoDSMode.so -vendor/lib/libFIDOKeyProvisioning.so -vendor/lib/libbccQTI.so -vendor/lib/libmmcamera_isp_sub_module.so -vendor/lib/lib-rtpcommon.so -vendor/lib/libC2D2.so -vendor/lib/libOmxAlacDecSw.so -vendor/lib/libmmcamera_tintless_bg_pca_algo.so -vendor/lib/libFidoCrypto.so -vendor/lib/libchromatix_ov8865_cpp_snapshot.so -vendor/lib/libscalar.so -vendor/lib/libactuator_dw9767.so -vendor/lib/libflash_pmic.so -vendor/lib/libmmcamera_tintless_algo.so -vendor/lib/libchromatix_s5k2m8sx_default_preview_dw9767.so -vendor/lib/libmm-disp-apis.so -vendor/lib/libvqzip.so -vendor/lib/libmmcamera_faceproc2.so -vendor/lib/libqti-iop-client.so -vendor/lib/libmmcamera_isp_gamma44.so -vendor/lib/libchromatix_s5k2m8sx_cpp_hfr_120.so -vendor/lib/librs_adreno.so -vendor/lib/libmmcamera_isp_color_xform_video46.so -vendor/lib/libconnctrl.so -vendor/lib/libmmcamera_pdafcamif.so -vendor/lib/libchromatix_ov8865_common.so --vendor/lib/libsdm-disp-vndapis.so -vendor/lib/libmmcamera_pdaf.so -vendor/lib/libprotobuf-cpp-Hlit.so -vendor/lib/libgsl.so -vendor/lib/libwqe.so -vendor/lib/libRSDriver_adreno.so -vendor/lib/libmmcamera_isp_rs_stats46.so -vendor/lib/libdsutils.so -vendor/lib/libmm-qdcm.so -vendor/lib/libqti-iop.so -vendor/lib/libdisp-aba.so -vendor/lib/libOmxQcelp13Dec.so -vendor/lib/libc2d30-a5xx.so -vendor/lib/libmmcamera_faceproc.so -vendor/lib/lib-imsrcscmclient.so -vendor/lib/libtinyxml2_1.so -vendor/lib/libchromatix_ov8865_postproc.so -vendor/lib/hw/camera.vendor.msm8996.so -vendor/lib/hw/gatekeeper.msm8996.so -vendor/lib/hw/vulkan.msm8996.so -vendor/lib/hw/keystore.msm8996.so -vendor/lib/hw/sound_trigger.primary.msm8996.so -vendor/lib/hw/activity_recognition.msm8996.so -vendor/lib/libchromatix_s5k2m8sx_postproc.so -vendor/lib/libmmcamera_isp_bhist_stats44.so -vendor/lib/libmmqjpeg_codec.so -vendor/lib/libqmi.so -vendor/lib/soundfx/libqcbassboost.so -vendor/lib/soundfx/libqcreverb.so -vendor/lib/soundfx/libqcvirt.so -vendor/lib/libmmcamera_isp_fovcrop_video46.so -vendor/lib/libmmcamera_facedetection_lib.so -vendor/lib/libmmcamera_isp_sce40.so -vendor/lib/libqmi_csi.so -vendor/lib/libadsp_default_listener.so -vendor/lib/libmmcamera_s5k2m8sx.so -vendor/lib/libmmcamera_isp_clamp_video40.so -vendor/lib/libdpmframework.so -vendor/lib/libfastcvadsp_stub.so -vendor/lib/lib-sec-disp.so -vendor/lib/libchromatix_s5k2m8sx_preview.so -vendor/lib/libqti-at.so -vendor/lib/libchromatix_s5k2m8sx_cpp_video.so -vendor/lib/libmmcamera_isp_linearization40.so -vendor/lib/lib-rcsimssjni.so -vendor/lib/libmmcamera2_pproc_modules.so -vendor/lib/libsmemlog.so -vendor/lib/libmmcamera_isp_snr47.so -vendor/lib/libmmcamera_isp_hdr_be_stats46.so -vendor/lib/libmmcamera_isp_gtm46.so -vendor/lib/libvoice-svc.so -vendor/lib/sensors.oem.so -vendor/lib64/libulp2.so -vendor/lib64/libcneqmiutils.so -vendor/lib64/lib-rtpsl.so -vendor/lib64/libqmi_client_qmux.so -vendor/lib64/libdrmtime.so -vendor/lib64/libqti-wl.so -vendor/lib64/libsensor_reg.so -vendor/lib64/libCB.so -vendor/lib64/libadreno_utils.so -vendor/lib64/libOmxAacDec.so -vendor/lib64/libacdbmapper.so -vendor/lib64/libsdmextension.so -vendor/lib64/libril-qc-ltedirectdisc.so -vendor/lib64/libaudcal.so -vendor/lib64/libril-qc-radioconfig.so -vendor/lib64/libizat_client_api.so -vendor/lib64/libdpmfdmgr.so -vendor/lib64/libprotobuf-cpp-fool.so -vendor/lib64/libxtwifi_ulp_adaptor.so -vendor/lib64/lib-rtpcore.so -vendor/lib64/liblowi_client.so -vendor/lib64/libslimclient.so -vendor/lib64/libasn1crt.so -vendor/lib64/libbtnv.so -vendor/lib64/libGPreqcancel_svc.so -vendor/lib64/libqc-opt.so -vendor/lib64/libqmi_common_so.so -vendor/lib64/lib-imsxml.so -vendor/lib64/libmmcamera_dbg.so -vendor/lib64/libloc_xtra.so -vendor/lib64/libxtadapter.so -vendor/lib64/libI420colorconvert.so -vendor/lib64/libcneconn.so -vendor/lib64/libqvop-service.so -vendor/lib64/libdpmtcm.so -vendor/lib64/libevent_observer.so -vendor/lib64/libasn1crtx.so -vendor/lib64/libmmcamera2_memleak.so -vendor/lib64/lib-imsSDP.so -vendor/lib64/vendor.display.color@1.0_vendor.so -vendor/lib64/libllvm-glnext.so -vendor/lib64/lib_drplugin_server.so -vendor/lib64/libsecureui.so -vendor/lib64/libasn1cper.so -vendor/lib64/lib-rcsjni.so -vendor/lib64/libxml.so -vendor/lib64/libFidoCryptoJNI.so -vendor/lib64/libfastcvopt.so -vendor/lib64/libllvm-qcom.so -vendor/lib64/libvendorconn.so -vendor/lib64/libmmcamera2_q3a_core.so -vendor/lib64/libaudiodevarb.so -vendor/lib64/librpmb.so -vendor/lib64/libNimsWrap.so -vendor/lib64/libconfigdb.so --vendor/lib64/libgpustats.so -vendor/lib64/libthermalclient.so -vendor/lib64/libsettings.so -vendor/lib64/libOmxAlacDec.so -vendor/lib64/libcneapiclient.so -vendor/lib64/libssd.so -vendor/lib64/libidl.so -vendor/lib64/libOmxEvrcDec.so -vendor/lib64/libllvm-qgl.so -vendor/lib64/vendor.display.postproc@1.0_vendor.so -vendor/lib64/liblowi_wifihal_nl.so -vendor/lib64/libimscamera_jni.so -vendor/lib64/libSecureUILib.so -vendor/lib64/libqti-perfd-client.so -vendor/lib64/libril-qc-qmi-1.so -vendor/lib64/libmmosal.so -vendor/lib64/lib-dplmedia.so -vendor/lib64/lib-imsvt.so -vendor/lib64/libOmxWmaDec.so -vendor/lib64/libsdm-diag.so -vendor/lib64/lib-imscamera.so -vendor/lib64/libcne.so -vendor/lib64/libtzdrmgenprov.so -vendor/lib64/libvpphvx.so -vendor/lib64/liblbs_core.so -vendor/lib64/libdiag.so -vendor/lib64/libGPreqcancel.so -vendor/lib64/sensors.ssc.so -vendor/lib64/libQSEEComAPI.so -vendor/lib64/libsd_sdk_display.so -vendor/lib64/libwms.so -vendor/lib64/librs_adreno_sha1.so -vendor/lib64/libOmxApeDecSw.so -vendor/lib64/libdsi_netctrl.so -vendor/lib64/libqmiservices.so -vendor/lib64/libOmxApeDec.so -vendor/lib64/libloc_ext.so -vendor/lib64/libqmi_encdec.so -vendor/lib64/libqti_performance.so -vendor/lib64/librilqmiservices.so -vendor/lib64/libquipc_os_api.so -vendor/lib64/libmmcamera2_stats_algorithm.so -vendor/lib64/libadsprpc.so -vendor/lib64/libqdi.so -vendor/lib64/libqti-gt.so -vendor/lib64/libOmxAmrwbplusDec.so -vendor/lib64/libqcci_legacy.so -vendor/lib64/libdrplugin_client.so -vendor/lib64/libmmcamera2_frame_algorithm.so -vendor/lib64/lib-imsrcscm.so -vendor/lib64/libhdr_tm.so -vendor/lib64/libqcmaputils.so -vendor/lib64/libsensor1.so -vendor/lib64/libCommandSvc.so -vendor/lib64/libqmi_cci.so -vendor/lib64/libgdtap.so -vendor/lib64/libperipheral_client.so -vendor/lib64/libOmxMux.so -vendor/lib64/libacdbloader.so -vendor/lib64/libacdbrtac.so -vendor/lib64/liblocationservice_glue.so -vendor/lib64/libFidoSuiJNI.so -vendor/lib64/lib-imsrcs.so -vendor/lib64/libqseed3.so -vendor/lib64/libsecureui_svcsock.so -vendor/lib64/libc2d30_bltlib.so --vendor/lib64/libtime_genoff.so -vendor/lib64/libqdp.so -vendor/lib64/libalarmservice_jni.so -vendor/lib64/lib-imss.so -vendor/lib64/libqmi_client_helper.so -vendor/lib64/egl/eglSubDriverAndroid.so -vendor/lib64/egl/libq3dtools_adreno.so -vendor/lib64/egl/libGLESv1_CM_adreno.so -vendor/lib64/egl/libEGL_adreno.so -vendor/lib64/egl/libQTapGLES.so -vendor/lib64/egl/libGLESv2_adreno.so -vendor/lib64/libmdmdetect.so -vendor/lib64/lib-imsdpl.so -vendor/lib64/libdpmnsrm.so -vendor/lib64/libdpmctmgr.so -vendor/lib64/lib-imsqimf.so -vendor/lib64/libTimeService.so -vendor/lib64/lib-ims-rcscmjni.so -vendor/lib64/libizat_core.so -vendor/lib64/lib-imsrcscmservice.so -vendor/lib64/libimsmedia_jni.so -vendor/lib64/libsdm-color.so -vendor/lib64/libaudioalsa.so -vendor/lib64/libuiblur.so -vendor/lib64/lib-rtpdaemoninterface.so -vendor/lib64/lib_remote_simlock.so -vendor/lib64/librcc.so -vendor/lib64/libril-qcril-hook-oem.so -vendor/lib64/libadiertac.so -vendor/lib64/libmmcamera2_is.so -vendor/lib64/liblqe.so -vendor/lib64/libQtiTether.so -vendor/lib64/libOpenCL.so -vendor/lib64/libacdb-fts.so -vendor/lib64/libqisl.so -vendor/lib64/libFIDOKeyProvisioning.so -vendor/lib64/liblocationservice.so -vendor/lib64/libDRPlugin.so -vendor/lib64/libbccQTI.so -vendor/lib64/lib-rtpcommon.so -vendor/lib64/libC2D2.so -vendor/lib64/libOmxAlacDecSw.so -vendor/lib64/libmmcamera_tintless_bg_pca_algo.so -vendor/lib64/libthermalioctl.so -vendor/lib64/libFidoCrypto.so -vendor/lib64/libscalar.so -vendor/lib64/libmmcamera_tintless_algo.so -vendor/lib64/libmm-disp-apis.so -vendor/lib64/libqti-iop-client.so -vendor/lib64/librs_adreno.so -vendor/lib64/libconnctrl.so --vendor/lib64/libsdm-disp-vndapis.so -vendor/lib64/libprotobuf-cpp-Hlit.so -vendor/lib64/libdataitems.so -vendor/lib64/libgsl.so -vendor/lib64/libwqe.so -vendor/lib64/libRSDriver_adreno.so -vendor/lib64/libdsutils.so -vendor/lib64/libmm-qdcm.so -vendor/lib64/libqti-iop.so -vendor/lib64/libdisp-aba.so -vendor/lib64/libOmxQcelp13Dec.so -vendor/lib64/libc2d30-a5xx.so -vendor/lib64/lib-imsrcscmclient.so -vendor/lib64/libtinyxml2_1.so -vendor/lib64/libdrmfs.so -vendor/lib64/hw/flp.default.so -vendor/lib64/hw/fingerprint.vendor.msm8996.so -vendor/lib64/hw/gatekeeper.msm8996.so -vendor/lib64/hw/vulkan.msm8996.so -vendor/lib64/hw/keystore.msm8996.so -vendor/lib64/hw/activity_recognition.msm8996.so -vendor/lib64/libqmi.so -vendor/lib64/soundfx/libqcbassboost.so -vendor/lib64/soundfx/libqcreverb.so -vendor/lib64/soundfx/libqcvirt.so -vendor/lib64/libqmi_csi.so -vendor/lib64/libadsp_default_listener.so -vendor/lib64/libnetmgr.so -vendor/lib64/libxt_native.so -vendor/lib64/libdpmframework.so -vendor/lib64/libfastcvadsp_stub.so -vendor/lib64/lib-sec-disp.so -vendor/lib64/libqti-at.so -vendor/lib64/libflp.so -vendor/lib64/liblowi_wifihal.so -vendor/lib64/lib-rcsimssjni.so -vendor/lib64/libgeofence.so -vendor/lib64/libsmemlog.so -vendor/lib64/libvoice-svc.so -vendor/lib64/libsystem_health_mon.so -vendor/lib64/libStDrvInt.so -vendor/lib64/sensors.oem.so -vendor/lib64/libprotobuf-cpp-shit.so -vendor/etc/perf-profile4.conf -vendor/etc/init/vendor.display.color@1.0-service.rc -vendor/etc/perf-profile1.conf -vendor/etc/perf-profile2.conf -vendor/etc/perf-profile5.conf -vendor/etc/perf-profile0.conf -vendor/etc/RIDL/qdss.cfg -vendor/etc/sensors/hals.conf -vendor/etc/perf-profile6.conf -vendor/etc/qcril_fancy.db -vendor/etc/perf-profile3.conf -vendor/etc/msm_irqbalance.conf -vendor/qcril.db - -# APKs --app/datastatusnotification/datastatusnotification.apk --app/QtiTelephonyService/QtiTelephonyService.apk --app/shutdownlistener/shutdownlistener.apk --app/TimeService/TimeService.apk --priv-app/CNEService/CNEService.apk --priv-app/com.qualcomm.location/com.qualcomm.location.apk --priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk --vendor/app/colorservice/colorservice.apk --vendor/app/imssettings/imssettings.apk --vendor/app/ims/ims.apk diff --git a/rootdir/etc/init.qcom.usb.rc b/rootdir/etc/init.qcom.usb.rc index 9044dfc..da54d40 100755 --- a/rootdir/etc/init.qcom.usb.rc +++ b/rootdir/etc/init.qcom.usb.rc @@ -25,12 +25,12 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +import init.zuk.usb.rc + on init write /sys/class/android_usb/android0/f_rndis/wceis 1 write /sys/class/android_usb/android0/iSerial ${ro.serialno} write /sys/class/android_usb/android0/iManufacturer ShenQi Inc. - write /sys/class/android_usb/android0/iProduct Z2-PLUS - write /sys/class/android_usb/android0/f_mass_storage/inquiry_string "ShenQi Z2-PLUS 0100" on fs mkdir /dev/usb-ffs 0770 shell shell diff --git a/setup-makefiles.sh b/setup-makefiles.sh deleted file mode 100755 index 7e65196..0000000 --- a/setup-makefiles.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2016 The CyanogenMod Project -# Copyright (C) 2017 The LineageOS Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -set -e - -# Required! -export DEVICE=z2_plus -export VENDOR=zuk - -export DEVICE_BRINGUP_YEAR=2016 - -INITIAL_COPYRIGHT_YEAR=2017 - -# Load extract_utils and do some sanity checks -MY_DIR="${BASH_SOURCE%/*}" -if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi - -LINEAGE_ROOT="$MY_DIR"/../../.. - -HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh -if [ ! -f "$HELPER" ]; then - echo "Unable to find helper script at $HELPER" - exit 1 -fi -. "$HELPER" - -# Initialize the helper for common -setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" true - -# Copyright headers and guards -write_headers "z2_plus" - -# The standard common blobs -write_makefiles "$MY_DIR"/proprietary-files.txt - -# We are done! -write_footers - -if [ -s "$MY_DIR"/../"$DEVICE"/proprietary-files.txt ]; then - # Reinitialize the helper for device - INITIAL_COPYRIGHT_YEAR="$DEVICE_BRINGUP_YEAR" - setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false - - # Copyright headers and guards - write_headers - - # The standard device blobs - write_makefiles "$MY_DIR"/../"$DEVICE"/proprietary-files.txt - - # We are done! - write_footers -fi diff --git a/system.prop b/system.prop index 28eaaa3..0cabc7d 100644 --- a/system.prop +++ b/system.prop @@ -83,7 +83,6 @@ persist.loc.nlp_name=com.qualcomm.location ro.gps.agps_provider=1 # Hdmi -persist.vendor.audio.speaker.prot.enable=true vendor.audio.hw.aac.encoder=true # HWUI properties diff --git a/vendorsetup.sh b/vendorsetup.sh deleted file mode 100755 index 25892fe..0000000 --- a/vendorsetup.sh +++ /dev/null @@ -1,2 +0,0 @@ -add_lunch_combo lineage_z2_plus-userdebug -add_lunch_combo lineage_z2_plus-eng -- cgit v1.2.3