commit | 6a297b8aac8523a8b294c882f67426523b365f87 | [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 | 21a3f67be7de367642724cdf7448c66d56a4b472 | |
parent | 1a41c294c564aa92b1098d9432da638b145d7909 [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