The kodi wiki has the following steps:
As of v14, Kodi supports a backdoor to specify the location of your settings folder, which includes the userdata folder and add-ons. It is the equivalent of using environment variables on other platforms
This is accomplished by creating a plain text file file at /sdcard/xbmc_env.properties (the root directory for the Android device) with the following line:
1 Quit Kodi by using the quit option or shutdown menu from within Kodi.
2 In the root directory of the internal storage of your device, usually just mnt/sdcard (not mnt/sdcard/root) create a plain text file called: xbmc_env.properties
3 In xbmc_env.properties you need to tell Kodi where it's data will now be stored.
This will be done by creating a path statement like:
The path might start with /storage/ as shown above, but it might be different on various Android devices. You can find the correct path by using a file explorer, like "File Browser" or "Root Explorer" to determine the proper path.
A USB drive location might look like:
4 Using a file manager program, such as "File Browser" or "Root Explorer", move or copy the .kodi directory from /sdcard/Android/data/org.xbmc.kodi/.kodi to the new location you defined in Step 3.
Move or copy: /mnt/sdcard/Android/data/org.xbmc.kodi/.kodi To: /storage/sdcard0/external_sdcard/kodi_data/
2 New data location requirements
- Some Android devices require a specific folder on the external memory (USB or SD card). See http://forum.kodi.tv....php?tid=258783
- The specified path must be a local Android file path and not a typical network path. i.e. no "smb://" or "nfs://". To use a network file path you would need to mount the network share as a local mount, which might require root access on some Android devices.
I have completed these step and even followed the new data requirements to no avail. Kodi is still using the internal sdcard. I bought a fast 32 GB sd card to fix buffering issues I was having. My xbmc_env.properties has the following:
and my external storage has the path
where .xbmc was copied from the internal path. When I play a video stream from icefilms the file000.cache appears in the internal sd card path and not on the external sdcard path. I have tried placing the xbmc_env.properties file in several different location to no avail. Nothing seems to work.
My hardware is the G-Box Midnight StarStream X4 M8N unit.
If anyone has any experience with getting this to work please help me out. Also I have tried path substitution as well and it did not work for the file000.cache file.