I've been testing one of my apps to see how it handles filenames in UPPER-CASE. I thought the Android libraries and system was case sensitive for filenames, however I eventually discovered that files on the SD card are matched without case-sensitivity.
Here's an example taken from a Samsung Ace phone (my Nexus 4 behaves similarly)
adb shell $ pwd /mnt/sdcard/testDaisyReader/casesensitivebook $ echo "" > NCC.HTML $ ls -l -rwxrwxr-x system sdcard_rw 1 2013-11-19 18:57 NCC.HTML $ ls -l NCC.HTML -rwxrwxr-x system sdcard_rw 1 2013-11-19 18:57 NCC.HTML $ ls -l ncc.html -rwxrwxr-x system sdcard_rw 1 2013-11-19 18:57 ncc.html $ ls -l -rwxrwxr-x system sdcard_rw 1 2013-11-19 18:57 NCC.HTML $
I would have expected the commands
ls -l ncc.html wouldn't find the file I created, however it seems to do so. My Android app also matches files without case-sensitivity.
Do any of you have any counter-examples? I'd like to know whether it's safe to assume filenames are matched on the SD-Card in Android, like Windows, without case-sensitivity.
Notes: 1. the filesystem on the SD-Cards are FAT32 2. I've found 2 related posts that imply files on the sdcard are case-sensitive: