Upload files onto targets


I need to upload a file (e.g. config.xml) onto my target, multiple apps inside a system need to be able to access this file. Is there a proper way to upload this file using the .sdef file?

I want to upload the file to /opt/config.xml.

I tried using “bundle” but that doesn’t seem to work.
Is something like that possible?

/opt is read-only folder.
You need to type the following in each boot up to make it writable:

mkdir /tmp/tmp_opt
mkdir /tmp/tmp_opt_wr
mount -t overlay overlay /opt -o lowerdir=/opt,upperdir=/tmp/tmp_opt,workdir=/tmp/tmp_opt_wr;
root@swi-mdm9x28-wp:~# echo 123 > /opt/123.txt
root@swi-mdm9x28-wp:~# cat /opt/123.txt

you can first save your config.xml in /home/root
and then copy to /opt folder in each power on.

Hey jyijyi,

/home/root would also be a feasable alternative to /opt, so the read-only isn’t an issue.

I would like to somehow add my files to the system so i only need to execute “update mySystem.wp76xx.update” and my needed files are automatically uploaded to /home/root.

you can write a unsandboxed application to copy your bundled file to /home/root
you can also see here on how to modify the file outside the sandbox:

Is there really no other way to do this using sandboxed apps?
I want to keep my Apps Sandboxed and just grant read/write permissions on the specific files needed.

how about creating a dynamic link in /home/root to point to this bundled file in your sandboxed application directory?