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
This commit is contained in:
@@ -4454,8 +4454,9 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
mdst.enableMobileProvisioning(url);
|
mdst.enableMobileProvisioning(url);
|
||||||
} else {
|
} else {
|
||||||
if (DBG) log("handleMobileProvisioningAction: on default network");
|
if (DBG) log("handleMobileProvisioningAction: on default network");
|
||||||
Intent newIntent =
|
Intent newIntent = Intent.makeMainSelectorActivity(Intent.ACTION_MAIN,
|
||||||
new Intent(Intent.ACTION_VIEW, Uri.parse(url));
|
Intent.CATEGORY_APP_BROWSER);
|
||||||
|
newIntent.setData(Uri.parse(url));
|
||||||
newIntent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT |
|
newIntent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT |
|
||||||
Intent.FLAG_ACTIVITY_NEW_TASK);
|
Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user