Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8f87c80
land: move wlan symlinks to vendor
TheScarastic Feb 15, 2018
bfd4e58
land: Kang thermal-engine.conf from nokia 6
RiteshSaxena May 2, 2018
af3f78e
land: Build LiveDisplay HAL
moetayuko Feb 20, 2018
b7e4c14
land: Remove broken/moved overlays
RiteshSaxena Mar 7, 2018
b272412
land: Build textclassifier
bvlj Feb 7, 2018
3a90f88
land: Update thermal-engine.conf from santoni
RiteshSaxena May 6, 2018
8b51019
land: Add libcameraservice shim to skip preview fps sanity checks
Apr 30, 2018
f7f3eef
land: Import xiaomi charger
dasshubham762 Feb 26, 2018
8b9ffc7
land: Update some blobs from tissot
RiteshSaxena May 6, 2018
4c01cc4
land: Ship and enable atfwd daemon
bgcngm May 2, 2018
0e5f559
land: Correct GPS process group IDs
moetayuko Apr 24, 2018
fffc2a1
land: Sync IPACM with upstream
bgcngm May 8, 2018
a539686
land: Restore audio tuning mixer control
bgcngm May 11, 2018
f30dff1
land: Update build fingerprint
RiteshSaxena May 13, 2018
7d36229
fixing broken overlay
cobalt9 Jun 3, 2018
3f8adf8
Make device tree accodring to sources
cobalt9 Jun 4, 2018
3ac0f9b
Added exfat
cobalt9 Jun 23, 2018
dbf82d3
land: sepolicy: Address more denials
RiteshSaxena Jun 14, 2018
fb8b6d8
land: Move cameraserver shim to system
RiteshSaxena Jun 8, 2018
82aac82
land: Rename biometrics hal
RiteshSaxena May 29, 2018
0267514
land: Fix dependencies for mm-camera-interface
jacky8hyf Jun 27, 2017
56c5315
Updates
cobalt9 Jun 23, 2018
51a8c99
land: Build camera.* with BOARD_VNDK_VERSION
jiyongp Jun 29, 2017
7626345
camera: Link to libhidltransport instead of android.hidl.base
mikeNG May 26, 2018
7368ad7
QCamera2:HAL : Changes to fix QCameraDisplay compilation issues
Apr 4, 2018
864ae0b
reverted bfq from boot
cobalt9 Jun 23, 2018
b8d0bea
land: regenerate vndk-sp
TheScarastic Feb 14, 2018
b033aed
land: Switch back to tissot RIL
RiteshSaxena May 26, 2018
1a1812b
land: power: Support legacy powerHAL methods
Apr 14, 2018
f02d4c5
Update config.xml
cobalt9 Jul 8, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 3 additions & 29 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,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)/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)/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)/firmware/wlan/prima/WCNSS_wlan_dictionary.dat

$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/Android.mk
$(LOCAL_BUILT_MODULE):
Expand Down Expand Up @@ -74,32 +74,6 @@ $(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)

ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS)

GOODIX_IMAGES := \
goodixfp.b00 goodixfp.b01 goodixfp.b02 goodixfp.b03 \
goodixfp.b04 goodixfp.b05 goodixfp.b06 goodixfp.mdt

GOODIX_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(GOODIX_IMAGES)))
$(GOODIX_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Goodix firmware link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /firmware/image/$(notdir $@) $@

ALL_DEFAULT_INSTALLED_MODULES += $(GOODIX_SYMLINKS)

FPC_IMAGES := \
fpcta.b00 fpcta.b01 fpcta.b02 fpcta.b03 \
fpcta.b04 fpcta.b05 fpcta.b06 fpcta.mdt

FPC_SYMLINKS := $(addprefix $(TARGET_OUT_ETC)/firmware/,$(notdir $(FPC_IMAGES)))
$(FPC_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Fpc firmware link: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /firmware/image/$(notdir $@) $@

ALL_DEFAULT_INSTALLED_MODULES += $(FPC_SYMLINKS)

RFS_MSM_ADSP_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/adsp/
$(RFS_MSM_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
@echo "Creating RFS MSM ADSP folder structure: $@"
Expand Down
10 changes: 6 additions & 4 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ 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,0x78B0000
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
BOARD_KERNEL_PAGESIZE := 2048
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --second_offset 0x00f00000 --tags_offset 0x00000100
Expand Down Expand Up @@ -161,6 +160,9 @@ TARGET_USERIMAGES_USE_F2FS := true
BOARD_HAVE_QCOM_FM := true
TARGET_QCOM_NO_FM_FIRMWARE := true

# Extended Filesystem Support
TARGET_EXFAT_DRIVER := sdfat

# GPS
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
USE_DEVICE_SPECIFIC_GPS := true
Expand Down Expand Up @@ -206,9 +208,9 @@ PROTOBUF_SUPPORTED := true
TARGET_RIL_VARIANT := caf

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

# Wi-Fi
BOARD_HAS_QCOM_WLAN := true
Expand Down
144 changes: 144 additions & 0 deletions audio/audio_tuning_mixer.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
#ANC_TEST_P_PATH_MIC_STEREO Capture
acdb_dev_id:85
!Capture
Txdevice:0

enable
TX7 HPF Switch:0
TX8 HPF Switch:0
AIF1_CAP Mixer SLIM TX7:1
AIF1_CAP Mixer SLIM TX8:1
SLIM TX7 MUX:DEC9
DEC9 MUX:DMIC4
SLIM TX8 MUX:DEC10
DEC10 MUX:DMIC3
SLIM_0_TX Channels:Two
MultiMedia1 Mixer SLIM_0_TX:1

disable
MultiMedia1 Mixer SLIM_0_TX:0
AIF1_CAP Mixer SLIM TX7:0
AIF1_CAP Mixer SLIM TX8:0
SLIM TX7 MUX:ZERO
SLIM TX8 MUX:ZERO
DEC10 MUX:ZERO
DEC9 MUX:ZERO
TX7 HPF Switch:0
TX8 HPF Switch:0

#ANC_TEST_S_PATH_MIC_STEREO Capture
acdb_dev_id:88
!Capture
Txdevice:0

enable
TX7 HPF Switch:0
TX8 HPF Switch:0
AIF1_CAP Mixer SLIM TX7:1
AIF1_CAP Mixer SLIM TX8:1
SLIM TX7 MUX:DEC8
DEC7 MUX:ANC2_FB
ANC2 MUX:DMIC3
SLIM TX8 MUX:DEC7
DEC8 MUX:ANC1_FB
ANC1 MUX:DMIC3
ANC1 FB MUX:EAR_HPH_L
SLIM_0_TX Channels:Two
MultiMedia1 Mixer SLIM_0_TX:1

disable
MultiMedia1 Mixer SLIM_0_TX:0
AIF1_CAP Mixer SLIM TX7:0
AIF1_CAP Mixer SLIM TX8:0
SLIM TX7 MUX:ZERO
SLIM TX8 MUX:ZERO
DEC7 MUX:ZERO
ANC2 MUX:ZERO
ANC1 MUX:ZERO
DEC8 MUX:ZERO
ANC1 FB MUX:ZERO
TX7 HPF Switch:0
TX8 HPF Switch:0

#ANC_TEST_E_PATH_MIC_STEREO Capture
acdb_dev_id:91
!Capture
Txdevice:0

enable
TX7 HPF Switch:0
TX8 HPF Switch:0
AIF1_CAP Mixer SLIM TX7:1
AIF1_CAP Mixer SLIM TX8:1
SLIM TX7 MUX:DEC8
DEC7 MUX:ANC2_FB
ANC2 MUX:DMIC4
ANC1 MUX:DMIC4
SLIM TX8 MUX:DEC7
DEC8 MUX:ANC1_FB
ANC1 FB MUX:EAR_HPH_L
SLIM_0_TX Channels:Two
MultiMedia1 Mixer SLIM_0_TX:1

disable
MultiMedia1 Mixer SLIM_0_TX:0
AIF1_CAP Mixer SLIM TX7:0
AIF1_CAP Mixer SLIM TX8:0
SLIM TX7 MUX:ZERO
SLIM TX8 MUX:ZERO
DEC7 MUX:ZERO
ANC2 MUX:ZERO
DEC10 MUX:ZERO
ANC1 FB MUX:ZERO
TX7 HPF Switch:0
TX8 HPF Switch:0

#ANC_TEST_S_PATH_HANDSET_SPKR_ANC_MONO
acdb_dev_id:86
!Playback
Rxdevice:0

enable
ANC Function:ON
SLIM RX1 MUX:AIF1_PB
SLIM_0_RX Channels:One
RX1 MIX1 INP1:RX1
CLASS_H_DSM MUX:DSM_HPHL_RX1
RX1 Digital Volume:87
DAC1 Switch:1
ANC Slot:7
SLIMBUS_0_RX Audio Mixer MultiMedia1:1

disable
SLIMBUS_0_RX Audio Mixer MultiMedia1:0
ANC Slot:0
SLIM RX1 MUX:ZERO
RX1 MIX1 INP1:ZERO
RX1 Digital Volume:0
DAC1 Switch:0
ANC Function:OFF

#ANC_TEST_E_PATH_HANDSET_SPKR_ANC_MONO
acdb_dev_id:89
!Playback
Rxdevice:0

enable
ANC Function:ON
SLIM RX1 MUX:AIF1_PB
SLIM_0_RX Channels:One
RX1 MIX1 INP1:RX1
CLASS_H_DSM MUX:DSM_HPHL_RX1
RX1 Digital Volume:87
DAC1 Switch:1
ANC Slot:8
SLIMBUS_0_RX Audio Mixer MultiMedia1:1

disable
SLIMBUS_0_RX Audio Mixer MultiMedia1:0
ANC Slot:0
SLIM RX1 MUX:ZERO
RX1 MIX1 INP1:ZERO
RX1 Digital Volume:0
DAC1 Switch:0
ANC Function:OFF
4 changes: 2 additions & 2 deletions biometrics/Android.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.biometrics.fingerprint@2.0-service-custom
LOCAL_INIT_RC := android.hardware.biometrics.fingerprint@2.0-service.rc
LOCAL_MODULE := android.hardware.biometrics.fingerprint@2.0-service.xiaomi_land
LOCAL_INIT_RC := android.hardware.biometrics.fingerprint@2.0-service.xiaomi_land.rc
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SRC_FILES := \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
service fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.0-service-custom
service fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.0-service.xiaomi_land
# "class hal" causes a race condition on some devices due to files created
# in /data. As a workaround, postpone startup until later in boot once
# /data is mounted.
Expand Down
2 changes: 1 addition & 1 deletion biometrics/fingerprintd/IFingerprintDaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,6 @@ class BpFingerprintDaemon : public BpInterface<IFingerprintDaemon> {
}
};

IMPLEMENT_META_INTERFACE(FingerprintDaemon, "android.hardware.fingerprint.IFingerprintDaemon");
IMPLEMENT_META_INTERFACE(FingerprintDaemon, "android.hardware.fingerprint.IFingerprintCustomDaemon");

}; // namespace android
2 changes: 1 addition & 1 deletion biometrics/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#define LOG_TAG "biometrics.fingerprint@2.0-service-custom"
#define LOG_TAG "biometrics.fingerprint@2.0-service"

#include <binder/IPCThreadState.h>
#include <binder/IServiceManager.h>
Expand Down
15 changes: 15 additions & 0 deletions camera/QCamera2/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ LOCAL_SRC_FILES := \
util/QCameraFlash.cpp \
util/QCameraPerf.cpp \
util/QCameraQueue.cpp \
util/QCameraDisplay.cpp \
QCamera2Hal.cpp \
QCamera2Factory.cpp

Expand Down Expand Up @@ -52,6 +53,13 @@ ifeq ($(TARGET_USES_MEDIA_EXTENSIONS), true)
LOCAL_CFLAGS += -DUSE_MEDIA_EXTENSIONS
endif

#USE_DISPLAY_SERVICE from Android O onwards
#to receive vsync event from display
ifeq ($(filter OMR1 O 8.1.0, $(PLATFORM_VERSION)), )
USE_DISPLAY_SERVICE := true
LOCAL_CFLAGS += -DUSE_DISPLAY_SERVICE
endif

#HAL 1.0 Flags
LOCAL_CFLAGS += -DDEFAULT_DENOISE_MODE_ON -DHAL3 -DQCAMERA_REDEFINE_LOG

Expand Down Expand Up @@ -98,9 +106,16 @@ LOCAL_C_INCLUDES += \
LOCAL_SHARED_LIBRARIES := libcamera_client liblog libhardware libutils libcutils libdl libsync libgui
LOCAL_SHARED_LIBRARIES += libmmcamera_interface libmmjpeg_interface libui libcamera_metadata
LOCAL_SHARED_LIBRARIES += libqdMetaData libqservice libbinder
ifeq ($(USE_DISPLAY_SERVICE),true)
LOCAL_SHARED_LIBRARIES += android.frameworks.displayservice@1.0 libhidlbase libhidltransport
LOCAL_SHARED_LIBRARIES += android.frameworks.displayservice@1.0 android.hidl.base@1.0 libhidlbase
else
LOCAL_SHARED_LIBRARIES += libgui
endif
ifeq ($(TARGET_TS_MAKEUP),true)
LOCAL_SHARED_LIBRARIES += libts_face_beautify_hal libts_detected_face_hal
endif
LOCAL_HEADER_LIBRARIES := media_plugin_headers

LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM)
Expand Down
1 change: 1 addition & 0 deletions camera/QCamera2/stack/mm-camera-interface/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ LOCAL_SRC_FILES := $(MM_CAM_FILES)
LOCAL_MODULE := libmmcamera_interface
LOCAL_PRELINK_MODULE := false
LOCAL_SHARED_LIBRARIES := libdl libcutils liblog
LOCAL_HEADER_LIBRARIES := libhardware_headers
LOCAL_MODULE_TAGS := optional

LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
Expand Down
1 change: 1 addition & 0 deletions camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#define IOCTL_H <SYSTEM_HEADER_PREFIX/ioctl.h>
#include IOCTL_H

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <stdlib.h>
#include <linux/media.h>
#include <media/msm_cam_sensor-land.h>
#include <unistd.h>
#define IOCTL_H <SYSTEM_HEADER_PREFIX/ioctl.h>
#include IOCTL_H

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>

// Camera dependencies
#include "mm_camera_dbg.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <errno.h>
#include <fcntl.h>
#include <media/msm_media_info.h>
#include <unistd.h>
#define TIME_H <SYSTEM_HEADER_PREFIX/time.h>
#include TIME_H
#define IOCTL_H <SYSTEM_HEADER_PREFIX/ioctl.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/prctl.h>
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#include <cam_semaphore.h>
Expand Down
Loading