Author Topic: USB Mass Storage Device Bug  (Read 3346 times)

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
USB Mass Storage Device Bug
« on: September 16, 2012, 04:19:51 PM »
Has anyone received one of the following error messages when your device is NOT plugged in USB Mass Storage Device mode?

Quote
Write error (plugged in USB Mass Storage Device mode?)
or:
Quote
App data not accessible (plugged in USB Mass Storage Device mode?)

If so, I'd like to track down what other conditions can cause this problem (other than the known issue where the device is plugged in USB Mass Storage Device mode, which I have no control over).  Once I know the causes, I can hopefully write workarounds, or at least display more useful error messages for the user.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline WinSuk

  • byte
  • *
  • Posts: 11
    • View Profile
Re: USB Mass Storage Device Bug
« Reply #1 on: September 24, 2012, 05:32:05 PM »
It happens when the SD card is unmounted, either by mass storage device or through Settings (which doesn't need USB plugged in) :)

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3499
  • Developer
    • View Profile
    • PaulsCode.Com
Re: USB Mass Storage Device Bug
« Reply #2 on: September 24, 2012, 08:14:18 PM »
Thanks, that's a good point.  Those toast messages can be hard to read, so I'll need to keep the error message as short and simple as possible.  Any thoughts on this?  I'm thinking something like this:

Quote
SD card or storage not accessible.  Check cable or mount settings.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Rotary Heart

  • byte
  • *
  • Posts: 24
    • View Profile
Re: USB Mass Storage Device Bug
« Reply #3 on: September 24, 2012, 09:44:27 PM »
You can make it twice, so people can have time to read/understand what it means. I think that if its twice and long time it will be enough, even if you write it larger.
My CM 10 Dark Cyan Blue theme
Phone: Galaxy Nexus GSM
Kernel: Franco Milestone 5
Rom: Paranoid Android 2.1