[Galaxy S 4 i9500 Original Android Development] darkmxd:
UMS error

[MENTION=2386505]Alberto96[/MENTION] I can not access the storage through ums, here is the logcat.

E/UsbSettings(26031): UsbAccessoryMode false
E/UsbSettings(26031): USB Normal Mode
I/ValidateNoPeople( 3204): skipping global notification
I/PackageManager( 3204): Updating external media status from mounted to unmounted
I/PackageManager( 3204): Found stale container com.artelplus.howtotie-1 with no matching settings
I/PackageManager( 3204): Found stale container bubble.clinometer.spirit.level-1 with no matching settings
I/PackageManager( 3204): Found stale container com.quoord.tapatalkxda.activity-2 with no matching settings
W/art ( 3204): Long monitor contention event with owner method=void com.android.server.pm.PackageManagerService.unloadMediaPackages(android.util.ArrayMap, int[], boolean) from PackageManagerService.java:14031 waiters=0 for 137ms
W/art ( 3204): Long monitor contention event with owner method=int com.android.server.am.ActivityManagerService.broadcastIntent(android.app.IApplicationThread, android.content.Intent, java.lang.String, android.content.IIntentReceiver, int, java.lang.String, android.os.Bundle, java.lang.String, int, boolean, boolean, int) from ActivityManagerService.java:16618 waiters=0 for 114ms
E/UsbSettings(26031): UsbAccessoryMode false
E/UsbSettings(26031): USB Normal Mode
D/WifiService( 3204): acquireWifiLockLocked: WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@1914acb6}
D/WifiService( 3204): releaseWifiLockLocked: WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@1914acb6}
D/TaskPersister( 3204): removeObsoleteFile: deleting file=1095_task.xml
D/TaskPersister( 3204): removeObsoleteFile: deleting file=1095_task_thumbnail.png
I/art ( 3204): Explicit concurrent mark sweep GC freed 110063(7MB) AllocSpace objects, 36(2MB) LOS objects, 27% free, 41MB/57MB, paused 1.359ms total 97.916ms
I/PackageManager( 3204): Updating external media status from unmounted to unmounted
I/blue (16841): storage path "/storage/sdcard1" unmounting
D/Vold ( 2484): Volume sdcard1 state changing 4 (Mounted) -> 5 (Unmounting)
D/MountService( 3204): sendStorageIntent Intent { act=android.intent.action.MEDIA_EJECT dat=file:///storage/sdcard1 flg=0x4000000 (has extras) } to UserHandle{-1}
D/MediaProvider( 3328): deleting all entries for storage StorageVolume:
D/MediaProvider( 3328): mStorageId=131073 mPath=/storage/sdcard1 mDescriptionId=17041018
D/MediaProvider( 3328): mPrimary=false mRemovable=true mEmulated=false mMtpReserveSpace=0
D/MediaProvider( 3328): mAllowMassStorage=true mMaxFileSize=0 mOwner=null mUuid=3136-3631
D/MediaProvider( 3328): mUserLabel=null mState=mounted mAllowMtp=true
I/Vold ( 2484): /mnt/secure/asec sucessfully unmounted
I/Vold ( 2484): /storage/sdcard1 sucessfully unmounted
I/PackageManager( 3204): Updating external media status from unmounted to unmounted
I/Vold ( 2484): /mnt/media_rw/sdcard1 sucessfully unmounted
I/Vold ( 2484): /mnt/media_rw/sdcard1 unmounted successfully
D/Vold ( 2484): Volume sdcard1 state changing 5 (Unmounting) -> 1 (Idle-Unmounted)
D/MountService( 3204): volume state changed for /storage/sdcard1 (mounted -> unmounted)
E/VoldConnector( 3204): NDC Command {17 volume unmount /storage/sdcard1 force} took too long (2117ms)
E/Vold ( 2484): Unable to open ums lunfile /sys/class/android_usb/android0/f_mass_storage/lun/file (No such file or directory)
E/Vold ( 2484): Unable to find ums lunfile for LUN 0
W/Vold ( 2484): Returning OperationFailed - no handler for errno 22
E/Vold ( 2484): Unable to open ums lunfile /sys/class/android_usb/android0/f_mass_storage/lun/file (No such file or directory)
E/Vold ( 2484): Unable to find ums lunfile for LUN 0
W/Vold ( 2484): Returning OperationFailed - no handler for errno 22
E/MountService( 3204): Failed to share/unshare
E/MountService( 3204): com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '18 volume share /storage/sdcard1 ums' failed with '400 18 volume operation failed (Invalid argument)'
E/MountService( 3204): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:431)
E/MountService( 3204): at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:367)
E/MountService( 3204): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:332)
E/MountService( 3204): at com.android.server.MountService.doShareUnshareVolume(MountService.java:745)
E/MountService( 3204): at com.android.server.MountService.access$200(MountService.java:119)
E/MountService( 3204): at com.android.server.MountService$UmsEnableCallBack.handleFinished(MountService.java:410)
E/MountService( 3204): at com.android.server.MountService$MountServiceHandler.handleMessage(MountService.java:533)
E/MountService( 3204): at android.os.Handler.dispatchMessage(Handler.java:102)
E/MountService( 3204): at android.os.Looper.loop(Looper.java:135)
E/MountService( 3204): at android.os.HandlerThread.run(HandlerThread.java:61)
E/MountService( 3204): Failed to share/unshare
E/MountService( 3204): com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '19 volume share /storage/sdcard1 ums' failed with '400 19 volume operation failed (Invalid argument)'
E/MountService( 3204): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:431)
E/MountService( 3204): at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:367)
E/MountService( 3204): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:332)
E/MountService( 3204): at com.android.server.MountService.doShareUnshareVolume(MountService.java:745)
E/MountService( 3204): at com.android.server.MountService.notifyVolumeStateChange(MountService.java:1094)
E/MountService( 3204): at com.android.server.MountService.onEvent(MountService.java:953)
E/MountService( 3204): at com.android.server.NativeDaemonConnector.handleMessage(NativeDaemonConnector.java:120)
E/MountService( 3204): at android.os.Handler.dispatchMessage(Handler.java:98)
E/MountService( 3204): at android.os.Looper.loop(Looper.java:135)
E/MountService( 3204): at android.os.HandlerThread.run(HandlerThread.java:61)
E/MountService( 3204): at com.android.server.ServiceThread.run(ServiceThread.java:46)
I/blue (16841): storage path "/storage/sdcard1" unmounted
D/MountService( 3204): sendStorageIntent Intent { act=android.intent.action.MEDIA_UNMOUNTED dat=file:///storage/sdcard1 flg=0x4000000 (has extras) } to UserHandle{-1}
E/Vold ( 2484): Unable to open ums lunfile /sys/class/android_usb/android0/f_mass_storage/lun/file (No such file or directory)
E/Vold ( 2484): Unable to find ums lunfile for LUN 0
W/Vold ( 2484): Returning OperationFailed - no handler for errno 22
E/MountService( 3204): Failed to share/unshare
E/MountService( 3204): com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '20 volume share /storage/sdcard1 ums' failed with '400 20 volume operation failed (Invalid argument)'
E/MountService( 3204): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:431)
E/MountService( 3204): at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:367)
E/MountService( 3204): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:332)
E/MountService( 3204): at com.android.server.MountService.doShareUnshareVolume(MountService.java:745)
E/MountService( 3204): at com.android.server.MountService.access$200(MountService.java:119)
E/MountService( 3204): at com.android.server.MountService$UmsEnableCallBack.handleFinished(MountService.java:410)
E/MountService( 3204): at com.android.server.MountService$MountServiceHandler.handleMessage(MountService.java:533)
E/MountService( 3204): at android.os.Handler.dispatchMessage(Handler.java:102)
E/MountService( 3204): at android.os.Looper.loop(Looper.java:135)
E/MountService( 3204): at android.os.HandlerThread.run(HandlerThread.java:61)
I/ActivityManager( 3204): Start proc 26072:com.android.externalstorage/u0a8 for broadcast com.android.externalstorage/.MountReceiver
I/art ( 2527): Explicit concurrent mark sweep GC freed 706(30KB) AllocSpace objects, 0(0B) LOS objects, 40% free, 16MB/26MB, paused 694us total 57.966ms
D/ExternalStorage(26072): After updating volumes, found 1 active roots
D/ExternalStorage(26072): After updating volumes, found 1 active roots
D/MediaScannerReceiver( 3328): action: android.intent.action.MEDIA_UNMOUNTED path: /storage/sdcard1
I/art ( 2527): Explicit concurrent mark sweep GC freed 5(160B) AllocSpace objects, 0(0B) LOS objects, 40% free, 16MB/26MB, paused 969us total 36.511ms
I/art ( 2527): Explicit concurrent mark sweep GC freed 5(160B) AllocSpace objects, 0(0B) LOS objects, 40% free, 16MB/26MB, paused 590us total 35.175ms
D/lights ( 3204): set_light_buttons: 0
D/lights ( 3204): set_light_buttons: 1
I/ValidateNoPeople( 3204): skipping global notification
E/UsbSettings(26031): UsbAccessoryMode false
E/UsbSettings(26031): USB Normal Mode
E/UsbSettings(26031): UsbAccessoryMode false
E/UsbSettings(26031): USB Normal Mode