sergstetsuk / CosyDVR

android open source auto DVR
Other
51 stars 23 forks source link

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

Open dzmitry-lahoda opened 9 years ago

dzmitry-lahoda commented 9 years ago

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 commented 9 years ago

It is available /storage/sdcard1? I fixed this in https://github.com/fvasco/CosyDVR/commit/2ec05bee5f12129030133d1badd4bec3846fd182

This bug makes software unusable.

fvasco commented 9 years ago

Hi asd-and-Rizzo, I might have fixed your problem in https://github.com/fvasco/CosyDVR/commit/56aa2ed47b745fc1b636d769532c776a7f2cee87

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

sergstetsuk commented 9 years ago

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

dzmitry-lahoda commented 9 years ago

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

fvasco commented 9 years ago

The nice fix doesn't work well.

Cosy show two path options:

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 commented 9 years ago

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 commented 9 years ago

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

fvasco commented 9 years ago

Commit https://github.com/sergstetsuk/CosyDVR/commit/aaa832b8c124b12363a049954e3f284301900a72 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 commented 8 years ago

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

dzmitry-lahoda commented 7 years ago

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 commented 7 years ago

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