其他分享
首页 > 其他分享> > Android AccountManager帐户存储

Android AccountManager帐户存储

作者:互联网

AccountManager帐户存储在哪里?它在设备上吗?如果是,它存储在哪个文件夹中?

解决方法:

它存储在这里:

Environment.getSystemSecureDirectory().getPath() + File.separator + DATABASE_NAME;

getSystemSecureDirectory的位置:

Gets the system directory available for secure storage. If Encrypted
File system is enabled, it returns an encrypted directory
(/data/secure/system). Otherwise, it returns the unencrypted
/data/system directory.

和DATABASE_NAME =“accounts.db”;

标签:accountmanager,android,accounts
来源: https://codeday.me/bug/20190902/1792043.html