Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not see external SD card on Samsung Galaxy S5 (Android 4.4+ and 5.0) #11

Open
dzmitry-lahoda opened this issue Mar 10, 2015 · 11 comments

Comments

@dzmitry-lahoda
Copy link
Contributor

CosyDVR does not see external SD card on subject device.

Other applications see this as attached. Highscreen Boost 2 SE II(Innos D10) with same SD card works well.

screenshot_2015-03-10-16-17-14
screenshot_2015-03-10-16-20-49

@fvasco
Copy link
Contributor

fvasco commented Jun 9, 2015

It is available /storage/sdcard1?
I fixed this in fvasco@2ec05be

This bug makes software unusable.

@fvasco
Copy link
Contributor

fvasco commented Jun 9, 2015

Hi asd-and-Rizzo,
I might have fixed your problem in fvasco@56aa2ed

I hope that a new version will released as soon as possible: fill internal memory makes my phone unusable.

@sergstetsuk
Copy link
Owner

Re-factored SD cards detection. Needs checking on different devices and feed back

@dzmitry-lahoda
Copy link
Contributor Author

My path is /storage/extSdCard as in screenshot attached. I hope to test possible fixes when these get to F-droid:)

@fvasco
Copy link
Contributor

fvasco commented Jun 12, 2015

The nice fix doesn't work well.

Cosy show two path options:

  • Internal SD card [/storage/emulated/0]
  • SD card 1 [/mnt/media_rw/sdcard1]

The first one works correctly (and hangs my phone), the second one is an inaccessible folder and if I starts recording then CosyDVR crashes.

@sergstetsuk
Copy link
Owner

v1.3.9 - trying to fix KitKat SDcard issue. Now video is written to [SDcard]/Android/data/es.esy.CosyDVR/temp or fav. Please check it out.

@fvasco
Copy link
Contributor

fvasco commented Jun 15, 2015

v1.3.9 exposes same behaviour: it doesn't work.

@fvasco
Copy link
Contributor

fvasco commented Jun 27, 2015

Commit aaa832b doesn't work on Moto G2 Lollipop, I attach some logs to diagnose problem.

Regards.

shell@titan_umtsds:/ $ cat /proc/mounts |grep vfat|grep "/mnt"

/dev/block/vold/179:65 /mnt/media_rw/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:65 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

shell@titan_umtsds:/ $ ll /mnt/

drwxr-xr-x root system 2015-06-27 16:43 asec
drwx------ media_rw media_rw 1970-02-13 11:14 media_rw
drwxr-xr-x root system 1970-02-13 11:14 obb
lrwxrwxrwx root root 1970-02-13 11:14 sdcard -> /storage/emulated/legacy
drwx------ root root 1970-02-13 11:14 secure
drwx------ shell shell 1970-02-13 11:14 shell

shell@titan_umtsds:/ $ cat /proc/mounts

rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=447020k,nr_inodes=111755,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,size=447020k,nr_inodes=111755,mode=750,gid=1000 0 0
none /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,size=447020k,nr_inodes=111755,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,size=447020k,nr_inodes=111755,mode=755,gid=1000 0 0
none /dev/memcg cgroup rw,relatime,memory 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware ext4 ro,context=u:object_r:firmware_file:s0,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/pds /pds ext4 rw,defcontext=u:object_r:pds_file:s0,seclabel,nosuid,nodev,noatime,nodiratime,errors=remount-ro,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/fsg /fsg ext4 ro,context=u:object_r:fsg_file:s0,nosuid,nodev,relatime 0 0
/dev/block/vold/179:65 /mnt/media_rw/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:65 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-0 /data f2fs rw,seclabel,nosuid,nodev,noatime,nodiratime,background_gc=on,discard,user_xattr,inline_xattr,acl,inline_data,nobarrier,active_logs=6 0 0
/data/media /mnt/shell/emulated esdfs rw,relatime,upper=0:1028:660:771,derive=legacy,nosplit 0 0
/data/media /storage/emulated/legacy esdfs rw,relatime,upper=0:1028:660:771,derive=legacy,nosplit 0 0
/dev/block/dm-1 /mnt/asec/com.ikea.app-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-2 /mnt/asec/com.google.android.stardroid-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-3 /mnt/asec/name.boyle.chris.sgtpuzzles-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-4 /mnt/asec/com.mendhak.gpslogger-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-5 /mnt/asec/org.wikipedia-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-6 /mnt/asec/net.androgames.level-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-7 /mnt/asec/net.etuldan.sparss.floss-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-8 /mnt/asec/com.waze-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-9 /mnt/asec/com.elsdoerfer.android.autostarts-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-10 /mnt/asec/org.videolan.vlc-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-11 /mnt/asec/org.fdroid.fdroid-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0

@suokunlong
Copy link

Same issue on Galaxy Note 3, SMN9008V Android 5.0. It shows /mnt/media_rw/sdcard1 but this folder does not exist.

@dzmitry-lahoda
Copy link
Contributor Author

I have upgraded Samsung Galaxy 5 to Android 6.X and still have issue. CosyDVR fails to write to external card. Also I found that open source Seafile can write to external card to paths attached. It would be great CosyDVR write to these paths or allow for #24.

screenshot_2016-10-19-08-21-27
screenshot_2016-10-19-08-21-42

@sergstetsuk
Copy link
Owner

sergstetsuk commented Jun 26, 2017

Check out v1.3.19 it scans getExternalMediaDirs and getExternalFilesDirs for API 21+ and 19+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants