Thread.checkAccess() is the basic Java API, so it exists in Android , however, it is not implemented.
Android java.lang.Thread.checkAccess () does not provide this implementation because it does not trust SecurityManager s.
Security managers do not provide a secure environment for executing untrusted code. Incorrect code cannot be safely isolated in VM Dalvik.
And this is how Thread.checkAccess is implemented inside OpenJDK.
public final void checkAccess() { SecurityManager security = System.getSecurityManager(); if (security != null) { security.checkAccess(this); } }
source share