Merge Android 12 QPR3 ab/8391262
Bug: 226662282 Merged-In: I56e2296651999e37048f8be4c53d7c5b9281666f Change-Id: I53581f8c0cd4d3e220faf53468f4d571cb823f4c
This commit is contained in:
commit
2201804c6b
18 changed files with 6246 additions and 7505 deletions
|
@ -522,6 +522,7 @@ on fs
|
||||||
restorecon_recursive /mnt/vendor/persist/audio
|
restorecon_recursive /mnt/vendor/persist/audio
|
||||||
restorecon_recursive /mnt/vendor/persist/sensors
|
restorecon_recursive /mnt/vendor/persist/sensors
|
||||||
restorecon_recursive /mnt/vendor/persist/battery
|
restorecon_recursive /mnt/vendor/persist/battery
|
||||||
|
restorecon_recursive /mnt/vendor/persist/modem
|
||||||
# Set up display-related directories and permissions
|
# Set up display-related directories and permissions
|
||||||
# Add restorecon_recursive command to make sure the restorecon label is persist_display_file.
|
# Add restorecon_recursive command to make sure the restorecon label is persist_display_file.
|
||||||
restorecon_recursive /mnt/vendor/persist/display
|
restorecon_recursive /mnt/vendor/persist/display
|
||||||
|
@ -854,6 +855,11 @@ on post-fs-data
|
||||||
|
|
||||||
on property:vendor.thermal.link_ready=1
|
on property:vendor.thermal.link_ready=1
|
||||||
# BCL
|
# BCL
|
||||||
|
write /sys/devices/virtual/pmic/mitigation/clock_ratio/tpu_light_clk_ratio 0xfff041c5
|
||||||
|
write /sys/devices/virtual/pmic/mitigation/clock_ratio/cpu2_light_clk_ratio 0xfff041c5
|
||||||
|
write /sys/devices/virtual/pmic/mitigation/clock_ratio/gpu_heavy_clk_ratio 0xfff04385
|
||||||
|
write /sys/devices/virtual/pmic/mitigation/clock_ratio/tpu_heavy_clk_ratio 0xfff041c3
|
||||||
|
write /sys/devices/virtual/pmic/mitigation/clock_ratio/cpu2_heavy_clk_ratio 0xfff041c3
|
||||||
write /dev/thermal/tz-by-name/smpl_gm/policy user_space
|
write /dev/thermal/tz-by-name/smpl_gm/policy user_space
|
||||||
write /dev/thermal/tz-by-name/vdroop1/policy user_space
|
write /dev/thermal/tz-by-name/vdroop1/policy user_space
|
||||||
write /dev/thermal/tz-by-name/vdroop2/policy user_space
|
write /dev/thermal/tz-by-name/vdroop2/policy user_space
|
||||||
|
|
|
@ -940,7 +940,8 @@ PRODUCT_PACKAGES += \
|
||||||
audio.r_submix.default \
|
audio.r_submix.default \
|
||||||
libamcsextfile \
|
libamcsextfile \
|
||||||
audio_amcs_ext \
|
audio_amcs_ext \
|
||||||
|
libspatialaudio \
|
||||||
|
librondo
|
||||||
|
|
||||||
#Audio Vendor libraries
|
#Audio Vendor libraries
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
@ -973,6 +974,10 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
ro.audio.monitorRotation = true \
|
ro.audio.monitorRotation = true \
|
||||||
ro.audio.offload_wakelock=false
|
ro.audio.offload_wakelock=false
|
||||||
|
|
||||||
|
# declare use of spatial audio
|
||||||
|
# PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
|
# ro.audio.spatializer_enabled=true
|
||||||
|
|
||||||
ifeq (,$(filter aosp_%,$(TARGET_PRODUCT)))
|
ifeq (,$(filter aosp_%,$(TARGET_PRODUCT)))
|
||||||
# IAudioMetricExt HIDL
|
# IAudioMetricExt HIDL
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
|
|
@ -487,6 +487,10 @@ void DumpstateDevice::dumpThermalSection(int fd) {
|
||||||
"for f in /sys/class/thermal/cooling* ; do "
|
"for f in /sys/class/thermal/cooling* ; do "
|
||||||
"type=`cat $f/type` ; temp=`cat $f/cur_state` ; echo \"$type: $temp\" ; "
|
"type=`cat $f/type` ; temp=`cat $f/cur_state` ; echo \"$type: $temp\" ; "
|
||||||
"done"});
|
"done"});
|
||||||
|
RunCommandToFd(fd, "Cooling Device Time in State", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/cooling* ; "
|
||||||
|
"do type=`cat $f/type` ; temp=`cat $f/stats/time_in_state_ms` ; echo \"$type:\n$temp\" ; done"});
|
||||||
|
RunCommandToFd(fd, "Cooling Device Trans Table", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/cooling* ; "
|
||||||
|
"do type=`cat $f/type` ; temp=`cat $f/stats/trans_table` ; echo \"$type:\n$temp\" ; done"});
|
||||||
RunCommandToFd(fd, "Cooling Device State2Power Table", {"/vendor/bin/sh", "-c",
|
RunCommandToFd(fd, "Cooling Device State2Power Table", {"/vendor/bin/sh", "-c",
|
||||||
"for f in /sys/class/thermal/cooling* ; do "
|
"for f in /sys/class/thermal/cooling* ; do "
|
||||||
"type=`cat $f/type` ; state2power_table=`cat $f/state2power_table` ; echo \"$type: $state2power_table\" ; "
|
"type=`cat $f/type` ; state2power_table=`cat $f/state2power_table` ; echo \"$type: $state2power_table\" ; "
|
||||||
|
|
15
fingerprint/extension/Android.bp
Normal file
15
fingerprint/extension/Android.bp
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
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"],
|
||||||
|
}
|
||||||
|
|
||||||
|
sh_binary {
|
||||||
|
name: "fingerprint.extension.sh",
|
||||||
|
init_rc: ["init.fingerprint.extension.rc"],
|
||||||
|
src: "fingerprint.extension.sh",
|
||||||
|
system_ext_specific: true,
|
||||||
|
}
|
11
fingerprint/extension/fingerprint.extension.mk
Normal file
11
fingerprint/extension/fingerprint.extension.mk
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Fingerprint extension feature
|
||||||
|
ifneq (,$(filter userdebug, $(TARGET_BUILD_VARIANT)))
|
||||||
|
SOONG_CONFIG_fp_hal_feature += report_bug_support
|
||||||
|
SOONG_CONFIG_fp_hal_feature_report_bug_support := true
|
||||||
|
BOARD_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/fingerprint-extension/vendor/
|
||||||
|
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/fingerprint-extension/system_ext/public/
|
||||||
|
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/fingerprint-extension/system_ext/private/
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
fps_ext_bug_lib \
|
||||||
|
fingerprint.extension.sh
|
||||||
|
endif
|
63
fingerprint/extension/fingerprint.extension.sh
Normal file
63
fingerprint/extension/fingerprint.extension.sh
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
#!/system/bin/sh
|
||||||
|
|
||||||
|
# BetterBug required fields
|
||||||
|
am='am start -a com.google.android.apps.betterbug.intent.FILE_BUG_DEEPLINK --ez EXTRA_DEEPLINK true '
|
||||||
|
issueTitle=' --es EXTRA_ISSUE_TITLE '
|
||||||
|
additionalComment=' --es EXTRA_ADDITIONAL_COMMENT '
|
||||||
|
componentId=' --el EXTRA_COMPONENT_ID '
|
||||||
|
requireBugReport=' --ez EXTRA_REQUIRE_BUGREPORT '
|
||||||
|
bugAssign=' --es EXTRA_BUG_ASSIGNEE '
|
||||||
|
ccGroup=' --es EXTRA_CC '
|
||||||
|
|
||||||
|
# BetterBug title
|
||||||
|
kAuthTitle="UDFPS Fingerprint authentication has high failed rate"
|
||||||
|
kLockoutTitle="UDFPS Fingerprint has too many lockout counts"
|
||||||
|
kLatencyTitle="UDFPS Fingerprint took long to unlock device"
|
||||||
|
|
||||||
|
# BetterBug context comment
|
||||||
|
kAuthComment="This bug is auto created by fingerprint HAL to track fingerprint authentication"
|
||||||
|
kLockoutComment="This bug is auto created by fingerprint HAL to track fingerprint lockout"
|
||||||
|
kLatencyComment="This bug is auto created by fingerprint HAL to track fingerprint latency"
|
||||||
|
|
||||||
|
# BetterBug assign & CC owner
|
||||||
|
kBugAssign='udfps_data_study@google.com'
|
||||||
|
kCcGroup='eddielan@google.com'
|
||||||
|
kComponentId='817555'
|
||||||
|
|
||||||
|
# Command to send intent to BetterBug
|
||||||
|
commonCommand="$componentId ${kComponentId//\ /\\ }
|
||||||
|
$requireBugReport true
|
||||||
|
$bugAssign ${kBugAssign//\ /\\ }
|
||||||
|
$ccGroup ${kCcGroup//\ /\\ }"
|
||||||
|
authCommand="$am $issueTitle ${kAuthTitle//\ /\\ }
|
||||||
|
$additionalComment ${kAuthComment//\ /\\ }"
|
||||||
|
lockoutCommand="$am $issueTitle ${kLockoutTitle//\ /\\ }
|
||||||
|
$additionalComment ${kLockoutComment//\ /\\ }"
|
||||||
|
latencyCommand="$am $issueTitle ${kLatencyTitle//\ /\\ }
|
||||||
|
$additionalComment ${kLatencyComment//\ /\\ }"
|
||||||
|
|
||||||
|
# Type of bug being triggered
|
||||||
|
# 1. Latency
|
||||||
|
# 2. Lockout
|
||||||
|
# 3. Finerprint authentication(FRR)
|
||||||
|
bug_type="$1"
|
||||||
|
|
||||||
|
send=1
|
||||||
|
if [ "$bug_type" == "latency" ]; then
|
||||||
|
intentCommand="$latencyCommand $commonCommand"
|
||||||
|
elif [ "$bug_type" == "lockout" ]; then
|
||||||
|
intentCommand="$lockoutCommand $commonCommand"
|
||||||
|
elif [ "$bug_type" == "auth" ]; then
|
||||||
|
intentCommand="$authCommand $commonCommand"
|
||||||
|
else
|
||||||
|
send=0
|
||||||
|
echo "Unknown bug_type $bug_type"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $send -eq 1 ]
|
||||||
|
then
|
||||||
|
eval $intentCommand
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Exit
|
||||||
|
exit 0
|
19
fingerprint/extension/init.fingerprint.extension.rc
Normal file
19
fingerprint/extension/init.fingerprint.extension.rc
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# init-fingerprint-extension-sh is to send intent command to app
|
||||||
|
# for tracking fingerprint issue.
|
||||||
|
service fingerprint-extension-bug-latency /system_ext/bin/fingerprint.extension.sh latency
|
||||||
|
group shell
|
||||||
|
user shell
|
||||||
|
disabled
|
||||||
|
oneshot
|
||||||
|
|
||||||
|
service fingerprint-extension-bug-lockout /system_ext/bin/fingerprint.extension.sh lockout
|
||||||
|
group shell
|
||||||
|
user shell
|
||||||
|
disabled
|
||||||
|
oneshot
|
||||||
|
|
||||||
|
service fingerprint-extension-bug-auth /system_ext/bin/fingerprint.extension.sh auth
|
||||||
|
group shell
|
||||||
|
user shell
|
||||||
|
disabled
|
||||||
|
oneshot
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
@ -115,7 +115,7 @@
|
||||||
<Limit name="size" min="64x64" max="3840x2176" />
|
<Limit name="size" min="64x64" max="3840x2176" />
|
||||||
<Limit name="alignment" value="2x2" />
|
<Limit name="alignment" value="2x2" />
|
||||||
<Limit name="block-size" value="64x64" />
|
<Limit name="block-size" value="64x64" />
|
||||||
<Limit name="block-count" range="1-2025" />
|
<Limit name="block-count" range="1-2040" />
|
||||||
<Limit name="blocks-per-second" min="1" max="3888000" />
|
<Limit name="blocks-per-second" min="1" max="3888000" />
|
||||||
<Limit name="bitrate" range="1-80000000" />
|
<Limit name="bitrate" range="1-80000000" />
|
||||||
<Limit name="performance-point-1280x720" range="240" />
|
<Limit name="performance-point-1280x720" range="240" />
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
<Limit name="size" min="64x64" max="3840x2176" />
|
<Limit name="size" min="64x64" max="3840x2176" />
|
||||||
<Limit name="alignment" value="2x2" />
|
<Limit name="alignment" value="2x2" />
|
||||||
<Limit name="block-size" value="64x64" />
|
<Limit name="block-size" value="64x64" />
|
||||||
<Limit name="block-count" range="1-2025" />
|
<Limit name="block-count" range="1-2040" />
|
||||||
<Limit name="blocks-per-second" min="1" max="3888000" />
|
<Limit name="blocks-per-second" min="1" max="3888000" />
|
||||||
<Limit name="bitrate" range="1-80000000" />
|
<Limit name="bitrate" range="1-80000000" />
|
||||||
<Limit name="performance-point-1280x720" range="240" />
|
<Limit name="performance-point-1280x720" range="240" />
|
||||||
|
@ -158,7 +158,7 @@
|
||||||
<Limit name="size" min="64x64" max="3840x2176" />
|
<Limit name="size" min="64x64" max="3840x2176" />
|
||||||
<Limit name="alignment" value="2x2" />
|
<Limit name="alignment" value="2x2" />
|
||||||
<Limit name="block-size" value="32x32" />
|
<Limit name="block-size" value="32x32" />
|
||||||
<Limit name="block-count" range="1-8100" />
|
<Limit name="block-count" range="1-8160" />
|
||||||
<Limit name="blocks-per-second" min="1" max="979200" />
|
<Limit name="blocks-per-second" min="1" max="979200" />
|
||||||
<Limit name="bitrate" range="1-120000000" />
|
<Limit name="bitrate" range="1-120000000" />
|
||||||
<Limit name="performance-point-1280x720" range="240" />
|
<Limit name="performance-point-1280x720" range="240" />
|
||||||
|
@ -209,7 +209,7 @@
|
||||||
<Limit name="size" min="64x64" max="3840x2176" />
|
<Limit name="size" min="64x64" max="3840x2176" />
|
||||||
<Limit name="alignment" value="2x2" />
|
<Limit name="alignment" value="2x2" />
|
||||||
<Limit name="block-size" value="64x64" />
|
<Limit name="block-size" value="64x64" />
|
||||||
<Limit name="block-count" range="1-2025" />
|
<Limit name="block-count" range="1-2040" />
|
||||||
<Limit name="blocks-per-second" min="1" max="243000" />
|
<Limit name="blocks-per-second" min="1" max="243000" />
|
||||||
<Limit name="bitrate" range="1-80000000" />
|
<Limit name="bitrate" range="1-80000000" />
|
||||||
<Limit name="performance-point-1280x720" range="240" />
|
<Limit name="performance-point-1280x720" range="240" />
|
||||||
|
|
1302
powerhint.json
1302
powerhint.json
File diff suppressed because it is too large
Load diff
|
@ -3,14 +3,6 @@
|
||||||
{
|
{
|
||||||
"Name": "MaxPerformance",
|
"Name": "MaxPerformance",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
{
|
|
||||||
"Name": "JoinCgroup",
|
|
||||||
"Params":
|
|
||||||
{
|
|
||||||
"Controller": "cpu",
|
|
||||||
"Path": "system"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Name": "WriteFile",
|
"Name": "WriteFile",
|
||||||
"Params":
|
"Params":
|
||||||
|
@ -25,14 +17,6 @@
|
||||||
{
|
{
|
||||||
"Name": "CameraServicePerformance",
|
"Name": "CameraServicePerformance",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
{
|
|
||||||
"Name": "JoinCgroup",
|
|
||||||
"Params":
|
|
||||||
{
|
|
||||||
"Controller": "cpu",
|
|
||||||
"Path": "system"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Name": "WriteFile",
|
"Name": "WriteFile",
|
||||||
"Params":
|
"Params":
|
||||||
|
@ -47,14 +31,6 @@
|
||||||
{
|
{
|
||||||
"Name": "CameraServicePower",
|
"Name": "CameraServicePower",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
{
|
|
||||||
"Name": "JoinCgroup",
|
|
||||||
"Params":
|
|
||||||
{
|
|
||||||
"Controller": "cpu",
|
|
||||||
"Path": "system"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Name": "WriteFile",
|
"Name": "WriteFile",
|
||||||
"Params":
|
"Params":
|
||||||
|
@ -69,14 +45,6 @@
|
||||||
{
|
{
|
||||||
"Name": "Dex2oatPerformance",
|
"Name": "Dex2oatPerformance",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
{
|
|
||||||
"Name": "JoinCgroup",
|
|
||||||
"Params":
|
|
||||||
{
|
|
||||||
"Controller": "cpu",
|
|
||||||
"Path": "system"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Name": "WriteFile",
|
"Name": "WriteFile",
|
||||||
"Params":
|
"Params":
|
||||||
|
@ -130,14 +98,6 @@
|
||||||
{
|
{
|
||||||
"Name": "HighEnergySaving",
|
"Name": "HighEnergySaving",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
{
|
|
||||||
"Name": "JoinCgroup",
|
|
||||||
"Params":
|
|
||||||
{
|
|
||||||
"Controller": "cpu",
|
|
||||||
"Path": "system"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Name": "WriteFile",
|
"Name": "WriteFile",
|
||||||
"Params":
|
"Params":
|
||||||
|
@ -152,14 +112,6 @@
|
||||||
{
|
{
|
||||||
"Name": "NormalPerformance",
|
"Name": "NormalPerformance",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
{
|
|
||||||
"Name": "JoinCgroup",
|
|
||||||
"Params":
|
|
||||||
{
|
|
||||||
"Controller": "cpu",
|
|
||||||
"Path": "system"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Name": "WriteFile",
|
"Name": "WriteFile",
|
||||||
"Params":
|
"Params":
|
||||||
|
@ -174,14 +126,6 @@
|
||||||
{
|
{
|
||||||
"Name": "HighPerformance",
|
"Name": "HighPerformance",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
{
|
|
||||||
"Name": "JoinCgroup",
|
|
||||||
"Params":
|
|
||||||
{
|
|
||||||
"Controller": "cpu",
|
|
||||||
"Path": "system"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Name": "WriteFile",
|
"Name": "WriteFile",
|
||||||
"Params":
|
"Params":
|
||||||
|
@ -196,14 +140,6 @@
|
||||||
{
|
{
|
||||||
"Name": "RealtimePerformance",
|
"Name": "RealtimePerformance",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
{
|
|
||||||
"Name": "JoinCgroup",
|
|
||||||
"Params":
|
|
||||||
{
|
|
||||||
"Controller": "cpu",
|
|
||||||
"Path": "system"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Name": "WriteFile",
|
"Name": "WriteFile",
|
||||||
"Params":
|
"Params":
|
||||||
|
@ -218,14 +154,6 @@
|
||||||
{
|
{
|
||||||
"Name": "NNApiHALPerformance",
|
"Name": "NNApiHALPerformance",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
{
|
|
||||||
"Name": "JoinCgroup",
|
|
||||||
"Params":
|
|
||||||
{
|
|
||||||
"Controller": "cpu",
|
|
||||||
"Path": "system"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Name": "WriteFile",
|
"Name": "WriteFile",
|
||||||
"Params":
|
"Params":
|
||||||
|
@ -240,14 +168,6 @@
|
||||||
{
|
{
|
||||||
"Name": "ServicePerformance",
|
"Name": "ServicePerformance",
|
||||||
"Actions": [
|
"Actions": [
|
||||||
{
|
|
||||||
"Name": "JoinCgroup",
|
|
||||||
"Params":
|
|
||||||
{
|
|
||||||
"Controller": "cpu",
|
|
||||||
"Path": "system"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Name": "WriteFile",
|
"Name": "WriteFile",
|
||||||
"Params":
|
"Params":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue