summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/AbstractInputMethodService.java
diff options
context:
space:
mode:
authorNishant Kumar Singh <nishantks@google.com>2021-10-20 13:33:45 +0000
committerNishant Kumar Singh <nishantks@google.com>2021-10-20 13:33:45 +0000
commit71c59893f65be4a85d8a1b568e59a835d0748cbf (patch)
tree442ff685f6053f0f2bc94a4a152ff842aa7c77bd /core/java/android/inputmethodservice/AbstractInputMethodService.java
parent9527c42843c28aa5b5a52345e9756728eeb1f29b (diff)
Allow system services to get/set app-locales.
As of now, the LocaleManagerService uses enforceCallingPermission to check for the required permissions before accessing / modifying the app-locales. Because of this, other system services are unable to pass the permission check since they are running with the same pid as LMS. We want to allow the backup service and settings to get / set app locales. enforceCallingOrSelfPermission allows apps / services with the same pid as the system server to fetch / write app-locales. This is a common practice among the system services. Bug: 203649239 Test: Manually tested with the backup service Change-Id: Iff96b2c8d97066c2521e923195eb02cf21200714
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions