sm8250 > sm7250

This commit is contained in:
xSylla 2021-11-30 20:36:13 +01:00
parent 8a429c2618
commit 35aa84537f
24 changed files with 89 additions and 164 deletions

View File

@ -6,7 +6,7 @@
LOCAL_PATH := $(call my-dir)
ifneq ($(filter alioth apollo cas cmi lmi thyme umi,$(TARGET_DEVICE)),)
ifneq ($(filter monet picasso vangogh,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#
COMMON_PATH := device/xiaomi/sm8250-common
COMMON_PATH := device/xiaomi/sm7250-common
# APEX
DEXPREOPT_GENERATE_APEX_IMAGE := true
@ -41,7 +41,7 @@ BOARD_USES_ALSA_AUDIO := true
USE_CUSTOM_AUDIO_POLICY := 1
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := kona
TARGET_BOOTLOADER_BOARD_NAME := lito
TARGET_NO_BOOTLOADER := true
# Camera
@ -67,9 +67,9 @@ TARGET_FS_CONFIG_GEN := $(COMMON_PATH)/config.fs
# Fingerprint
ifeq ($(TARGET_HAS_FOD),true)
SOONG_CONFIG_NAMESPACES += XIAOMI_KONA_FOD
SOONG_CONFIG_XIAOMI_KONA_FOD := POS_X POS_Y SIZE
TARGET_SURFACEFLINGER_FOD_LIB := //$(COMMON_PATH):libfod_extension.xiaomi_kona
SOONG_CONFIG_NAMESPACES += XIAOMI_LITO_FOD
SOONG_CONFIG_XIAOMI_LITO_FOD := POS_X POS_Y SIZE
TARGET_SURFACEFLINGER_FOD_LIB := //$(COMMON_PATH):libfod_extension.xiaomi_lito
endif
# HIDL
@ -87,7 +87,7 @@ BOARD_KERNEL_SEPARATED_DTBO := true
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
TARGET_KERNEL_ARCH := arm64
TARGET_KERNEL_CLANG_COMPILE := true
TARGET_KERNEL_SOURCE := kernel/xiaomi/sm8250
TARGET_KERNEL_SOURCE := kernel/xiaomi/sm7250
# Lights
TARGET_PROVIDES_LIBLIGHT := true
@ -131,7 +131,7 @@ TARGET_COPY_OUT_VENDOR := vendor
# Platform
BOARD_USES_QCOM_HARDWARE := true
TARGET_BOARD_PLATFORM := kona
TARGET_BOARD_PLATFORM := lito
# Power
TARGET_TAP_TO_WAKE_NODE := "/sys/touchpanel/double_tap"
@ -218,4 +218,4 @@ WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
WPA_SUPPLICANT_VERSION := VER_0_8_X
# Inherit the proprietary files
include vendor/xiaomi/sm8250-common/BoardConfigVendor.mk
include vendor/xiaomi/sm7250-common/BoardConfigVendor.mk

View File

@ -1,4 +1,4 @@
# Common device tree for Xiaomi SM8250 devices
# Common device tree for Xiaomi SM7250 devices
```
#

View File

@ -1,9 +1,9 @@
cc_binary {
name: "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_kona",
name: "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_lito",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
init_rc: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_kona.rc"],
vintf_fragments: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_kona.xml"],
init_rc: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_lito.rc"],
vintf_fragments: ["android.hardware.biometrics.fingerprint@2.1-service.xiaomi_lito.xml"],
srcs: [
"BiometricsFingerprint.cpp",
"service.cpp",

View File

@ -14,8 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_kona"
#define LOG_VERBOSE "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_kona"
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_lito"
#define LOG_VERBOSE "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_lito"
#include <hardware/hw_auth_token.h>

View File

@ -1,4 +1,4 @@
service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_kona
service vendor.fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_lito
# "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.

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_kona"
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_lito"
#include <android/log.h>
#include <hidl/HidlSupport.h>

0
extract-files.sh Executable file → Normal file
View File

View File

@ -5,15 +5,15 @@
//
soong_config_module_type {
name: "xiaomi_kona_fod_hal_cc_defaults",
name: "xiaomi_lito_fod_hal_cc_defaults",
module_type: "cc_defaults",
config_namespace: "XIAOMI_KONA_FOD",
config_namespace: "XIAOMI_LITO_FOD",
value_variables: ["POS_X", "POS_Y", "SIZE"],
properties: ["cppflags"],
}
xiaomi_kona_fod_hal_cc_defaults {
name: "xiaomi_kona_fod_hal_defaults",
xiaomi_lito_fod_hal_cc_defaults {
name: "xiaomi_lito_fod_hal_defaults",
soong_config_variables: {
POS_X: {
cppflags: ["-DFOD_POS_X=%s"],
@ -28,14 +28,14 @@ xiaomi_kona_fod_hal_cc_defaults {
}
cc_binary {
name: "vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_kona",
name: "vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_lito",
defaults: [
"hidl_defaults",
"xiaomi_kona_fod_hal_defaults",
"xiaomi_lito_fod_hal_defaults",
],
relative_install_path: "hw",
init_rc: ["vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_kona.rc"],
vintf_fragments: ["vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_kona.xml"],
init_rc: ["vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_lito.rc"],
vintf_fragments: ["vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_lito.xml"],
srcs: ["service.cpp", "FingerprintInscreen.cpp"],
shared_libs: [
"libbase",
@ -54,7 +54,7 @@ cc_binary {
}
cc_library_static {
name: "libfod_extension.xiaomi_kona",
name: "libfod_extension.xiaomi_lito",
srcs: ["FodExtension.cpp"],
include_dirs: [
"frameworks/native/services/surfaceflinger/CompositionEngine/include"

View File

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_TAG "vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_kona"
#define LOG_TAG "vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_lito"
#include <android-base/logging.h>
#include <hidl/HidlTransportSupport.h>

View File

@ -1,4 +1,4 @@
service vendor.fingerprint-inscreen-1-0 /vendor/bin/hw/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_kona
service vendor.fingerprint-inscreen-1-0 /vendor/bin/hw/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_lito
interface vendor.lineage.biometrics.fingerprint.inscreen@1.0::IFingerprintInscreen default
class hal
user system

View File

@ -6,7 +6,7 @@
//
cc_library_shared {
name: "lights.kona",
name: "lights.lito",
relative_install_path: "hw",
srcs: ["lights.c"],
cflags: ["-DLOG_TAG=\"qdlights\""],

View File

@ -1,6 +1,6 @@
[
{
"repository": "android_kernel_xiaomi_sm8250",
"target_path": "kernel/xiaomi/sm8250"
"repository": "android_kernel_xiaomi_sm7250",
"target_path": "kernel/xiaomi/sm7250"
}
]

View File

@ -84,7 +84,7 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.bluetooth.default \
audio.primary.kona \
audio.primary.lito \
audio.r_submix.default \
audio.usb.default \
@ -170,7 +170,7 @@ PRODUCT_PACKAGES += \
libsdmutils \
libtinyxml \
libvulkan \
memtrack.kona \
memtrack.lito \
vendor.display.config@1.5 \
vendor.display.config@1.11.vendor \
vendor.display.config@2.0 \
@ -193,7 +193,7 @@ PRODUCT_PACKAGES += \
# Fingerprint
ifeq ($(TARGET_HAS_FOD),true)
PRODUCT_PACKAGES += \
vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_kona \
vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_lito \
FODService
PRODUCT_PACKAGES += \
@ -204,7 +204,7 @@ PRODUCT_COPY_FILES += \
endif
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.xiaomi_kona
android.hardware.biometrics.fingerprint@2.1-service.xiaomi_lito
PRODUCT_PACKAGES += \
vendor.xiaomi.hardware.fingerprintextension@1.0.vendor \
@ -238,7 +238,7 @@ PRODUCT_PACKAGES += \
android.hardware.light@2.0-service
PRODUCT_PACKAGES += \
lights.kona
lights.lito
# LiveDisplay
PRODUCT_PACKAGES += \
@ -253,14 +253,14 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
$(LOCAL_PATH)/media/media_codecs_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/vendor/etc/media_codecs_c2.xml \
$(LOCAL_PATH)/media/media_codecs_kona.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_kona.xml \
$(LOCAL_PATH)/media/media_codecs_lito.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_lito.xml \
$(LOCAL_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
$(LOCAL_PATH)/media/media_codecs_performance_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/vendor/etc/media_codecs_performance_c2.xml \
$(LOCAL_PATH)/media/media_codecs_performance_kona.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_kona.xml \
$(LOCAL_PATH)/media/media_codecs_performance_lito.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_lito.xml \
$(LOCAL_PATH)/media/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
$(LOCAL_PATH)/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
$(LOCAL_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \
$(LOCAL_PATH)/media/media_profiles_kona.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_kona.xml \
$(LOCAL_PATH)/media/media_profiles_lito.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_lito.xml \
$(LOCAL_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \
$(LOCAL_PATH)/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml
@ -433,4 +433,4 @@ PRODUCT_BOOT_JARS += \
WfdCommon
# Inherit the proprietary files
$(call inherit-product, vendor/xiaomi/sm8250-common/sm8250-common-vendor.mk)
$(call inherit-product, vendor/xiaomi/sm7250-common/sm7250-common-vendor.mk)

View File

@ -1,4 +1,4 @@
# All unpinned blobs below are extracted from lmi-user 11 RKQ1.200826.002 V12.2.6.0.RJKMIXM release-keys
# All unpinned blobs below are extracted from monet 11 RKQ1.200826.002 V12.5.1.0.RJIMIXM release-keys
# ADSP
vendor/bin/adsprpcd
@ -40,10 +40,6 @@ vendor/lib64/hw/vendor.qti.hardware.btconfigstore@1.0-impl.so
vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.0.so
vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.1.so
# Bluetooth (aptX) - from crosshatch - RQ1A.201205.003
system_ext/lib64/libaptX_encoder.so|df1c89d7af1bb35808d5fe3496b04ba066c10cbc
system_ext/lib64/libaptXHD_encoder.so|e13fa70c97caaa24d061678bdee608eb8850a69e
# CDSP
vendor/bin/cdsprpcd
vendor/etc/init/vendor.qti.cdsprpc-service.rc
@ -194,18 +190,14 @@ vendor/lib64/librpmb.so
vendor/lib64/libsecureui.so
vendor/lib64/libsecureui_svcsock.so
vendor/lib64/libSecureUILib.so
vendor/lib64/libspl.so
vendor/lib64/libssd.so
vendor/lib64/libStDrvInt.so
vendor/lib64/libtzdrmgenprov.so
vendor/lib64/vendor.qti.hardware.qseecom@1.0.so
# ESE
vendor/bin/hw/vendor.qti.esepowermanager@1.1-service
vendor/etc/init/vendor.qti.esepowermanager@1.1-service.rc
vendor/lib64/hw/vendor.qti.esepowermanager@1.1-impl.so
vendor/lib64/vendor.qti.esepowermanager@1.0.so
vendor/lib64/vendor.qti.esepowermanager@1.1.so
vendor/lib/vendor.qti.esepowermanager@1.0.so
# Feature enabler client
vendor/bin/feature_enabler_client
@ -217,7 +209,7 @@ vendor/etc/init/android.hardware.gatekeeper@1.0-service-qti.rc
vendor/lib64/hw/android.hardware.gatekeeper@1.0-impl-qti.so
# Graphics (Adreno)
-vendor/app/com.qualcomm.qti.gpudrivers.kona.api30/com.qualcomm.qti.gpudrivers.kona.api30.apk;PRESIGNED
-vendor/app/com.qualcomm.qti.gpudrivers.lito.api30/com.qualcomm.qti.gpudrivers.lito.api30.apk;PRESIGNED
vendor/lib/egl/eglSubDriverAndroid.so
vendor/lib/egl/libEGL_adreno.so
vendor/lib/egl/libGLESv1_CM_adreno.so
@ -404,11 +396,6 @@ vendor/firmware/ipa_fws.b03
vendor/firmware/ipa_fws.b04
vendor/firmware/ipa_fws.elf
vendor/firmware/ipa_fws.mdt
vendor/firmware/ipa_uc.b00
vendor/firmware/ipa_uc.b01
vendor/firmware/ipa_uc.b02
vendor/firmware/ipa_uc.elf
vendor/firmware/ipa_uc.mdt
# IRQ balance
vendor/bin/msm_irqbalance
@ -423,7 +410,7 @@ vendor/lib64/libkeymasterutils.so
vendor/lib64/libqtikeymaster4.so
# Listen
vendor/lib/hw/sound_trigger.primary.kona.so
vendor/lib/hw/sound_trigger.primary.lito.so
vendor/lib/libadpcmdec.so
vendor/lib/libcapiv2svacnn.so
vendor/lib/libcapiv2svarnn.so
@ -480,13 +467,11 @@ vendor/etc/libnfc-nxp_RF.conf
vendor/etc/sn100u_nfcon.pnscr
vendor/lib/libsn100u_fw.so
vendor/lib64/nfc_nci.nqx.default.hw.so
vendor/lib64/se_nq_extn_client.so
# Peripheral manager
vendor/bin/pm-proxy
vendor/bin/pm-service
vendor/lib64/libperipheral_client.so
vendor/lib64/libspcom.so
# Perf
vendor/bin/hw/vendor.qti.hardware.perf@2.2-service
@ -576,7 +561,6 @@ vendor/bin/hw/qcrild
vendor/bin/adpl
vendor/bin/ATFWD-daemon
vendor/bin/ks
vendor/bin/mdm_helper
vendor/bin/netmgrd
vendor/bin/pd-mapper
vendor/bin/port-bridge
@ -601,12 +585,15 @@ vendor/etc/init/qcrild.rc
vendor/etc/init/ssgtzd.rc
vendor/etc/init/vendor.qti.rmt_storage.rc
vendor/etc/init/vendor.qti.tftp.rc
vendor/lib/vendor.qti.hardware.fm@1.0.so
vendor/lib/hw/vendor.qti.hardware.fm@1.0-impl.so
vendor/lib64/vendor.qti.hardware.fm@1.0.so
vendor/lib64/hw/vendor.qti.hardware.fm@1.0-impl.so
vendor/lib64/deviceInfoServiceModule.so
vendor/lib64/libconfigdb.so
vendor/lib64/libhydra_common.so
vendor/lib64/liblqe.so
vendor/lib64/libmdmdetect.so
vendor/lib64/libmdmimgload.so
vendor/lib64/libminkdescriptor.so
vendor/lib64/libmodemapi.so
vendor/lib64/libnetmgr.so
@ -665,12 +652,7 @@ vendor/etc/seccomp_policy/qspm.policy
vendor/etc/seccomp_policy/qti-systemd.policy
# Secure element
vendor/bin/hw/vendor.qti.secure_element@1.2-service
vendor/etc/init/vendor.qti.secure_element@1.2-service.rc
vendor/lib64/android.hardware.secure_element@1.0-impl.so
vendor/lib64/jcos_nq_client.so
vendor/lib64/libwvkeybox.so
vendor/lib64/ls_nq_client.so
# Snapdragon Computer Vision Engine
-vendor/lib/libfastcvopt.so
@ -829,4 +811,4 @@ vendor/lib/libwfduibcsrc_proprietary.so
vendor/lib/libwfduibcsrcinterface_proprietary.so
vendor/lib/libwfdutils_proprietary.so
vendor/lib/vendor.qti.hardware.wifidisplaysession@1.0.so
vendor/lib/vendor.qti.hardware.wifidisplaysessionl@1.0-halimpl.so
vendor/lib/vendor.qti.hardware.wifidisplaysessionl@1.0-halimpl.so

View File

@ -28,7 +28,7 @@
#
on early-init
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules audio_q6_pdr audio_q6_notifier audio_snd_event audio_apr audio_adsp_loader audio_q6 audio_native audio_usf audio_pinctrl_wcd audio_pinctrl_lpi audio_swr audio_platform audio_hdmi audio_stub audio_wcd_core audio_wsa881x audio_bolero_cdc audio_wsa_macro audio_va_macro audio_rx_macro audio_tx_macro audio_wcd938x audio_wcd938x_slave audio_machine_kona
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules audio_q6_pdr audio_q6_notifier audio_snd_event audio_apr audio_adsp_loader audio_q6 audio_native audio_usf audio_pinctrl_wcd audio_pinctrl_lpi audio_swr audio_platform audio_hdmi audio_stub audio_wcd_core audio_wsa881x audio_bolero_cdc audio_wsa_macro audio_va_macro audio_rx_macro audio_tx_macro audio_wcd938x audio_wcd938x_slave audio_machine_lito
write /proc/sys/kernel/sched_boost 1
on init

View File

@ -29,8 +29,8 @@
/dev/mius(.*)? u:object_r:ultrasound_device:s0
# Fingerprint
/vendor/bin/hw/android\.hardware\.biometrics\.fingerprint@2.1-service\.xiaomi_kona u:object_r:hal_fingerprint_default_exec:s0
/vendor/bin/hw/vendor\.lineage\.biometrics\.fingerprint\.inscreen@1.0-service\.xiaomi_kona u:object_r:hal_lineage_fod_kona_exec:s0
/vendor/bin/hw/android\.hardware\.biometrics\.fingerprint@2.1-service\.xiaomi_lito u:object_r:hal_fingerprint_default_exec:s0
/vendor/bin/hw/vendor\.lineage\.biometrics\.fingerprint\.inscreen@1.0-service\.xiaomi_lito u:object_r:hal_lineage_fod_lito_exec:s0
# Fingerprint - devices
/dev/goodix_fp u:object_r:fingerprint_device:s0

View File

@ -1,24 +0,0 @@
type hal_lineage_fod_kona, domain;
hal_server_domain(hal_lineage_fod_kona, hal_lineage_fod)
type hal_lineage_fod_kona_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_lineage_fod_kona)
wakelock_use(hal_lineage_fod_kona)
# Allow access to the HALs
hal_client_domain(hal_lineage_fod_kona, hal_displayfeature)
hal_client_domain(hal_lineage_fod_kona, hal_fingerprint)
hal_client_domain(hal_lineage_fod_kona, hal_touchfeature)
# Allow binder communication with hal_displayfeature_default
binder_call(hal_lineage_fod_kona, hal_displayfeature_default)
# Allow binder communication with hal_fingerprint_kona
binder_call(hal_lineage_fod_kona, hal_fingerprint_default)
# Allow binder communication with hal_touchfeature_default
binder_call(hal_lineage_fod_kona, hal_touchfeature_default)
allow hal_lineage_fod_kona sysfs_graphics:dir r_dir_perms;
allow hal_lineage_fod_kona sysfs_graphics:file rw_file_perms;

24
sepolicy/vendor/hal_lineage_fod_lito.te vendored Normal file
View File

@ -0,0 +1,24 @@
type hal_lineage_fod_lito, domain;
hal_server_domain(hal_lineage_fod_lito, hal_lineage_fod)
type hal_lineage_fod_lito_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_lineage_fod_lito)
wakelock_use(hal_lineage_fod_lito)
# Allow access to the HALs
hal_client_domain(hal_lineage_fod_lito, hal_displayfeature)
hal_client_domain(hal_lineage_fod_lito, hal_fingerprint)
hal_client_domain(hal_lineage_fod_lito, hal_touchfeature)
# Allow binder communication with hal_displayfeature_default
binder_call(hal_lineage_fod_lito, hal_displayfeature_default)
# Allow binder communication with hal_fingerprint_lito
binder_call(hal_lineage_fod_lito, hal_fingerprint_default)
# Allow binder communication with hal_touchfeature_default
binder_call(hal_lineage_fod_lito, hal_touchfeature_default)
allow hal_lineage_fod_lito sysfs_graphics:dir r_dir_perms;
allow hal_lineage_fod_lito sysfs_graphics:file rw_file_perms;

2
setup-makefiles.sh Executable file → Normal file
View File

@ -25,7 +25,7 @@ source "${HELPER}"
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true
# Warning headers and guards
write_headers "alioth apollo cas cmi lmi thyme umi"
write_headers "monet picasso vangogh"
# The standard common blobs
write_makefiles "${MY_DIR}/proprietary-files.txt" true

View File

@ -37,7 +37,7 @@ vendor.iop.enable_uxe=0
media.settings.xml=/vendor/etc/media_profiles_vendor.xml
# Netflix
ro.netflix.bsp_rev=Q8250-19134-1
ro.netflix.bsp_rev=Q7250-19133-1
# Perf
ro.vendor.qti.core_ctl_max_cpu=4

View File

@ -18,7 +18,6 @@ persist.vendor.audio.fluence.tmic.enabled=false
persist.vendor.audio.fluence.voicecall=true
persist.vendor.audio.fluence.voicecomm=true
persist.vendor.audio.fluence.voicerec=false
persist.vendor.audio_hal.dsp_bit_width_enforce_mode=24
persist.vendor.audio.hifi=false
persist.vendor.audio.ras.enabled=false
persist.vendor.audio.ring.filter.mask=0
@ -27,23 +26,19 @@ persist.vendor.audio.voicecall.speaker.stereo=true
ro.qc.sdk.audio.fluencetype=none
ro.qc.sdk.audio.ssr=false
ro.vendor.audio.game.effect=true
ro.vendor.audio.hifi=true
ro.vendor.audio.hifi=false
ro.vendor.audio.ring.filter=true
ro.vendor.audio.scenario.support=true
ro.vendor.audio.sdk.fluencetype=fluence
ro.vendor.audio.sdk.ssr=false
ro.vendor.audio.sfx.audiovisual=true
ro.vendor.audio.sfx.earadj=true
ro.vendor.audio.sfx.scenario=true
ro.vendor.audio.sos=true
ro.vendor.audio.soundfx.type=mi
ro.vendor.audio.soundfx.usb=true
ro.vendor.audio.soundtrigger.appdefine.cnn.level=35
ro.vendor.audio.soundtrigger.appdefine.cnn.level=31
ro.vendor.audio.soundtrigger.appdefine.gmm.level=55
ro.vendor.audio.soundtrigger.appdefine.gmm.user.level=65
ro.vendor.audio.soundtrigger.appdefine.gmm.user.level=50
ro.vendor.audio.soundtrigger.appdefine.vop.level=10
ro.vendor.audio.soundtrigger.lowpower=true
ro.vendor.audio.soundtrigger.snr=16
ro.vendor.audio.soundtrigger=sva
ro.vendor.audio.soundtrigger.training.level=50
ro.vendor.audio.soundtrigger.xanzn.cnn.level=80
@ -54,65 +49,19 @@ ro.vendor.audio.soundtrigger.xatx.cnn.level=27
ro.vendor.audio.soundtrigger.xatx.gmm.level=50
ro.vendor.audio.soundtrigger.xatx.gmm.user.level=40
ro.vendor.audio.soundtrigger.xatx.vop.level=10
ro.vendor.audio.surround.support=true
ro.vendor.audio.us.proximity=true
ro.vendor.audio.vocal.support=true
ro.vendor.audio.voice.change.support=true
ro.vendor.audio.voice.change.youme.support=true
ro.vendor.audio.voice.volume.boost=none
ro.vendor.audio.voice.volume.boost=manual
tunnel.audio.encode=true
vendor.audio.adm.buffering.ms=2
vendor.audio.capture.enforce_legacy_copp_sr=true
vendor.audio.adm.buffering.ms=6
vendor.audio.dolby.ds2.enabled=false
vendor.audio.dolby.ds2.hardbypass=false
vendor.audio.enable.mirrorlink=false
vendor.audio.feature.a2dp_offload.enable=true
vendor.audio.feature.afe_proxy.enable=true
vendor.audio.feature.anc_headset.enable=false
vendor.audio.feature.audiozoom.enable=false
vendor.audio.feature.battery_listener.enable=true
vendor.audio.feature.compr_cap.enable=false
vendor.audio.feature.compr_voip.enable=true
vendor.audio.feature.compress_in.enable=true
vendor.audio.feature.compress_meta_data.enable=true
vendor.audio.feature.concurrent_capture.enable=true
vendor.audio.feature.custom_stereo.enable=true
vendor.audio.feature.deepbuffer_as_primary.enable=false
vendor.audio.feature.display_port.enable=true
vendor.audio.feature.dsm_feedback.enable=false
vendor.audio.feature.dynamic_ecns.enable=false
vendor.audio.feature.ext_hw_plugin.enable=false
vendor.audio.feature.external_dsp.enable=false
vendor.audio.feature.external_speaker.enable=false
vendor.audio.feature.external_speaker_tfa.enable=false
vendor.audio.feature.fluence.enable=true
vendor.audio.feature.fm.enable=true
vendor.audio.feature.hdmi_edid.enable=true
vendor.audio.feature.hdmi_passthrough.enable=true
vendor.audio.feature.hfp.enable=true
vendor.audio.feature.hifi_audio.enable=false
vendor.audio.feature.hwdep_cal.enable=false
vendor.audio.feature.incall_music.enable=true
vendor.audio.feature.keep_alive.enable=true
vendor.audio.feature.kpi_optimize.enable=true
vendor.audio.feature.maxx_audio.enable=false
vendor.audio.feature.multi_voice_session.enable=true
vendor.audio.feature.ras.enable=true
vendor.audio.feature.record_play_concurency.enable=false
vendor.audio.feature.snd_mon.enable=true
vendor.audio.feature.spkr_prot.enable=false
vendor.audio.feature.src_trkn.enable=true
vendor.audio.feature.ssrec.enable=true
vendor.audio.feature.usb_offload.enable=true
vendor.audio.feature.usb_offload_burst_mode.enable=true
vendor.audio.feature.usb_offload_sidetone_volume.enable=false
vendor.audio.feature.vbat.enable=true
vendor.audio.feature.wsa.enable=false
vendor.audio.flac.sw.decoder.24bit=true
vendor.audio.hal.output.suspend.supported=false
vendor.audio.hw.aac.encoder=true
vendor.audio.mic.status=off
vendor.audio.offload.buffer.size.kb=256
vendor.audio.offload.buffer.size.kb=32
vendor.audio.offload.gapless.enabled=true
vendor.audio.offload.multiaac.enable=true
vendor.audio.offload.multiple.enabled=false
@ -121,15 +70,13 @@ vendor.audio.offload.track.enable=false
vendor.audio.parser.ip.buffer.size=262144
vendor.audio.safx.pbe.enabled=false
vendor.audio.spkcal.copy.inhal=true
vendor.audio.spkr_prot.tx.sampling_rate=48000
vendor.audio.tunnel.encode=false
vendor.audio.usb.disable.sidetone=true
vendor.audio.use.sw.alac.decoder=true
vendor.audio.use.sw.ape.decoder=true
vendor.audio.use.sw.mpegh.decoder=true
vendor.audio.volume.headset.gain.depcal=true
vendor.audio_hal.in_period_size=144
vendor.audio_hal.period_multiplier=2
vendor.audio_hal.period_multiplier=3
vendor.audio_hal.period_size=192
vendor.voice.path.for.pcm.voip=true
@ -140,19 +87,15 @@ persist.sys.fflag.override.settings_bluetooth_hearing_aid=true
persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
persist.vendor.bt.aac_frm_ctl.enabled=true
persist.vendor.bt.aac_vbr_frm_ctl.enabled=true
persist.vendor.oneplus.bt.asd.chain=0
persist.vendor.oneplus.bt.asd.firmware=false
persist.vendor.qcom.bluetooth.a2dp_mcast_test.enabled=false
persist.vendor.qcom.bluetooth.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac-aptxadaptiver2
persist.vendor.qcom.bluetooth.aac_frm_ctl.enabled=true
persist.vendor.qcom.bluetooth.aac_vbr_ctl.enabled=true
persist.vendor.qcom.bluetooth.enable.splita2dp=true
persist.vendor.qcom.bluetooth.scram.enabled=false
persist.vendor.qcom.bluetooth.soc=hastings
persist.vendor.qcom.bluetooth.soc=cherokee
persist.vendor.qcom.bluetooth.twsp_state.enabled=false
ro.bluetooth.a2dp_offload.supported=true
ro.vendor.bluetooth.wipower=false
vendor.qcom.bluetooth.soc=hastings
vendor.qcom.bluetooth.soc=cherokee
# Camera
vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.xiaomi.cameratest,com.xiaomi.factory.mmi,com.android.camera
@ -213,7 +156,7 @@ persist.demo.hdmirotationlock=false
persist.sys.sf.color_mode=0
persist.sys.sf.color_saturation=1.0
persist.sys.sf.native_mode=0
ro.gfx.driver.1=com.qualcomm.qti.gpudrivers.kona.api30
ro.gfx.driver.1=com.qualcomm.qti.gpudrivers.lito.api30
ro.hardware.egl=adreno
ro.hardware.vulkan=adreno
ro.opengles.version=196610
@ -223,7 +166,7 @@ vendor.gralloc.disable_ubwc=0
ro.hardware.keystore_desede=true
# Media
debug.stagefright.ccodec=4
debug.stagefright.ccodec=1
debug.stagefright.omx_default_rank=0
# NFC