What protects Android AccountManager passwords from being read by other apps?

后端 未结 1 1965
萌比男神i
萌比男神i 2021-02-13 16:55

I\'m writing 1) an app that stores a username and password in the AccountManager, and 2) a separate background Service app that accesses those credentials to login to my servers

1条回答
  •  囚心锁ツ
    2021-02-13 17:18

    Account data protection is based on the Linux user id (UID) of the process making the request. (See Security and Permissions in the guide.) Each account is associated with an account authenticator (that has a UID), and the process calling getPassword (or several other methods) must have the same UID as the authenticator.

    0 讨论(0)
提交回复
热议问题