Skip to content Skip to sidebar Skip to footer

How Do I Manually Update My Custom Rom's Security Patches Using 'git Cherry-pick'?

I made a custom rom for my device using Resurrection Remix Nougat. However, the security patch of the rom is December 5, 2017. I've found a guide that gives instructions (https://t

Solution 1:

Try:

git fetch https://android.googlesource.com/platform/frameworks/base  4afa0352d6c1046f9e9b67fbf0011bcd751fcbb5 --depth 2
git cherry-pick 4afa0352d6c1046f9e9b67fbf0011bcd751fcbb5

And here's another method. Press the button diff on the page of https://android.googlesource.com/platform/frameworks/base/+/4afa0352d6c1046f9e9b67fbf0011bcd751fcbb5, and the diff/patch of the commit is displayed, which starts with the line

diff --git a/core/java/android/net/Uri.java b/core/java/android/net/Uri.java

You can copy and paste the diff into a local file, foo.diff for example, and run

git apply foo.diff

Solution 2:

'go to frameworks/base using 'cd frameworks/base'

'git fetch https://android.googlesource.com/platform/frameworks/base' -A

'git cherry-pick 4afa0352d6c1046f9e9b67fbf0011bcd751fcbb5


Post a Comment for "How Do I Manually Update My Custom Rom's Security Patches Using 'git Cherry-pick'?"