After all, the Android kernel is based on the Linux kernel, and Google already gave us Linux terminal support for ...
Download the formatter and run it with: To reformat changed lines in a specific patch, use google-java-format-diff.py. Note: There is no configurability as to the formatter's algorithm for formatting.