diff options
author | Roshan Pius <rpius@google.com> | 2020-01-08 12:18:31 -0800 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2020-01-08 12:23:26 -0800 |
commit | d176767af2c5baf8d8187f642fda226dd945e64f (patch) | |
tree | 2d6d6c2a79415bdf3db3793790cbc8b4b55f7dea /PREUPLOAD.cfg | |
parent | 929e6e1536ba7f7cff8551a06a89e1b903fce1c6 (diff) |
WifiShellCommand: Avoid @hide ServiceManager.getService call
The WifiShellcommand is already processing commands from within wifi
service context. There is no need to retrieve the raw IWifiManager
service to make calls into WifiService. Instead, pass in the instance of
WifiServiceImpl into WifiShellCommand for invoking the necessary API
calls.
Bug: 147344816
Test: "adb shell cmd wifi set-wifi-enabled enabled"
Test: "adb shell cmd wifi set-wifi-enabled disabled"
Test: make com.android.wifi & ensured that the
ServiceManager.getService() @hide API's from WifiShellCommand
no longer show up in appcompat analysis.
Change-Id: I993911cac44597b093f3277e9145ec44c9bbbf9e
Diffstat (limited to 'PREUPLOAD.cfg')
0 files changed, 0 insertions, 0 deletions