onionshare / onionshare-android

Android version of OnionShare
https://onionshare.org/
GNU General Public License v3.0
169 stars 19 forks source link

IOExceptions thrown by onionwrapper are fatal #94

Closed akwizgran closed 1 year ago

akwizgran commented 1 year ago

The onionwrapper library throws IOExceptions for control port commands that fail. In particular it throws TorNotRunningException if the Tor process has been killed, which can happen on some Oppo/OnePlus/Realme phones. OnionShare doesn't catch these exceptions, so they crash the app. We should handle them gracefully.

Also let's open a ticket upstream for Kotlin to support checked exceptions. ;-)

grote commented 1 year ago

I was always using https://github.com/thirdegg/lint-rules but this was never working very well and seems unmaintained now.