I recently wanted to use the fingerprint scanner on my Galaxy S6 in an app and doubted if Android would have classes pertaining to it (it does), which led me to ask:
Does Android add classes to its library for every minor hardware feature on every device that supports Android (like the fingerprint scanner on the Galaxy S6) even the obscure ones that maybe only 1 device has? If not, how would one access those hardware features?