LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This 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


Reply
  Search this Thread
Old 10-30-2020, 02:31 PM   #1
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
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.
 
Old 11-01-2020, 11:55 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,503

Rep: Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376Reputation: 2376
If you did solve it, as the OP you can mark this solved, and I suggest you do.
 
Old 11-01-2020, 12:29 PM   #3
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by business_kid View Post
If you did solve it, as the OP you can mark this solved, and I suggest you do.
I thought I did mark it as solved yesterday. That is what is indicated on my computer anyway.
 
  


Reply

Tags
lineageos, patch, signature spoofing



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Patch not apply and tell me "file to Patch" :( hack3rcon Linux - Software 2 06-08-2015 07:35 AM
LXer: 5 More Things I Wish Linux Had And One I Wish It Didn't LXer Syndicated Linux News 0 10-17-2008 05:11 AM
Problems to apply a custom patch kernel 2.6.18-1.2257.fc5 Ronin_tekorei Linux - Kernel 2 01-08-2007 08:08 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM
I wish WISH would work... javomzt Linux - Newbie 9 05-08-2003 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration