我编写了一个应用程序 A,它使用 AccountManager 进行登录处理。然后,我编写了另一个应用程序 B,它使用 A 的 AccountManager 帐户数据。
但是当我运行 B 时,我得到“java.lang.SecurityException: caller uid xxxx is different than the authenticator's uid”。
用 A 的密钥库文件对 B 签名解决了这个问题。
但是,我仍然想知道为什么会发生这种情况以及是否有替代解决方案。
我编写了一个应用程序 A,它使用 AccountManager 进行登录处理。然后,我编写了另一个应用程序 B,它使用 A 的 AccountManager 帐户数据。
但是当我运行 B 时,我得到“java.lang.SecurityException: caller uid xxxx is different than the authenticator's uid”。
用 A 的密钥库文件对 B 签名解决了这个问题。
但是,我仍然想知道为什么会发生这种情况以及是否有替代解决方案。