[Catalyst] Implement get{Read,Write}Permissions for Always show time and info

NO_IFTTT=Catalyst migration

Test: devtool
Bug: 385272042
Flag: com.android.settings.flags.catalyst_lockscreen_from_display_settings
Change-Id: I67513e205113df531accd9f84480d7921144df52
This commit is contained in:
Sunny Shao
2024-12-25 14:14:26 +08:00
parent 3b54bb45e6
commit 1f5b0e9a7c

View File

@@ -71,6 +71,10 @@ class AmbientDisplayAlwaysOnPreference :
override fun storage(context: Context): KeyValueStore = Storage(context)
override fun getReadPermissions(context: Context) = SettingsSecureStore.getReadPermissions()
override fun getWritePermissions(context: Context) = SettingsSecureStore.getWritePermissions()
override fun getReadPermit(context: Context, callingPid: Int, callingUid: Int) =
ReadWritePermit.ALLOW