summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarshit Mahajan <harshitmahajan@google.com>2024-02-02 16:24:56 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-02-02 16:24:56 +0000
commit90695c591e5f70b5e7ca64a339fcd97d4f6d2d45 (patch)
tree2deab9d43cd21ecf1dc4e403d084a7cb0dcb836b
parentf34b21a7524ed12c36ce377764e927f3b55a71b3 (diff)
parentd098f4df1f94918b9f7b03b81a397825342f41b4 (diff)
downloadlibsysprop-90695c591e5f70b5e7ca64a339fcd97d4f6d2d45.tar.gz
Merge "Revert^2 "[CrashRecovery] Refactor SystemProperties as api"" into main
-rw-r--r--srcs/android/sysprop/CrashRecoveryProperties.sysprop92
1 files changed, 92 insertions, 0 deletions
diff --git a/srcs/android/sysprop/CrashRecoveryProperties.sysprop b/srcs/android/sysprop/CrashRecoveryProperties.sysprop
new file mode 100644
index 0000000..c9aaa71
--- /dev/null
+++ b/srcs/android/sysprop/CrashRecoveryProperties.sysprop
@@ -0,0 +1,92 @@
+# Copyright (C) 2024 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.
+
+module: "android.sysprop.CrashRecoveryProperties"
+owner: Platform
+
+prop {
+ api_name: "lastFactoryResetTimeMs"
+ type: Long
+ scope: Internal
+ access: ReadWrite
+ prop_name: "persist.crashrecovery.last_factory_reset"
+}
+
+# Below two properties track individual system server boot events, and are reset once the boot
+# threshold is met, or the boot loop trigger window is exceeded between boot events.
+prop {
+ api_name: "rescueBootStart"
+ type: Long
+ scope: Internal
+ access: ReadWrite
+ prop_name: "crashrecovery.rescue_boot_start"
+}
+
+prop {
+ api_name: "rescueBootCount"
+ type: Integer
+ scope: Internal
+ access: ReadWrite
+ prop_name: "crashrecovery.rescue_boot_count"
+}
+
+# Below two properties track multiple calls made to observers tracking boot loops. They are reset
+# when the de-escalation window is exceeded between boot events.
+prop {
+ api_name: "bootMitigationStart"
+ type: Long
+ scope: Internal
+ access: ReadWrite
+ prop_name: "crashrecovery.boot_mitigation_start"
+}
+
+prop {
+ api_name: "bootMitigationCount"
+ type: Integer
+ scope: Internal
+ access: ReadWrite
+ prop_name: "crashrecovery.boot_mitigation_count"
+}
+
+prop {
+ api_name: "attemptingReboot"
+ type: Boolean
+ scope: Internal
+ access: ReadWrite
+ prop_name: "crashrecovery.attempting_reboot"
+}
+
+prop {
+ api_name: "attemptingFactoryReset"
+ type: Boolean
+ scope: Internal
+ access: ReadWrite
+ prop_name: "crashrecovery.attempting_factory_reset"
+}
+
+prop {
+ api_name: "maxRescueLevelAttempted"
+ type: Integer
+ scope: Internal
+ access: ReadWrite
+ prop_name: "crashrecovery.max_rescue_level_attempted"
+}
+
+prop {
+ api_name: "enableRescueParty"
+ type: Boolean
+ scope: Internal
+ access: ReadWrite
+ prop_name: "persist.crashrecovery.enable_rescue"
+}