Not sure, I get the same results with and without the card inserted.
Using a system browser I see that when the card is inserted a new entry appears on the system: "/mnt/sdcard/udi" no matter which port I insert the card into, but in the browser I see it labels the cards "UDisk1" and "UDisk2" accordingly, this by the way applies to SDCards and USBDrives attached to that tab.
One more thing, like I stated on my post, I don't get "/mnt/sdcard/sdcard1" but only "/sdcard1"
/mnt/media - wrong
## Vold 2.0 Generic fstab
## - San Mehat (san@android.com)
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <lun_syspath> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## perm_mask - Mount permission mask: octal integer or 'auto' for default permission.
## <lun_syspath> - LUN for the device
## <sysfs_path> - List of sysfs paths to source devices
######################
dev_mount sdcard /mnt/sdcard auto auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
dev_mount media /mnt/media 8 002 /devices/platform/usb_mass_storage/lun0 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
Yes it has a SDCard Slot and here is the contents:
dev_mount sdcard /mnt/sdcard auto auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
dev_mount media /mnt/media 8 002 /devices/platform/usb_mass_storage/lun0 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
If you want us to use your code reliably, you might want to check it again.
Thank you
I am 100% sure that /mnt/media is the Internal memor.
Either way, the permissions on /mnt/media do not seem to be writable to me.I am 100% sure that /mnt/media is the Internal memory
Well it was worth mentioning to clarifyI can do this all day with no issues:
B4X:File.MakeDir("/mnt/media", "myfolder") File.WriteString("/mnt/media/myfolder", "xyz.dat", "bla bla bla")
dev_mount inner_sdcard /mnt/sdcard 6 /devices/platform/imapx200_sdi0.0/mmc_host/mmc0
dev_mount up_sdcard /mnt/sdcard/sdcard1 auto /devices/platform/imapx200_sdi1.1/mmc_host/mmc1
dev_mount down_sdcard /mnt/sdcard/sdcard2 auto /devices/platform/imapx200_sdi2.2/mmc_host/mmc2
dev_mount sdcard /mnt/sdcard auto auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
dev_mount media /mnt/media 8 002 /devices/platform/usb_mass_storage/lun0 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
## Vold 2.0 fstab for HTC Passion
#
## - San Mehat (san@android.com)
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
# Mounts the first usable partition of the specified device
#/devices/platform/awsmc.3/mmc_host for sdio
dev_mount sdcard /mnt/sdcard auto /devices/virtual/block/nandj
dev_mount extsd /mnt/extsd auto /devices/platform/sunxi-mmc.1/mmc_host /devices/platform/sunxi-mmc.0/mmc_host
dev_mount usbhost1 /mnt/usbhost1 auto /devices/platform/sw-ehci.1 /devices/platform/sw_hcd_host0 /devices/platform/sw-ehci.2
Sub DevicePaths
Dim lp As List : Dim mInternal, mSDCard1, mSDCard2, ChkVal, CK As String
lp = File.ReadList("/system/etc/", "vold.fstab")
For i = 0 To lp.Size -1
ChkVal = lp.get(i)
If ChkVal.ToLowerCase.StartsWith("dev_mount") Then
CK = ChkVal.SubString2(ChkVal.IndexOf("/mn"), ChkVal.Length -1)
If ChkVal.Trim.ToLowerCase.EndsWith("mmc0") Then mInternal = CK.SubString2(0, CK.IndexOf(" "))
If ChkVal.Trim.ToLowerCase.EndsWith("mmc1") Then mSDCard1 = CK.SubString2(0, CK.IndexOf(" "))
If ChkVal.Trim.ToLowerCase.EndsWith("mmc2") Then mSDCard2 = CK.SubString2(0, CK.IndexOf(" "))
End If
Next
Msgbox("Internal = " & mInternal & CRLF & "SDCard 1 = " & mSDCard1 & CRLF & "SDCard 2 = " & mSDCard2, "")
End Sub
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?