Article 59RBZ [SOLVED] Wish to apply a patch for a custom build of LineageOS 14.1

[SOLVED] Wish to apply a patch for a custom build of LineageOS 14.1

by
mark_alfred
from LinuxQuestions.org on (#59RBZ)
[edit: I did solve this. The first file patch I downloaded was corrupt, but I found a raw one that did work here.]

Hello. I have been trying to apply a patch for a custom build of LineageOS 14.1. I have successfully made a build for LineageOS 14.1 (specifically for a Nexus 5, aka Hammerhead), but I have been unable to apply a patch to it. I am interested in enabling signature spoofing, to pursue getting MicroG working. I am following the instructions from this site here, which states,

Quote:
If you are a ROM developer or just do custom builds for whatever reason, you can download and include the patch from here. Once you've downloaded the correct patch for your build version, change to the frameworks/base directory of your build tree and run

Code:patch -p1 -i "path/to/where/you/saved/the/patch"changing the path to the appropriate path of where you saved the patch file. If it runs without error, your build will have Signature Spoofing enabled.
The patch I downloaded was android_frameworks_base-N.patch (which I assume is for Android Nougat, which I figure is the equivalent of LineageOS 14.1).

The feedback I get when attempting to apply the patch is as follows:

Code:mark@debian:~/Templates/Lineage2/android/lineage/frameworks/base$ patch -p1 -i "/home/mark/Templates/Lineage2/patch/android_frameworks_base-N.patch"

patch: **** Only garbage was found in the patch input.I'm not sure what to try next. All helpful suggestions are appreciated.latest?d=yIl2AUoC8zA latest?i=lNN2jWL9v38:wKJ9Ix757pE:F7zBnMy latest?i=lNN2jWL9v38:wKJ9Ix757pE:V_sGLiP latest?d=qj6IDK7rITs latest?i=lNN2jWL9v38:wKJ9Ix757pE:gIN9vFwlNN2jWL9v38
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments