WifiShellCommand: Add a command for score update/reset external scorer
This uses the new external scoring API. Helps us repro the connected scoring
behavior changes in connectivity locally.
Note: Regular permission checks for API in WifiService are enforced, so can
only be used via shell.
Bug: 153734448
Test: Manual steps
adb shell cmd wifi connect-network <ssid> open
adb shell cmd wifi set-connected-score 52
adb shell cmd wifi set-connected-score 45
adb shell cmd wifi status <- Verify scores are updated in NetworkCapabilities
adb shell cmd wifi reset-connected-score
adb shell cmd wifi status <- Verify scores are updated by AOSP scorer
Change-Id: Ibaa31858e3373ee31df43b1771428419d597160a
1 file changed