HOW-TO:Change data location for Android: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{mininav| [[Android]] {{l2| [[Advanced topics]] }} }}
<section begin="intro" />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<section end="intro" />
<section begin="intro" />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<section end="intro" />



Revision as of 01:05, 10 May 2015

Home icon grey.png   ▶ Android
▶ Advanced topics
▶ 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.