commit | c3bc747513376d34460ff1d9babcd0df0d216de9 | [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 | da47bb159de31221976f2e7883e77a004c9cfb5e [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