Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

santoni: implement wifi libs #7

Open
wants to merge 133 commits into
base: lineage-15.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
c4110c1
santoni: Enable Cpuset
Nikesh001 Dec 3, 2017
b2f8461
santoni: Move to source built audio hal
Nikesh001 Dec 9, 2017
251c727
Add missing restore hciattach
Nikesh001 Dec 9, 2017
ce231ad
santoni: Fixed Recent key
Nikesh001 Dec 19, 2017
400b267
santoni: Enable Sdcardfs
Nikesh001 Dec 28, 2017
3eefdf7
santoni: Enable f2fs
Nikesh001 Dec 28, 2017
fd118e0
santoni: Use lineage vendor
nikitsharma15 Sep 8, 2017
0ddcc45
santoni: Update for Oreo
nikitsharma15 Sep 8, 2017
282b149
santoni: Remove sepolicies for now
nikitsharma15 Sep 8, 2017
bf9c7ef
santoni: Switch to permissive
nikitsharma15 Sep 8, 2017
0913878
Add missing liblog dependency
dimitry- Sep 27, 2016
9fb23b5
santoni: BT: Sync with CAF
Alberto97 Jul 1, 2017
2ba9d81
santoni: Update rootdir from caf
TheScarastic Oct 28, 2017
b4ca07c
Disable Treble OMX by default.
Mar 30, 2017
5cbc108
Sdcardfs is now the default. Remove unnecessary line
drosen-google Mar 20, 2017
6a5e731
santoni: Build light HAL
nikitsharma15 Sep 8, 2017
3f940c2
santoni: Build sensors HAL
nikitsharma15 Sep 8, 2017
68a2986
santoni: Build camera HAL
nikitsharma15 Sep 8, 2017
0b4d8d4
santoni: Build GNSS hal
nikitsharma15 Sep 8, 2017
d1058ee
santoni: Add HIDL manifest
nikitsharma15 Sep 8, 2017
1c27693
santoni : build Keymaster HAL
nikitsharma15 Sep 8, 2017
cfabfb9
santoni: Build bluetooth HAL
nikitsharma15 Sep 8, 2017
35f498b
santoni: Build vibrator HAL
nikitsharma15 Sep 8, 2017
a838f23
santoni: Add wifi HAL service
nikitsharma15 Sep 8, 2017
8ac783f
santoni: Add display HAL
nikitsharma15 Sep 8, 2017
0456ece
santoni: Add power HAL
nikitsharma15 Sep 8, 2017
3704da3
santoni: Add libbt-vendor
myles-android Mar 31, 2017
59d0c09
santoni: Add audio HAL
nikitsharma15 Sep 8, 2017
86e059e
santoni: Remove some overlays
nikitsharma15 Sep 8, 2017
74c0150
santoni: Add RenderScript HAL
Rashed97 Aug 22, 2017
dc2def2
santoni: Add DRM HAL impl
Rashed97 Aug 22, 2017
15fd5e7
santoni: Add USB service
Rashed97 Aug 22, 2017
ae3efd9
wifi: Add wificond to products
Jun 8, 2016
9908f39
santoni: wifi: Configure the p2p_search_delay to 100 msec
Jun 16, 2014
0fdbc8f
santoni: wifi: set tdls_external_control to configure external contro…
Jul 20, 2016
c5fa726
santoni: Add libselinux as static dependency
nikitsharma15 Jan 19, 2018
2b4aac5
santoni: Update init for oreo-8.1
nikitsharma15 Jan 19, 2018
7f5b4c9
santoni: Remove references to hostapd
luca020400 Aug 27, 2017
da30ba6
santoni: Remove no longer used hostapd configs
luca020400 Aug 27, 2017
3b8bf87
santoni: Switch to config.fs
nikitsharma15 Jan 19, 2018
466a91a
santoni: Move Lineage specific overlays to overlay-lineage
Rashed97 Oct 21, 2017
480f69f
santoni: Add seccomp policies
nikitsharma15 Jan 19, 2018
e4bb122
santoni: Enable HWC2 and Gralloc1
Rashed97 Dec 2, 2017
956e607
santoni: Add AID_QCOM_DIAG, AID_RFS, and AID_RFS_SHARED to config.fs
Nov 16, 2017
794a206
santoni: Replace QCOMs groups with oem_29XX
luk1337 Nov 17, 2017
11610cc
santoni: lineagehw: Apply LineageOS rebrand
bgcngm Oct 11, 2017
3b7f91b
santoni: Use hardware feature definition to indicate Passpoint support
zqiu-nest May 5, 2017
d9f3f85
santoni: overlay: Disable A2DP sink profile
luk1337 Dec 14, 2017
84407d7
santoni: Update sec_config for sensor service
nikitsharma15 Jan 19, 2018
8056dbd
santoni: sec_config: Add 2901 to IPC Router config
Jul 27, 2017
8a427ee
santoni: Allow QMID service to aquire net_raw permission
Aug 16, 2017
39524ad
Add device compatibility matrix
May 9, 2017
26bd7de
Add <interface> / <instance> to dev compat mat
May 18, 2017
2cd8aa2
santoni: Switch to hwbinder graphics allocator
nikitsharma15 Dec 19, 2017
776ea08
Enable graphics allocator binderized service.
Mar 21, 2017
9e8acec
santoni: Use build variables to build device matrices.
Aug 7, 2017
e08d129
camera: Advertize high-speed recording profiles
blunden Sep 3, 2017
021758e
santoni: Advertize HWC2 color transform support
bgcngm Jan 3, 2018
e4c7e3e
santoni: Build dummy android.hidl.[base,manager]@1.0
moetayuko Dec 7, 2017
bae9e06
santoni: Build netd HAL and netutils wrapper
nikitsharma15 Jan 19, 2018
969498c
santoni: Build libandroid_net
nikitsharma15 Dec 9, 2017
eb1a17d
santoni: Set IMS to use CodeAurora extension
Rashed97 Jan 2, 2018
6da834c
santoni: Disable lineage charger
nikitsharma15 Jan 19, 2018
2e4e54a
santoni: Enable wifi services 1.1
bgcngm Dec 17, 2017
50dcad3
santoni: Remove SELinux context
nikitsharma15 Jan 19, 2018
79fbfb7
santoni: Remove seclabels
nikitsharma15 Jan 19, 2018
8d4cb75
santoni: Switch to xml audio effects
nikitsharma15 Jan 19, 2018
0118507
santoni: Enable Camera2 API
nikitsharma15 Jan 19, 2018
3d0a69b
santoni: Remove fingerprintd
nikitsharma15 Jan 19, 2018
d1e91d9
santoni: Build libtinycompress
nikitsharma15 Jan 19, 2018
ba0c013
santoni: Update and arrange display flags
HighwayStar Oct 30, 2017
ff2a35a
santoni: Set TARGET_CPU_VARIANT to cortex-a53
nikitsharma15 Jan 19, 2018
46686bb
santoni: Update data-ipa-cfg-mgr from CAF
nikitsharma15 Jan 20, 2018
e0dea51
santoni: data-ipa-cfg-mgr: Clean up and remove useless scripts
bgcngm Jan 11, 2018
9984eb3
santoni: Add telephony-ext to boot JARs
Vachounet Jan 16, 2018
1b1f7d9
santoni: Add custom biometrics
TheScarastic Nov 30, 2017
7543947
santoni: Update gps and gnsspps
TheScarastic Oct 30, 2017
2f0f845
santoni: Add missing props/blobs for fp
HridayHS Dec 16, 2017
48858ff
santoni: Enable treble for omx
nikitsharma15 Jan 21, 2018
5f98c30
santoni: Build RCS
nikitsharma15 Jan 21, 2018
192f4dd
santoni: Build libdisplayconfig and libhwc2on1adapter
Rashed97 Jan 5, 2018
93dd4c9
santoni: Rename camera property
Sep 28, 2017
25b8780
santoni: Fix imsstarter service entry in init.target.rc
Aug 7, 2017
746af51
santoni: Add Renderscript to manifest
Aug 23, 2017
debcdca
santoni: Update media configs for Oreo
nikitsharma15 Jan 22, 2018
56ebbcb
santoni: Relocate device specific config files to vendor partition
nikitsharma15 Jan 22, 2018
376b407
santoni: Move some configs to vendor
nikitsharma15 Jan 22, 2018
52b280f
santoni: Keep a copy of media_profiles.xml in /system
Vachounet Dec 9, 2017
036fb1d
santoni: Move Wifi configs to vendor
nikitsharma15 Jan 22, 2018
84c1e7a
santoni: Move keylayout configs to vendor
nikitsharma15 Jan 22, 2018
2cb6348
santoni: Enable Camera App pinning
Jul 7, 2016
33f4d63
santoni: Move some services to vendor
nikitsharma15 Jan 22, 2018
21bbe40
santoni: Allow ril to access the locator and notifier services.
Mar 2, 2017
991a228
santoni: Switch to binderized DRM HAL
bgcngm Dec 23, 2017
a57c47e
santoni: Move IPC router config to vendor
bgcngm Dec 26, 2017
439b12d
santoni: Let's binderize services
nikitsharma15 Jan 23, 2018
32f36a4
santoni: Update hidl manifest
nikitsharma15 Jan 23, 2018
b4750cf
santoni: HIDL: Add new IOP hal
Aug 11, 2017
4cc3e06
santoni: Display: Add entry for postproc
Jul 24, 2017
6b04558
santoni: Add esepowermanager service
nikitsharma15 Jan 23, 2018
df75f9f
santoni: cas: add CAS HAL
Dec 14, 2017
657d9e2
santoni: Add QTI low power whitelist
Rashed97 Jan 7, 2018
bcea9ef
santoni: Add QTI privileged app permissions
Rashed97 Jan 7, 2018
1b4e237
santoni: Build QTI camera HIDL extension
bgcngm Jan 11, 2018
e4f5968
santoni: Update RFS symlinks
moetayuko Nov 5, 2017
37e3865
santoni: Bring config.fs inline with CAF
bgcngm Dec 22, 2017
a67274b
santoni: Tweaking Thermal-engine
LuizPauloDamaceno Jan 23, 2018
6b69ef1
santoni: Add set_baseband script and corresponding sepolicy
TingyiChen Jul 19, 2016
c322261
santoni: HIDL: Enable compilation of android.hidl.manager@1.0-java
Mar 31, 2017
f6d0423
santoni: Add vndk-sp
Jun 14, 2017
89e82a7
santoni: Remove android.hidl.base from vndk libs
Rashed97 Dec 6, 2017
6388ccd
santoni: Update Audio to CAF version
scritch007 Oct 20, 2017
4782bb8
santoni: Switch to Camera2
nikitsharma15 Jan 23, 2018
e99eb09
santoni: Fix missing separators
LuizPauloDamaceno Jan 24, 2018
540aa0a
santoni: Fix derp
nikitsharma15 Jan 24, 2018
feb1408
santoni: Use $(DEVICE_PATH) instead of $(LOCAL_PATH)
nikitsharma15 Jan 24, 2018
fbf4314
santoni: Import liblight from caf
HighwayStar Dec 14, 2017
d3b2cf6
Revert "santoni: Let's binderize services"
nikitsharma15 Jan 25, 2018
2e5540d
Revert "santoni: HIDL: Add new IOP hal"
nikitsharma15 Jan 25, 2018
06b0e69
santoni: Build missing packages
nikitsharma15 Jan 25, 2018
df59a3f
Santoni: Fix Wifi
Coderessurect Dec 16, 2017
30b5b6b
santoni: Update camera shim
nikitsharma15 Jan 25, 2018
a80af52
santoni: remove duplicate value for resource
ElebrUS Jan 24, 2018
46c4653
santoni: Move gx_fpd service to vendor
nikitsharma15 Jan 25, 2018
605d1ea
santoni: Move WCNSS_qcom_cfg to vendor
nikitsharma15 Jan 25, 2018
c34e77c
santoni: Dex-preopt boot and system server
Flex1911 Dec 30, 2017
7362ac5
santoni: Build libdisplayconfig and libhwc2on1adapter
Rashed97 Jan 5, 2018
9a4e432
santoni: overlay: Disable SystemUI anti-falsing on lockscreen
AdrianDC Jan 2, 2018
2132c53
santoni: Update audio flags
hemantbeast Jan 21, 2018
0ec0c4e
More audio CAF features
LuizPauloDamaceno Jan 26, 2018
96dadea
santoni: overlay: Update for new LED capabilities
ElebrUS Jan 26, 2018
277a1b6
Merge pull request #6 from ElebrUS/patch-2
LuizPauloDamaceno Jan 28, 2018
236e024
santoni: implement wifi libs
LuizPauloDamaceno Jan 29, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 21 additions & 10 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ LOCAL_MODULE_SUFFIX := -timestamp
include $(BUILD_SYSTEM)/base_rules.mk

$(LOCAL_BUILT_MODULE): ACTUAL_INI_FILE := /data/misc/wifi/WCNSS_qcom_cfg.ini
$(LOCAL_BUILT_MODULE): WCNSS_INI_SYMLINK := $(TARGET_OUT)/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
$(LOCAL_BUILT_MODULE): WCNSS_INI_SYMLINK := $(TARGET_OUT_VENDOR)/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini

$(LOCAL_BUILT_MODULE): ACTUAL_BIN_FILE := /persist/WCNSS_qcom_wlan_nv.bin
$(LOCAL_BUILT_MODULE): WCNSS_BIN_SYMLINK := $(TARGET_OUT)/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
$(LOCAL_BUILT_MODULE): WCNSS_BIN_SYMLINK := $(TARGET_OUT_VENDOR)/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin

$(LOCAL_BUILT_MODULE): ACTUAL_DAT_FILE := /persist/WCNSS_wlan_dictionary.dat
$(LOCAL_BUILT_MODULE): WCNSS_DAT_SYMLINK := $(TARGET_OUT)/etc/firmware/wlan/prima/WCNSS_wlan_dictionary.dat
$(LOCAL_BUILT_MODULE): WCNSS_DAT_SYMLINK := $(TARGET_OUT_VENDOR)/etc/firmware/wlan/prima/WCNSS_wlan_dictionary.dat

$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/Android.mk
$(LOCAL_BUILT_MODULE):
Expand Down Expand Up @@ -89,28 +89,39 @@ $(FPC_SYMLINKS): $(LOCAL_INSTALLED_MODULE)

ALL_DEFAULT_INSTALLED_MODULES += $(FPC_SYMLINKS)

RFS_MSM_ADSP_SYMLINKS := $(TARGET_OUT)/rfs/msm/adsp/
RFS_MSM_ADSP_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/adsp/
$(RFS_MSM_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Creating RFS MSM ADSP folder structure: $@"
@rm -rf $@/*
@mkdir -p $(dir $@)/readonly
$(hide) ln -sf /data/tombstones/lpass $@/ramdumps
@mkdir -p $(dir $@)/readonly/vendor
$(hide) ln -sf /data/vendor/tombstones/rfs/lpass $@/ramdumps
$(hide) ln -sf /persist/rfs/msm/adsp $@/readwrite
$(hide) ln -sf /persist/rfs/shared $@/shared
$(hide) ln -sf /persist/hlos_rfs/shared $@/hlos
$(hide) ln -sf /firmware $@/readonly/firmware
$(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware

RFS_MSM_MPSS_SYMLINKS := $(TARGET_OUT)/rfs/msm/mpss/
RFS_MSM_MPSS_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/mpss/
$(RFS_MSM_MPSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Creating RFS MSM MPSS folder structure: $@"
@rm -rf $@/*
@mkdir -p $(dir $@)/readonly
$(hide) ln -sf /data/tombstones/modem $@/ramdumps
@mkdir -p $(dir $@)/readonly/vendor
$(hide) ln -sf /data/vendor/tombstones/rfs/modem $@/ramdumps
$(hide) ln -sf /persist/rfs/msm/mpss $@/readwrite
$(hide) ln -sf /persist/rfs/shared $@/shared
$(hide) ln -sf /persist/hlos_rfs/shared $@/hlos
$(hide) ln -sf /firmware $@/readonly/firmware
$(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware

ALL_DEFAULT_INSTALLED_MODULES += $(RFS_MSM_ADSP_SYMLINKS) $(RFS_MSM_MPSS_SYMLINKS)
# Create a link for the WCNSS config file, which ends up as a writable
# version in /data/misc/wifi
WCNSS_CFG_SYMLINK := $(TARGET_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_cfg.ini
$(WCNSS_CFG_SYMLINK): $(LOCAL_INSTALLED_MODULE)
@echo "Creating WCNSS config file link: $@"
@rm -rf $@
@mkdir -p $(TARGET_OUT_VENDOR)/firmware/wlan/prima
$(hide) ln -sf /data/misc/wifi/WCNSS_qcom_cfg.ini $@

ALL_DEFAULT_INSTALLED_MODULES += $(RFS_MSM_ADSP_SYMLINKS) $(RFS_MSM_MPSS_SYMLINKS) $(WCNSS_CFG_SYMLINK)

endif
99 changes: 73 additions & 26 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
# limitations under the License.
#

LOCAL_PATH := device/xiaomi/santoni
DEVICE_PATH := device/xiaomi/santoni

TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include

# Architecture
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-a
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_ABI2 :=
TARGET_CPU_VARIANT := generic
TARGET_CPU_VARIANT := cortex-a53

TARGET_2ND_ARCH := arm
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
Expand All @@ -39,7 +39,7 @@ TARGET_USES_64_BIT_BINDER := true

# Kernel
BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000 androidboot.selinux=permissive
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
BOARD_KERNEL_PAGESIZE := 2048
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100
Expand All @@ -50,16 +50,16 @@ TARGET_KERNEL_SOURCE := kernel/xiaomi/msm8937
BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"

# Audio
AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
AUDIO_FEATURE_ENABLED_SND_MONITOR := true
AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
AUDIO_FEATURE_ENABLED_CUSTOMSTEREO := true
AUDIO_FEATURE_ENABLED_DEV_ARBI := true
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
AUDIO_FEATURE_ENABLED_EXT_HDMI := true
AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
Expand All @@ -76,25 +76,50 @@ AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
AUDIO_FEATURE_ENABLED_SPKR_PROTECTION := true
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
AUDIO_FEATURE_ENABLED_SSR := true
AUDIO_FEATURE_ENABLED_SSR := false
AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
#AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY := true
AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
AUDIO_FEATURE_ENABLED_EXT_AMPLIFIER := false

AUDIO_FEATURE_ENABLED_EXT_AMPLIFIER := true
AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := false
AUDIO_FEATURE_ENABLED_LISTEN := false

#Extra features
AUDIO_FEATURE_DEEP_BUFFER_RINGTONE := true
AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true
AUDIO_FEATURE_ENABLED_DTS_EAGLE := true
DTS_CODEC_M_ := true
AUDIO_FEATURE_ENABLED_DEV_ARBI := true
AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
BOARD_SUPPORTS_SOUND_TRIGGER := true
BOARD_USES_ALSA_AUDIO := true
BOARD_USES_FLUENCE_INCALL := true
USE_CUSTOM_AUDIO_POLICY := 1
USE_XML_AUDIO_POLICY_CONF := 1
BOARD_HAS_AUDIO_DSP := true
DOLBY_DAP_HW_QDSP_HAL_API := true
BOARD_USES_SRS_TRUEMEDIA := true
TARGET_USES_QCOM_MM_AUDIO := true
MM_AUDIO_ENABLED_SAFX := true
MM_AUDIO_ENABLED_FTM := true

#Dolby
DOLBY_DAP := true
AUDIO_FEATURE_ENABLED_DS1_DOLBY_DAP := true
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
DOLBY_DDP := true
DOLBY_UDC_MULTICHANNEL := true
DOLBY_UDC_MULTICHANNEL_PCM_OFFLOAD := true
DOLBY_UDC_STREAMING_HLS := true
AUDIO_PARAMETER_KEY_VOLUME_BOOST := true
AUDIO_PARAMETER_KEY_HD_VOICE := true

# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := MSM8937
TARGET_NO_BOOTLOADER := true

# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_QCOM := true
BLUETOOTH_HCI_USE_MCT := true
Expand All @@ -110,16 +135,18 @@ TARGET_TS_MAKEUP := true
BOARD_CHARGER_ENABLE_SUSPEND := true
BOARD_CHARGER_DISABLE_INIT_BLANK := true
BOARD_GLOBAL_CFLAGS += -DBATTERY_REAL_INFO
WITH_LINEAGE_CHARGER := false

# CMHW
BOARD_USES_CYANOGEN_HARDWARE := true
# Lineage Hardware
BOARD_HARDWARE_CLASS += \
hardware/cyanogen/cmhw \
device/xiaomi/santoni/cmhw
$(DEVICE_PATH)/lineagehw

# CNE / DPM
BOARD_USES_QCNE := true

# Cpusets
ENABLE_CPUSETS := true

# Crypto
TARGET_HW_DISK_ENCRYPTION := true

Expand All @@ -131,35 +158,46 @@ ifeq ($(HOST_OS),linux)
endif
endif
endif
WITH_DEXPREOPT_BOOT_IMG_ONLY ?= true
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= true

# Display
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
TARGET_CONTINUOUS_SPLASH_ENABLED := true
TARGET_USES_C2D_COMPOSITION := true
TARGET_USES_ION := true
USE_OPENGL_RENDERER := true

# Filesystem
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true

# FM
BOARD_HAVE_QCOM_FM := true
TARGET_QCOM_NO_FM_FIRMWARE := true

# GPS
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := true
USE_DEVICE_SPECIFIC_GPS := true
TARGET_NO_RPC := true

# Filesystem
TARGET_ANDROID_FILESYSTEM_CONFIG_H := $(LOCAL_PATH)/android_filesystem_config.h
TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs

#Include path
TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include

# Init
TARGET_INIT_VENDOR_LIB := libinit_santoni
Expand All @@ -169,6 +207,9 @@ TARGET_RECOVERY_DEVICE_MODULES := libinit_santoni
# Keymaster
TARGET_PROVIDES_KEYMASTER := true

#Lights
TARGET_PROVIDES_LIBLIGHT:= true

# Media
TARGET_USES_MEDIA_EXTENSIONS := true

Expand All @@ -188,8 +229,12 @@ TARGET_PER_MGR_ENABLED := true
# Power
TARGET_POWERHAL_VARIANT := qcom

# Manifest
DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/configs/manifest.xml
DEVICE_MATRIX_FILE := $(DEVICE_PATH)/configs/compatibility_matrix.xml

# Properties
TARGET_SYSTEM_PROP := $(LOCAL_PATH)/system.prop
TARGET_SYSTEM_PROP := $(DEVICE_PATH)/system.prop

# Qualcomm
BOARD_USES_QCOM_HARDWARE := true
Expand All @@ -200,14 +245,16 @@ TARGET_USE_SDCLANG := true
TARGET_RIL_VARIANT := caf

# Recovery
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/fstab.qcom
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/recovery/fstab.qcom

# Sensor
USE_SENSOR_MULTI_HAL := true

PRODUCT_BOOT_JARS += telephony-ext

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

# Wi-Fi
BOARD_HAS_QCOM_WLAN := true
Expand Down
45 changes: 0 additions & 45 deletions android_filesystem_config.h

This file was deleted.

Loading