Comments (7)
Android's Binder
model means that all the things that need Tor bind to it with BIND_IMPORTANT
. That tells Android to keep it alive. Then for letting TorService
quit when idle, there is a built-in mechanism to shutdown a Service
when nothing is bound to it. The Android docs explicitly recommend bindService
for IPC: https://developer.android.com/guide/components/processes-and-threads
More on bound services: https://developer.android.com/guide/components/bound-services
from tor-android.
Orbot does this today. OrbotService is the application specific foreground service that then binds to TorService:
https://github.com/guardianproject/orbot/blob/master/orbotservice/src/main/java/org/torproject/android/service/OrbotService.java#L759
from tor-android.
The Chromium docs outline some nice security properties of bound services:
https://chromium.googlesource.com/chromium/src.git/+/refs/heads/main/docs/security/android-ipc.md#binder
from tor-android.
It seems to me that we should be recommending WorkManager here also. Google is putting a lot of work into it to make it the complete background task runner. This is based on this discussion #61 (comment)
WorkManager started out for short lived background tasks, but has been extended to handle foreground and long-lived tasks:
- https://developer.android.com/topic/libraries/architecture/workmanager/advanced/long-running
- https://developer.android.com/topic/libraries/architecture/workmanager/how-to/define-work#quotas
from tor-android.
heya I was wondering is there any documentation on implementing torservice on android? I tried the sampleapp, which doesn't work for me as well.
from tor-android.
from tor-android.
@eighthave atm I couldn't even start the sampleapp. even tho I just clone it from the repo.
from tor-android.
Related Issues (20)
- Version 0.4.7.11 is not available HOT 7
- How to launch request for exemple with retrofit through tor ? there is no example pls ?
- TCP ControlPort socket HOT 3
- Themed icon support HOT 1
- Closed issue
- Add "Open by default" .onion links HOT 1
- getting message this is HTTP Connect Tunnel, not an HTTP Proxy HOT 8
- Update to tor 0.4.8 with PoW Defense HOT 3
- Hidden service? HOT 1
- E
- Is sampleTorApp possible to open onion nodes
- How fix error from TorControlError Error reply: Authentication required
- TrendMicro AV & sandbox Zenbox flags 17.1.1-RC1 tor 0.4.8.7 as MALWARE TROJAN EVADER
- Error Report: Connection Issues and Empty Responses with Response Code 204 in Tor Android Library in webview HOT 1
- Which version of openSSL is used in this project ? HOT 2
- Optimize openssl3 binary
- Ship geoip and geoip6 in tor-android
- Why do 'x86' and 'armeabi-v7a' abis set NDK platform level to 19 when other archs set it to 21 HOT 1
- move to openssl 1.1.1 stable branch HOT 2
- Add to f-droid repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tor-android.