[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-dev] reproducible builds for Android tor daemon
- To: tor-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [tor-dev] reproducible builds for Android tor daemon
- From: Hans-Christoph Steiner <hans@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 Sep 2019 12:50:43 +0200
- Autocrypt: addr=hans@xxxxxxxxxxxxxxxxxxxx; prefer-encrypt=mutual; keydata= mQINBFY1RO0BEAC94s679hO9oxi2h1GF0hN7xCXxeIyJp58rA2QxuMJ/NvMhrfBGVqhkolUb 7IqvHy8n7jvTCCAJOHP6ZAtUUwV20ZpUa2Mfp0/6dbGkvXcXwGlU9ShpBiXnDsKvgRRX5gOO /WeWLe8x8HRcFfcJVXS9pHRw2bxjrbs3zKlf7yBACcSt6ZSgPsqHuUQSUs4Qo0E0/H14uJiD k32qQ1YicVrE1r2pFe9iZpxBMGTwgZyNUEUYDeVfTDubL7Jc1MUpgotNTxbJ3jVxt0uHn20l hNXG6ybaYK3MhIHIEp9Nbd4l6+Y81ZgIQbs4jAbAPcy+qY3GT2uQfbFb2UK8+hnDotGmejgo YuDZGBaAukiELIKxrsNCvaSg5DI/yrH6Vx6ZceHpitrer6yOwZescc5SGud3btU4Iktfw7w+ 5pxmyypUazaltibSd13o56n/aKrQZw098bhqnh9xTbPVK14t4wTdsJKyZmJv8oKCqppEuhTc q8kur0PWOM85NSBl0igSfj8/CR8CbzgasMPNQVVwUA0Ody0s8wO13+WVaLq7y6Xpy9t6jSVv S8KLgmJ/wTJimHb2cctHNBSQEwnJtRyy/o7kKnge6HPzOprjPAlv6okA2XQaLTxyjW1YCRwN GatNAJ2WnJx3m89WGRONN6qQ3RFX59kbyzR1uL6D3Z6ts7bTmwARAQABtDJIYW5zLUNocmlz dG9waCBTdGVpbmVyIDxoYW5zQGd1YXJkaWFucHJvamVjdC5pbmZvPokCfgQTAQoAaAIbAQUL CQgHAwUVCgkICwUWAgMBAAIeAQIXgAI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4Wfyf2a7bLufsaNR/YOXLLROeZnzntF7MhS9oO+c8Z/J5py0F0KDRrhCrqb u9lRKRcxpPslTd8DKZ3Qtv64Ij/rPVDzsyHgtcgFd7E6fkKGHeiwz67WjFoLUnf09ry7rua+ yqP9FP9bXSbDaeAq9sGXH7wPTAAwbGSX
- Delivered-to: archiver@xxxxxxxx
- Delivery-date: Thu, 12 Sep 2019 06:51:02 -0400
- List-archive: <http://lists.torproject.org/pipermail/tor-dev/>
- List-help: <mailto:tor-dev-request@lists.torproject.org?subject=help>
- List-id: discussion regarding Tor development <tor-dev.lists.torproject.org>
- List-post: <mailto:tor-dev@lists.torproject.org>
- List-subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev>, <mailto:tor-dev-request@lists.torproject.org?subject=subscribe>
- List-unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-dev>, <mailto:tor-dev-request@lists.torproject.org?subject=unsubscribe>
- Openpgp: preference=signencrypt
- Organization: Guardian Project
- Reply-to: tor-dev@xxxxxxxxxxxxxxxxxxxx
- Sender: "tor-dev" <tor-dev-bounces@xxxxxxxxxxxxxxxxxxxx>
Hey all,
I'm currently working on tor for Android as part of a Guardian Project
project. One key goal is making a shareable, reproducible build process
for the tor daemon for Android. Then this would be published to
MavenCentral as an Android AAR package to be used in all the apps that
include tor (Tor Browser, Orbot, Briar, Thali, etc). I have cleaned up
the existing build process a lot, so now I'm down to troubleshooting
reproducible issues.
First off, can anyone see any objections to switching Tor Browser,
Orbot, Briar, etc. to use GPG-signed reproducible binaries via
MavenCentral for the tor dameon?
Second, I'd welcome pointers to the integration points in Tor Browser,
Briar, etc.
And third, and tips on getting a Linux shared library to build
reproducibly. E.g. is faketime a hard requirement?
And for those interested, the here's an overview of the whole project
I'm tasked with:
The basic idea is to make an Android-native TorService, which is a
subclass of android.app.Service and loads tor daemon as a shared
library, and starts it via JNI methods. This should be pretty close to
how iOS apps use tor. Then that TorService should then plug into Orbot,
Tor Browser, Briar, etc. Then based on that, I'll make a standalone,
dead simple "TorServices" app that only provides Tor. No PTs, HSs, etc.,
just a tor daemon linked in as a shared library, providing a SOCKS and
HTTP CONNECT proxy via tor. I hope to switch the ControlPort to use a
UNIX domain socket. This then can also be embedded into Android OS ROMs
that want to have Tor built-in as a system service, like CalyxOS.
Then I'll be working on the apps choosing which tor provider to use,
since we'll have a new TorServices, so apps that don't include Tor will
have to figure out how to use Orbot and/or TorServices. Then that work
will hopefully be extended into sharing tor between apps, e.g. letting
Briar, Tor Browser, etc share the tor SOCKS proxy to other apps that
want to use it. That would happen via Android mechanisms like Intents to
manage the discovery of SOCKS ports.
.hc
--
PGP fingerprint: EE66 20C7 136B 0D2C 456C 0A4D E9E2 8DEA 00AA 5556
https://pgp.mit.edu/pks/lookup?op=vindex&search=0xE9E28DEA00AA5556
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev