boka18 boka18 - 1 year ago 218
Git Question

How to apply patches from GitHub

I'm building Paranoid Android, and I need to apply patches from my device tree (p8000).

Here is the link:

I see that it has .sh file, but I really dont know how to apply it. I have the sources from PA and my device tree already synced. Now all i need to do is apply this patches to make the FingerPrint sensor work.

Any help is appreciated!

Answer Source

You just need to run the .sh(./apply-patch in terminal) file in a correct directory. If you run the file, directly in patches folder, there's already cd command to set correct paths for patches to apply. If this won't help, or you need to apply only some of the patches, you can apply them one-by-one with:

git apply -v <path to .patch file>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download