text
stringlengths
3
1.18M
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
/* * This file is part of FONAccess. * * FONAccess is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FONAccess is distribut...
package com.oakley.fon; import java.io.IOException; import android.app.IntentService; import android.content.Intent; import android.util.Log; import com.oakley.fon.util.HttpUtils; public class LogOffService extends IntentService { private static String TAG = LogOffService.class.getName(); public LogOffService() ...
package com.oakley.fon; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.NetworkInfo.State; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import an...
package com.oakley.fon.logger; public interface WebLogger { public static final String CONNECTED = "CONNECTED"; public static final String BLOCKED_URL = "http://ubuntuone.com/p/F6b/"; public LoggerResult login(String user, String password); }
package com.oakley.fon.logger; import java.io.IOException; import java.util.Map; import android.util.Log; import com.oakley.fon.util.FONUtils; import com.oakley.fon.util.HttpUtils; import com.oakley.fon.util.WISPrConstants; public abstract class SimpleHTTPLogger extends HTTPLogger { protected static String TAG = S...
package com.oakley.fon.logger; import java.util.HashMap; import java.util.Map; public class BTFonLogger extends SimpleHTTPLogger { protected static String TAG = BTFonLogger.class.getName(); private static final String NETWORK_PREFIX = "BTFON/"; public BTFonLogger() { super("https://www.btopenzone.com:8443/ante...
package com.oakley.fon.logger; import java.net.MalformedURLException; import java.net.URL; import java.net.URLDecoder; import java.util.HashMap; import java.util.Map; import android.util.Log; public abstract class HTTPLogger implements WebLogger { protected static String TAG = HTTPLogger.class.getName(); protecte...
package com.oakley.fon.logger; import java.io.IOException; import java.util.HashMap; import java.util.Map; import android.util.Log; import com.oakley.fon.util.HttpUtils; public class LivedoorLogger extends SimpleHTTPLogger { protected static String TAG = LivedoorLogger.class.getName(); private static final Strin...
package com.oakley.fon.logger; public class LoggerResult { protected String result; protected String logOffUrl; public LoggerResult(String result, String logOffUrl) { this.result = result; this.logOffUrl = logOffUrl; } public String getResult() { return result; } public String getLogOffUrl() { retur...
package com.oakley.fon.logger; import java.util.HashMap; import java.util.Map; import org.xml.sax.SAXException; import android.util.Log; import com.oakley.fon.handler.WISPrResponseHandler; import com.oakley.fon.util.FONUtils; import com.oakley.fon.util.HttpResult; import com.oakley.fon.util.HttpUtils; import com.oa...
package com.oakley.fon.logger; import java.io.IOException; import java.util.HashMap; import java.util.Map; import javax.xml.parsers.FactoryConfigurationError; import javax.xml.parsers.ParserConfigurationException; import org.xml.sax.SAXException; import android.util.Log; import com.oakley.fon.handler.WISPrInfoHand...
package com.oakley.fon; import android.app.IntentService; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences.Editor; import android.net.Uri; import android.uti...
package com.oakley.fon; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.preference.PreferenceActivity; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; imp...
package com.oakley.fon; import android.os.Bundle; import android.preference.PreferenceActivity; import android.view.Menu; import android.view.MenuItem; public class PreferencesAdvanced extends PreferenceActivity { public static final int BACK_ID = Menu.FIRST; @Override public void onCreate(Bundle savedInstanceSt...
package com.oakley.fon; import android.app.IntentService; import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.util.Log; import com.oakley.fon.util.Utils; public class NotificationCleaningService extends IntentService { private static String TAG = No...
package com.oakley.fon; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.wifi.ScanResult; import android.net.wifi.SupplicantState; import android...
package com.oakley.fon.handler; import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; public class WISPrInfoHandler extends DefaultHandler { enum Tag { wispaccessgatewayparam, redirect, accessprocedure, loginurl, abortloginurl, messagetype, responsecode, accesslocation, locationname } privat...
package com.oakley.fon.handler; import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; public class WISPrResponseHandler extends DefaultHandler { enum Tag { wispaccessgatewayparam, redirect, responsecode, fonresponsecode, logoffurl, replymessage, authenticationpollreply, messagetype, authenticat...
package com.oakley.fon.util; import android.app.backup.SharedPreferencesBackupHelper; public class BackupAgent extends BackupAgentHelperWrapper { @Override public void onCreate() { SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(getBackupAgentInstance(), getDefaultSharedPreferencesNa...
package com.oakley.fon.util; import java.io.IOException; import java.net.SocketException; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Set; import java.util.Map.Entry; import org.apache.http.HttpEntity; import org.apache.http.HttpHost; import org.apache.http.NameValuePair;...
package com.oakley.fon.util; import java.util.HashMap; import java.util.Map; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.Bundle; import android.preference.PreferenceManager; import android.u...
package com.oakley.fon.util; import org.apache.http.message.BasicHttpResponse; public class HttpResult { private String content; private BasicHttpResponse response; private String targetHost; public HttpResult(String content, BasicHttpResponse response, String targetHost) { this.content = content; this.res...
package com.oakley.fon.util; import java.io.IOException; import android.app.backup.BackupAgentHelper; import android.app.backup.BackupDataInput; import android.app.backup.BackupDataOutput; import android.app.backup.SharedPreferencesBackupHelper; import android.content.Context; import android.os.ParcelFileDescriptor; ...
package com.oakley.fon.util; public class WISPrConstants { public static String WISPR_MESSAGE_TYPE_INITIAL = "100"; public static String WISPR_MESSAGE_TYPE_PROXY_NOTIFICATION = "110"; public static String WISPR_MESSAGE_TYPE_AUTH_NOTIFICATION = "120"; public static String WISPR_MESSAGE_TYPE_LOGOFF_NOTIFICATION =...
package com.oakley.fon.util; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import android.util.Log; import com.oakley.fon.logger.WebLogger; public class FONUtils { private static final String FON_MA...
package com.oakley.fon.util; public class WISPrUtil { public static final String WISPR_TAG_NAME = "WISPAccessGatewayParam"; public static String getWISPrXML(String source) { String res = null; int start = source.indexOf("<" + WISPR_TAG_NAME); int end = source.indexOf("</" + WISPR_TAG_NAME + ">", start) + WISP...
package com.oakley.fon.util; import java.net.URI; import org.apache.http.HttpResponse; import org.apache.http.ProtocolException; import org.apache.http.impl.client.DefaultRedirectHandler; import org.apache.http.protocol.HttpContext; import android.util.Log; public class LogRedirectHandler extends DefaultRedirectHan...
package com.oakley.fon.util; import java.net.URI; import java.net.URISyntaxException; import org.apache.http.HttpResponse; import org.apache.http.ProtocolException; import org.apache.http.impl.client.DefaultRedirectHandler; import org.apache.http.protocol.HttpContext; import android.util.Log; /** * Make all redire...
package com.oakley.fon; import java.io.IOException; import android.app.IntentService; import android.content.Intent; import android.util.Log; import com.oakley.fon.util.HttpUtils; public class LogOffService extends IntentService { private static String TAG = LogOffService.class.getName(); public LogOffService() ...
package com.oakley.fon; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.NetworkInfo.State; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import an...
package com.oakley.fon.logger; public interface WebLogger { public static final String CONNECTED = "CONNECTED"; public static final String BLOCKED_URL = "http://ubuntuone.com/p/F6b/"; public LoggerResult login(String user, String password); }
package com.oakley.fon.logger; import java.io.IOException; import java.util.Map; import android.util.Log; import com.oakley.fon.util.FONUtils; import com.oakley.fon.util.HttpUtils; import com.oakley.fon.util.WISPrConstants; public abstract class SimpleHTTPLogger extends HTTPLogger { protected static String TAG = S...
package com.oakley.fon.logger; import android.util.Log; public class BTFonLogger extends WISPrLogger { protected static String TAG = BTFonLogger.class.getName(); private static final String NETWORK_PREFIX = "BTFON/"; @Override public LoggerResult login(String user, String password) { Log.d(TAG, "Login with " ...
package com.oakley.fon.logger; import java.net.MalformedURLException; import java.net.URL; import java.net.URLDecoder; import java.util.HashMap; import java.util.Map; import android.util.Log; public abstract class HTTPLogger implements WebLogger { protected static String TAG = HTTPLogger.class.getName(); protecte...
package com.oakley.fon.logger; import java.io.IOException; import java.util.HashMap; import java.util.Map; import android.util.Log; import com.oakley.fon.util.HttpUtils; public class LivedoorLogger extends SimpleHTTPLogger { protected static String TAG = LivedoorLogger.class.getName(); private static final Strin...
package com.oakley.fon.logger; import com.oakley.fon.util.WISPrConstants; public class LoggerResult { protected String result; protected String logOffUrl; public LoggerResult(String result, String logOffUrl) { this.result = result; this.logOffUrl = logOffUrl; } public String getResult() { return result;...
package com.oakley.fon.logger; import java.util.HashMap; import java.util.Map; import org.xml.sax.SAXException; import android.util.Log; import com.oakley.fon.handler.WISPrResponseHandler; import com.oakley.fon.util.FONUtils; import com.oakley.fon.util.HttpResult; import com.oakley.fon.util.HttpUtils; import com.oa...
package com.oakley.fon.logger; import java.io.IOException; import java.util.HashMap; import java.util.Map; import javax.xml.parsers.FactoryConfigurationError; import javax.xml.parsers.ParserConfigurationException; import org.xml.sax.SAXException; import android.util.Log; import com.oakley.fon.handler.WISPrInfoHand...
package com.oakley.fon; import android.app.IntentService; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences.Editor; import android.net.Uri; import android.uti...
package com.oakley.fon; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.preference.PreferenceActivity; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; imp...
package com.oakley.fon; import android.os.Bundle; import android.preference.PreferenceActivity; import android.view.Menu; import android.view.MenuItem; public class PreferencesAdvanced extends PreferenceActivity { public static final int BACK_ID = Menu.FIRST; @Override public void onCreate(Bundle savedInstanceSt...
package com.oakley.fon; import android.app.IntentService; import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.util.Log; import com.oakley.fon.util.Utils; public class NotificationCleaningService extends IntentService { private static String TAG = No...
package com.oakley.fon; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.wifi.ScanResult; import android.net.wifi.SupplicantState; import android...
package com.oakley.fon.handler; import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; public class WISPrInfoHandler extends DefaultHandler { enum Tag { wispaccessgatewayparam, redirect, accessprocedure, loginurl, abortloginurl, messagetype, responsecode, accesslocation, locationname } privat...
package com.oakley.fon.handler; import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; public class WISPrResponseHandler extends DefaultHandler { enum Tag { wispaccessgatewayparam, redirect, responsecode, fonresponsecode, logoffurl, replymessage, authenticationpollreply, messagetype, authenticat...
package com.oakley.fon.util; import android.annotation.TargetApi; import android.app.backup.SharedPreferencesBackupHelper; @TargetApi(8) public class BackupAgent extends BackupAgentHelperWrapper { @Override public void onCreate() { SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(getBacku...
package com.oakley.fon.util; import java.io.IOException; import java.io.InputStream; import java.net.SocketException; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.zip.GZIPInputStream; import org.apache.http.Header; import o...
package com.oakley.fon.util; import java.util.HashMap; import java.util.Map; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.Bundle; import android.preference.PreferenceManager; import android.u...
package com.oakley.fon.util; import org.apache.http.message.BasicHttpResponse; public class HttpResult { private String content; private BasicHttpResponse response; private String targetHost; public HttpResult(String content, BasicHttpResponse response, String targetHost) { this.content = content; this.res...
package com.oakley.fon.util; import java.io.IOException; import android.annotation.TargetApi; import android.app.backup.BackupAgentHelper; import android.app.backup.BackupDataInput; import android.app.backup.BackupDataOutput; import android.app.backup.SharedPreferencesBackupHelper; import android.content.Context; imp...
package com.oakley.fon.util; public class WISPrConstants { public static String WISPR_MESSAGE_TYPE_INITIAL = "100"; public static String WISPR_MESSAGE_TYPE_PROXY_NOTIFICATION = "110"; public static String WISPR_MESSAGE_TYPE_AUTH_NOTIFICATION = "120"; public static String WISPR_MESSAGE_TYPE_LOGOFF_NOTIFICATION =...
package com.oakley.fon.util; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import android.content.Context; import android.net.wifi.WifiConfiguration; import android.net.wifi.Wifi...
package com.oakley.fon.util; public class WISPrUtil { public static final String WISPR_TAG_NAME = "WISPAccessGatewayParam"; public static String getWISPrXML(String source) { String res = null; int start = source.indexOf("<" + WISPR_TAG_NAME); int end = source.indexOf("</" + WISPR_TAG_NAME + ">", start) + WISP...
package com.oakley.fon.util; import java.net.URI; import org.apache.http.HttpResponse; import org.apache.http.ProtocolException; import org.apache.http.impl.client.DefaultRedirectHandler; import org.apache.http.protocol.HttpContext; import android.util.Log; /** * Used for debugging purposes */ public class LogRed...
package com.oakley.fon.util; import java.net.URI; import java.net.URISyntaxException; import org.apache.http.HttpResponse; import org.apache.http.ProtocolException; import org.apache.http.impl.client.DefaultRedirectHandler; import org.apache.http.protocol.HttpContext; import android.util.Log; /** * Make all redire...
package com.oakley.fon; import java.io.IOException; import android.app.IntentService; import android.content.Intent; import android.util.Log; import com.oakley.fon.util.HttpUtils; public class LogOffService extends IntentService { private static String TAG = LogOffService.class.getName(); public LogOffService() ...
package com.oakley.fon; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.NetworkInfo.State; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import an...
package com.oakley.fon.logger; public interface WebLogger { public static final String CONNECTED = "CONNECTED"; public static final String BLOCKED_URL = "http://ubuntuone.com/p/F6b/"; public LoggerResult login(String user, String password); }
package com.oakley.fon.logger; import java.io.IOException; import java.util.Map; import android.util.Log; import com.oakley.fon.util.FONUtils; import com.oakley.fon.util.HttpUtils; import com.oakley.fon.util.WISPrConstants; public abstract class SimpleHTTPLogger extends HTTPLogger { protected static String TAG = S...
package com.oakley.fon.logger; import android.util.Log; public class BTFonLogger extends WISPrLogger { protected static String TAG = BTFonLogger.class.getName(); private static final String NETWORK_PREFIX = "BTFON/"; @Override public LoggerResult login(String user, String password) { Log.d(TAG, "Login with " ...
package com.oakley.fon.logger; import java.net.MalformedURLException; import java.net.URL; import java.net.URLDecoder; import java.util.HashMap; import java.util.Map; import android.util.Log; public abstract class HTTPLogger implements WebLogger { protected static String TAG = HTTPLogger.class.getName(); protecte...
package com.oakley.fon.logger; import java.io.IOException; import java.util.HashMap; import java.util.Map; import android.util.Log; import com.oakley.fon.util.HttpUtils; public class LivedoorLogger extends SimpleHTTPLogger { protected static String TAG = LivedoorLogger.class.getName(); private static final Strin...
package com.oakley.fon.logger; import com.oakley.fon.util.WISPrConstants; public class LoggerResult { protected String result; protected String logOffUrl; public LoggerResult(String result, String logOffUrl) { this.result = result; this.logOffUrl = logOffUrl; } public String getResult() { return result;...
package com.oakley.fon.logger; import java.util.HashMap; import java.util.Map; import org.xml.sax.SAXException; import android.util.Log; import com.oakley.fon.handler.WISPrResponseHandler; import com.oakley.fon.util.FONUtils; import com.oakley.fon.util.HttpResult; import com.oakley.fon.util.HttpUtils; import com.oa...
package com.oakley.fon.logger; import java.io.IOException; import java.util.HashMap; import java.util.Map; import javax.xml.parsers.FactoryConfigurationError; import javax.xml.parsers.ParserConfigurationException; import org.xml.sax.SAXException; import android.util.Log; import com.oakley.fon.handler.WISPrInfoHand...
package com.oakley.fon; import android.app.IntentService; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences.Editor; import android.net.Uri; import android.uti...
package com.oakley.fon; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.preference.PreferenceActivity; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; imp...
package com.oakley.fon; import android.os.Bundle; import android.preference.PreferenceActivity; import android.view.Menu; import android.view.MenuItem; public class PreferencesAdvanced extends PreferenceActivity { public static final int BACK_ID = Menu.FIRST; @Override public void onCreate(Bundle savedInstanceSt...
package com.oakley.fon; import android.app.IntentService; import android.app.NotificationManager; import android.content.Context; import android.content.Intent; import android.util.Log; import com.oakley.fon.util.Utils; public class NotificationCleaningService extends IntentService { private static String TAG = No...
package com.oakley.fon; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.wifi.ScanResult; import android.net.wifi.SupplicantState; import android...
package com.oakley.fon.handler; import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; public class WISPrInfoHandler extends DefaultHandler { enum Tag { wispaccessgatewayparam, redirect, accessprocedure, loginurl, abortloginurl, messagetype, responsecode, accesslocation, locationname } privat...
package com.oakley.fon.handler; import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; public class WISPrResponseHandler extends DefaultHandler { enum Tag { wispaccessgatewayparam, redirect, responsecode, fonresponsecode, logoffurl, replymessage, authenticationpollreply, messagetype, authenticat...
package com.oakley.fon.util; import android.app.backup.SharedPreferencesBackupHelper; public class BackupAgent extends BackupAgentHelperWrapper { @Override public void onCreate() { SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(getBackupAgentInstance(), getDefaultSharedPreferencesNa...
package com.oakley.fon.util; import java.io.IOException; import java.io.InputStream; import java.net.SocketException; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.zip.GZIPInputStream; import org.apache.http.Header; import o...
package com.oakley.fon.util; import java.util.HashMap; import java.util.Map; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.Bundle; import android.preference.PreferenceManager; import android.u...
package com.oakley.fon.util; import org.apache.http.message.BasicHttpResponse; public class HttpResult { private String content; private BasicHttpResponse response; private String targetHost; public HttpResult(String content, BasicHttpResponse response, String targetHost) { this.content = content; this.res...
package com.oakley.fon.util; import java.io.IOException; import android.app.backup.BackupAgentHelper; import android.app.backup.BackupDataInput; import android.app.backup.BackupDataOutput; import android.app.backup.SharedPreferencesBackupHelper; import android.content.Context; import android.os.ParcelFileDescriptor; ...
package com.oakley.fon.util; public class WISPrConstants { public static String WISPR_MESSAGE_TYPE_INITIAL = "100"; public static String WISPR_MESSAGE_TYPE_PROXY_NOTIFICATION = "110"; public static String WISPR_MESSAGE_TYPE_AUTH_NOTIFICATION = "120"; public static String WISPR_MESSAGE_TYPE_LOGOFF_NOTIFICATION =...
package com.oakley.fon.util; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import android.content.Context; import android.net.wifi.WifiConfiguration; import android.net.wifi.Wifi...
package com.oakley.fon.util; public class WISPrUtil { public static final String WISPR_TAG_NAME = "WISPAccessGatewayParam"; public static String getWISPrXML(String source) { String res = null; int start = source.indexOf("<" + WISPR_TAG_NAME); int end = source.indexOf("</" + WISPR_TAG_NAME + ">", start) + WISP...
package com.oakley.fon.util; import java.net.URI; import org.apache.http.HttpResponse; import org.apache.http.ProtocolException; import org.apache.http.impl.client.DefaultRedirectHandler; import org.apache.http.protocol.HttpContext; import android.util.Log; /** * Used for debugging purposes */ public class LogRed...
package com.oakley.fon.util; import java.net.URI; import java.net.URISyntaxException; import org.apache.http.HttpResponse; import org.apache.http.ProtocolException; import org.apache.http.impl.client.DefaultRedirectHandler; import org.apache.http.protocol.HttpContext; import android.util.Log; /** * Make all redire...
package com.sputnik.wispr; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.NetworkInfo.State; import android.net.wifi.WifiInfo; i...
package com.sputnik.wispr.logger; public interface WebLogger { public static final String CONNECTED = "CONNECTED"; public static final String BLOCKED_URL = "http://www.saltando.net/uploads/android.txt"; public String login(String user, String password); }
package com.sputnik.wispr.logger; import java.io.IOException; import java.util.Map; import android.util.Log; import com.sputnik.wispr.util.HttpUtils; import com.sputnik.wispr.util.WISPrConstants; public abstract class SimpleHTTPLogger extends HTTPLogger { protected static String TAG = SimpleHTTPLogger.class.getNam...
package com.sputnik.wispr.logger; import java.util.HashMap; import java.util.Map; public class BTFonLogger extends SimpleHTTPLogger { protected static String TAG = BTFonLogger.class.getName(); private static final String NETWORK_PREFIX = "BTFON/"; public BTFonLogger() { super("https://www.btopenzone.com:8443/a...
package com.sputnik.wispr.logger; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLDecoder; import java.util.HashMap; import java.util.Map; import android.util.Log; import com.sputnik.wispr.util.HttpUtils; public abstract class HTTPLogger implements WebLogge...
package com.sputnik.wispr.logger; import java.util.HashMap; import java.util.Map; public class LivedoorLogger extends SimpleHTTPLogger { protected static String TAG = LivedoorLogger.class.getName(); private static final String NETWORK_SUFIX = "@fon"; public LivedoorLogger() { super("https://vauth.lw.livedoor.c...
package com.sputnik.wispr.logger; import java.util.HashMap; import java.util.Map; import org.xml.sax.SAXException; import android.util.Log; import com.sputnik.wispr.handler.WISPrResponseHandler; import com.sputnik.wispr.util.HttpUtils; import com.sputnik.wispr.util.WISPrConstants; import com.sputnik.wispr.util.WISP...