What is ERROR_INTERNAL

I want to install a .obb file from external storage. I wrote these codes.

storageManager.mountObb(obbPath, key, new OnObbStateChangeListener() { @Override public void onObbStateChange(String path, int state) { switch (state) { case ERROR_ALREADY_MOUNTED: storageManager.unmountObb(rawPath, true, this); break; case UNMOUNTED: storageManager.mountObb(rawPath, key, this); break; case MOUNTED: File mountedDir = new File(storageManager.getMountedObbPath(path)); // do something with mountedDir break; case ERROR_COULD_NOT_MOUNT: case ERROR_INTERNAL: case ERROR_PERMISSION_DENIED: // Error occurred!! break; } } }); 

Now I am doing this, my OnObbStateChangeListener gets state = ERROR_INTERNAL (20) .

What is this error code? How to fix it?


Addition: I found this post: What causes the jobb tool to throw a FAT Full IOException? This is probably the answer. My obb file is broken.

thanks.

+4
source share
1 answer

It looks like this constant is set in the MountService class (com.android.server package). You can see the source code here: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.1_r1/com/android/server/MountService.java , but as you can see, there are various reasons for setting the state to ERROR_INTERNAL

-one
source

All Articles