vince: Tree-wide cleanup and organize

Signed-off-by: k4ngcaribug <168145100+k4ngcaribug@users.noreply.github.com>
This commit is contained in:
k4ngcaribug
2024-10-14 16:12:08 +00:00
parent 1d180ee885
commit 8c1e2df305
35 changed files with 608 additions and 121 deletions

View File

@@ -26,8 +26,7 @@ BUILD_BROKEN_INCORRECT_PARTITION_IMAGES := 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.usbconfigfs=true
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000
BOARD_KERNEL_CMDLINE += loop.max_part=7
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
BOARD_KERNEL_PAGESIZE := 2048
@@ -99,10 +98,14 @@ DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
hardware/qcom-caf/common/vendor_framework_compatibility_matrix.xml \
hardware/qcom-caf/common/vendor_framework_compatibility_matrix_legacy.xml \
vendor/lineage/config/device_framework_matrix.xml \
$(DEVICE_PATH)/dolby_compat_framework_matrix.xml
DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml
DEVICE_MATRIX_FILE := $(DEVICE_PATH)/compatibility_matrix.xml
DEVICE_FRAMEWORK_MANIFEST_FILE := $(DEVICE_PATH)/framework_manifest.xml
$(DEVICE_PATH)/vintf/dolby_compat_framework_matrix.xml
DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/vintf/manifest.xml
DEVICE_MATRIX_FILE := $(DEVICE_PATH)/vintf/compatibility_matrix.xml
DEVICE_FRAMEWORK_MANIFEST_FILE := $(DEVICE_PATH)/vintf/framework_manifest.xml
# Init
TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):libinit_vince
TARGET_RECOVERY_DEVICE_MODULES := libinit_vince
# Lineage Health
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/power_supply/battery/battery_charging_enabled
@@ -126,10 +129,10 @@ BOARD_USES_QCOM_HARDWARE := true
TARGET_BOARD_PLATFORM := msm8953
# Properties
TARGET_ODM_PROP += $(DEVICE_PATH)/odm.prop
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
TARGET_SYSTEM_EXT_PROP += $(DEVICE_PATH)/system_ext.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
TARGET_ODM_PROP += $(DEVICE_PATH)/properties/odm.prop
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/properties/system.prop
TARGET_SYSTEM_EXT_PROP += $(DEVICE_PATH)/properties/system_ext.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop
# Recovery
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom

View File

@@ -1,85 +1,248 @@
# Custom thermal configuration for msm8953 4.9 kernel
# Author: Rama Bondan Prakoso (rama982@telegram)
# modified: Jord
# Thanks to Xiaomi and Asus
# SENSOR : ALIAS
# tsens_tz_sensor5 : cpu5
# tsens_tz_sensor4 : cpu4
# tsens_tz_sensor2 : pop_mem
# tsens_tz_sensor15 : gpu
# tsens_tz_sensor13 : L2_cache_0
# tsens_tz_sensor12 : cpu3
# tsens_tz_sensor11 : cpu2
# tsens_tz_sensor10 : cpu1
# tsens_tz_sensor9 : cpu0
# tsens_tz_sensor8 : L2_cache_1
# tsens_tz_sensor7 : cpu7
# tsens_tz_sensor6 : cpu6
# TYPE : AVAILABLE_VALUE
# cpu0 : 652800 1036800 1401600 1689600 1804800 1958400 2016000
# gpu : 133330000 216000000 320000000 400000000 510000000 560000000 650000000 725000000
#Conf file: system/vendor/etc/thermal-engine.conf
debug
# Conf file: /vendor/etc/thermal-engine.conf
[VIRTUAL-CPUS]
#algo_type virtual
trip_sensor tsens_tz_sensor9
set_point 75000
set_point_clr 65000
sensors tsens_tz_sensor9 tsens_tz_sensor10 tsens_tz_sensor11 tsens_tz_sensor12 tsens_tz_sensor13 tsens_tz_sensor4 tsens_tz_sensor5 tsens_tz_sensor6 tsens_tz_sensor7 tsens_tz_sensor8
weights
sampling 50
math 2
[XO_THERMAL_MONITOR]
algo_type monitor
sampling 1000
sensor xo-therm-adc
thresholds 63000 65000 69000 70000 73000
thresholds_clr 61000 63000 67000 68000 70000
actions cpu0 cpu0 cpu0 cpu0+gpu cpu0+gpu
action_info 1689600 1401600 1036800 652800+320000000
652800+216000000
[SS-GPU]
#algo_type ss
sampling 250
sensor gpu
device gpu
set_point 95000
set_point_clr 65000
time_constant 0
[CPU_MONITOR]
algo_type monitor
sampling 1000
sensor VIRTUAL-CPU
thresholds 90000
thresholds_clr 85000
actions shutdown
action_info 0
[BATTERY_CHARGING_STL]
algo_type monitor
sampling 5000
sensor xo-therm-adc
thresholds 60000 62000 64000 65000 66000
thresholds_clr 58000 60000 62000 64000 65000
actions battery battery battery battery battery
action_info 1 2 3 4 5
[LCD_MONITOR_STATE]
algo_type monitor
sampling 5000
sensor xo-therm-adc
thresholds 64000
thresholds_clr 62000
actions lcd
action_info 30
[HIGH_TEMP_STATE]
algo_type monitor
sampling 1000
sensor xo-therm-adc
thresholds 64000
thresholds_clr 62000
actions temp_state
action_info 1
[MODEM_PROC_TEMP_MITIGATION]
algo_type monitor
[SS-CASE-THERM]
#algo_type ss
sampling 10000
sensor xo-therm-adc
thresholds 70000 70000
thresholds_clr 69000 69000
actions modem_proc modem_proc
action_info 1 3
sensor case_therm
device cluster0
set_point 43000
set_point_clr 40000
time_constant 0
device_max_limit 1689600
[SS-CPUS-ALL]
#algo_type ss
sampling 50
sensor VIRTUAL-CPUS
device cluster0
set_point 95000
set_point_clr 55000
time_constant 0
[SPEAKER-CAL]
sampling 30000 30000 10 1800000
sensor pm8953_tz
sensors tsens_tz_sensor1 tsens_tz_sensor2 tsens_tz_sensor3 tsens_tz_sensor14 tsens_tz_sensor15
temp_range 6000 10000 2000
max_temp 45000
offset -4000
[MODEM_PA_MITIGATION]
algo_type monitor
#algo_type monitor
sampling 10000
sensor xo-therm-adc
sensor case_therm
thresholds 70000 70000
thresholds_clr 69000 69000
actions modem modem
action_info 2 3
[VIRTUAL-CPU]
algo_type virtual
trip_sensor apc1-cpu0-usr
set_point 75000
set_point_clr 70000
sensors apc1-cpu0-usr apc1-cpu1-usr apc1-cpu2-usr apc1-cpu3-usr apc1-l2-usr
weights
sampling 100
math 2
[MODEM_PROC_TEMP_MITIGATION]
#algo_type monitor
sampling 10000
sensor case_therm
thresholds 70000 70000
thresholds_clr 69000 69000
actions modem_proc modem_proc
action_info 1 3
[BATTERY_CHARGING_CTL]
#algo_type monitor
sampling 10000
sensor case_therm
thresholds 38000 40000 43000 48000
thresholds_clr 35000 38000 40000 43000
actions battery battery battery battery
action_info 2 3 4 5
[VDD_RSTR_MONITOR-TSENS15]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor15
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS14]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor14
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS13]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor13
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS12]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor12
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS11]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor11
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS10]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor10
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS9]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor9
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS8]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor8
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS7]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor7
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS6]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor6
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS5]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor5
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS4]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor4
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS3]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor3
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS2]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor2
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS1]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor1
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending
[VDD_RSTR_MONITOR-TSENS0]
#algo_type monitor
sampling 1000
sensor tsens_tz_sensor0
thresholds 5000
thresholds_clr 10000
actions vdd_restriction
action_info 1
descending

View File

@@ -84,11 +84,11 @@ PRODUCT_PACKAGES += \
# Audio configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
$(LOCAL_PATH)/audio/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
$(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
$(LOCAL_PATH)/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
$(LOCAL_PATH)/configs/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
$(LOCAL_PATH)/configs/audio/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
$(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
$(LOCAL_PATH)/configs/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
@@ -97,7 +97,7 @@ PRODUCT_COPY_FILES += \
hardware/qcom-caf/msm8996/audio/configs/msm8953/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
hardware/qcom-caf/msm8996/audio/configs/msm8953/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
hardware/qcom-caf/msm8996/audio/configs/msm8953/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \
$(LOCAL_PATH)/audio/dax-default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/dolby/dax-default.xml
$(LOCAL_PATH)/configs/audio/dax-default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/dolby/dax-default.xml
# Bluetooth
PRODUCT_PACKAGES += \
@@ -221,7 +221,7 @@ PRODUCT_PACKAGES += \
# Input
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/msm8953-snd-card-mtp_Button_Jack.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/msm8953-snd-card-mtp_Button_Jack.kl
$(LOCAL_PATH)/configs/keylayout/msm8953-snd-card-mtp_Button_Jack.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/msm8953-snd-card-mtp_Button_Jack.kl
# IPACM
PRODUCT_PACKAGES += \
@@ -248,9 +248,9 @@ PRODUCT_PACKAGES += \
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
$(LOCAL_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
$(LOCAL_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
$(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
$(LOCAL_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
$(LOCAL_PATH)/configs/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
@@ -379,6 +379,12 @@ PRODUCT_PACKAGES += \
PRODUCT_BOOT_JARS += \
telephony-ext
PRODUCT_PACKAGES += \
android.hardware.radio.c_shim@1.0 \
android.hardware.radio.c_shim@1.1 \
android.hardware.radio.c_shim@1.2 \
android.hardware.radio.config@1.1-service.wrapper
# Thermal
PRODUCT_PACKAGES += \
android.hardware.thermal@2.0-service.qti-msm8953

View File

@@ -111,4 +111,9 @@ extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTIO
"${PATCHELF} --replace-needed "libstagefright_foundation.so" "libstagefright_foundation-v33.so" "${DEVICE_BLOB_ROOT}"/vendor/lib/libstagefright_soft_ac4dec.so"
"${PATCHELF} --replace-needed "libstagefright_foundation.so" "libstagefright_foundation-v33.so" "${DEVICE_BLOB_ROOT}"/vendor/lib64/libdlbdsservice.so"
# RIL
for v in 1.{0..2}; do
sed -i "s|android.hardware.radio.config@${v}.so|android.hardware.radio.c_shim@${v}.so|g" "${DEVICE_BLOB_ROOT}"/vendor/lib64/libril-qc-hal-qmi.so"
done
"${MY_DIR}/setup-makefiles.sh"

27
libinit/Android.bp Normal file
View File

@@ -0,0 +1,27 @@
//
// Copyright (C) 2019 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.
//
cc_library_static {
name: "libinit_vince",
recovery_available: true,
srcs: ["init_vince.cpp"],
include_dirs: [
"system/core/init"
],
shared_libs: [
"libbase",
]
}

99
libinit/init_vince.cpp Normal file
View File

@@ -0,0 +1,99 @@
/*
Copyright (c) 2016, The CyanogenMod 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 <fcntl.h>
#include <stdlib.h>
#include <sys/sysinfo.h>
#include "vendor_init.h"
#include "property_service.h"
#include "log/log.h"
#define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
#include <sys/_system_properties.h>
char const *heapstartsize;
char const *heapgrowthlimit;
char const *heapsize;
char const *heaptargetutilization;
char const *heapminfree;
char const *heapmaxfree;
void check_device()
{
struct sysinfo sys;
sysinfo(&sys);
if (sys.totalram > 3072ull * 1024 * 1024) {
heapstartsize = "8m";
heapgrowthlimit = "256m";
heapsize = "512m";
heaptargetutilization = "0.6";
heapminfree = "8m";
heapmaxfree = "16m";
} else {
heapstartsize = "8m";
heapgrowthlimit = "256m";
heapsize = "512m";
heaptargetutilization = "0.75";
heapminfree = "2m";
heapmaxfree = "8m";
}
}
void property_override(char const prop[], char const value[], bool add = true)
{
auto pi = (prop_info *) __system_property_find(prop);
if (pi != nullptr) {
__system_property_update(pi, value, strlen(value));
} else if (add) {
__system_property_add(prop, strlen(prop), value, strlen(value));
}
}
void vendor_load_properties()
{
check_device();
property_override("dalvik.vm.heapstartsize", heapstartsize);
property_override("dalvik.vm.heapgrowthlimit", heapgrowthlimit);
property_override("dalvik.vm.heapsize", heapsize);
property_override("dalvik.vm.heaptargetutilization", heaptargetutilization);
property_override("dalvik.vm.heapminfree", heapminfree);
property_override("dalvik.vm.heapmaxfree", heapmaxfree);
property_override("ro.product.brand", "Xiaomi");
property_override("ro.product.manufacturer", "Xiaomi");
property_override("ro.product.device", "vince");
property_override("ro.product.marketname", "Redmi 5 Plus");
property_override("bluetooth.device.default_name", "Redmi 5 Plus");
property_override("ro.control_privapp_permissions", "log");
property_override("dalvik.vm.minidebuginfo", "false");
property_override("dalvik.vm.dex2oat-minidebuginfo", "false");
}

View File

@@ -327,4 +327,12 @@
<!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
autodetected from the Configuration. -->
<bool name="config_showNavigationBar">true</bool>
<!-- If true, the screen can be rotated via the accelerometer in all 4
rotations as the default behavior. -->
<bool name="config_allowAllRotations">true</bool>
<!-- The max scale for the wallpaper when it's zoomed in -->
<item name="config_wallpaperMaxScale" format="float" type="dimen">1</item>
</resources>

View File

@@ -27,4 +27,11 @@
vibrator is capable of subtle vibrations -->
<bool name="config_vibrateOnIconAnimation">true</bool>
<!-- Whether the combined qs shows in status bar when true, the combined qs will not be available
if set it to false -->
<bool name="flag_combined_qs_headers">false</bool>
<!-- StatusBar burn-in protection -->
<bool name="config_statusBarBurnInProtection">false</bool>
</resources>

View File

@@ -26,13 +26,6 @@
successfully placing the OTA call -->
<integer name="OtaShowListeningScreen">1</integer>
<!-- If this is true, the SIM card (through Customer Service Profile EF file) will be
able to prevent manual operator selection. If false, this SIM setting will be
ignored and manual operator selection will always be available. See
CPHS4_2.WW6, CPHS B.4.7.1 for more information -->
<!-- DEPRECATED: Use CarrierConfigManager#KEY_CSP_ENABLED_BOOL -->
<bool name="csp_enabled">true</bool>
<!-- After a CDMA conference call is merged, the swap button should be displayed. -->
<bool name="support_swap_after_merge" translatable="false">false</bool>

View File

@@ -0,0 +1,104 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright (c) 2015, The Linux Foundation. All rights reserved.
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.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array name="preferred_network_mode_choices" translatable="false">
<item>@string/preferred_network_mode_td_scdma_lte_gsm_wcdma_cdma_evdo_choice </item>
<item>@string/preferred_network_mode_td_scdma_gsm_wcdma_cdma_evdo_choice</item>
<item>@string/preferred_network_mode_td_scdma_gsm_wcdma_lte_choice</item>
<item>@string/preferred_network_mode_td_scdma_wcdma_lte_choice</item>
<item>@string/preferred_network_mode_td_scdma_gsm_wcdma_choice</item>
<item>@string/preferred_network_mode_td_scdma_gsm_lte_choice</item>
<item>@string/preferred_network_mode_td_scdma_gsm_choice</item>
<item>@string/preferred_network_mode_td_scdma_lte_choice</item>
<item>@string/preferred_network_mode_td_scdma_wcdma_choice</item>
<item>@string/preferred_network_mode_td_scdma_only_choice</item>
<item>@string/preferred_network_mode_lte_wcdma_choice</item>
<item>@string/preferred_network_mode_lte_choice</item>
<item>@string/preferred_network_mode_global_choice</item>
<item>@string/preferred_network_mode_gsm_wcdma_lte_choice</item>
<item>@string/preferred_network_mode_cdma_lte_evdo_choice</item>
<item>@string/preferred_network_mode_cdma_evdo_gsm_wcdma_choice</item>
<item>@string/preferred_network_mode_evdo_only_choice</item>
<item>@string/preferred_network_mode_cdma_wo_evdo_choice</item>
<item>@string/preferred_network_mode_cdma_evdo_auto_choice</item>
<item>@string/preferred_network_mode_gsm_wcdma_auto_choice</item>
<item>@string/preferred_network_mode_wcdma_only_choice</item>
<item>@string/preferred_network_mode_gsm_only_choice</item>
<item>@string/preferred_network_mode_gsm_wcdma_preferred_choice</item>
</string-array>
<string-array name="preferred_network_mode_values" translatable="false">
<item>"22"</item>
<item>"21"</item>
<item>"20"</item>
<item>"19"</item>
<item>"18"</item>
<item>"17"</item>
<item>"16"</item>
<item>"15"</item>
<item>"14"</item>
<item>"13"</item>
<item>"12"</item>
<item>"11"</item>
<item>"10"</item>
<item>"9"</item>
<item>"8"</item>
<item>"7"</item>
<item>"6"</item>
<item>"5"</item>
<item>"4"</item>
<item>"3"</item>
<item>"2"</item>
<item>"1"</item>
<item>"0"</item>
</string-array>
<string name="preferred_network_mode_td_scdma_lte_gsm_wcdma_cdma_evdo_choice">TD-SCDMA/LTE/GSM/WCDMA/CDMA/EVDO</string>
<string name="preferred_network_mode_td_scdma_gsm_wcdma_cdma_evdo_choice">TD-SCDMA/GSM/WCDMA/CDMA/EVDO</string>
<string name="preferred_network_mode_td_scdma_gsm_wcdma_lte_choice">TD-SCDMA/GSM/WCDMA/LTE</string>
<string name="preferred_network_mode_td_scdma_wcdma_lte_choice">TD-SCDMA/WCDMA/LTE</string>
<string name="preferred_network_mode_td_scdma_gsm_wcdma_choice">TD-SCDMA/GSM/WCDMA</string>
<string name="preferred_network_mode_td_scdma_gsm_lte_choice">TD-SCDMA/GSM/LTE</string>
<string name="preferred_network_mode_td_scdma_gsm_choice">TD-SCDMA/GSM</string>
<string name="preferred_network_mode_td_scdma_lte_choice">TD-SCDMA/LTE</string>
<string name="preferred_network_mode_td_scdma_wcdma_choice">TD-SCDMA/WCDMA</string>
<string name="preferred_network_mode_td_scdma_only_choice">TD-SCDMA only</string>
<string name="preferred_network_mode_lte_wcdma_choice">LTE / WCDMA</string>
<string name="preferred_network_mode_lte_choice">LTE</string>
<string name="preferred_network_mode_global_choice">Global</string>
<string name="preferred_network_mode_gsm_wcdma_lte_choice">GSM/WCDMA/LTE</string>
<string name="preferred_network_mode_cdma_lte_evdo_choice">CDMA + LTE/EvDo</string>
<string name="preferred_network_mode_cdma_evdo_gsm_wcdma_choice">CDMA/EvDo/GSM/WCDMA</string>
<string name="preferred_network_mode_evdo_only_choice">EvDo only</string>
<string name="preferred_network_mode_cdma_wo_evdo_choice">CDMA w/o EvDo</string>
<string name="preferred_network_mode_cdma_evdo_auto_choice">CDMA/EvDo auto</string>
<string name="preferred_network_mode_gsm_wcdma_auto_choice">GSM/WCDMA auto</string>
<string name="preferred_network_mode_wcdma_only_choice">WCDMA only</string>
<string name="preferred_network_mode_gsm_only_choice">GSM only</string>
<string name="preferred_network_mode_gsm_wcdma_preferred_choice">GSM/WCDMA preferred</string>
</resources>

13
properties/system.prop Normal file
View File

@@ -0,0 +1,13 @@
# Fwk detect
ro.vendor.qti.va_aosp.support=1
# Radio
ro.telephony.block_binder_thread_on_incoming_calls=false
persist.dbg.ims_volte_enable=1
persist.dbg.vt_avail_ovr=1
persist.radio.rat_on=combine
persist.dbg.volte_avail_ovr=1
persist.dbg.wfc_avail_ovr=1
persist.radio.data_con_rprt=1
persist.radio.calls.on.ims=1
persist.radio.VT_ENABLE=1

View File

@@ -89,10 +89,11 @@ debug.egl.hw=0
debug.enable.sglscale=1
debug.gralloc.enable_fb_ubwc=1
debug.mdpcomp.logs=0
debug.renderengine.backend=skiaglthreaded
debug.hwui.renderer=skiagl
debug.hwui.skia_atrace_enabled=false
debug.sf.enable_hwc_vds=1
debug.sf.hw=0
debug.sf.latch_unsignaled=1
debug.sf.latch_unsignaled=0
debug.sf.recomputecrop=0
dev.pm.dyn_samplingrate=1
persist.demo.hdmirotationlock=false

View File

@@ -5,16 +5,8 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := fstab.qcom
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := LOC
LOCAL_SRC_FILES := etc/fstab.qcom
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := fstab.zram
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/fstab.zram
LOCAL_SRC_FILES := etc/fstab.qcom
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
include $(BUILD_PREBUILT)

View File

@@ -293,9 +293,6 @@ case "$target" in
echo 1 > /sys/devices/system/cpu/cpu6/online
echo 1 > /sys/devices/system/cpu/cpu7/online
# Enable low power modes
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
# re-enable thermal & BCL core_control now
echo 1 > /sys/module/msm_thermal/core_control/enabled
for mode in /sys/devices/soc.0/qcom,bcl.*/mode

View File

@@ -110,7 +110,7 @@ on boot
on property:persist.vendor.usb.config=*
setprop persist.sys.usb.config ${persist.vendor.usb.config}
on boot && property:ro.boot.usbconfigfs=true
on boot
setprop sys.usb.configfs 1
# Following are the parameters required for usb functionality. They provide configurable options like

View File

@@ -147,6 +147,9 @@ service energy-awareness /system/vendor/bin/energy-awareness
group system
oneshot
on property:init.svc.vendor.qcrild=stopped
stop vendor.radio-config-1-1-wrapper
service vendor.hvdcp_opti /system/vendor/bin/hvdcp_opti
class main
user root

View File

@@ -110,6 +110,12 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.-->
<boolean name="carrier_call_composer_supported_bool" value="false"/>
<!-- Config for explicit call transfer support for an IMS call -->
<boolean name="carrier_allow_transfer_ims_call_bool" value="true" />
<!-- If this is true, the SIM card (through Customer Service Profile EF file) will be
able to prevent manual operator selection. If false, this SIM setting will be
ignored and manual operator selection will always be available. See
CPHS4_2.WW6, CPHS B.4.7.1 for more information -->
<boolean name="csp_enabled_bool" value="true" />
</carrier_config>
<carrier_config mcc="001" mnc="01">
@@ -700,6 +706,30 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.-->
<boolean name="config_carrier_cs_retry_available" value="true" />
<boolean name="carrier_allow_turnoff_ims_bool" value="false"/>
</carrier_config>
<carrier_config mcc="452" mnc="01">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="452" mnc="02">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="452" mnc="04">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="452" mnc="05">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="452" mnc="06">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="452" mnc="08">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="454" mnc="00">
<boolean name="carrier_volte_available_bool" value="true" />
@@ -1217,6 +1247,38 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.-->
<boolean name="carrier_allow_transfer_ims_call_bool" value="false" />
</carrier_config>
<carrier_config mcc="510" mnc="01">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="510" mnc="07">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="510" mnc="08">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="510" mnc="09">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="510" mnc="10">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="510" mnc="11">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="510" mnc="21">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="510" mnc="28">
<boolean name="carrier_volte_available_bool" value="true" />
</carrier_config>
<carrier_config mcc="310" mnc="00">
<boolean name="rtt_supported_bool" value="true" />
<boolean name="rtt_auto_upgrade_bool" value="true" />

View File

@@ -30,9 +30,18 @@
rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max -->
<string name="config_wifi_tcp_buffers" translatable="false">524288,1048576,8388608,262144,524288,4194304</string>
<!-- Default access point SSID used for tethering -->
<string name="wifi_tether_configure_ssid_default" translatable="false">Redmi 5 Plus</string>
<!-- True if the firmware supports Wi-Fi link probing -->
<bool name="config_wifi_link_probing_supported">true</bool>
<!-- Enable ACS (auto channel selection) for Wifi hotspot (SAP) -->
<bool translatable="false" name="config_wifi_softap_acs_supported">false</bool>
<!-- Enable 802.11ac for Wifi hotspot (SAP) -->
<bool translatable="false" name="config_wifi_softap_ieee80211ac_supported">true</bool>
<!-- Indicates that a full bugreport should be triggered when wifi diagnostics detects an error on non-user (i.e debug) builds -->
<bool translatable="false" name="config_wifi_diagnostics_bugreport_enabled">true</bool>

View File

@@ -1,5 +0,0 @@
# Fwk detect
ro.vendor.qti.va_aosp.support=1
# Radio
ro.telephony.block_binder_thread_on_incoming_calls=false

View File

@@ -69,9 +69,9 @@
<fqname>@1.4::IRadio/slot2</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.radio.config</name>
<name>lineage.hardware.radio.config</name>
<transport>hwbinder</transport>
<fqname>@1.1::IRadioConfig/default</fqname>
<fqname>@1.0::IRadioConfig/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.sensors</name>