[Android] Implement core autodetect.