Hey all,
is there a way to access the actual SD card on newer devices using
navigator.getDeviceStorage('....')?
While older devices had /sdcard (or really /mnt/sdcard) to access the
external SD card, the trend seems to be to have that location reference
built in ROM and have a secondary location for the SD card. For example,
the TCP tablet has:
root@android:/ # df
Filesystem Size Used Free Blksize
/dev 797M 32K 797M 4096
/mnt/secure 797M 0K 797M 4096
/mnt/asec 797M 0K 797M 4096
/mnt/obb 797M 0K 797M 4096
/system 1G 172M 1G 4096
/cache 1G 102M 1G 4096
/data 126M 89M 36M 4096
/mnt/sdcard 9G 84M 9G 4096
/mnt/secure/asec 9G 84M 9G 4096
/mnt/extsd 29G 4G 25G 32768
where the /mnt/sdcard is some internal block of memory and the
/mnt/extsd is the 32GB SD card in the card slot.
Gaia seems to be aware of these two spaces and may be using them for
different purposes since I have :
root@android:/ # ls /mnt/sdcard/
DCIM
Documents
LOST.DIR
...
root@android:/ # ls /mnt/extsd/
DCIM
LOST.DIR
Music
Pictures
...
although maybe I added the directories by hand to the external SD card,
I don't remember. The music app can access the music files on the card
though, not sure how.
The doc page
https://developer.mozilla.org/en-US/docs/Web/API/Navigator.getDeviceStorage
does not mention anything.
thanks for any info,
~adrian
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g