[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r21826: {projects} tweaked the new settings for relays and firewalls; updated p (in projects/android/trunk/Orbot: . assets res/xml src/org/torproject/android)



Author: n8fr8
Date: 2010-03-06 04:11:36 +0000 (Sat, 06 Mar 2010)
New Revision: 21826

Modified:
   projects/android/trunk/Orbot/
   projects/android/trunk/Orbot/AUTHORS
   projects/android/trunk/Orbot/AndroidManifest.xml
   projects/android/trunk/Orbot/assets/torrc
   projects/android/trunk/Orbot/res/xml/preferences.xml
   projects/android/trunk/Orbot/src/org/torproject/android/Orbot.java
   projects/android/trunk/Orbot/src/org/torproject/android/TorConstants.java
Log:
tweaked the new settings for relays and firewalls; updated parsing script too


Property changes on: projects/android/trunk/Orbot
___________________________________________________________________
Added: svn:ignore
   + bin


Modified: projects/android/trunk/Orbot/AUTHORS
===================================================================
--- projects/android/trunk/Orbot/AUTHORS	2010-03-06 02:06:00 UTC (rev 21825)
+++ projects/android/trunk/Orbot/AUTHORS	2010-03-06 04:11:36 UTC (rev 21826)
@@ -12,13 +12,13 @@
 Nathan Freitas <nathan@xxxxxxxxxxx> developed the primary
 Android application and managed the porting of Tor to Android.
 
+Jake Appelbaum <jake@xxxxxxxxxxxxx > regular gave Nathan a
+swift kick in the rear to get this done. He has also provided
+extensive guidance and review. Most recently he has been
+promoted to Chief Application Resource Editor.
 
 Contributors:
 -------------
-Jake Appelbaum <jake@xxxxxxxxxxxxx > regular gave Nathan a
-swift kick in the rear to get this done. He has also provided
-extensive guidance and review.
-
 Nick Mathewson <nickm@xxxxxxxxxxxxx> wrote some of the patch
 code to support the compiling of Tor and LibEvent on Android,
 and generaly provided guidance in the entire effort.

Modified: projects/android/trunk/Orbot/AndroidManifest.xml
===================================================================
--- projects/android/trunk/Orbot/AndroidManifest.xml	2010-03-06 02:06:00 UTC (rev 21825)
+++ projects/android/trunk/Orbot/AndroidManifest.xml	2010-03-06 04:11:36 UTC (rev 21826)
@@ -4,9 +4,11 @@
       android:versionName="011301.2" android:versionCode="2">
        
        <uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.WRITE_SETTINGS" />
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  
+ <!-- <uses-permission android:name="android.permission.WRITE_SETTINGS" /> -->
+ 
+ <!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> -->
+ 
     <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="false">
         <activity android:name=".Orbot"
                   android:theme="@android:style/Theme.NoTitleBar"

Modified: projects/android/trunk/Orbot/assets/torrc
===================================================================
--- projects/android/trunk/Orbot/assets/torrc	2010-03-06 02:06:00 UTC (rev 21825)
+++ projects/android/trunk/Orbot/assets/torrc	2010-03-06 04:11:36 UTC (rev 21826)
@@ -10,7 +10,5 @@
 RelayBandwidthRate 20 KBytes
 RelayBandwidthBurst 20 KBytes
 UseBridges 0
-UpdateBridgesFromAuthority 1
-bridge 74.82.1.191:19030
-bridge 221.31.40.135:4430
-bridge 24.110.168.130:443
+AutomapHostsOnResolve 1
+TransPort 9040
\ No newline at end of file

Modified: projects/android/trunk/Orbot/res/xml/preferences.xml
===================================================================
--- projects/android/trunk/Orbot/res/xml/preferences.xml	2010-03-06 02:06:00 UTC (rev 21825)
+++ projects/android/trunk/Orbot/res/xml/preferences.xml	2010-03-06 04:11:36 UTC (rev 21826)
@@ -1,5 +1,6 @@
 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android";>
 
+<PreferenceScreen android:title="Bridges">
 
 <CheckBoxPreference android:defaultValue="false" 
 android:title="Use Bridges" android:key="pref_bridges_enabled" 
@@ -14,6 +15,7 @@
 android:summary="IP address and port of bridges"
 android:dialogTitle="Enter Bridge Addresses"
 />
+</PreferenceScreen>
 
 
 <CheckBoxPreference 
@@ -23,13 +25,13 @@
 android:summary="ROOTED DEVICES ONLY: Activate Tor for all web traffic and DNS"
 android:enabled="true"/>
 
-<PreferenceCategory android:title="Relays">
+<PreferenceScreen android:title="Relays">
 <CheckBoxPreference android:key="pref_or"
 android:defaultValue="false"
 android:title="Relaying"
 android:summary="Enable your device to be a relay"
 android:dialogTitle="Enter Bridge Addresses"
-android:enabled="false"
+android:enabled="true"
 />
 
 <EditTextPreference android:key="pref_or_port"
@@ -46,15 +48,14 @@
 android:dialogTitle="Enter a custom relay nickname"
 />
 
-</PreferenceCategory>
+</PreferenceScreen>
 
-<PreferenceCategory android:title="FascistFirewalling">
+<PreferenceScreen android:title="FascistFirewalling">
 <CheckBoxPreference
 android:key="pref_fascist_firewall"
-android:defaultValue="false"
 android:title="Fascist Firewall"
 android:summary="Run as a client behind a firewall with restrictive policies"
-android:enabled="false"></CheckBoxPreference>
+android:enabled="true"></CheckBoxPreference>
 
 <EditTextPreference android:key="pref_fascist_firewall_ports"
 android:defaultValue="80,443"
@@ -62,6 +63,6 @@
 android:summary="Ports reachable behind a restrictive firewall"
 android:dialogTitle="Enter ports"
 />
-</PreferenceCategory>
+</PreferenceScreen>
 
 </PreferenceScreen>

Modified: projects/android/trunk/Orbot/src/org/torproject/android/Orbot.java
===================================================================
--- projects/android/trunk/Orbot/src/org/torproject/android/Orbot.java	2010-03-06 02:06:00 UTC (rev 21825)
+++ projects/android/trunk/Orbot/src/org/torproject/android/Orbot.java	2010-03-06 04:11:36 UTC (rev 21826)
@@ -477,6 +477,7 @@
 			}
 			
 		}
+		
 		String bridgeList = prefs.getString(PREF_BRIDGES_LIST,"");
 
 		if (useBridges)
@@ -512,6 +513,7 @@
 		else
 		{
 			torrcText.append("UseBridges 0");
+			torrcText.append('\n');
 		}
 
         try
@@ -531,13 +533,13 @@
         }
         catch (Exception e)
         {
-            Toast.makeText(this,Â"Your FascistFirewall settings caused an exception!",
+            Toast.makeText(this,"Your FascistFirewall settings caused an exception!",
                            Toast.LENGTH_LONG).show();
         }
 
         try
         {
-            if (becomeRelay && !useBridges && !fascistFirewall)
+            if (becomeRelay && (!useBridges) && (!fascistFirewall))
             {
                 int ORPort =  Integer.parseInt(prefs.getString(PREF_OR_PORT, "9001"));
                 String nickname = prefs.getString(PREF_OR_NICKNAME, "Orbot");
@@ -556,7 +558,7 @@
         }
         catch (Exception e)
         {
-            Toast.makeText(this,Â"Your relay settings caused an exception!", Toast.LENGTH_LONG).show();
+            Toast.makeText(this,"Your relay settings caused an exception!", Toast.LENGTH_LONG).show();
         }
 
 		Utils.saveTextFile(TorServiceConstants.TORRC_INSTALL_PATH, torrcText.toString());

Modified: projects/android/trunk/Orbot/src/org/torproject/android/TorConstants.java
===================================================================
--- projects/android/trunk/Orbot/src/org/torproject/android/TorConstants.java	2010-03-06 02:06:00 UTC (rev 21825)
+++ projects/android/trunk/Orbot/src/org/torproject/android/TorConstants.java	2010-03-06 04:11:36 UTC (rev 21826)
@@ -34,8 +34,8 @@
 	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";
-    public final static String PREF_OR = "pref_relay";
-    public final static String PREF_OR_PORT = "pref_relay_port";
+    public final static String PREF_OR = "pref_or";
+    public final static String PREF_OR_PORT = "pref_or_port";
     public final static String PREF_OR_NICKNAME = "pref_or_nickname";
     public final static String PREF_FASCIST_FIREWALL = "pref_fascist_firewall";
     public final static String PREF_FASCIST_FIREWALL_PORTS = "pref_fascist_firewall_ports";