Commit Graph

4 Commits

Author SHA1 Message Date
Svet Ganov
864765f8b4 Update Settings to use the proper DeviceConfig API.
Exempt-From-Owner-Approval: carry over approval from ag/6908306

bug:124769181

Change-Id: If18d0dc5e55dabf82b7c7a2b6df240fb8b24f736
2019-04-07 22:37:02 -07:00
Michael Groover
9e3b3d77a2 Use Settings instead of DeviceConfig to relax device ID dev option
The 'Disable device identifier restrictions' developer option
currently uses DeviceConfig to set whether the new access
restrictions should be disabled. However this API now requires
the WRITE_DEVICE_CONFIG permission and should only be used from
the server side. This change modifies the developer option to use the
Settings to relax the device identifier check, and the option will
be hidden if the new restrictions have been disabled from the server.

Bug: 129888611
Test: Manually verified device ID check was relaxed with option
      enabled. Also verified option is not displayed if DeiviceConfig
      option is set.

Change-Id: Id8759f2219e702c1f93a638d45ac99bce685383b
(cherry picked from commit 60c80bb295)
2019-04-04 22:14:17 +00:00
Michael Groover
fcb6aff14c Change device ID developer setting to disable option
Bug: 123646983
Test: Manually verified toggling the option set the expected value
Change-Id: Ia219c154d9572111c4fce1af4128a103ba0409ec
2019-02-06 14:09:13 -08:00
Michael Groover
8aa523f18d Add developer option for device identifier restrictions
Bug: 123646983
Test: Manually verified device_config switch was toggled via
      the new developer option.

Change-Id: I6a4e2d1f7bfdaae402e594e7ebc1b845bf12996e
2019-01-30 13:14:56 -08:00