Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update for JellyBean

For JB mount command need more arguments: fmask & dmask, or the time will be invalid and some Explorer app can not access usb stick

Signed-off-by: Shaka Huang <shaka@cs03.org>
  • Loading branch information...
commit 3f08acb5d5aadfa1e38ec78138633ac55241281a 1 parent 356b01c
Shaka Huang authored
2  project.properties
@@ -8,4 +8,4 @@
8 8 # project structure.
9 9
10 10 # Project target.
11   -target=android-15
  11 +target=android-16
6 src/com/corner23/android/usb_otg_manager/Main.java
@@ -212,7 +212,11 @@ private int doMount() {
212 212 }
213 213
214 214 // do real mount
215   - response = Root.executeSU("mount -r " + (bReadOnly ? "" : "-w") + " -o utf8 -t " + fsTypes[fsType] + " " + STORAGE_DEVICE_PATH + " " + MOUNT_PATH);
  215 + String JB_str = "";
  216 + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
  217 + JB_str = "fmask=0000,dmask=0000,";
  218 + }
  219 + response = Root.executeSU("mount -r " + (bReadOnly ? "" : "-w") + " -o " + JB_str + "utf8 -t " + fsTypes[fsType] + " " + STORAGE_DEVICE_PATH + " " + MOUNT_PATH);
216 220 if (response != null) {
217 221 Log.d(TAG, "Error mounting usb storage :" + response);
218 222 Root.executeSU("rmdir " + MOUNT_PATH);

0 comments on commit 3f08acb

Please sign in to comment.
Something went wrong with that request. Please try again.