summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2013-10-17 12:46:52 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2013-10-17 12:46:52 -0700
commit536b3c2b6cb42fd4140ad5e8131db0d7e6bd01c8 (patch)
tree5aad968c9ef1993a2d966ab30791d206cfc94ca8 /services
parent577d0dac1d263c6f403f15c587aaf11983e10e44 (diff)
downloadframeworks_base-536b3c2b6cb42fd4140ad5e8131db0d7e6bd01c8.zip
frameworks_base-536b3c2b6cb42fd4140ad5e8131db0d7e6bd01c8.tar.gz
frameworks_base-536b3c2b6cb42fd4140ad5e8131db0d7e6bd01c8.tar.bz2
Change how we use provisioning url so post works
Needed to do an http post instead of a get for one carrier. Do this by putting an auto-submitting form in the data to be interpreted as a html doc by the browser. The ACTION_VIEW intent only works on http uri, but by specifying ACTION_MAIN/ CATEGORY_APP_BROWSER we could use data:text/html. bug:11168810 Change-Id: Ifd33e1c3c7f9f40b6add39e446e6a7d7cde22549
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/ConnectivityService.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java
index 70418e8..a92ceec 100644
--- a/services/java/com/android/server/ConnectivityService.java
+++ b/services/java/com/android/server/ConnectivityService.java
@@ -4454,8 +4454,9 @@ public class ConnectivityService extends IConnectivityManager.Stub {
mdst.enableMobileProvisioning(url);
} else {
if (DBG) log("handleMobileProvisioningAction: on default network");
- Intent newIntent =
- new Intent(Intent.ACTION_VIEW, Uri.parse(url));
+ Intent newIntent = Intent.makeMainSelectorActivity(Intent.ACTION_MAIN,
+ Intent.CATEGORY_APP_BROWSER);
+ newIntent.setData(Uri.parse(url));
newIntent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT |
Intent.FLAG_ACTIVITY_NEW_TASK);
try {