Compare commits
42 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a59c08d36 | ||
|
|
a76d5245ec | ||
|
|
74866f585f | ||
|
|
87c895faf2 | ||
|
|
d16b0db56a | ||
|
|
bf73234013 | ||
|
|
962070e390 | ||
|
|
6ab6d9873e | ||
|
|
af0ae40ff7 | ||
|
|
d9df48233f | ||
|
|
f88fe75421 | ||
|
|
cde90c8d6f | ||
|
|
4dc4bf0bd9 | ||
|
|
f449c56fea | ||
|
|
3fbe17119d | ||
|
|
c98a7e85e9 | ||
|
|
a195372ca6 | ||
|
|
9e243ecb2e | ||
|
|
ac54194708 | ||
|
|
6644e8793a | ||
|
|
c8d44ce56a | ||
|
|
42eff7f0ef | ||
|
|
852f257a05 | ||
|
|
c008703d9c | ||
|
|
fbb0f4325a | ||
|
|
ca1008b1c7 | ||
|
|
f1b05787ab | ||
|
|
e54af76df3 | ||
|
|
272b9bb04b | ||
|
|
55626419e9 | ||
|
|
9cec233b65 | ||
|
|
89ee258d14 | ||
|
|
78454e7e5e | ||
|
|
54c1b2627b | ||
|
|
1514ecfe3d | ||
|
|
c732629622 | ||
|
|
c570a41089 | ||
|
|
f5a74be96e | ||
|
|
c7813e9c4f | ||
|
|
471a12514c | ||
|
|
1f9b42f154 | ||
|
|
12cea79c69 |
14
Android.mk
14
Android.mk
@@ -46,4 +46,18 @@ $(WCNSS_MAC_SYMLINK): $(LOCAL_INSTALLED_MODULE)
|
||||
|
||||
ALL_DEFAULT_INSTALLED_MODULES += $(WCNSS_INI_SYMLINK) $(WCNSS_MAC_SYMLINK)
|
||||
|
||||
LPFLASH := $(HOST_OUT_EXECUTABLES)/lpflash$(HOST_EXECUTABLE_SUFFIX)
|
||||
INSTALLED_SUPERIMAGE_DUMMY_TARGET := $(PRODUCT_OUT)/super_dummy.img
|
||||
|
||||
$(INSTALLED_SUPERIMAGE_DUMMY_TARGET): $(PRODUCT_OUT)/super_empty.img $(LPFLASH)
|
||||
$(call pretty,"Target dummy super image: $@")
|
||||
$(hide) touch $@
|
||||
$(hide) echo $(CURDIR)
|
||||
$(hide) $(LPFLASH) $(CURDIR)/$@ $(CURDIR)/$(PRODUCT_OUT)/super_empty.img
|
||||
|
||||
.PHONY: super_dummyimage
|
||||
super_dummyimage: $(INSTALLED_SUPERIMAGE_DUMMY_TARGET)
|
||||
|
||||
INSTALLED_RADIOIMAGE_TARGET += $(INSTALLED_SUPERIMAGE_DUMMY_TARGET)
|
||||
|
||||
endif
|
||||
|
||||
@@ -12,18 +12,16 @@ COMMON_PATH := device/xiaomi/sdm845-common
|
||||
|
||||
# Architecture
|
||||
TARGET_ARCH := arm64
|
||||
TARGET_ARCH_VARIANT := armv8-a
|
||||
TARGET_ARCH_VARIANT := armv8-2a
|
||||
TARGET_CPU_ABI := arm64-v8a
|
||||
TARGET_CPU_ABI2 :=
|
||||
TARGET_CPU_VARIANT := generic
|
||||
TARGET_CPU_VARIANT_RUNTIME := kryo385
|
||||
TARGET_CPU_VARIANT:= kryo385
|
||||
|
||||
TARGET_2ND_ARCH := arm
|
||||
TARGET_2ND_ARCH_VARIANT := armv8-a
|
||||
TARGET_2ND_ARCH_VARIANT := armv8-2a
|
||||
TARGET_2ND_CPU_ABI := armeabi-v7a
|
||||
TARGET_2ND_CPU_ABI2 := armeabi
|
||||
TARGET_2ND_CPU_VARIANT := generic
|
||||
TARGET_2ND_CPU_VARIANT_RUNTIME := kryo385
|
||||
TARGET_2ND_CPU_VARIANT := kryo385
|
||||
|
||||
# Bootloader
|
||||
TARGET_BOOTLOADER_BOARD_NAME := sdm845
|
||||
@@ -47,6 +45,9 @@ TARGET_BOARD_PLATFORM := sdm845
|
||||
# Audio
|
||||
TARGET_PROVIDES_AUDIO_EXTNS := true
|
||||
|
||||
# Camera
|
||||
TARGET_USES_YCRCB_CAMERA_ENCODE := true
|
||||
|
||||
# Filesystem
|
||||
TARGET_FS_CONFIG_GEN := $(COMMON_PATH)/config.fs
|
||||
|
||||
@@ -71,16 +72,20 @@ DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml
|
||||
TARGET_LMKD_STATS_LOG := true
|
||||
|
||||
# Partitions
|
||||
SSI_PARTITIONS := system system_ext product
|
||||
TREBLE_PARTITIONS := vendor odm
|
||||
ALL_PARTITIONS := $(SSI_PARTITIONS) $(TREBLE_PARTITIONS)
|
||||
|
||||
$(foreach p, $(call to-upper, $(ALL_PARTITIONS)), \
|
||||
$(eval BOARD_$(p)IMAGE_FILE_SYSTEM_TYPE := ext4) \
|
||||
$(eval TARGET_COPY_OUT_$(p) := $(call to-lower, $(p))))
|
||||
|
||||
BOARD_BOOTIMAGE_PARTITION_SIZE := 67092480
|
||||
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
|
||||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 57453555712
|
||||
|
||||
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
||||
BOARD_USES_METADATA_PARTITION := true
|
||||
|
||||
BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
|
||||
|
||||
@@ -92,11 +97,9 @@ BOARD_SUPER_PARTITION_SYSTEM_DEVICE_SIZE := 3221225472
|
||||
BOARD_SUPER_PARTITION_VENDOR_DEVICE_SIZE := 1073741824
|
||||
|
||||
BOARD_SUPER_PARTITION_GROUPS := qti_dynamic_partitions
|
||||
BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := odm product system system_ext vendor
|
||||
BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := $(ALL_PARTITIONS)
|
||||
BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 5163188224 # (BOARD_SUPER_PARTITION_SIZE - 4194304) 4MiB overhead
|
||||
|
||||
include vendor/lineage/config/BoardConfigReservedSize.mk
|
||||
|
||||
TARGET_USERIMAGES_USE_EXT4 := true
|
||||
TARGET_USERIMAGES_USE_F2FS := true
|
||||
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
|
||||
@@ -106,6 +109,21 @@ TARGET_COPY_OUT_PRODUCT := product
|
||||
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
|
||||
TARGET_COPY_OUT_VENDOR := vendor
|
||||
|
||||
# Partitions - reserved size
|
||||
$(foreach p, $(call to-upper, $(SSI_PARTITIONS)), \
|
||||
$(eval BOARD_$(p)IMAGE_EXTFS_INODE_COUNT := -1))
|
||||
$(foreach p, $(call to-upper, $(TREBLE_PARTITIONS)), \
|
||||
$(eval BOARD_$(p)IMAGE_EXTFS_INODE_COUNT := 5120))
|
||||
|
||||
$(foreach p, $(call to-upper, $(SSI_PARTITIONS)), \
|
||||
$(eval BOARD_$(p)IMAGE_PARTITION_RESERVED_SIZE := 52428800)) # 50 MB
|
||||
$(foreach p, $(call to-upper, $(TREBLE_PARTITIONS)), \
|
||||
$(eval BOARD_$(p)IMAGE_PARTITION_RESERVED_SIZE := 20971520)) # 20 MB
|
||||
|
||||
ifneq ($(WITH_GMS),true)
|
||||
BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 1287651328 # 1228 MB
|
||||
endif
|
||||
|
||||
# Power
|
||||
TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB := //$(COMMON_PATH):libperfmgr-ext-xiaomi
|
||||
|
||||
|
||||
16
evolution.dependencies
Normal file
16
evolution.dependencies
Normal file
@@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"repository": "LineageOS/android_hardware_xiaomi",
|
||||
"target_path": "hardware/xiaomi",
|
||||
"remote": "github-non-los",
|
||||
"branch": "lineage-21"
|
||||
},
|
||||
{
|
||||
"repository": "vendor_xiaomi_sdm845-common",
|
||||
"target_path": "vendor/xiaomi/sdm845-common"
|
||||
},
|
||||
{
|
||||
"repository": "kernel_xiaomi_sdm845",
|
||||
"target_path": "kernel/xiaomi/sdm845"
|
||||
}
|
||||
]
|
||||
@@ -1,10 +0,0 @@
|
||||
[
|
||||
{
|
||||
"repository": "android_hardware_xiaomi",
|
||||
"target_path": "hardware/xiaomi"
|
||||
},
|
||||
{
|
||||
"repository": "android_kernel_xiaomi_sdm845",
|
||||
"target_path": "kernel/xiaomi/sdm845"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2018-2022 The LineageOS Project
|
||||
Copyright (C) 2024 crDroid Android 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.
|
||||
-->
|
||||
<resources>
|
||||
<!-- Doze: does the double tap sensor need a proximity check? -->
|
||||
<bool name="doze_double_tap_proximity_check">true</bool>
|
||||
</resources>
|
||||
@@ -20,6 +20,7 @@
|
||||
<!-- Defines the actions shown in advanced reboot submenu -->
|
||||
<string-array name="config_restartActionsList">
|
||||
<item>restart</item>
|
||||
<item>restart_systemui</item>
|
||||
<item>restart_recovery</item>
|
||||
<item>restart_bootloader</item>
|
||||
<item>restart_fastboot</item>
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2020-2024 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.
|
||||
-->
|
||||
<resources>
|
||||
<!-- Whether to show double tap ambient settings -->
|
||||
<bool name="config_supports_double_tap_ambient" translatable="false">true</bool>
|
||||
|
||||
<!-- Whether to show volume steps settings -->
|
||||
<bool name="config_supports_volume_steps" translatable="false">true</bool>
|
||||
</resources>
|
||||
@@ -284,4 +284,35 @@
|
||||
<string-array name="config_biometric_sensors" translatable="false" >
|
||||
<item>0:2:15</item> <!-- ID0:Fingerprint:Strong -->
|
||||
</string-array>
|
||||
|
||||
<!-- Enable Zram writeback feature to allow unused pages in zram be written to flash. -->
|
||||
<bool name="config_zramWriteback">true</bool>
|
||||
|
||||
<!-- The default journal mode to use use when Write-Ahead Logging is not active.
|
||||
Choices are: OFF, DELETE, TRUNCATE, PERSIST and MEMORY.
|
||||
PERSIST may improve performance by reducing how often journal blocks are
|
||||
reallocated (compared to truncation) resulting in better data block locality
|
||||
and less churn of the storage media.
|
||||
The PERSIST mode results in data persisting in the journal beyond the life of
|
||||
a transaction, so it interacts poorly with SECURE_DELETE. -->
|
||||
<string name="db_default_journal_mode" translatable="false">MEMORY</string>
|
||||
|
||||
<!-- The database synchronization mode when using the default journal mode.
|
||||
FULL is safest and preserves durability at the cost of extra fsyncs.
|
||||
NORMAL also preserves durability in non-WAL modes and uses checksums to ensure
|
||||
integrity although there is a small chance that an error might go unnoticed.
|
||||
Choices are: FULL, NORMAL, OFF. -->
|
||||
<string name="db_default_sync_mode" translatable="false">OFF</string>
|
||||
|
||||
<!-- The database synchronization mode when using Write-Ahead Logging.
|
||||
From https://www.sqlite.org/pragma.html#pragma_synchronous:
|
||||
WAL mode is safe from corruption with synchronous=NORMAL, and probably DELETE mode is safe
|
||||
too on modern filesystems. WAL mode is always consistent with synchronous=NORMAL, but WAL
|
||||
mode does lose durability. A transaction committed in WAL mode with
|
||||
synchronous=NORMAL might roll back following a power loss or system crash.
|
||||
Transactions are durable across application crashes regardless of the synchronous setting
|
||||
or journal mode. The synchronous=NORMAL setting is a good choice for most applications
|
||||
running in WAL mode.
|
||||
Choices are: FULL, NORMAL, OFF. -->
|
||||
<string name="db_wal_sync_mode" translatable="false">OFF</string>
|
||||
</resources>
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
[
|
||||
"/dev/video0",
|
||||
"/dev/video1",
|
||||
"/dev/video2",
|
||||
"/dev/video32",
|
||||
"/dev/video33"
|
||||
]
|
||||
20
partitions/flash_super_dummy.sh
Normal file
20
partitions/flash_super_dummy.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/system/bin/sh
|
||||
#
|
||||
# Copyright (C) 2021 The PixelExperience Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
SUPER="/dev/block/by-name/system"
|
||||
|
||||
mkdir /tmp/super-mnt
|
||||
|
||||
mount $SUPER /tmp/super-mnt 2>/dev/null
|
||||
|
||||
if [ "$?" = "0" ]; then
|
||||
echo "Detected stock /system in super partition, flashing super_dummy.img!"
|
||||
umount /tmp/super-mnt
|
||||
dd if=/tmp/super_dummy.img of=$SUPER
|
||||
fi
|
||||
|
||||
rmdir /tmp/super-mnt
|
||||
@@ -1,6 +1,6 @@
|
||||
# Copyright (C) 2009 The Android Open Source Project
|
||||
# Copyright (c) 2011, The Linux Foundation. All rights reserved.
|
||||
# Copyright (C) 2017-2023 The LineageOS Project
|
||||
# Copyright (C) 2017-2024 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.
|
||||
@@ -17,6 +17,13 @@
|
||||
import common
|
||||
import re
|
||||
|
||||
def FullOTA_InstallBegin(info):
|
||||
AddImage(info, "RADIO", "super_dummy.img", "/tmp/super_dummy.img");
|
||||
info.script.AppendExtra('package_extract_file("install/bin/flash_super_dummy.sh", "/tmp/flash_super_dummy.sh");')
|
||||
info.script.AppendExtra('set_metadata("/tmp/flash_super_dummy.sh", "uid", 0, "gid", 0, "mode", 0755);')
|
||||
info.script.AppendExtra('run_program("/tmp/flash_super_dummy.sh");')
|
||||
return
|
||||
|
||||
def FullOTA_InstallEnd(info):
|
||||
OTA_InstallEnd(info)
|
||||
return
|
||||
@@ -33,8 +40,8 @@ def IncrementalOTA_Assertions(info):
|
||||
AddTrustZoneAssertion(info, info.target_zip)
|
||||
return
|
||||
|
||||
def AddImage(info, basename, dest):
|
||||
path = "IMAGES/" + basename
|
||||
def AddImage(info, dir, basename, dest):
|
||||
path = dir + "/" + basename
|
||||
if path not in info.input_zip.namelist():
|
||||
return
|
||||
|
||||
@@ -44,8 +51,8 @@ def AddImage(info, basename, dest):
|
||||
info.script.AppendExtra('package_extract_file("%s", "%s");' % (basename, dest))
|
||||
|
||||
def OTA_InstallEnd(info):
|
||||
AddImage(info, "dtbo.img", "/dev/block/bootdevice/by-name/dtbo")
|
||||
AddImage(info, "vbmeta.img", "/dev/block/bootdevice/by-name/vbmeta")
|
||||
AddImage(info, "IMAGES", "dtbo.img", "/dev/block/bootdevice/by-name/dtbo")
|
||||
AddImage(info, "IMAGES", "vbmeta.img", "/dev/block/bootdevice/by-name/vbmeta")
|
||||
return
|
||||
|
||||
def AddTrustZoneAssertion(info, input_zip):
|
||||
|
||||
27
remove_packages/Android.mk
Normal file
27
remove_packages/Android.mk
Normal file
@@ -0,0 +1,27 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := RemovePackages
|
||||
LOCAL_MODULE_CLASS := APPS
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_OVERRIDES_PACKAGES := \
|
||||
AdaptiveVPNPrebuilt-10307 \
|
||||
AiWallpapers \
|
||||
arcore-1.42 \
|
||||
Backgrounds \
|
||||
Chrome \
|
||||
GoogleTTS \
|
||||
PixelLiveWallpaperPrebuilt \
|
||||
PixelWallpapers2024 \
|
||||
ScribePrebuilt \
|
||||
SoundAmplifierPrebuilt \
|
||||
SwitchAccessPrebuilt \
|
||||
talkback \
|
||||
Photos \
|
||||
Tycho \
|
||||
VoiceAccessPrebuilt
|
||||
|
||||
LOCAL_UNINSTALLABLE_MODULE := true
|
||||
LOCAL_CERTIFICATE := PRESIGNED
|
||||
LOCAL_SRC_FILES := /dev/null
|
||||
include $(BUILD_PREBUILT)
|
||||
@@ -1,5 +1,13 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.zram
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/fstab.zram
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.qcom.early_boot.sh
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
1
rootdir/etc/fstab.zram
Normal file
1
rootdir/etc/fstab.zram
Normal file
@@ -0,0 +1 @@
|
||||
/dev/block/zram0 none swap defaults zramsize=50%,zram_backingdev_size=512M,max_comp_streams=8
|
||||
@@ -132,7 +132,6 @@ on property:init.svc.vendor.charger=running
|
||||
mount tmpfs tmpfs /data
|
||||
start vendor.thermal-engine
|
||||
setprop vendor.usb.controller a600000.dwc3
|
||||
setprop sys.usb.configfs 1
|
||||
|
||||
on enable-low-power
|
||||
# Set the default IRQ affinity to the silver cluster.
|
||||
|
||||
@@ -472,6 +472,11 @@ on property:sys.boot_completed=1
|
||||
write /sys/block/sdf/queue/nr_requests 128
|
||||
write /sys/block/sdf/queue/iostats 1
|
||||
|
||||
# ZRAM setup
|
||||
write /sys/block/zram0/comp_algorithm lz4
|
||||
write /proc/sys/vm/page-cluster 0
|
||||
swapon_all /vendor/etc/fstab.zram
|
||||
|
||||
start qcom-post-boot
|
||||
|
||||
# corefile limit
|
||||
|
||||
24
sdm845.mk
24
sdm845.mk
@@ -115,6 +115,7 @@ PRODUCT_PACKAGES += \
|
||||
|
||||
# Common init scripts
|
||||
PRODUCT_PACKAGES += \
|
||||
fstab.zram \
|
||||
init.qcom.early_boot.sh \
|
||||
init.qcom.post_boot.sh \
|
||||
init.qcom.rc \
|
||||
@@ -124,12 +125,18 @@ PRODUCT_PACKAGES += \
|
||||
init.qcom.usb.rc \
|
||||
init.qcom.usb.sh \
|
||||
init.recovery.qcom.rc \
|
||||
ueventd.qcom.rc
|
||||
ueventd.qcom.rc \
|
||||
usb_compositions.conf
|
||||
|
||||
# Configstore
|
||||
PRODUCT_PACKAGES += \
|
||||
disable_configstore
|
||||
|
||||
# Cgroup and task profiles
|
||||
PRODUCT_COPY_FILES += \
|
||||
system/core/libprocessgroup/profiles/cgroups_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \
|
||||
system/core/libprocessgroup/profiles/task_profiles_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
|
||||
|
||||
# Context Hub
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.contexthub@1.0-impl.generic \
|
||||
@@ -280,6 +287,9 @@ PRODUCT_PACKAGES += \
|
||||
# Partitions
|
||||
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/partitions/flash_super_dummy.sh:install/bin/flash_super_dummy.sh
|
||||
|
||||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power-service.lineage-libperfmgr \
|
||||
@@ -316,6 +326,10 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
librecovery_updater_xiaomi
|
||||
|
||||
# Remove unwanted packages
|
||||
PRODUCT_PACKAGES += \
|
||||
RemovePackages
|
||||
|
||||
# Seccomp policy
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
|
||||
@@ -337,6 +351,11 @@ PRODUCT_SOONG_NAMESPACES += \
|
||||
hardware/xiaomi \
|
||||
vendor/qcom/opensource/usb/etc
|
||||
|
||||
# Speed profile services and wifi-service to reduce RAM and storage
|
||||
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
|
||||
PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true
|
||||
PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := frameworks/base/config/boot-image-profile.txt
|
||||
|
||||
# Telephony
|
||||
PRODUCT_PACKAGES += \
|
||||
ims-ext-common \
|
||||
@@ -356,7 +375,8 @@ PRODUCT_PACKAGES += \
|
||||
|
||||
# USB
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.usb@1.3-service.dual_role_usb
|
||||
android.hardware.usb@1.3-service.dual_role_usb \
|
||||
android.hardware.usb.gadget@1.2-service-qti
|
||||
|
||||
# Vibrator
|
||||
PRODUCT_PACKAGES += \
|
||||
|
||||
23
system.prop
23
system.prop
@@ -17,6 +17,9 @@ persist.data.df.dev_name=rmnet_usb0
|
||||
persist.vendor.data.mode=concurrent
|
||||
ro.vendor.use_data_netmgrd=true
|
||||
|
||||
# Dex2oat
|
||||
dalvik.vm.dex2oat64.enabled=true
|
||||
|
||||
# Display post-processing
|
||||
ro.qualcomm.cabl=0
|
||||
ro.vendor.display.ad=1
|
||||
@@ -29,12 +32,17 @@ ro.fastbootd.available=true
|
||||
|
||||
# Graphics
|
||||
debug.sf.auto_latch_unsignaled=0
|
||||
debug.sf.early_app_phase_offset_ns=500000
|
||||
debug.sf.early_gl_app_phase_offset_ns=15000000
|
||||
debug.sf.early_gl_phase_offset_ns=3000000
|
||||
debug.sf.early_phase_offset_ns=500000
|
||||
debug.sf.enable_advanced_sf_phase_offset=1
|
||||
debug.sf.use_phase_offsets_as_durations=1
|
||||
debug.sf.late.sf.duration=27600000
|
||||
debug.sf.late.app.duration=20000000
|
||||
debug.sf.early.sf.duration=27600000
|
||||
debug.sf.early.app.duration=20000000
|
||||
debug.sf.earlyGl.sf.duration=27600000
|
||||
debug.sf.earlyGl.app.duration=20000000
|
||||
debug.sf.hwc.min.duration=23000000
|
||||
debug.sf.layer_caching_active_layer_timeout_ms=1000
|
||||
debug.sf.enable_hwc_vds=1
|
||||
debug.sf.latch_unsignaled=1
|
||||
persist.demo.hdmirotationlock=false
|
||||
persist.sys.sf.native_mode=0
|
||||
ro.surface_flinger.enable_frame_rate_override=false
|
||||
@@ -74,3 +82,8 @@ ril.subscription.types=NV,RUIM
|
||||
ro.com.android.dataroaming=true
|
||||
ro.telephony.default_network=22,22
|
||||
telephony.lteOnCdmaDevice=1
|
||||
|
||||
# Zram
|
||||
ro.zram.first_wb_delay_mins=1440
|
||||
ro.zram.mark_idle_delay_mins=60
|
||||
ro.zram.periodic_wb_delay_hours=24
|
||||
|
||||
26
vendor.prop
26
vendor.prop
@@ -42,7 +42,7 @@ vendor.audio.feature.hifi_audio.enable=false
|
||||
vendor.audio.feature.hwdep_cal.enable=false
|
||||
vendor.audio.feature.incall_music.enable=false
|
||||
vendor.audio.feature.keep_alive.enable=false
|
||||
vendor.audio.feature.kpi_optimize.enable=true
|
||||
vendor.audio.feature.kpi_optimize.enable=false
|
||||
vendor.audio.feature.maxx_audio.enable=false
|
||||
vendor.audio.feature.multi_voice_session.enable=true
|
||||
vendor.audio.feature.ras.enable=true
|
||||
@@ -102,7 +102,7 @@ persist.vendor.qcom.bluetooth.twsp_state.enabled=false
|
||||
vendor.qcom.bluetooth.soc=cherokee
|
||||
|
||||
# Camera
|
||||
vendor.camera.aux.packagelist=com.android.camera,org.codeaurora.snapcam,org.lineageos.aperture,org.lineageos.aperture.dev
|
||||
vendor.camera.aux.packagelist=com.android.camera,org.codeaurora.snapcam,org.lineageos.aperture,co.aospa.sense
|
||||
|
||||
# Chipset
|
||||
ro.soc.manufacturer=Qualcomm
|
||||
@@ -128,12 +128,19 @@ drm.service.enabled=true
|
||||
ro.frp.pst=/dev/block/bootdevice/by-name/frp
|
||||
|
||||
# Graphics
|
||||
debug.egl.hw=0
|
||||
debug.sf.hw=0
|
||||
debug.sf.disable_client_composition_cache=1
|
||||
debug.sf.enable_transaction_tracing=false
|
||||
debug.sf.predict_hwc_composition_strategy=0
|
||||
debug.sf.recomputecrop=0
|
||||
ro.hardware.egl=adreno
|
||||
ro.hardware.vulkan=adreno
|
||||
ro.opengles.version=196610
|
||||
|
||||
# HWUI
|
||||
debug.hwui.renderer=skiagl
|
||||
debug.hwui.skia_atrace_enabled=false
|
||||
debug.renderengine.backend=skiaglthreaded
|
||||
|
||||
# IMS
|
||||
persist.dbg.volte_avail_ovr=1
|
||||
persist.dbg.vt_avail_ovr=1
|
||||
@@ -168,18 +175,25 @@ persist.vendor.data.iwlan.enable=true
|
||||
# Perf
|
||||
ro.vendor.extension_library=libqti-perfd-client.so
|
||||
|
||||
# Phantom process monitoring
|
||||
sys.fflag.override.settings_enable_monitor_phantom_procs=false
|
||||
|
||||
# Radio
|
||||
persist.vendor.radio.enableadvancedscan=false
|
||||
persist.vendor.radio.mt_sms_ack=30
|
||||
|
||||
# USB
|
||||
ro.usb.uvc.enabled=true
|
||||
sys.usb.mtp.batchcancel=1
|
||||
vendor.usb.controller=a600000.dwc3
|
||||
vendor.usb.diag.func.name=diag
|
||||
vendor.usb.dpl.inst.name=dpl
|
||||
vendor.usb.qdss.inst.name=qdss
|
||||
vendor.usb.rmnet.func.name=gsi
|
||||
vendor.usb.rmnet.inst.name=rmnet
|
||||
vendor.usb.rndis.func.name=gsi
|
||||
vendor.usb.use_ffs_mtp=0
|
||||
vendor.usb.use_gadget_hal=0
|
||||
vendor.usb.use_ffs_mtp=1
|
||||
vendor.usb.use_gadget_hal=1
|
||||
|
||||
# Zygote
|
||||
zygote.critical_window.minute=10
|
||||
|
||||
Reference in New Issue
Block a user