hudamalmsteen / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

droid bionic renamed external sdcard storage as /mnt/sdcard-ext, not /mnt/sdcard #1297

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install Csipsimple on droid biotic
2. move to sd card
3.

What is the expected output?
I would expect the config files to be on sd card also
 What do you see instead?
I saw them on the 'Internal phone storage' *(via android files program)

(which seems to mount as sdcard also..)

What version of the product are you using?
stable from market, On what operating system?
gingerbread, 2.3.4

Please provide any additional information below.

droid biotic mounts 'sdcard' and 'sdcard-ext'.
(sd card is built in sd. sdcard-ext is the 16 or 32GB 'sd card')

several programs on the droid bionic also do the same thing, so its not you.

so, issue: if you use api and move csipsimple PROGRAM to 'sd card', it moves it 
to sdcard-ext.

but, the CSipSimple/conf is still on ../sdcard

seems by looking at this on a usb mount, I have the standard 'fake cd rom' that 
mounts as 'Motorola'
and a 8GB space that mounts as 'MOT' (Internal phone storage)'
and my normal 16GB card that mounts as 'NO NAME' (SD CARD )

root explorer sees LOTS of mounts in /mnt/

./sdcard ('Internal phone storage')
./sdcard-ext ('SD CARD').

Original issue reported on code.google.com by michael....@gmail.com on 1 Oct 2011 at 3:34

GoogleCodeExporter commented 9 years ago
CSipSimple use the official android api to get the folder to store it's conf 
and recoreded conversations.

See : 
http://developer.android.com/reference/android/os/Environment.html#getExternalSt
orageDirectory%28%29

I guess that it returns sdcard on your ROM. There is absolutely nothing that 
the app can do for that. The app should use the official Android API to store 
its file else it will result bugs on many devices.
So in your case, if your ROM return sdcard as the external storage directory, 
the app should use it and not another directory based on some fuzzy guess.

To fix that, what should be fixed is your ROM, not the app. 

Basically this setting (to tell where is external storage for all android apps) 
is in environement of your android.
Basically if you know how to launch adb, you can launch :

adb shell env

You'll see what is setup on your android device (search the var 
EXTERNAL_STORAGE).
CSipSimple just use this value. There is no magic ;)
(Even, you can probably dynamically change this value with adb shell (and then 
when in the shell redefine the exported var - But I'd rather advise to fix that 
in ROM if possible).

Original comment by r3gis...@gmail.com on 1 Oct 2011 at 6:10