Skip to content

[BUG] A17(+)/GOS | Managed-/Multi-Profiles - Invalid configuration Message on Not Profile That First Started Orbot (Android 17+ Security Measure?) #1730

Description

@TheNec

Describe the Bug

  • Does not Connect/Start Proxy, Invalid Configuration, Address (Port 9050) already in use, unlearned counting +1

To Reproduce

Steps to reproduce the behavior:

  1. Install Android 17
  2. [ EDIT ] Watch Orbot automatically connecting and running in Owner's Personal Profile after reboot [ edit ] OR Other Profile [ /edit ]
  3. While 2. - Watch Orbot failing Everywhere Else (In Managed-Profiles | Not tested under Secondary Users but should be the same
    [ EDIT ] behavior | Should also fail under Owner/Personal when started Somewhere Else Before I think [ edit ] Confirmed: Owner/Work
    [ EDIT ] first OR Owner/Secure first work -> Owner/Personal AND Owner/REMAINING fail [ /edit ]
  4. ( Transport jumps automatically from direct to obfs4 at least visually but doesn't do anything while failing equally )

Expected Behavior

Watch Orbot not failing Everywhere Else than in Owner's Personal or First Started Profile

Device/s

  • [ EDIT ] Affected: [ Pixel 10 Pro Fold | Pixel (7) Tablet ] | [ All Android 17(+) Devices? ]
  • [ EDIT ] OS (Phone): [ GrapheneOS (Most probably unrelated!) | Alpha Channel / Stable Release currently + Security Preview Releases ]
  • [ EDIT ] OS (Tablet): [ GrapheneOS (Most probably unrelated!) | Stable Channel / Release + Security Preview Releases ]
  • [ EDIT ] Version: [ Build 2026061800(+) / Android 17 + Security Preview Backports ]

[ EDIT ] Application Logs ( Phone | Not checked on Tablet but same behavior! )

Information GoLog: Opening Socks listener on 127.0.0.1:9050
Warning Tor-connection: Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
...
[ EDIT ] Warning Tor-connection: Could not bind to 127.0.0.1:8118: Address already in use. Is Tor already running? | Unrelated? See below!
Error Tor-api: Tor returned with an eror
Error TorService: java.lang.IllegalStateException: Tor could not start!
...
Information GoLog [notice]: Opening HTTP tunnel listener on 127.0.0.1:8118 | Unrelated? Works now!? Why/How?
Information GoLog [notice]: Closing partially... (several stuff)
Information GoLog [warn]: Failed to parse/validate config: Failed to bind one of the listener ports.
...
Error TorService: java.io.IOException: cannot read /data/user/13/org.torproject.android/app_TorService/data/ControlSocket

btw. Address already in use -> Socket already in use.

Additional Context

Before finding the Address already in use (On Port 9050) Warning my first guess was a New Security Measure introduced with Android 17 that Prevents Cross Profile Using Of Localhost Webservers so that the guys maybe couldn't talk to each other which is still my only guess but doesn't explain why the HTTP-Port doesn't work at first but later - maybe not in use by Other Orbot? There are also some Memory Tagging Engine crashes but those are not very often so most probably also unrealated.

Btw. I've had a Similar Issue before usually When Updating Orbot from the Personal Profile while Also Running in Work and/or Secure Profile/s leading to Race Conditions where the Winner Takes Port 9050 and the Other/s Fail/s because it/they Also Want To Use Port 9050 but Without Trying To Change it to 9051+ needing a restart to solve this. So I think both problems could be solved by making the claiming mechnism more robust.

E.g.:

if ( Warning == Tor-connection: Could not bind to 127.0.0.1:9050: Socket already in use. Is Tor already running? )

{

$port = $port++

}

or something like that. ( Alternatives: 127.[0-255].[0-255].[2-254]:9050 )

Thank you in advance and thanks for your work on Orbot! =)


[ EDIT ] If anyone has the Same Connection Problem After Orbot Updates as Described Above: Restart is not needed (anymore?) with
[ EDIT ] recent versions. Close/Freeze/Lock all Orbot Running Profiles except The Last One/The First One You Want To Start Orbot in. If it
[ EDIT ] couldn't connect before it should now connect. If this doesn't work automatically open the app and manually dis-/connect. Start
[ EDIT ] sub-profiles again. Orbot connections should work now.

Metadata

Metadata

Assignees

Labels

Android 17concerned with devices running API 37, new permissions and changes that broke after an OS upgradeBugsomething's broken !GrapheneOSrunning Orbot on GrapheneOS - unique GOS bugs and generic issues that GOS users tend to see first

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions