From 6c48f042f9f9f39f915348be21da87e5d1a1d5dc Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sun, 3 Jul 2011 14:28:00 +0000 Subject: [PATCH] - Hook up start and stop router menu items - More updates to release notes --- res/raw/releasenotes_txt | 24 +++++++++++++++---- .../router/activity/I2PActivityBase.java | 18 +++++++++++++- .../android/router/activity/MainActivity.java | 1 + .../android/router/service/RouterService.java | 2 +- 4 files changed, 39 insertions(+), 6 deletions(-) diff --git a/res/raw/releasenotes_txt b/res/raw/releasenotes_txt index f49fa26f4..a6a21179c 100644 --- a/res/raw/releasenotes_txt +++ b/res/raw/releasenotes_txt @@ -27,13 +27,19 @@ Embedded web browser The browser does not use the outproxy for regular web sites. Javascript is disabled. The following problems with eepsites are probably not fixable except on Android 3.0 (Honeycomb - i.e. tablets) due to API limitations. I don't have a tablet to test on, so I haven't made any effort to work on it. The workaround is to use Firefox Mobile 4 and the ProxMob plugin (see below). + - Leaks .i2p DNS requests + - Can't load cross-site images or CSS - No POSTs to forms For eepsites, there are several other things to note: - - No cookies - No way to type in addresses - Several issues with images and CSS fetches - Non-HTML links (pdf, text, images, torrent, etc.) probably don't work + - Frame support is flaky + +For eepsites and websites, problems include: + - No cookies + - History and back issues Using clients with the router @@ -48,8 +54,6 @@ The IRC proxy is tested with the "Android IRC Free" app. The IRC proxy destinati * Port 6669: irc.welterde.i2p * Port 6670: irc.telecomix.i2p -Report results and bugs on the zzz.i2p Android forum. New versions will be announced there. - Further anonymity warnings -------------------------- @@ -58,7 +62,19 @@ Further anonymity warnings * Exploratory and Client Tunnels are 1 hop + 0-1 hops * Sharing IRC and HTTP proxies on same tunnels allows for linking * Not well-tested -* There may be DNS leaks +* There are .i2p DNS leaks * Cell phones aren't exactly secure environments * This app does not attempt to "sanitize" your phone, make you safe from Google, or capture and route traffic from any other apps over I2P * The app does not require root or do anything with iptables, for example, to route or block traffic. + + +Bugs and Support +---------------- + +Report results and bugs on the zzz.i2p Android forum (preferred) or on trac.i2p2.i2p. New versions will be announced on zzz.i2p. + + +Help Wanted! +------------ + +Want to help make the app better? Volunteer on the zzz.i2p Android forum. Want to donate money or bitcoins to buy more Android devices, including tablets, for development and testing? Go to www.i2p2.i2p/donate. diff --git a/src/net/i2p/android/router/activity/I2PActivityBase.java b/src/net/i2p/android/router/activity/I2PActivityBase.java index 69ecfa4ea..7b699646c 100644 --- a/src/net/i2p/android/router/activity/I2PActivityBase.java +++ b/src/net/i2p/android/router/activity/I2PActivityBase.java @@ -174,9 +174,25 @@ public abstract class I2PActivityBase extends Activity { startActivity(i3); return true; - case R.id.menu_reload: case R.id.menu_start: + RouterService svc = _routerService; + if (svc != null && _isBound && svc.canManualStart()) { + setPref(PREF_AUTO_START, true); + svc.manualStart(); + } else { + startRouter(); + } + return true; + case R.id.menu_stop: + RouterService rsvc = _routerService; + if (rsvc != null && _isBound && rsvc.canManualStop()) { + setPref(PREF_AUTO_START, false); + rsvc.manualStop(); + } + return true; + + case R.id.menu_reload: // handled in WebActivity default: return super.onOptionsItemSelected(item); } diff --git a/src/net/i2p/android/router/activity/MainActivity.java b/src/net/i2p/android/router/activity/MainActivity.java index d5242ea8f..7aed83e59 100644 --- a/src/net/i2p/android/router/activity/MainActivity.java +++ b/src/net/i2p/android/router/activity/MainActivity.java @@ -141,6 +141,7 @@ public class MainActivity extends I2PActivityBase { } }); + /* hidden, unused */ b = (Button) findViewById(R.id.router_stop_button); b.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { diff --git a/src/net/i2p/android/router/service/RouterService.java b/src/net/i2p/android/router/service/RouterService.java index 3f008bc6f..61f9edc32 100644 --- a/src/net/i2p/android/router/service/RouterService.java +++ b/src/net/i2p/android/router/service/RouterService.java @@ -291,7 +291,7 @@ public class RouterService extends Service { if (_state == State.STARTING) _starterThread.interrupt(); if (_state == State.STARTING || _state == State.RUNNING) { - _statusBar.replace("Quitting I2P"); + _statusBar.replace("Stopping I2P"); Thread stopperThread = new Thread(new Stopper(State.MANUAL_QUITTING, State.MANUAL_QUITTED)); stopperThread.start(); } else if (_state == State.WAITING) { -- GitLab