Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 71c59893 authored by Nishant Kumar Singh's avatar Nishant Kumar Singh
Browse files

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
parent 9527c428
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment