[guardian-dev] Orfox / Fennec browser build latest assessment
str4d at i2pmail.org
Tue Apr 7 22:13:53 EDT 2015
-----BEGIN PGP SIGNED MESSAGE-----
Nathan of Guardian wrote:
> Amogh got the latest Fennec code building, to get our Orfox effort
> started again. I thought I would share some of his findings below.
Thanks for keeping us all updated on this exciting effort.
I feel this is an appropriate moment to raise the point of I2P
integration. (For the lists's benefit: I contacted Nathan just over a
year ago asking about the potential for I2P integration in Orfox
alongside Tor, and he was very supportive.) Based on the findings
below, I think it would be a good idea to discuss how the network
integration will go ahead, with consideration of the desired (to my
knowledge) goal of making Orfox a "privacy browser", rather than just
a "Tor browser".
I will say upfront that I am happy to contribute to a multi-network
effort. I am the developer of the I2P Android app (which this effort
would be directly leveraging), and can contribute I2P-specific
knowledge alongside Android development experience.
> After going through the source code for firefox for andoroid which
> can be found at http://hg.mozilla.org/mozilla-central/ , these
> were the network related findings that I've made. The application
> uses maily 3 layers to work. 1) The core layer, written in C++. 2)
> A JS layer with some more functional code. 3) A Java layer that
> makes uses the Android API's and other code used for android.
> Out of the 3 layers, 2 of them make network calls. 1) The C++
> layer. There is an advantage of this layer making the network calls
> as all the calls made by this layer are proxied. They obey the
> fennec settings for proxy that has currently been set at
> mozilla-central/mobile/android/app/mobile.js . Hence, we do not
> need to bother about setting proxy to these connections and calls.
Sounds promising. The I2P Android app has the same ability as the
desktop version to set up and run proxy tunnels that other apps
subsequently use, so an I2P socks proxy tunnel should be usable in the
same way as the Tor SOCKS proxy. The only issue here would be the
necessary multi-proxy support, which I gather would mostly be UI work.
> 2) The Java layer. The Java code, the code run by android also has
> many network calls but the problem is that these calls are not
> done obeying the tor proxy and hence they are harmful. List of
> places where these calls are made are: a) any class which imports
> org.apache.* (commons.net.ftp.*, http.*):
Is this saying that the network calls made here are not proxy-able, or
that they just need to be fixed to use the same proxy settings?
Further reading indicates that the org.apache.http.* APIs are
deprecated in API 22  and is not recommended for Gingerbread and
higher . The recommended API does support proxying [2,3]. The code
paths above do appear to be Android-specific, and could perhaps be
migrated upstream to the newer API.
One advantage that I2P may have here is that Android applications can
make direct use of its Java API, which includes a socket interface
analogous to java.net.Socket. This gives the application full control
over their tunnels and private keys. I am not yet sure if this will be
of any use for Orfox specifically, but it is worth thinking about
while we establish the means by which multiple networks would be
supported. Perhaps (speculating here) the I2P integration could be
made through a local java.net.Proxy run by Orfox itself, which would
enable it to leverage I2P-specific privacy features without
compromising its ability to support multiple networks.
Food for thought, but I am very excited at the prospect of a
well-implemented, general, privacy- and anon-aware Android browser.
> b) The browser also seems to be using another library for network
> communications and that lies at
> mobile/android/thirdparty/ch/boye/httpclientandroidlib This library
> seems to have proxy support but the calls made to this library have
> not been proxied, a list of those are here:
This is the url for the query,
> Not all these classes make network calls, I will make a shorter
> list of this in the next few days.
> _______________________________________________ List info:
> https://lists.mayfirst.org/mailman/listinfo/guardian-dev To
> unsubscribe, email: guardian-dev-unsubscribe at lists.mayfirst.org
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
More information about the guardian-dev