commit | f0d393d530ca593213d765f00bbcee75f7d66608 | [log] [tgz] |
---|---|---|
author | lucaslin <lucaslin@google.com> | Wed Oct 21 15:10:56 2020 +0800 |
committer | Lucas Lin <lucaslin@google.com> | Fri Oct 23 03:07:07 2020 +0000 |
tree | 6594ab4b04bdd2be41a2be457c84f08e73f5c3ed | |
parent | bc7602e296d2bd06e2786da5217e76a8d45940f8 [diff] |
Using Context#getSystemService instead of ServiceManager#checkService ConnectivityService is going to be a mainline module, it can only use formal APIs or @SystemApi. So use public API - Context#getSystemService() instead of hidden API - ServiceManager#checkService(). Bug: 170598012 Test: atest FrameworksNetTests Change-Id: I9824caa7aec57e70f0ba405fcce39f9bc068732d