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

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<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.<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" />




To do so, create a file name <code>xbmc_env.properties</code> in the root of your external storage (normally, "/sdcard"). Its content is simply:
To do so, create a file <code>/sdcard/xbmc_env.properties</code>.  
Its content is simply:




Line 13: Line 14:


{{note|You must use "xbmc" when noted above for the text and file name, even when using Kodi v14.}}
{{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)}}





Revision as of 08:53, 29 March 2015

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.