[SOLVED] Wish to apply a patch for a custom build of LineageOS 14.1
Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
Wish to apply a patch for a custom build of LineageOS 14.1
[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.
Last edited by mark_alfred; 10-30-2020 at 03:21 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.