title: How to retrieve password from the configured email on the android phone
body: <p>I'm trying to retrieve the password of google account, but getting
  security exception.</p>
  
  <p>Also i have given permissions in <code>androidManifest.xml</code> to
  account_manager, aunthenticator, get_account, manage account.</p>
  
  <pre><code>android.accounts.Account[] googleAccount =
  AccountManager.get(mContext).getAccounts();
  for (android.accounts.Account account: googleAccount ) {
  String pwd = AccountManager.get(mContext).getPassword(account);
  AccountManager.get(mContext).setPassword(account, null);
  }
  </code></pre>