← Back to team overview

ubuntu-phone team mailing list archive

Re: App storage

 

On 26 Sep 2013 11:23, "Sam Bull" <sam.hacking@xxxxxxxx> wrote:
>
> What's the method required for apps to store data on the phone?
>
> We're using a library that simply saves files in the apps current
> directory, but running on the phone it doesn't seem to have permission
> to do so.
>
> Is there a location we can save the files, which should be easy to
> change. Or, do we need to do something more complex to save the data?
>

AFAIK you have to store the data under xdg_data/app_id. If you look at the
apparmor confinement policy of click packages you will get a more clear
picture of the rights the application has.

Regards,

Manuel

> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References