sm7125: Initial a72q support

*Decommonize a52 specific stuff

Change-Id: If61856081f4eae085f1d1a6a2b39f7375f0ae8c6
fourteen
Simon1511 2 years ago
parent a44f0f3155
commit 4e625cb223
  1. 2
      Android.mk
  2. 3
      BoardConfigCommon.mk
  3. 2
      bluetooth/include/bdroid_buildcfg.h
  4. 1
      common.mk
  5. 4080
      configs/audio/mixer_paths.xml
  6. 16
      init/init_sec.h
  7. 25
      overlay/frameworks/base/core/res/res/values/config.xml
  8. 73
      proprietary-files.txt
  9. 8
      rootdir/Android.mk
  10. 105
      rootdir/etc/init.a52q.rc
  11. 2
      setup-makefiles.sh

@ -16,7 +16,7 @@
LOCAL_PATH := $(call my-dir)
ifneq ($(filter a52q,$(TARGET_DEVICE)),)
ifneq ($(filter a52q a72q,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))

@ -58,7 +58,6 @@ TARGET_KERNEL_CLANG_COMPILE := true
# Build with Clang 11 for now
TARGET_KERNEL_CLANG_VERSION := r383902b1
TARGET_KERNEL_SOURCE := kernel/samsung/sm7125
TARGET_KERNEL_CONFIG := vendor/lineage-a52q_defconfig
TARGET_KERNEL_ARCH := arm64
TARGET_KERNEL_HEADER_ARCH := arm64
TARGET_LINUX_KERNEL_VERSION := 4.14
@ -68,7 +67,6 @@ BOARD_KERNEL_CMDLINE += console=null androidboot.hardware=qcom androidboot.memcg
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
BOARD_BOOTIMG_HEADER_VERSION := 2
BOARD_NAME := SRPTH31C002
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 4096
BOARD_RAMDISK_OFFSET := 0x02000000
@ -172,7 +170,6 @@ TARGET_ENABLE_MEDIADRM_64 := true
TARGET_USES_HWC2 := true
TARGET_USES_ION := true
TARGET_DISABLED_UBWC := true
TARGET_SCREEN_DENSITY := 420
# Fingerprint
BUILD_FINGERPRINT := "samsung/a52qnsxx/a52q:11/RP1A.200720.012/A525FXXU4AUJ2:user/release-keys"

@ -23,7 +23,7 @@
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
#define BTM_DEF_LOCAL_NAME "Galaxy A52 4G"
#define BTM_DEF_LOCAL_NAME "Galaxy A52/A72 4G"
#define BLE_VND_INCLUDED TRUE
#define MAX_ACL_CONNECTIONS 16

@ -35,7 +35,6 @@ PRODUCT_PACKAGES += \
fstab.default \
fstab.default.ramdisk \
fstab.sqzr \
init.a52q.rc \
init.qcom.factory.rc \
init.qcom.rc \
init.qcom.usb.rc \

File diff suppressed because it is too large Load Diff

@ -6,6 +6,8 @@
enum device_variant {
VARIANT_A525F = 0,
VARIANT_A525M,
VARIANT_A725F,
VARIANT_A725M,
VARIANT_MAX
};
@ -19,14 +21,26 @@ static const variant international_models = {
.codename = "a52q"
};
static const variant international_models_a72 = {
.model = "SM-A725F",
.codename = "a72q"
};
static const variant america_models = {
.model = "SM-A525M",
.codename = "a52q"
};
static const variant america_models_a72 = {
.model = "SM-A725M",
.codename = "a72q"
};
static const variant *all_variants[VARIANT_MAX] = {
&international_models,
&america_models
&international_models_a72,
&america_models,
&america_models_a72
};
#endif // INIT_SEC_H

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2014, The Android Open Source Project
** Copyright 2021, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
@ -795,29 +795,6 @@
The user is forbidden from setting the brightness above this level. -->
<item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">1.0</item>
<!-- The bounding path of the cutout region of the main built-in display.
Must either be empty if there is no cutout region, or a string that is parsable by
{@link android.util.PathParser}.
The path is assumed to be specified in display coordinates with pixel units and in
the display's native orientation, with the origin of the coordinate system at the
center top of the display. Optionally, you can append either `@left` or `@right` to the
end of the path string, in order to change the path origin to either the top left,
or top right of the display.
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
appended after the path string to interpret coordinates in dp instead of px units.
Note that a physical cutout should be configured in pixels for the best results.
Example for a 10px x 10px square top-center cutout:
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z</string>
Example for a 10dp x 10dp square top-center cutout:
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z @dp</string>
@see https://www.w3.org/TR/SVG/paths.html#PathData
-->
<string translatable="false" name="config_mainBuiltInDisplayCutout">M 0,0 M 0,12.25101276465640 a 10.60613009248640,10.60613009248640 0 1,0 0,21.21226018497290 a 10.60613009248640,10.60613009248640 0 1,0 0,-21.21226018497290 Z @dp</string>
<!-- The default peak refresh rate for a given device. Change this value if you want to prevent
the framework from using higher refresh rates, even if display modes with higher refresh
rates are available from hardware composer. Only has an effect if the value is

@ -12,22 +12,6 @@ vendor/lib64/libadiertac.so
vendor/lib/libaudcal.so
vendor/lib64/libaudcal.so
vendor/etc/acdbdata/adsp_avs_config.acdb
vendor/etc/audconf/ODM/Global_cal.acdb
vendor/etc/audconf/ODM/Bluetooth_cal.acdb
vendor/etc/audconf/ODM/Headset_cal.acdb
vendor/etc/audconf/ODM/General_cal.acdb
vendor/etc/audconf/ODM/workspaceFile.qwsp
vendor/etc/audconf/ODM/Speaker_cal.acdb
vendor/etc/audconf/ODM/Hdmi_cal.acdb
vendor/etc/audconf/ODM/Handset_cal.acdb
vendor/etc/audconf/OPEN/Global_cal.acdb
vendor/etc/audconf/OPEN/Bluetooth_cal.acdb
vendor/etc/audconf/OPEN/Headset_cal.acdb
vendor/etc/audconf/OPEN/General_cal.acdb
vendor/etc/audconf/OPEN/workspaceFile.qwsp
vendor/etc/audconf/OPEN/Speaker_cal.acdb
vendor/etc/audconf/OPEN/Hdmi_cal.acdb
vendor/etc/audconf/OPEN/Handset_cal.acdb
# ADSP
vendor/bin/adsprpcd
@ -39,6 +23,9 @@ vendor/lib64/libadsprpc.so
# ADSP modules
vendor/lib/rfsa/adsp/libsnpe_dsp_v66_domains_v2_skel.so
vendor/lib64/libsnpe_dsp_domains_v2.so
vendor/lib64/libSNPE.so
vendor/lib64/libsnpe_wrapper.so
vendor/lib/rfsa/adsp/libdspCV_skel.so
vendor/lib/rfsa/adsp/libsns_device_mode_skel.so
vendor/lib64/rfsa/adsp/libsns_device_mode_skel.so
@ -56,12 +43,6 @@ vendor/lib/rfsa/adsp/libdsp_streamer_skel.so
vendor/lib/rfsa/adsp/libcamera_nn_skel.so
vendor/lib/rfsa/adsp/libcvpdsp_skel.so
vendor/lib/rfsa/adsp/libapps_mem_heap.so
vendor/lib/libsnpe_dsp_domains_v2.so
vendor/lib64/libsnpe_dsp_domains_v2.so
vendor/lib/libSNPE.so
vendor/lib/libsnpe_wrapper.so
vendor/lib64/libsnpe_wrapper.so
vendor/lib64/libSNPE.so
# Audio
vendor/lib/btaudio_offload_if.so
@ -246,8 +227,6 @@ vendor/lib64/libbthost_if.so
lib64/libaptX_encoder.so
# Bluetooth firmware
vendor/firmware/apbtfw11.tlv
vendor/firmware/crbtfw21.tlv
vendor/firmware/crnv21.b71
vendor/firmware/crnv21.bin
vendor/firmware/apnv11.bin
@ -294,7 +273,6 @@ vendor/lib/libscveObjectTracker.so
vendor/lib/libsmartfocusengine.so
vendor/lib/libjpegQtable_interface.so
vendor/lib/libdualcam_refocus_image.so
vendor/lib/libsec2qc_conversion.so
vendor/lib/libFacePreProcessing.camera.samsung.so
vendor/lib/libimagecodec_native.quram.so
vendor/lib/libarcsoft_stereodistancemeasure.so
@ -308,7 +286,6 @@ vendor/lib/libcamxfdengine.so
vendor/lib/libarcsoft_super_night_raw.so
vendor/lib/libjpegencoder_sw.unifunc.so
vendor/lib/hw/camera.unihal.default.so
vendor/lib/hw/com.samsung.chi.override.so
vendor/lib/hw/camera.qcom.so
vendor/lib/libbeautyshot.arcsoft.so
vendor/lib/libvideobeauty.arcsoft.so
@ -329,32 +306,20 @@ vendor/lib/camera/com.samsung.sensormodule.8_0_sony_imx616_full.bin
vendor/lib/camera/w_dual_calibration.bin
vendor/lib/camera/com.samsung.tuned.lsi_s5kgd2.bin
vendor/lib/camera/com.samsung.sensormodule.8_1_lsi_s5kgd2_full_otp.bin
vendor/lib/camera/uw_dual_calibration.bin
vendor/lib/camera/com.samsung.tuned.hynix_hi1336.bin
vendor/lib/camera/com.samsung.sensor.s5kgd2.so
vendor/lib/camera/com.samsung.sensor.imx616.so
vendor/lib/camera/com.samsung.sensormodule.4_0_lsi_gc5035_macro.bin
vendor/lib/camera/com.samsung.sensor.s5kgw1p.so
vendor/lib/camera/com.samsung.tuned.lsi_gc5035.bin
vendor/lib/camera/com.samsung.tuned.lsi_s5kgw1p.bin
vendor/lib/camera/com.samsung.sensor.gc5035_macro.so
vendor/lib/camera/com.samsung.sensormodule.1_0_sony_imx616.bin
vendor/lib/camera/com.samsung.sensormodule.0_0_sony_imx682.bin
vendor/lib/camera/com.samsung.tuned.sony_imx682.bin
vendor/lib/camera/com.samsung.tuned.sony_imx616.bin
vendor/lib/camera/com.samsung.sensormodule.4_1_lsi_dv_gc5035_macro_hw_2.bin
vendor/lib/camera/f_dual_calibration.bin
vendor/lib/camera/com.qti.eeprom.n24s64b_imx616.so
vendor/lib/camera/com.samsung.sensormodule.1_1_lsi_s5kgd2.bin
vendor/lib/camera/com.samsung.sensormodule.1_1_lsi_s5kgd2_otp.bin
vendor/lib/camera/com.samsung.sensormodule.3_lsi_gc5035.bin
vendor/lib/camera/ois_mcu_stm32g_fw.bin
vendor/lib/camera/com.samsung.sensormodule.0_1_lsi_s5kgw1p.bin
vendor/lib/camera/com.samsung.sensor.imx682.so
vendor/lib/camera/com.samsung.sensormodule.2_1_hynix_hi1336.bin
vendor/lib/camera/components/com.samsung.node.smooth_transition.so
vendor/lib/camera/components/com.qti.eisv3.so
vendor/lib/camera/components/com.samsung.node.uniplugin_recording.so
vendor/lib/camera/components/com.samsung.node.capture_fusion.so
vendor/lib/camera/components/com.qti.stats.pdlibwrapper.so
vendor/lib/camera/components/com.qti.stats.pdlib.so
@ -371,7 +336,6 @@ vendor/lib/camera/components/com.qti.stats.hafoverride.so
vendor/lib/camera/components/com.qti.node.fcv.so
vendor/lib/camera/components/com.samsung.node.uniplugin_preview.so
vendor/lib/camera/components/com.qti.node.memcpy.so
vendor/lib/camera/components/com.wrapper.stats.aec.so
vendor/lib/camera/components/com.samsung.node.bayercheck.so
vendor/lib/camera/components/com.qti.node.swregistration.so
vendor/lib/camera/components/com.samsung.node.uniplugin_capture.so
@ -385,7 +349,6 @@ vendor/lib/camera/components/libdepthmapwrapper.so
vendor/lib/camera/components/com.qti.stats.asd.so
vendor/lib/camera/components/com.wrapper.stats.af.so
vendor/lib/camera/components/com.qti.node.gpu.so
vendor/lib/camera/components/com.samsung.node.uniplugin_vdis.so
vendor/lib/camera/components/com.samsung.node.realtimebokeh.so
vendor/lib/camera/components/com.qti.node.dummysat.so
vendor/lib/camera/components/com.qtistatic.stats.aec.so
@ -399,17 +362,12 @@ vendor/lib/camera/components/com.qti.stats.afd.so
vendor/lib/camera/com.samsung.sensormodule.2_0_lsi_s5k3l6.bin
vendor/lib/camera/com.samsung.sensor.s5k3l6.so
vendor/lib/camera/com.samsung.tuned.lsi_gc5035_macro.bin
vendor/lib/camera/com.qti.eeprom.sec2qcconversion.so
vendor/lib/camera/com.samsung.tuned.lsi_s5k3l6.bin
vendor/lib/camera/com.samsung.sensor.hi1336.so
vendor/lib/camera/com.samsung.sensor.gc5035.so
vendor/lib/camera/com.samsung.sensormodule.0_1_lsi_s5kgw1p_otp.bin
vendor/lib/libsegmentationeffect.uniplugin@1.0.so
vendor/lib/libcamxfdalgov7.so
vendor/lib/libscveObjectTracker_stub.so
vendor/lib/libBeauty_v4.camera.samsung.so
vendor/lib/libhypermotion_core.so
vendor/lib/libvdis_interface.so
vendor/lib/libsensorlistener.so
vendor/lib/libvideobeauty_interface.so
vendor/lib/libpadm.so
@ -427,7 +385,6 @@ vendor/lib/libsmartfocus_interface.so
vendor/lib/libdualcam_optical_zoom_control.so
vendor/lib/libswregistrationalgo.so
vendor/lib/libhandgesture.arcsoft.so
vendor/lib/libface_landmark.arcsoft.so
vendor/lib/libcom.qti.chinodeutils.so
vendor/lib/liblivefocus_preview_engine.so
vendor/lib/libDualCamBokehCapture.camera.samsung.so
@ -456,7 +413,6 @@ vendor/lib64/libscveObjectTracker.so
vendor/lib64/libsmartfocusengine.so
vendor/lib64/libjpegQtable_interface.so
vendor/lib64/libdualcam_refocus_image.so
vendor/lib64/libsec2qc_conversion.so
vendor/lib64/libFacePreProcessing.camera.samsung.so
vendor/lib64/libimagecodec_native.quram.so
vendor/lib64/libHandGesture.camera.samsung.so
@ -470,7 +426,6 @@ vendor/lib64/libcamxfdengine.so
vendor/lib64/libarcsoft_super_night_raw.so
vendor/lib64/libjpegencoder_sw.unifunc.so
vendor/lib64/hw/camera.unihal.default.so
vendor/lib64/hw/com.samsung.chi.override.so
vendor/lib64/hw/camera.qcom.so
vendor/lib64/libbeautyshot.arcsoft.so
vendor/lib64/libvideobeauty.arcsoft.so
@ -491,27 +446,18 @@ vendor/lib64/camera/com.samsung.sensormodule.8_1_lsi_s5kgd2_full.bin
vendor/lib64/camera/com.samsung.sensormodule.8_0_sony_imx616_full.bin
vendor/lib64/camera/com.samsung.tuned.lsi_s5kgd2.bin
vendor/lib64/camera/com.samsung.sensormodule.8_1_lsi_s5kgd2_full_otp.bin
vendor/lib64/camera/com.samsung.tuned.hynix_hi1336.bin
vendor/lib64/camera/com.samsung.sensor.s5kgd2.so
vendor/lib64/camera/com.samsung.sensor.imx616.so
vendor/lib64/camera/com.samsung.sensormodule.4_0_lsi_gc5035_macro.bin
vendor/lib64/camera/com.samsung.sensor.s5kgw1p.so
vendor/lib64/camera/com.samsung.tuned.lsi_gc5035.bin
vendor/lib64/camera/com.samsung.tuned.lsi_s5kgw1p.bin
vendor/lib64/camera/com.samsung.sensor.gc5035_macro.so
vendor/lib64/camera/com.samsung.sensormodule.1_0_sony_imx616.bin
vendor/lib64/camera/com.samsung.sensormodule.0_0_sony_imx682.bin
vendor/lib64/camera/com.samsung.tuned.sony_imx682.bin
vendor/lib64/camera/com.samsung.tuned.sony_imx616.bin
vendor/lib64/camera/com.samsung.sensormodule.4_1_lsi_dv_gc5035_macro_hw_2.bin
vendor/lib64/camera/com.qti.eeprom.n24s64b_imx616.so
vendor/lib64/camera/com.samsung.sensormodule.1_1_lsi_s5kgd2.bin
vendor/lib64/camera/com.samsung.sensormodule.1_1_lsi_s5kgd2_otp.bin
vendor/lib64/camera/com.samsung.sensormodule.3_lsi_gc5035.bin
vendor/lib64/camera/com.samsung.sensormodule.0_1_lsi_s5kgw1p.bin
vendor/lib64/camera/com.samsung.sensor.imx682.so
vendor/lib64/camera/com.samsung.sensormodule.2_1_hynix_hi1336.bin
vendor/lib64/camera/components/com.samsung.node.smooth_transition.so
vendor/lib64/camera/components/com.qti.eisv3.so
vendor/lib64/camera/components/com.samsung.node.capture_fusion.so
vendor/lib64/camera/components/com.qti.stats.pdlibwrapper.so
@ -525,7 +471,6 @@ vendor/lib64/camera/components/com.qti.eisv2.so
vendor/lib64/camera/components/com.qti.stats.hafoverride.so
vendor/lib64/camera/components/com.qti.node.fcv.so
vendor/lib64/camera/components/com.qti.node.memcpy.so
vendor/lib64/camera/components/com.wrapper.stats.aec.so
vendor/lib64/camera/components/com.samsung.node.bayercheck.so
vendor/lib64/camera/components/com.qti.node.swregistration.so
vendor/lib64/camera/components/com.wrapper.stats.pdlib.so
@ -549,17 +494,13 @@ vendor/lib64/camera/com.samsung.sensormodule.2_0_lsi_s5k3l6.bin
vendor/lib64/camera/com.samsung.sensor.s5k3l6.so
vendor/lib64/camera/com.samsung.tuned.lsi_gc5035_macro.bin
vendor/lib64/camera/com.qti.eeprom.sec2qcconversion.so
vendor/lib64/camera/com.samsung.tuned.lsi_s5k3l6.bin
vendor/lib64/camera/com.samsung.sensor.hi1336.so
vendor/lib64/camera/com.samsung.sensor.gc5035.so
vendor/lib64/camera/com.samsung.sensormodule.0_1_lsi_s5kgw1p_otp.bin
vendor/lib64/libsegmentationeffect.uniplugin@1.0.so
vendor/lib64/libLocalTM_wrapper.camera.samsung.so
vendor/lib64/libcamxfdalgov7.so
vendor/lib64/libscveObjectTracker_stub.so
vendor/lib64/libBeauty_v4.camera.samsung.so
vendor/lib64/libhypermotion_core.so
vendor/lib64/libvdis_interface.so
vendor/lib64/libsensorlistener.so
vendor/lib64/libvideobeauty_interface.so
vendor/lib64/libpadm.so
@ -577,7 +518,6 @@ vendor/lib64/libsmartfocus_interface.so
vendor/lib64/libdualcam_optical_zoom_control.so
vendor/lib64/libswregistrationalgo.so
vendor/lib64/libhandgesture.arcsoft.so
vendor/lib64/libface_landmark.arcsoft.so
vendor/lib64/libcom.qti.chinodeutils.so
vendor/lib64/liblivefocus_preview_engine.so
vendor/lib64/libDualCamBokehCapture.camera.samsung.so
@ -671,8 +611,6 @@ vendor/lib/libsynaFpSensorTestNwd.so
vendor/lib64/libsynaFpSensorTestNwd.so
vendor/lib/libegis_fp_normal_sensor_test.so
vendor/lib64/libegis_fp_normal_sensor_test.so
vendor/lib/libgf_in_system_lib.so
vendor/lib64/libgf_in_system_lib.so
vendor/lib/libqfp_sensortest.so
vendor/lib64/libqfp_sensortest.so
@ -869,7 +807,6 @@ vendor/firmware/a618_gmu.bin
vendor/firmware/a630_gmu.bin
vendor/firmware/a630_sqe.fw
vendor/firmware/a640_gmu.bin
vendor/etc/qdcm_calib_data_ss_dsi_panel_S6E3FC3_AMS646YD04_FHD.xml
# HBTP
vendor/bin/hbtp_daemon
@ -941,7 +878,6 @@ vendor/lib64/libhexagon_nn_stub.so
vendor/lib64/unnhal-acc-hvx.so
vendor/lib64/unnhal-acc-adreno.so
vendor/lib64/unnhal-acc-common.so
vendor/lib/libhta.so
vendor/lib64/libhta.so
# NFC
@ -1177,9 +1113,6 @@ vendor/etc/init/vendor.sensors.sscrpcd.rc
vendor/etc/sensors/config/atoll_default_sensors.json
vendor/etc/sensors/config/atoll_dynamic_sensors.json
vendor/etc/sensors/config/atoll_lsm6dso_0.json
vendor/etc/sensors/config/atoll_qrd_ak991x_0.json
vendor/etc/sensors/config/atoll_qrd_ak991x_2.json
vendor/etc/sensors/config/atoll_qrd_ak991x_6.json
vendor/etc/sensors/config/atoll_qrd_lsm6dso_0.json
vendor/etc/sensors/config/atoll_qrd_stk31610_0.json
vendor/etc/sensors/config/sns_amd.json

@ -28,14 +28,6 @@ LOCAL_SRC_FILES := etc/fstab.sqzr
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.a52q.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.a52q.rc
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.qcom.factory.rc
LOCAL_MODULE_TAGS := optional

@ -1,105 +0,0 @@
# Copyright (c) 2013-2018,2020, 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.
#
#
on init
# setup cgroup freezer for freecess
mkdir /dev/freezer
mount cgroup none /dev/freezer freezer
mkdir /dev/freezer/frozen
mkdir /dev/freezer/thaw
write /dev/freezer/frozen/freezer.state FROZEN
write /dev/freezer/thaw/freezer.state THAWED
# MARs for freecess
chown system system /dev/freezer
chown system system /dev/freezer/frozen
chown system system /dev/freezer/frozen/tasks
chown system system /dev/freezer/frozen/cgroup.procs
chown system system /dev/freezer/frozen/freezer.state
chown system system /dev/freezer/thaw
chown system system /dev/freezer/thaw/tasks
chown system system /dev/freezer/thaw/cgroup.procs
# MARs for freecess
chmod 0644 /dev/freezer/frozen/tasks
chmod 0644 /dev/freezer/frozen/cgroup.procs
chmod 0644 /dev/freezer/frozen/freezer.state
chmod 0644 /dev/freezer/thaw/tasks
chmod 0644 /dev/freezer/thaw/cgroup.procs
# SDHMS Slowdown : Freezer
mkdir /dev/freezer/abnormal
write /dev/freezer/abnormal/freezer.state THAWED
chown system system /dev/freezer/abnormal
chown system system /dev/freezer/abnormal/tasks
chown system system /dev/freezer/abnormal/cgroup.procs
chown system system /dev/freezer/abnormal/freezer.state
chmod 0644 /dev/freezer/abnormal/tasks
chmod 0644 /dev/freezer/abnormal/cgroup.procs
chmod 0644 /dev/freezer/abnormal/freezer.state
on boot
# SDHMS Slowdown : Cpuset
mkdir /dev/cpuset/abnormal
write /dev/cpuset/abnormal/cpus 0-3
copy /dev/cpuset/mems /dev/cpuset/abnormal/mems
chown system system /dev/cpuset/abnormal
chown system system /dev/cpuset/abnormal/tasks
chown system system /dev/cpuset/abnormal/cpus
chmod 0664 /dev/cpuset/abnormal/tasks
chmod 0664 /dev/cpuset/abnormal/cpus
mkdir /dev/cpuset/moderate
write /dev/cpuset/moderate/cpus 0-2,4-6
copy /dev/cpuset/mems /dev/cpuset/moderate/mems
chown system system /dev/cpuset/moderate
chown system system /dev/cpuset/moderate/tasks
chown system system /dev/cpuset/moderate/cpus
chmod 0664 /dev/cpuset/moderate/tasks
chmod 0664 /dev/cpuset/moderate/cpus
# SSWAP
write /proc/sys/vm/swappiness 130
# SQZR
on property:sys.boot_completed=1
swapon_all /vendor/etc/fstab.sqzr
on property:sys.sysctl.zram_balance_ratio=*
write /sys/module/zram/parameters/zram_balance_ratio ${sys.sysctl.zram_balance_ratio}
on post-fs-data
# MST/NFC Switch
chmod 0660 /dev/mst_ctrl
# SSU (Samsung SIM Unlock)
on property:ro.boot.carrierid=MXO
setprop ssu.support 1

@ -27,7 +27,7 @@ source "${HELPER}"
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true
# Warning headers and guards
write_headers "a52q"
write_headers "a52q a72q"
write_makefiles "${MY_DIR}/proprietary-files.txt" true

Loading…
Cancel
Save