What are .patch files in Android
Patch files are not specifically to do with Android. They just represent a difference between two text files (or two folders of text files). They can be produced by the diff tool, or by a version control system, and the same change can be applied to files by the patch tool, or by a version control system.

Patch files are often used by programmers to communicate a change that should be applied to source code.