[tbb-bugs] #26574 [Applications/Tor Browser]: Save TBA updates in the internal android storage

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jul 2 10:41:52 UTC 2018


#26574: Save TBA updates in the internal android storage
--------------------------------------+--------------------------
 Reporter:  igt0                      |          Owner:  tbb-team
     Type:  defect                    |         Status:  new
 Priority:  Medium                    |      Milestone:
Component:  Applications/Tor Browser  |        Version:
 Severity:  Normal                    |     Resolution:
 Keywords:  tbb-mobile                |  Actual Points:
Parent ID:                            |         Points:
 Reviewer:                            |        Sponsor:
--------------------------------------+--------------------------

Comment (by igt0):

 I found a workaround that allows the PackageInstaller to access the
 file[File.setReadable(true, false)] [0].

 However, when the APK is being installed, Fennec throws a strict policy
 violation exception:


 {{{
 07-01 22:05:55.557  1088  1113 D InputDispatcher: Window went away:
 Window{d6eb27c u0
 com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity}
 07-01 22:05:56.034 16797 16797 D StrictMode: StrictMode policy violation;
 ~duration=3 ms: android.os.StrictMode$StrictModeDiskReadViolation:
 policy=589855 violation=2
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1263)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 libcore.io.BlockGuardOs.stat(BlockGuardOs.java:292)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 java.io.File.isDirectory(File.java:522)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 org.mozilla.gecko.GeckoThread.canUseProfile(GeckoThread.java:200)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 org.mozilla.gecko.GeckoThread.canUseProfile(GeckoThread.java:224)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 org.mozilla.gecko.GeckoService.initGecko(GeckoService.java:173)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 org.mozilla.gecko.GeckoService.handleIntent(GeckoService.java:194)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 org.mozilla.gecko.GeckoService.onStartCommand(GeckoService.java:233)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3062)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 android.app.ActivityThread.access$2200(ActivityThread.java:163)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 android.os.Handler.dispatchMessage(Handler.java:102)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 android.os.Looper.loop(Looper.java:148)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 android.app.ActivityThread.main(ActivityThread.java:5585)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 java.lang.reflect.Method.invoke(Native Method)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
 07-01 22:05:56.034 16797 16797 D StrictMode:    at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
 }}}




 [0]
 https://developer.android.com/reference/java/io/File#setReadable(boolean)

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


More information about the tbb-bugs mailing list