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

Skip to content
Commit 172da621 authored by yuemingw's avatar yuemingw Committed by Yueming Wang
Browse files

Add userRestriction attribute in Location settings injector.

We would like to disable location accuracy ui in Settings when DISALLOW_CONFIG_LOCATION is set.
As disable location accuracy preference in Settings is injected from GmsCore, we would like a way to identify which injected settings is location accuracy.
So we want to add an additional field here: https://cs.corp.google.com/piper///depot/google3/java/com/google/android/gmscore/integ/container/proxies/location/base/res/xml/location_accuracy_injected_settings.xml?q=SettingInjectorService+file:%5E//depot/google3/java/com/google/android/gmscore/integ/+package:%5Epiper$&dr=C
Thus we need to update attributes in framework

Bug: 72633181
Test: manually by replacing userRestriction in attrs.xml with an existing
attribute "id", change location_accuracy_injected_settings.xml in gmscore to
include user restriction value, and tested Settings UI via TestDPC
Change-Id: Idd568dc549c68097f31368b1dd567f24922bdc4b
parent 6ccc053d
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