public boolean detectTestKeys(){
  String buildTags=android.os.Build.TAGS;
  if (buildTags != null && buildTags.contains("test-keys")) {
    return true;
  }
  return false;
}

public boolean detectTestKeys ( ) { String buildTags = android . os . Build . TAGS ; if ( buildTags != null && buildTags . contains ( "test-keys" ) ) { return true ; } return false ; }
release - keys and test - keys has to do with how the kernel is signed when it is compiled . test - keys means it was signed with a custom key generated by a third - party developer .
