[guardian-dev] NPTor News - an OnionKit Sample App

Nathan of Guardian nathan at guardianproject.info
Mon Nov 12 17:39:32 EST 2012


As a test, I just made this "NPToR News" based on the NPR open source
news/podcasting app... NPR = the U.S.-based National Public Radio
service. They offer their app and API as open-source/open-protocol code
here:
https://code.google.com/p/npr-android-app

I am happy to report that listening to the radio over Tor is a pretty
decent experience, even over 3G.

I've modified the app to:

1) use HTTPS connections with the OnionKit's StrongHTTPClient and
StrongTrustManager. You will see a "Secure Connection Active" notify in
the notification bar, for example, when it connects.

2) use HTTP Proxying to Orbot's Privoxy/Tor localhost 8118 proxy

3) use the OrbotHelper to check if Orbot is installed/running and prompt
the user appropriately to resolve any issues

4) removed all Google tracking, advert display in the app

You can find the project here:
https://github.com/guardianproject/nptornews/

Changes here (removed their google tracking code as well):
https://github.com/guardianproject/nptornews/commit/e0b37b8de2cff73684189a461c2f53fe36e376b6

StreamProxy changes here (live audiostream over proxy):
https://github.com/guardianproject/nptornews/commit/e0b37b8de2cff73684189a461c2f53fe36e376b6#L28L161

APK test download here:
https://github.com/guardianproject/nptornews/NPToRNews-2.4.apk/qr_code

More on OnionKit for Android here:
https://github.com/guardianproject/OnionKit

+n

+n


More information about the Guardian-dev mailing list