aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorSomdas Bandyopadhyay <somdas.bandyopadhyay@intel.com>2015-11-03 12:48:35 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-22 19:06:17 (GMT)
commit83702b60888bf2d210e948ad18a06e90e6292db1 (patch)
treedbf68a5e87dc2d30bdf4966210104a4364706c3f /src/utils
parente1246a6e2cc12610394f8af1e4d962c59cfbbf4a (diff)
downloadhostap-83702b60888bf2d210e948ad18a06e90e6292db1.zip
hostap-83702b60888bf2d210e948ad18a06e90e6292db1.tar.gz
hostap-83702b60888bf2d210e948ad18a06e90e6292db1.tar.bz2
Android: Give user the option for selecting browser for HS 2.0 OSU
When built with browser-android.c, hs20-osu-client used to always launch the native/stock Android browser for OSU user interaction. This browser is not present in all devices. It is better to give the option to the user to select his/her browser. Here the user will be shown a pop up to select the browser that he/she wants. Signed-off-by: Somdas Bandyopadhyay <somdas.bandyopadhyay@intel.com>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/browser-android.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/utils/browser-android.c b/src/utils/browser-android.c
index 9ce1a5c..71a1652 100644
--- a/src/utils/browser-android.c
+++ b/src/utils/browser-android.c
@@ -95,7 +95,7 @@ int hs20_web_browser(const char *url)
if (pid == 0) {
/* run the external command in the child process */
- char *argv[9];
+ char *argv[7];
argv[0] = "browser-android";
argv[1] = "start";
@@ -103,9 +103,7 @@ int hs20_web_browser(const char *url)
argv[3] = "android.intent.action.VIEW";
argv[4] = "-d";
argv[5] = (void *) url;
- argv[6] = "-n";
- argv[7] = "com.android.browser/.BrowserActivity";
- argv[8] = NULL;
+ argv[6] = NULL;
execv("/system/bin/am", argv);
wpa_printf(MSG_ERROR, "execv: %s", strerror(errno));