Bug #6644

Downloading Files

Added by Anonymous almost 2 years ago. Updated almost 2 years ago.

Status:NewStart date:02/13/2016
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


OrFox doesn't allow me to download any files on android 5.0 tablet.


#1 Updated by chatch almost 2 years ago

I think this is happening because OrFox has been released with StrictMode on. I'm seeing errors like the following for download of some but not all file types:

W/Gecko ( 1304): type=1400 audit(0.0:7): avc: denied { execute } for name="Contents-amd64.gz" dev="fuse" ino=3066893344 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:fuse:s0 tclass=file permissive=0
E/StrictMode( 1208): file:// Uri exposed through Intent.getData()
E/StrictMode( 1208): java.lang.Throwable: file:// Uri exposed through Intent.getData()
E/StrictMode( 1208): at android.os.StrictMode.onFileUriExposed(StrictMode.java:1603)
E/StrictMode( 1208): at android.net.Uri.checkFileUriExposed(Uri.java:2341)
E/StrictMode( 1208): at android.content.Intent.prepareToLeaveProcess(Intent.java:7443)
E/StrictMode( 1208): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1479)
E/StrictMode( 1208): at android.app.Activity.startActivityForResult(Activity.java:3736)
E/StrictMode( 1208): at android.app.Activity.startActivityForResult(Activity.java:3697)
E/StrictMode( 1208): at android.support.v4.app.FragmentActivity.startActivityForResult(Unknown Source)
E/StrictMode( 1208): at org.mozilla.gecko.GeckoActivity.startActivityForResult(GeckoActivity.java:68)
E/StrictMode( 1208): at android.app.Activity.startActivity(Activity.java:4007)
E/StrictMode( 1208): at android.app.Activity.startActivity(Activity.java:3975)
E/StrictMode( 1208): at org.mozilla.gecko.GeckoActivity.startActivity(GeckoActivity.java:62)
E/StrictMode( 1208): at org.mozilla.gecko.GeckoAppShell.openUriExternal(GeckoAppShell.java:1125)
E/StrictMode( 1208): at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
E/StrictMode( 1208): at org.mozilla.gecko.GeckoAppShell.runGecko(GeckoAppShell.java:387)
E/StrictMode( 1208): at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:181)

Confirmed the version of Orfox in google play was shipped with StrictMode on:

./AppConstants.smali:.field public static final MOZ_UPDATE_CHANNEL:Ljava/lang/String; = "default"

results in enableStrictMode getting called here:


// Enable Android Strict Mode for developers' local builds (the "default" channel).
if ("default".equals(AppConstants.MOZ_UPDATE_CHANNEL)) {

Can you rerun the downloads with logcat turned on and post the log here? To confirm this is the same error your getting or not.

In any case the next build should set --enable-update-channel to something other then "default".

Also available in: Atom PDF