HOW-TO:Change data location for Android
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
To do so, create a file /sdcard/xbmc_env.properties
.
Its content is simply:
xbmc.data=<path to the Kodi data folder you wish to use>
Example: xbmc.data=/storage/sdcard0/external_sdcard/kodi_data
Note: You must use "xbmc" when noted above for the text and file name, even when using Kodi v14.
Note: The destination folder must be created manually beforehand (This is not a limitation. Presence of the folder is used to find out if Kodi has to wait for an external drive to be active)
Inside this, a directory ".kodi" will be created which contain the well-known xbmc structure ("addons", "userdata", ...).
Currently, the specified path must be an android file path and not a typical network path. i.e. no "smb://" or "nfs://". To use a network file path you must first mount the file share in Android, and then point to that mount path.