cc.sys.localStorage location on mobile devices?

In Unity, it says that PlayerPrefs is stored in the following locations:

  • Android : /data/data/pkg-name/shared_prefs/pkg-name.v2.playerprefs.xml . Note that C#, Android Java and native code can all access the PlayerPrefs data.

  • iOS : Uses the [NSUserDefaults standardUserDefaults] API to store PlayerPrefs data.

I was wondering in Cocos Creator, what are the locations for cc.sys.localStorage on Android and iOS devices?

The storage path can be found by looking at the engine’s source code. You can execute jsb.fileUtils.getWritablePath() in your script to get the writable path.

Thank you for the response!