Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710 Merged-In: Ife2ff971eaeda2b132658ca2704bf1edde6fd80a Change-Id: Ic1617d8e3b1aac8c2acc2c483b1347431e911a1e
This commit is contained in:
commit
6ea7e8b035
91 changed files with 7788 additions and 6903 deletions
64
conf/Android.bp
Normal file
64
conf/Android.bp
Normal file
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* Copyright (C) 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.
|
||||
* 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.
|
||||
*/
|
||||
|
||||
// By default this device uses hardware-wrapped keys for storage encryption,
|
||||
// which is intended to offer increased security over the traditional method
|
||||
// (software keys). However, hardware-wrapped keys aren't compatible with
|
||||
// FIPS-140 certification of the encryption hardware, and hence we have to
|
||||
// disable the use of them in FIPS mode. This requires having two fstab files:
|
||||
// one for the default mode, and one for FIPS mode selectable via
|
||||
// androidboot.fstab_suffix on the kernel command line. These fstabs should be
|
||||
// identical with the exception of the encryption settings, so to keep them in
|
||||
// sync the rules below generate them from a template file.
|
||||
|
||||
package {
|
||||
// See: http://go/android-license-faq
|
||||
// A large-scale-change added 'default_applicable_licenses' to import
|
||||
// all of the 'license_kinds' from "device_google_gs101_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["device_google_gs101_license"],
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen_fstab.gs101",
|
||||
srcs: ["fstab.gs101.in"],
|
||||
out: ["fstab.gs101"],
|
||||
cmd: "sed -e s/@fileencryption@/::inlinecrypt_optimized+wrappedkey_v0/" +
|
||||
" -e s/@metadata_encryption@/:wrappedkey_v0/ $(in) > $(out)",
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "gen_fstab.gs101-fips",
|
||||
srcs: ["fstab.gs101.in"],
|
||||
out: ["fstab.gs101-fips"],
|
||||
cmd: "sed -e s/@fileencryption@/aes-256-xts/" +
|
||||
" -e s/@metadata_encryption@/aes-256-xts/ $(in) > $(out)",
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "fstab.gs101",
|
||||
src: ":gen_fstab.gs101",
|
||||
vendor: true,
|
||||
vendor_ramdisk_available: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "fstab.gs101-fips",
|
||||
src: ":gen_fstab.gs101-fips",
|
||||
vendor: true,
|
||||
vendor_ramdisk_available: true,
|
||||
}
|
|
@ -5,9 +5,9 @@
|
|||
#
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
system /system ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128
|
||||
system_ext /system_ext ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
|
||||
product /product ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
|
||||
vendor /vendor ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_vendor,logical,first_stage_mount
|
||||
system_ext /system_ext ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128
|
||||
product /product ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128
|
||||
vendor /vendor ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_vendor,logical,first_stage_mount,readahead_size_kb=128
|
||||
vendor_dlkm /vendor_dlkm ext4 ro,barrier=1 wait,slotselect,avb=vbmeta,logical,first_stage_mount
|
||||
/dev/block/platform/14700000.ufs/by-name/boot /boot emmc defaults slotselect,avb=boot,first_stage_mount
|
||||
/dev/block/platform/14700000.ufs/by-name/efs /mnt/vendor/efs ext4 defaults,noatime,rw wait,check,formattable
|
||||
|
@ -17,7 +17,6 @@ vendor_dlkm /vendor_dlkm
|
|||
/dev/block/platform/14700000.ufs/by-name/misc /misc emmc defaults wait
|
||||
/dev/block/platform/14700000.ufs/by-name/metadata /metadata ext4 noatime,nosuid,nodev,data=journal,commit=1 wait,check,formattable,first_stage_mount,metadata_csum
|
||||
/dev/block/platform/14700000.ufs/by-name/pvmfw /pvmfw emmc defaults wait,slotselect,avb=pvmfw,first_stage_mount
|
||||
/dev/block/platform/14700000.ufs/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier,inlinecrypt,compress_extension=apk,compress_extension=apex,compress_extension=so,atgc,checkpoint_merge latemount,wait,check,quota,formattable,sysfs_path=/dev/sys/block/bootdevice,checkpoint=fs,reservedsize=128M,fileencryption=::inlinecrypt_optimized+wrappedkey_v0,metadata_encryption=:wrappedkey_v0,keydirectory=/metadata/vold/metadata_encryption,fscompress,readahead_size_kb=128
|
||||
/dev/block/platform/14700000.ufs/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier,inlinecrypt,compress_extension=apk,compress_extension=apex,compress_extension=so,atgc,checkpoint_merge latemount,wait,check,quota,formattable,sysfs_path=/dev/sys/block/bootdevice,checkpoint=fs,reservedsize=128M,fileencryption=@fileencryption@,metadata_encryption=@metadata_encryption@,keydirectory=/metadata/vold/metadata_encryption,fscompress,readahead_size_kb=128
|
||||
/dev/block/platform/14700000.ufs/by-name/vbmeta /vbmeta emmc defaults slotselect,first_stage_mount
|
||||
/dev/block/zram0 none swap defaults zramsize=3221225472,max_comp_streams=8,zram_backingdev_size=512M
|
||||
/devices/platform/11110000.usb* auto vfat defaults voldmanaged=usb:auto
|
|
@ -82,10 +82,6 @@ on init
|
|||
# Property used by NFC for sku specific configurations
|
||||
setprop ro.boot.product.hardware.sku ${ro.boot.hardware.sku}
|
||||
|
||||
# NFC streset tool name
|
||||
setprop persist.vendor.nfc.streset libstreset21
|
||||
setprop persist.vendor.se.streset libstreset21
|
||||
|
||||
# Support legacy paths
|
||||
symlink /data/app /factory
|
||||
|
||||
|
@ -121,11 +117,11 @@ on init
|
|||
mkdir /dev/socket/pdx/system/vr/sensors 0775 system system
|
||||
|
||||
# Boot time 183626384
|
||||
write /sys/kernel/vendor_sched/ta_uclamp_min 308
|
||||
write /sys/kernel/vendor_sched/ta_uclamp_min 1024
|
||||
write /sys/kernel/vendor_sched/ta_prefer_idle 1
|
||||
write /sys/kernel/vendor_sched/fg_uclamp_min 308
|
||||
write /sys/kernel/vendor_sched/fg_uclamp_min 1024
|
||||
write /sys/kernel/vendor_sched/fg_prefer_idle 1
|
||||
write /sys/kernel/vendor_sched/sys_uclamp_min 308
|
||||
write /sys/kernel/vendor_sched/sys_uclamp_min 1024
|
||||
write /sys/kernel/vendor_sched/sys_prefer_idle 1
|
||||
|
||||
# governor setting
|
||||
|
@ -182,6 +178,9 @@ on init
|
|||
chown system system /dev/logbuffer_maxfg
|
||||
chown system system /dev/logbuffer_maxfg_base
|
||||
chown system system /dev/logbuffer_maxfg_flip
|
||||
chown system system /dev/logbuffer_maxfg_monitor
|
||||
chown system system /dev/logbuffer_maxfg_base_monitor
|
||||
chown system system /dev/logbuffer_maxfg_flip_monitor
|
||||
chown system system /dev/logbuffer_maxq
|
||||
chown system system /dev/logbuffer_google,cpm
|
||||
chown system system /dev/logbuffer_rtx
|
||||
|
@ -241,6 +240,9 @@ on init
|
|||
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_trickle_reset_sec
|
||||
chown system system /sys/devices/platform/google,battery/power_supply/battery/bd_clear
|
||||
chown system system /sys/devices/platform/google,battery/power_supply/battery/health_safety_margin
|
||||
chown system system /sys/devices/platform/google,battery/power_supply/battery/aacr_state
|
||||
chown system system /sys/devices/platform/google,battery/power_supply/battery/aacr_cycle_max
|
||||
chown system system /sys/devices/platform/google,battery/power_supply/battery/aacr_cycle_grace
|
||||
chown system system /sys/devices/platform/google,charger/bd_drainto_soc
|
||||
chown system system /sys/devices/platform/google,charger/bd_recharge_soc
|
||||
chown system system /sys/devices/platform/google,charger/bd_recharge_voltage
|
||||
|
@ -281,10 +283,10 @@ on init
|
|||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu1_memlat@17000010/mem_latency/ratio_ceil 400
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu2_memlat@17000010/mem_latency/ratio_ceil 400
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu3_memlat@17000010/mem_latency/ratio_ceil 400
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu4_memlat@17000010/mem_latency/ratio_ceil 400
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu5_memlat@17000010/mem_latency/ratio_ceil 400
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu6_memlat@17000010/mem_latency/ratio_ceil 800
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu7_memlat@17000010/mem_latency/ratio_ceil 800
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu4_memlat@17000010/mem_latency/ratio_ceil 2700
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu5_memlat@17000010/mem_latency/ratio_ceil 2700
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu6_memlat@17000010/mem_latency/ratio_ceil 3200
|
||||
write /sys/class/devfreq/gs_memlat_devfreq:devfreq_mif_cpu7_memlat@17000010/mem_latency/ratio_ceil 3200
|
||||
|
||||
# For GKI kernel, no device specific modules
|
||||
on init
|
||||
|
@ -310,7 +312,7 @@ on late-fs
|
|||
class_start animation
|
||||
|
||||
# Mount RW partitions which need run fsck
|
||||
mount_all /vendor/etc/fstab.gs101 --late
|
||||
mount_all --late
|
||||
|
||||
on post-fs-data
|
||||
# Log data folder
|
||||
|
@ -504,7 +506,7 @@ on property:persist.vendor.radio.no_modem_board=1
|
|||
setprop ro.radio.noril yes
|
||||
|
||||
on fs
|
||||
mount_all /vendor/etc/fstab.gs101 --early
|
||||
mount_all --early
|
||||
restorecon_recursive /mnt/vendor/efs
|
||||
chown radio system /mnt/vendor/efs
|
||||
restorecon_recursive /mnt/vendor/efs_backup
|
||||
|
@ -540,6 +542,8 @@ on fs
|
|||
chown system system /sys/class/backlight/panel0-backlight/hbm_mode
|
||||
chown system system /sys/class/backlight/panel0-backlight/local_hbm_mode
|
||||
chown system system /sys/devices/platform/exynos-drm/primary-panel/gamma
|
||||
chown system system /sys/devices/platform/exynos-drm/primary-panel/min_vrefresh
|
||||
chown system system /sys/devices/platform/exynos-drm/primary-panel/idle_delay_ms
|
||||
chown system system /sys/module/drm/parameters/vblankoffdelay
|
||||
chown system system /sys/class/dqe/atc/ambient_light
|
||||
chown system system /sys/class/dqe/atc/st
|
||||
|
@ -684,6 +688,8 @@ on property:sys.boot_completed=1
|
|||
chown system system /dev/sys/fs/by-name/userdata/compr_written_block
|
||||
chown system system /dev/sys/fs/by-name/userdata/compr_saved_block
|
||||
chown system system /dev/sys/fs/by-name/userdata/compr_new_inode
|
||||
chown system system /dev/sys/fs/by-name/userdata/gc_segment_mode
|
||||
chown system system /dev/sys/fs/by-name/userdata/gc_reclaimed_segments
|
||||
|
||||
# Block layer tuning: discard chunk size up to 128MB
|
||||
# Otherwise, contiguous discards can be merged
|
||||
|
@ -712,12 +718,18 @@ on property:sys.boot_completed=1
|
|||
# Setup final cpu.uclamp
|
||||
write /sys/kernel/vendor_sched/ta_uclamp_min 1
|
||||
write /sys/kernel/vendor_sched/fg_uclamp_min 0
|
||||
write /sys/kernel/vendor_sched/bg_uclamp_max 615
|
||||
write /sys/kernel/vendor_sched/sys_prefer_idle 0
|
||||
# cfs_rq clamp is using tg->uclamp setting
|
||||
# align it with the vendor_group setting
|
||||
write /dev/cpuctl/background/cpu.uclamp.max 60
|
||||
write /sys/kernel/vendor_sched/bg_group_throttle 615
|
||||
write /sys/kernel/vendor_sched/bg_uclamp_max 512
|
||||
write /dev/cpuctl/background/cpu.uclamp.max 50
|
||||
write /sys/kernel/vendor_sched/bg_group_throttle 512
|
||||
write /sys/kernel/vendor_sched/sysbg_uclamp_max 512
|
||||
write /dev/cpuctl/system-background/cpu.uclamp.max 50
|
||||
write /sys/kernel/vendor_sched/sysbg_group_throttle 512
|
||||
write /sys/kernel/vendor_sched/dex2oat_uclamp_max 615
|
||||
write /dev/cpuctl/dex2oat/cpu.uclamp.max 60
|
||||
write /sys/kernel/vendor_sched/dex2oat_group_throttle 615
|
||||
|
||||
# Setup groups for SF (RT used for SF RE, SF used for SF main)
|
||||
write /sys/kernel/vendor_sched/rt_uclamp_min 125
|
||||
|
@ -725,15 +737,16 @@ on property:sys.boot_completed=1
|
|||
write /sys/kernel/vendor_sched/sf_uclamp_min 30
|
||||
write /sys/kernel/vendor_sched/sf_prefer_idle 1
|
||||
|
||||
# Setup cpu.shares to throttle background group at 5%
|
||||
# Setup cpu.shares to throttle background groups (bg ~ 5% sysbg ~ 5% dex2oat ~2.5%)
|
||||
write /dev/cpuctl/background/cpu.shares 1024
|
||||
write /dev/cpuctl/system-background/cpu.shares 1024
|
||||
write /dev/cpuctl/dex2oat/cpu.shares 512
|
||||
write /dev/cpuctl/system/cpu.shares 20480
|
||||
# We only have system and background groups holding tasks and the groups below are empty
|
||||
write /dev/cpuctl/camera-daemon/cpu.shares 20480
|
||||
write /dev/cpuctl/foreground/cpu.shares 20480
|
||||
write /dev/cpuctl/nnapi-hal/cpu.shares 20480
|
||||
write /dev/cpuctl/rt/cpu.shares 20480
|
||||
write /dev/cpuctl/system-background/cpu.shares 20480
|
||||
write /dev/cpuctl/top-app/cpu.shares 20480
|
||||
|
||||
# gvotables for dumpstate
|
||||
|
@ -772,6 +785,10 @@ on property:persist.sys.test_harness=1 && property:persist.vendor.testing_batte
|
|||
setprop persist.vendor.charge.start.level 0
|
||||
setprop vendor.battery.defender.disable 1
|
||||
|
||||
# ACA (Adaptice Charge Always On) persist properties
|
||||
on property:persist.vendor.adaptive.charge.soc=*
|
||||
write /sys/class/power_supply/battery/charge_limit ${persist.vendor.adaptive.charge.soc}
|
||||
|
||||
service insmod_sh_common /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.gs101.cfg
|
||||
class main
|
||||
user root
|
||||
|
@ -850,9 +867,13 @@ on property:vendor.thermal.link_ready=1
|
|||
write /dev/thermal/tz-by-name/soft_ocp_gpu/policy user_space
|
||||
write /dev/thermal/tz-by-name/soc/policy user_space
|
||||
write /dev/thermal/tz-by-name/batoilo/policy user_space
|
||||
write /sys/devices/virtual/pmic/mitigation/triggered_lvl/smpl_lvl 3100
|
||||
write /sys/devices/virtual/pmic/mitigation/triggered_lvl/soft_ocp_cpu2_lvl 9000
|
||||
write /sys/devices/virtual/pmic/mitigation/triggered_lvl/soft_ocp_gpu_lvl 9000
|
||||
write /sys/devices/virtual/pmic/mitigation/triggered_lvl/soft_ocp_tpu_lvl 8500
|
||||
write /sys/devices/virtual/pmic/mitigation/clock_div/tpu_clk_div 0x201
|
||||
write /sys/devices/virtual/pmic/mitigation/clock_div/gpu_clk_div 0x801
|
||||
write /sys/devices/virtual/pmic/mitigation/clock_div/cpu2_clk_div 0x801
|
||||
chown system system /dev/thermal/tz-by-name/soc/mode
|
||||
chown system system /dev/thermal/tz-by-name/batoilo/trip_point_0_temp
|
||||
chown system system /dev/thermal/tz-by-name/batoilo/trip_point_0_hyst
|
||||
|
|
|
@ -68,6 +68,9 @@ on early-boot
|
|||
# etr_miu function
|
||||
mkdir /config/usb_gadget/g1/functions/etr_miu.gs11
|
||||
|
||||
# acm function for uwb
|
||||
mkdir /config/usb_gadget/g1/functions/acm.uwb0
|
||||
|
||||
setprop vendor.usb.functions.ready 1
|
||||
|
||||
on boot
|
||||
|
@ -120,3 +123,6 @@ on property:sys.usb.config=charger && property:sys.usb.configfs=1
|
|||
|
||||
on property:vendor.usb.contaminantdisable=true
|
||||
exec /vendor/bin/hw/disable_contaminant_detection.sh
|
||||
|
||||
on property:ro.bootmode=usbuwb
|
||||
setprop persist.vendor.usb.usbradio.config uwb_acm
|
||||
|
|
|
@ -209,3 +209,7 @@
|
|||
|
||||
# Direct Charging
|
||||
/dev/logbuffer_pca9468_tcpm 0600 system system
|
||||
|
||||
# Raw HID devices
|
||||
/dev/hidraw* 0660 system system
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue