LL.bindClass(“android.net.ConnectivityManager”);
LL.bindClass(“android.net.ConnectivityManager”);
var cm=LL.getContext().getSystemService(Context.CONNECTIVITY_SERVICE);
var i = null;
var wifi = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
if (wifi.isConnected()) {
i = pm.getLaunchIntentForPackage(“com.opera.browser”);
} else {
i = pm.getLaunchIntentForPackage(“org.mozilla.firefox”);
}
LL.startActivity(i);
Any idea???
]]>
< ![CDATA[
Solution 1: (root / xposed) https://play.google.com/store/apps/details?id=com.faendir.lightning_launcher.permission_manager
Solution 2: Download Network permission package from Pierre. Can’t find the link currently …
]]>
< ![CDATA[
Thank you for the tip with the permission – now the Script is working.
]]>