[tbb-bugs] #28704 [Applications/Tor Browser]: Compile Tor and dependencies on our own for Android

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jan 30 21:30:11 UTC 2020


#28704: Compile Tor and dependencies on our own for Android
-------------------------------------------------+-------------------------
 Reporter:  gk                                   |          Owner:  sisbell
     Type:  defect                               |         Status:
                                                 |  needs_revision
 Priority:  High                                 |      Milestone:
Component:  Applications/Tor Browser             |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  tbb-mobile, tbb-rbm, tbb-parity,     |  Actual Points:
  TorBrowserTeam202001                           |
Parent ID:                                       |         Points:  0
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by sisbell):

 Yes, I think you are right. Android only loads from /system/lib so I'll
 need to explicitly load openssl and the other shared libs. I'm not sure
 loading them from the android app will work, however, as tor is a spawned
 process. I'm looking into this now.

 Replying to [comment:18 sysrqb]:
 > Replying to [comment:15 sisbell]:
 > > I've made progress to getting libraries running as shared libraries
 but have hit a blocker that I need help with
 > >
 > > The problem occurs when I try to run tor browser. I get a missing
 symbol where libTor can't find a symbol from openssl
 > >
 > >
 > > {{{
 > >   10744 10744 F linker  : CANNOT LINK EXECUTABLE
 "/data/app/org.torproject.torbrowser-
 o2cGxqnhQbWOPhFKKcOFiA==/lib/arm/libTor.so": cannot locate symbol
 "SSL_CTX_set_security_level" referenced by "/data/app/org.torproject
 .torbrowser-o2cGxqnhQbWOPhFKKcOFiA==/lib/arm/libTor.so"...
 > > }}}]
 >
 > Taking a guess, tor is probably using a version of openssl shipped with
 Android. I doubt apps look in their `lib/` directory by default for
 libraries.
 >
 > As an example, Mozilla loads shared libraries manually:
 https://searchfox.org/mozilla-
 central/source/mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/GeckoLoader.java#410
 >
 > You can try setting LD_LIBRARY_PATH on the command line, for testing. If
 that works, then we should think about how we should solve this problem.
 There are a few options. One option is we modify TOPL:
 >
 >
 https://github.com/thaliproject/Tor_Onion_Proxy_Library/blob/master/universal/src/main/java/com/msopentech/thali/toronionproxy/OnionProxyManager.java#L567

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28704#comment:20>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tbb-bugs mailing list