Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: README.md

Issue 1421583006: Instructions on avoiding exception when running mojo on Marshmallow. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: README.md
diff --git a/README.md b/README.md
index a9dd13dfc7553606993a04e5f51440bc5f73d8be..4e2e02b5dad4513d0594d8f79eb1dc75bd73aaeb 100644
--- a/README.md
+++ b/README.md
@@ -110,6 +110,21 @@ $ mojo/tools/mojob.py build --android
The result will be in out/android_Debug. If you see javac compile errors,
[make sure you have an up-to-date JDK](https://code.google.com/p/chromium/wiki/AndroidBuildInstructions#Install_Java_JDK)
+#### Marshmallow
+Running mojo on Marshmallow might raise an Exception `"Unable to find fifo"`. As
+a temporary solution, you can go to `Settings` -> `Apps` -> `Mojo Shell (dev)`
+-> `Permissions` and allow for `Storage`.
+
+*Explanation*: Starting in API level 23 (Marshmallow) the applications need to
etiennej 2015/10/30 16:20:28 I don't think you should put explanation here. I s
+request read/write permissions at runtime. An exception to this rule is for
+files stored in the folder returned by method [Context.getExternalFilesDir(String)](http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String))
+which can be used without permissions. This folder looks like
+`"/storage/emulated/0/Android/data/org.chromium.mojo.shell/files"`. Ideally we
+should write files (e.g. the argument's file, used when starting the application)
+in this directory. However, for some reasons, we cannot do it for now when the
+phone is not rooted. As a temporary fix, you can manually add storage permissions
+for the Mojo Shell app the exception should disappear.
+
### Goma (Googlers only)
If you're a Googler, you can use Goma, a distributed compiler service for
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698