Note that there are some explanatory texts on larger screens.

plurals
  1. POSecurityException in getPassword of accountManager in android
    primarykey
    data
    text
    <p>I'm trying to retrieve the password of google account, but getting security exception at String pwd = AccountManager.get(mContext).getPassword(account). Also i have given permissions in androidManifest.xml to account_manager, aunthenticator, get_account, manage account.</p> <h1>code :</h1> <pre><code>android.accounts.Account[] gaccounts = AccountManager.get(mContext).getAccounts(); Log.i("parul", "2222()len :"+ gaccounts.length); for (android.accounts.Account account: gaccounts) { String pwd = AccountManager.get(mContext).getPassword(account); Log.i("parul", "google pwd: " + pwd); AccountManager.get(mContext).setPassword(account, null); String pwdcleared = AccountManager.get(mContext).getPassword(account); Log.i("parul", "google pwdcleared: " + pwdcleared); } </code></pre> <p>=============================================================================</p> <h1>Exception:</h1> <p>08-04 06:38:30.821: WARN/AccountManagerService(2248): caller uid 1000 is different than the authenticator's uid</p> <p>08-04 06:38:30.821: INFO/parul(2804): exception thrown for account manager try block</p> <p>08-04 06:38:30.821: WARN/System.err(2804): java.lang.SecurityException: caller uid 1000 is different than the authenticator's uid</p> <p>08-04 06:38:30.821: WARN/System.err(2804): at android.os.Parcel.readException(Parcel.java:1218)</p> <p>08-04 06:38:30.821: WARN/System.err(2804): at android.os.Parcel.readException(Parcel.java:1206)</p> <p>08-04 06:38:30.821: WARN/System.err(2804): at android.accounts.IAccountManager$Stub $Proxy.getPassword(IAccountManager.java:397)</p> <p>08-04 06:38:30.821: WARN/System.err(2804): at android.accounts.AccountManager.getPassword(AccountManager.java:157)</p> <p>=============================================================================</p> <p>If anybody is aware why i'm getting this problem plz help. Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload