Back to Top

Storage directory in exported config conflicts with newer Android SD card filepath

2 posts / 0 new
Last post
blurtle
Offline
Last seen: 1 year 9 months ago
Joined: 10/12/2011 - 06:28
Storage directory in exported config conflicts with newer Android SD card filepath

I recently moved from a phone running Android 4.4.4 to one running 7.1.1 and had problems importing and using the DoggCatcher config from the old phone due to the different handling of SD cards in newer Android.
The old phone had a storage path of /storage/sdcard1
After the config import, I could not navigate to a valid filepath because of the invalid initial path, i.e. it was impossible to go up to the parent directory.
The solution: edit the filepath in the exported ZIP file before importing the config.
I used Google Drive as my intermediary area (copying the ZIP file there from the old phone using the "ASTRO" file manager app) for transferring the file between the old to the new phone, so I edited the file in Google Drive.
On my Windows 10 laptop, using WinRAR to view the ZIP file, I went into the shared_prefs folder and opened (using a text editor) the file named com.snoggdoggler.android.applications.doggcatcher.v1_0_preferences.xml
In the editor search for "storage/sdcard" and replace this with "/storage/emulated/0"
Save the change and close the editor.
WinRAR displays a prompt, asking if you want to update the file in the ZIP archive. Say "Yes".
Now you can copy the ZIP file to the new phone (again, I used ASTRO to copy the file) and import it into DoggCatcher.

It would be a lot easier if DoggCatcher detected the invalid storage filepath and allowed navigation to a valid path. Better yet, replace the bad filepath with the corect one, if that can be done.

WayneC
Offline
Last seen: 6 days 5 hours ago
Joined: 02/23/2011 - 22:28
SD Card FAQ

SD Card FAQ posts: "Why am I experiencing external storage (SD Cards) problems after my device has been upgraded to Marshmallow (Android 6.0)?" http://www.doggcatcher.com/node/6493 - "How does DoggCatcher use SD cards and large built-in storage?" http://www.doggcatcher.com/StorageDirectory - and my response "From the "Storage Directory" http://www.doggcatcher.com/comment/14662#comment-14662