Add network consent check before connecting to RKP server.

Some restricted regions require a check for network consent before
making a network call. We assume that using GMS application gives a
consent for making network calls since GMS by default is dependent on
network connection with Google.

Test: atest RkpdAppUnitTests
Bug: 298881366
Change-Id: I6fedbc6b400735fa612ce33d3253df16f5f7aebd
2 files changed
tree: 425d8e8cfd30b86ffccf862a1181c8d3b11d90e4
  1. apex/
  2. app/
  3. system-server/
  4. util/
  5. OWNERS
  6. PREUPLOAD.cfg