Guest User

Untitled

a guest
May 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. private void checkCallingUidAgainstAuthenticator(Account account) {
  2. final int uid = Binder.getCallingUid();
  3. if (account == null || !hasAuthenticatorUid(account.type, uid)) {
  4. String msg = "caller uid " + uid + " is different than the authenticator's uid";
  5. Log.w(TAG, msg);
  6. throw new SecurityException(msg);
  7. }
  8. if (Log.isLoggable(TAG, Log.VERBOSE)) {
  9. Log.v(TAG, "caller uid " + uid + " is the same as the authenticator's uid");
  10. }
  11. }
Add Comment
Please, Sign In to add comment