Send RECOMMEND_NETWORKS action when binding to provider.

Some services use action to disambiguate which binder to return in
onBind.

Test: built && installed && bound.
BUG: 33905890
Change-Id: I83ae41b472c597661b93f5467b64b258e9056f5f
Merged-In: I83ae41b472c597661b93f5467b64b258e9056f5f
This commit is contained in:
Joe LaPenna
2016-12-27 14:50:14 -08:00
parent 933ea68aca
commit 9bc5effad5

View File

@@ -36,6 +36,7 @@ import android.net.INetworkScoreService;
import android.net.NetworkKey;
import android.net.NetworkScorerAppManager;
import android.net.NetworkScorerAppManager.NetworkScorerAppData;
import android.net.NetworkScoreManager;
import android.net.RecommendationRequest;
import android.net.RecommendationResult;
import android.net.ScoredNetwork;
@@ -631,7 +632,7 @@ public class NetworkScoreService extends INetworkScoreService.Stub {
void connect(Context context) {
if (!mBound) {
Intent service = new Intent();
Intent service = new Intent(NetworkScoreManager.ACTION_RECOMMEND_NETWORKS);
service.setComponent(mComponentName);
mBound = context.bindServiceAsUser(service, this,
Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE,