Kodi Community Forum

Full Version: Kodi 17.1 on ATV4 - is there a way to install/edit advancedsettings.xml
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a recommended way (or thread describing) detailing how to install or edit advancedsettings.xml? I've installed the latest Kodi test build using my developer account from my Mac - works quite well (thanks!) but have been unable so far to copy over advancedsettings.xml. The add-on "Easy Advanced Settings" is unable to write the xml file for me. I next tried using the file manager to mount a directory from my Mac - using smb://xxxx I get broken pipe errors when trying to mount. The core testing thread first post says that advancedsettings.xml is only available from the File Manager under the confluence skin. I'd be grateful if someone could point me at the right approach.
Has anyone managed to do this?
I have played shortly with this and I have managed to do a few things in Kodi 19 ALPHA.
I took a quick look at the code and so far I was not able to find a proper way to do this.

You can easily inject advancedsettings.xml by adding it to .app after it is build build on path:
Kodi.app/AppData/AppHome/system
This is a quick way to do it since Kodi fallbacks to it.

My goal is to be able to add also mediasources.xml and sources.xml, and so far it doesn't look like it is possible without at least some coding, which in the end I'll have to do if nobody else knows some workaround.
Copy from a share (SMB/NFS/whatever) you have added via file manager. Just have to restart Kodi for the changes to take effect.
Since I don't have paid cert, I will have to rebuild often so I would like to automate process.
I was not lazy and went through the code, it was fairly straight forward.
I've just added a step to copy from project userdata to build userdata and in Application.cpp a few lines to copy xml that I need.

It's not a proper solution, but works for me.

Thanks for stepping in, though. Smile
backup the container via Xcode once setup and restore is another option for anyone else stumbling across this
(2019-09-21, 04:17)Fuzzard Wrote: [ -> ]backup the container via Xcode once setup and restore is another option for anyone else stumbling across this

I just backed up my container, and ... zilch.  I have an AppleTV 4k, it is jailbroken, but installed via Xcode with my dev account.  I'd like to be able to edit the sources.xml file directly, but a search of the container gives me... nothing.  My sources for my Aeon Nox plugin are there (user data->playlists->video->*.xsp) but those are only the playlist filters the plugin is using.  Very confusing.
Yeah, anything xml is saved into NSUserDefaults. This is the only storage we have (500kb), and we stash all xml files into there for some ability to recover from the os data wipe that happens from time to time.

I'll look into an export of the data as a settings option.
(2020-06-25, 08:22)Fuzzard Wrote: [ -> ]Yeah, anything xml is saved into NSUserDefaults. This is the only storage we have (500kb), and we stash all xml files into there for some ability to recover from the os data wipe that happens from time to time.

I'll look into an export of the data as a settings option.
I re-figured out how to get at the data, finally.  You absolutely DO have to go to the file manager -> profile and copy from there to a file share.  And low-and-behold I do have mysql settings in advancedsettings.xml (I'm moving servers and wasn't sure if I needed a mysql server, guess I do :-))