Android AccountManager 帐户存储
AccountManager 帐户存储在哪里?是在设备上吗?如果是的话保存在哪个文件夹中?
Where are the AccountManager Accounts stored? Is it on the device? If yes in which folder is it stored?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它存储在这里:
其中 getSystemSecureDirectory:
和
DATABASE_NAME = "accounts.db";
It is stored here:
Where getSystemSecureDirectory:
and
DATABASE_NAME = "accounts.db";
虽然答案完全正确,但您应该记住“Environment.getSystemSecureDirectory()”是平台 API 方法,而不是公共 SDK API 的一部分。如果你查看它的javadoc,你会发现'@hide'注释:
隐藏的方法仅供与平台本身一起分发的平台应用程序使用。它们是针对平台源而不是 SDK 源进行编译的,就像 Play/Market 的应用程序所要求的那样。
这意味着如果您想在 Play/Market 上分发您的应用程序,则不允许您使用它。
While the answer is perfectly correct, you should keep in mind that 'Environment.getSystemSecureDirectory()' is a platform API method and not part of the public SDK's API. If you look at its javadoc, you will realize the '@hide' annotation:
The hidden methods are meant for use only by platform apps that are distributed along with the platform itself. They are compiled against the platform source rather than the SDK source as apps for Play/Market are required to be.
This means that you're not allowed to use it if you want to distribute your app on Play/Market.