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
Loading
Please register or sign in to comment