com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '23 volume share /storage/sdcard0 ums' failed with '401 23 volume operation failed (No such device)'

JIRA | Amit Shah | 3 years ago
  1. 0

    This problem started on updating to cm-10.2-m1 from 10.1.3. I had an encrypted storage on the nexus-s. I updated via cwm recovery, and the new install started and showed the 'Optimizing app xx/xxx'. However, after that, it kept spinning, and I had to remove the battery. adb wasn't working at that point, so couldn't get any debug output. I then reset everything to factory defaults, but cwm failed to recognise the /media partition. I removed it and added it using parted, and created a file system on it. Installing 10.2-m1 worked fine after that (though encryption doesn't work -- after asking for confirmation, the encryption screen just sits there and does nothing). With the new install, usb storage can't be mounted on my Linux laptop. 'adb logcat' shows the following. Other operations via adb and the phone work well. Let me know if any other debug output will be helpful. I/PackageManager( 392): Updating external media status from unmounted to unmounted I/PackageManager( 392): Updating external media status from unmounted to unmounted E/MountService( 392): Failed to share/unshare E/MountService( 392): com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '23 volume share /storage/sdcard0 ums' failed with '401 23 volume operation failed (No such device)' E/MountService( 392): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:382) E/MountService( 392): at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:318) E/MountService( 392): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:283) E/MountService( 392): at com.android.server.MountService.doShareUnshareVolume(MountService.java:658) E/MountService( 392): at com.android.server.MountService.access$200(MountService.java:105) E/MountService( 392): at com.android.server.MountService$UmsEnableCallBack.handleFinished(MountService.java:376) E/MountService( 392): at com.android.server.MountService$MountServiceHandler.handleMessage(MountService.java:487) E/MountService( 392): at android.os.Handler.dispatchMessage(Handler.java:99) E/MountService( 392): at android.os.Looper.loop(Looper.java:137) E/MountService( 392): at android.os.HandlerThread.run(HandlerThread.java:61)

    JIRA | 3 years ago | Amit Shah
    com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '23 volume share /storage/sdcard0 ums' failed with '401 23 volume operation failed (No such device)'
  2. 0

    This problem started on updating to cm-10.2-m1 from 10.1.3. I had an encrypted storage on the nexus-s. I updated via cwm recovery, and the new install started and showed the 'Optimizing app xx/xxx'. However, after that, it kept spinning, and I had to remove the battery. adb wasn't working at that point, so couldn't get any debug output. I then reset everything to factory defaults, but cwm failed to recognise the /media partition. I removed it and added it using parted, and created a file system on it. Installing 10.2-m1 worked fine after that (though encryption doesn't work -- after asking for confirmation, the encryption screen just sits there and does nothing). With the new install, usb storage can't be mounted on my Linux laptop. 'adb logcat' shows the following. Other operations via adb and the phone work well. Let me know if any other debug output will be helpful. I/PackageManager( 392): Updating external media status from unmounted to unmounted I/PackageManager( 392): Updating external media status from unmounted to unmounted E/MountService( 392): Failed to share/unshare E/MountService( 392): com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '23 volume share /storage/sdcard0 ums' failed with '401 23 volume operation failed (No such device)' E/MountService( 392): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:382) E/MountService( 392): at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:318) E/MountService( 392): at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:283) E/MountService( 392): at com.android.server.MountService.doShareUnshareVolume(MountService.java:658) E/MountService( 392): at com.android.server.MountService.access$200(MountService.java:105) E/MountService( 392): at com.android.server.MountService$UmsEnableCallBack.handleFinished(MountService.java:376) E/MountService( 392): at com.android.server.MountService$MountServiceHandler.handleMessage(MountService.java:487) E/MountService( 392): at android.os.Handler.dispatchMessage(Handler.java:99) E/MountService( 392): at android.os.Looper.loop(Looper.java:137) E/MountService( 392): at android.os.HandlerThread.run(HandlerThread.java:61)

    JIRA | 3 years ago | Amit Shah
    com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '23 volume share /storage/sdcard0 ums' failed with '401 23 volume operation failed (No such device)'
  3. 0

    exception while trying to encrypt data partition

    Google Groups | 6 months ago | Anand Mistry
    com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '1 volume list' failed with 'null'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue 62714 - android - VPN issues on KitKat (version 4.4) - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 4 months ago
    java.lang.IllegalStateException: command '126 interface fwmark rule add ppp0' failed with '400 126 Failed to add fwmark rule (Success)'
  6. 0

    XMLPullParser doesn't work when I use Log.e

    Stack Overflow | 2 years ago | Sufiyan Ghori
    com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '6 bandwidth enable' failed with '400 6 Bandwidth command failed'

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.android.server.NativeDaemonConnector$NativeDaemonFailureException

      command '23 volume share /storage/sdcard0 ums' failed with '401 23 volume operation failed (No such device)'

      at com.android.server.NativeDaemonConnector.execute()
    2. Android
      MountService$MountServiceHandler.handleMessage
      1. com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:382)
      2. com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:318)
      3. com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:283)
      4. com.android.server.MountService.doShareUnshareVolume(MountService.java:658)
      5. com.android.server.MountService.access$200(MountService.java:105)
      6. com.android.server.MountService$UmsEnableCallBack.handleFinished(MountService.java:376)
      7. com.android.server.MountService$MountServiceHandler.handleMessage(MountService.java:487)
      7 frames
    3. Android Platform
      HandlerThread.run
      1. android.os.Handler.dispatchMessage(Handler.java:99)
      2. android.os.Looper.loop(Looper.java:137)
      3. android.os.HandlerThread.run(HandlerThread.java:61)
      3 frames