Skip to content

Commit

Permalink
sanders: lineage specific changes
Browse files Browse the repository at this point in the history
Signed-off-by: MasterAwesome <[email protected]>
  • Loading branch information
MasterAwesome committed Sep 20, 2018
1 parent 23e022e commit 9521dc3
Show file tree
Hide file tree
Showing 8 changed files with 137 additions and 130 deletions.
7 changes: 7 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ $(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)

ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS)

NUKE_NOTEPAD := $(TARGET_OUT)/app/Notepadv3Solution
$(NUKE_NOTEPAD): $(LOCAL_INSTALLED_MODULE)
@echo "Removing: $@"
@rm -rf $@

ALL_DEFAULT_INSTALLED_MODULES += $(NUKE_NOTEPAD)

include $(call all-makefiles-under,$(LOCAL_PATH))

endif
5 changes: 2 additions & 3 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2014 The Android Open-Source Project
# Copyright (C) 2017-2018 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.
Expand All @@ -12,7 +12,6 @@
# 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)/lineage_sanders.mk
$(LOCAL_DIR)/lineage_sanders.mk
59 changes: 25 additions & 34 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,9 @@ TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include

BOARD_VENDOR := motorola-qcom

WITH_LINEAGE_CHARGER := false

# AIDs and CAPS
TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs

# Shim
TARGET_LD_SHIM_LIBS := \
/system/vendor/bin/adspd|libshim_adsp.so \
/system/vendor/lib64/libmdmcutback.so|libqsap_shim.so

# Platform
TARGET_BOARD_PLATFORM := msm8953
TARGET_BOARD_PLATFORM_GPU := qcom-adreno506
Expand All @@ -54,13 +47,16 @@ TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := cortex-a53
TARGET_USES_64_BIT_BINDER := true

DISABLE_DTC_OPTS := true

# Asserts
TARGET_OTA_ASSERT_DEVICE := sanders,sanders_retail

# GPS
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
TARGET_NO_RPC := true
USE_DEVICE_SPECIFIC_GPS := true
USING_DEVICE_GPS := true
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)

# Init
TARGET_INIT_VENDOR_LIB := libinit_sanders
Expand All @@ -80,19 +76,10 @@ TARGET_KERNEL_ARCH := arm64
TARGET_KERNEL_HEADER_ARCH := arm64
TARGET_KERNEL_CONFIG := sanders_defconfig
TARGET_KERNEL_SOURCE := kernel/motorola/msm8953

# Toolchain
KERNEL_TOOLCHAIN := $(shell pwd)/prebuilts/gcc/$(HOST_OS)-x86/aarch64/aarch64-linux-android-4.9/bin
KERNEL_TOOLCHAIN := $(PWD)/prebuilts/gcc/$(HOST_OS)-x86/aarch64/aarch64-linux-android-4.9/bin
TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-androidkernel-

TARGET_USE_SDCLANG := true

#Power
TARGET_HAS_NO_WIFI_STATS := true

# Thermal
USE_DEVICE_SPECIFIC_THERMAL := true

# Audio
AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
Expand Down Expand Up @@ -140,11 +127,15 @@ BOARD_NO_CHARGER_LED := true
WITH_CM_CHARGER := false

# DT2W
#TARGET_TAP_TO_WAKE_NODE := "/sys/android_touch/doubletap2wake"
TARGET_TAP_TO_WAKE_NODE := "/sys/android_touch/doubletap2wake"

# Crypto
TARGET_HW_DISK_ENCRYPTION := true

# Enable dexpreopt to speed boot time
WITH_DEXPREOPT := true
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := true

# Display
BOARD_USES_ADRENO := true
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
Expand All @@ -164,9 +155,6 @@ TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
VSYNC_EVENT_PHASE_OFFSET_NS := 2000000
SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000

# exfat
TARGET_EXFAT_DRIVER := exfat

# FM
BOARD_HAVE_QCOM_FM := true

Expand All @@ -189,29 +177,23 @@ BOARD_FLASH_BLOCK_SIZE := 131072
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216 # 16384 * 1024 mmcblk0p37
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 # 262144 * 1024 mmcblk0p52
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 21073920 # 20580 * 1024 mmcblk0p38
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432 # 32768 * 1024 mmcblk0p38
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4294967296 # 4194304 * 1024 mmcblk0p53
BOARD_USERDATAIMAGE_PARTITION_SIZE := 25614597120 # 25014255 * 1024 mmcblk0p54

# Peripheral manager
TARGET_PER_MGR_ENABLED := true

# Power
TARGET_HAS_NO_WIFI_STATS := true

# QC flags
BOARD_USES_QCOM_HARDWARE := true
BOARD_USES_QC_TIME_SERVICES := true

#QTI
TARGET_PROVIDES_QTI_TELEPHONY_JAR := true

# CAF
TARGET_QCOM_DISPLAY_VARIANT := caf-msm8996
TARGET_QCOM_AUDIO_VARIANT := caf-msm8996
TARGET_QCOM_MEDIA_VARIANT := caf-msm8996
TARGET_QCOM_BLUETOOTH_VARIANT := caf-msm8996

# Recovery
BOARD_HAS_NO_SELECT_BUTTON := true
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.recovery
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
LZMA_RAMDISK_TARGETS := recovery
Expand All @@ -220,10 +202,19 @@ LZMA_RAMDISK_TARGETS := recovery
TARGET_RELEASETOOLS_EXTENSIONS := $(DEVICE_PATH)/releasetools

# SELinux
SELINUX_IGNORE_NEVERALLOWS := true
#include device/qcom/sepolicy/sepolicy.mk
#BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy

# Shim
TARGET_LD_SHIM_LIBS := \
/system/vendor/bin/adspd|libshim_adsp.so \
/system/vendor/lib64/libmdmcutback.so|libqsap_shim.so

# Thermal
USE_DEVICE_SPECIFIC_THERMAL := true

# Use mke2fs to create ext4 images
TARGET_USES_MKE2FS := true

# Wifi
BOARD_HAS_QCOM_WLAN := true
Expand Down
63 changes: 32 additions & 31 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)

# Overlay
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
$(LOCAL_PATH)/overlay-lineage
$(LOCAL_PATH)/overlay

# These are the hardware-specific features
PRODUCT_COPY_FILES += \
Expand All @@ -32,7 +31,6 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
Expand All @@ -49,6 +47,7 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
Expand All @@ -61,11 +60,6 @@ PRODUCT_COPY_FILES += \
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
PRODUCT_AAPT_CONFIG := normal

# HIDL
PRODUCT_PACKAGES += \
[email protected] \
[email protected]

# Audio
PRODUCT_PACKAGES += \
audio.primary.msm8953 \
Expand All @@ -92,7 +86,6 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
$(LOCAL_PATH)/audio/audio_policy.conf:system/vendor/etc/audio_policy.conf \
$(LOCAL_PATH)/audio/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \
$(LOCAL_PATH)/audio/audio_platform_info_extcodec.xml:system/vendor/etc/audio_platform_info_extcodec.xml \
$(LOCAL_PATH)/audio/mixer_paths.xml:system/vendor/etc/mixer_paths.xml \
$(LOCAL_PATH)/audio/audio_ext_spkr.conf:system/vendor/etc/audio_ext_spkr.conf \
$(LOCAL_PATH)/audio/audio_platform_info.xml:system/vendor/etc/audio_platform_info.xml \
Expand All @@ -101,14 +94,13 @@ PRODUCT_COPY_FILES += \

# Bluetooth
PRODUCT_PACKAGES += \
libbt-vendor \
[email protected] \
[email protected]
libbt-vendor

# Camera
PRODUCT_PACKAGES += \
libbson \
Snap \
Camera2 \
libgui_vendor \
[email protected] \
[email protected] \
[email protected] \
Expand Down Expand Up @@ -155,6 +147,10 @@ PRODUCT_PACKAGES += \
[email protected] \
[email protected]_vendor

PRODUCT_PACKAGES += \
[email protected] \
[email protected]

PRODUCT_PACKAGES += android.hardware.media.omx

# RenderScript HAL
Expand Down Expand Up @@ -197,15 +193,15 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
libgnss \
libgnsspps \
[email protected] \
[email protected] \
[email protected]
[email protected] \
[email protected] \
libqsap_sdk \
libqsap_shim

# health
# Healthd
PRODUCT_PACKAGES += \
[email protected] \
[email protected] \
[email protected]
[email protected] \
[email protected]

# IRSC
PRODUCT_COPY_FILES += \
Expand Down Expand Up @@ -264,8 +260,8 @@ PRODUCT_COPY_FILES += \
frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
$(LOCAL_PATH)/configs/libnfc-nxp.conf:system/etc/libnfc-nxp.conf
$(LOCAL_PATH)/configs/libnfc-nci.conf:system/vendor/etc/libnfc-nci.conf \
$(LOCAL_PATH)/configs/libnfc-nxp.conf:system/vendor/etc/libnfc-nxp.conf

# Netutils
PRODUCT_PACKAGES += \
Expand All @@ -275,14 +271,13 @@ PRODUCT_PACKAGES += \
libandroid_net_32

PRODUCT_PACKAGES += \
[email protected] \
libnfc \
libnfc_jni \
nfc_nci.msm8953 \
NfcNci \
SecureElement \
Tag \
TagGoogle \
com.android.nfc_extras \
[email protected]
com.android.nfc_extras

# OMX
PRODUCT_PACKAGES += \
Expand Down Expand Up @@ -317,7 +312,9 @@ PRODUCT_PACKAGES += \
init.mmi.rc \
init.mmi.usb.rc \
init.qcom.rc \
ueventd.qcom.rc

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/ueventd.qcom.rc:system/vendor/ueventd.rc

# Powerhint configuration file
PRODUCT_COPY_FILES += \
Expand Down Expand Up @@ -358,8 +355,7 @@ PRODUCT_COPY_FILES += \

PRODUCT_PACKAGES += \
[email protected] \
[email protected]_32 \
sensorservice_32
[email protected]

# Shims
PRODUCT_PACKAGES += \
Expand All @@ -369,9 +365,9 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal-engine-sanders.conf:system/vendor/etc/thermal-engine.conf

# USB HAL
# USB
PRODUCT_PACKAGES += \
[email protected]
[email protected].sanders

# Vibrator
PRODUCT_PACKAGES += \
Expand Down Expand Up @@ -422,6 +418,11 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_cfg.ini

# TEMP FIX
PRODUCT_PACKAGES += \
[email protected] \
[email protected]

PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0

PRODUCT_GMS_CLIENTID_BASE := android-motorola
Expand Down
29 changes: 0 additions & 29 deletions full_sanders.mk

This file was deleted.

16 changes: 5 additions & 11 deletions lineage.dependencies
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
[
{
"repository": "MasterAwesome/android_device_motorola_sanders",
"target_path": "device/motorola/sanders",
"branch": "lineage-15.1"
},
{
"repository": "MasterAwesome/proprietary_vendor_motorola_sanders",
"repository": "BigTopKrazies/vendor_motorola_sanders",
"target_path": "vendor/motorola/sanders",
"branch": "lineage-15.1"
"branch": "9.0"
},
{
"repository": "GZR-Kernels/kernel_motorola_msm8953_sanders",
"target_path": "kernel/motorola/msm8953",
"branch": "8.1-ods"
"branch": "9.0"
},
{
"repository": "LineageOS/android_packages_resources_devicesettings",
"target_path": "packages/resources/devicesettings",
"branch": "lineage-15.0"
"repository": "android_packages_resources_devicesettings",
"target_path": "packages/resources/devicesettings"
}
]
Loading

0 comments on commit 9521dc3

Please sign in to comment.