2010-02-08 20:39:42 +00:00
|
|
|
/* Copyright (c) 2009, Nathan Freitas, Orbot/The Guardian Project - http://openideals.com/guardian */
|
2009-11-30 16:50:26 +00:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
package org.torproject.android;
|
|
|
|
|
|
|
|
public interface TorConstants {
|
|
|
|
|
2010-02-08 20:39:42 +00:00
|
|
|
public final static String TAG = "Orbot";
|
2009-11-30 16:50:26 +00:00
|
|
|
|
2010-02-08 20:39:42 +00:00
|
|
|
public final static int FILE_WRITE_BUFFER_SIZE = 2048;
|
2009-11-30 16:50:26 +00:00
|
|
|
|
|
|
|
//path to check Tor against
|
2010-02-10 06:54:13 +00:00
|
|
|
public final static String URL_TOR_CHECK = "https://check.torproject.org";
|
2009-11-30 16:50:26 +00:00
|
|
|
|
2010-02-27 23:56:46 +00:00
|
|
|
public final static int STATUS_OFF = -1;
|
|
|
|
public final static int STATUS_READY = 0;
|
2009-11-30 16:50:26 +00:00
|
|
|
public final static int STATUS_ON = 1;
|
2010-02-08 20:39:42 +00:00
|
|
|
public final static int STATUS_CONNECTING = 2;
|
|
|
|
|
|
|
|
public final static int PROFILE_OFF = -1;
|
|
|
|
public final static int PROFILE_ONDEMAND = 0;
|
|
|
|
public final static int PROFILE_ON = 1;
|
2009-11-30 16:50:26 +00:00
|
|
|
|
2010-02-08 20:39:42 +00:00
|
|
|
public final static String NEWLINE = "\n";
|
2009-11-30 16:50:26 +00:00
|
|
|
|
2010-02-08 20:39:42 +00:00
|
|
|
public final static String TORRC_DEFAULT =
|
|
|
|
"SocksPort 9050\nSocksListenAddress 127.0.0.1\nSafeSocks 1\nDNSPort 5400\nLog notice stdout\nLog debug syslog\nDataDirectory /data/data/org.torproject.android/data\n"
|
2010-02-10 06:54:13 +00:00
|
|
|
+ "ControlPort 9051\nCookieAuthentication 1\nRelayBandwidthRate 20 KBytes\nRelayBandwidthBurst 20 KBytes\nAutomapHostsOnResolve 1\nTransPort 9040\n";
|
2010-02-08 20:39:42 +00:00
|
|
|
|
|
|
|
public final static String INTENT_TOR_SERVICE = "org.torproject.android.service.TOR_SERVICE";
|
|
|
|
|
|
|
|
public final static String HANDLER_TOR_MSG = "torServiceMsg";
|
|
|
|
|
|
|
|
public final static String PREF_BRIDGES_ENABLED = "pref_bridges_enabled";
|
|
|
|
public final static String PREF_BRIDGES_UPDATED = "pref_bridges_enabled";
|
|
|
|
public final static String PREF_BRIDGES_LIST = "pref_bridges_list";
|
2010-03-06 00:44:56 +00:00
|
|
|
public final static String PREF_RELAY = "pref_relay";
|
|
|
|
public final static String PREF_RELAY_PORT = "pref_relay_port";
|
|
|
|
public final static String PREF_FASCIST_FIREWALL = "pref_fascist_firewall";
|
|
|
|
public final static String PREF_FASCIST_FIREWALL_PORTS = "pref_fascist_firewall_ports";
|
2010-02-24 05:09:24 +00:00
|
|
|
public final static String PREF_TRANSPARENT = "pref_transparent";
|
|
|
|
|
|
|
|
|
2009-11-30 16:50:26 +00:00
|
|
|
}
|