I wrote an application A that uses the AccountManager to log in. Then I wrote another application B, which uses AccountManager account information.
But when I run B, I get "java.lang.SecurityException: caller uid xxxx is different from the authenticator uid".
Signing B using a keystore file solves this problem.
However, I still want to know why this is happening and is there an alternative solution.
source share