Use UnreleasedFlag instead of SysPropBooleanFlag.

A `UnreleasedFlag` is safer as it can not be changed in released builds or with public APIs (i.e., System Properties).

Test: manual

Fixes: b/257976997

Change-Id: I17eddcc77a14b16b31f67e5675932f4690b9ffb8
This commit is contained in:
Marcello Galhardo
2022-11-11 10:43:52 +00:00
parent 2e38249906
commit 8b79dcc20d

View File

@@ -406,8 +406,8 @@ object Flags {
val LEAVE_SHADE_OPEN_FOR_BUGREPORT =
unreleasedFlag(1800, "leave_shade_open_for_bugreport", teamfood = true)
// 1900 - note task
@JvmField val NOTE_TASKS = sysPropBooleanFlag(1900, "persist.sysui.debug.note_tasks")
// 1900
@JvmField val NOTE_TASKS = unreleasedFlag(1900, "keycode_flag")
// 2000 - device controls
@Keep @JvmField val USE_APP_PANELS = unreleasedFlag(2000, "use_app_panels", teamfood = true)