Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,535 Members 39,906 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] How-To Cherry-Pick Features for your ROM (both GitHub and Gerrit)

Tip us?
 
jjardinero.01
Old
#31  
jjardinero.01's Avatar
Member
Thanks Meter 11
Posts: 93
Join Date: Feb 2013
Location: Vigan City
Awesome guide. Thanks!
BTW, Its my first time compiling cyanogenmod from source. For now its just a stock CM11. Im planning on adding Paranoid Android features to my CM build but my problem is I dont know what to cherry pick. Can someone pls help me provide links to these features: Quick Settings tiles and Lock Screen. Thanks! Any help would be much appreciate.
Phone: Samsung Galaxy Note II

Rom: Android Revolution HD
Ditto Note 3
OmniRom
CyanogenMod

Kernel: Stock
 
jonathanxx1
Old
(Last edited by jonathanxx1; 17th June 2014 at 06:37 AM.)
#32  
Senior Member
Thanks Meter 49
Posts: 371
Join Date: Jan 2013
Lets say i make a mistake,,like i just did btw, and cherrypicked in the wrong directory, what should i do to remove it without affecting anything else ?
Because at the moment when i make a mistake and dont want to get error in builds later i remove the whole folder containing the aosp source and its very time consumming to wait to redownload the whole aosp source.
 
azoller1
Old
#33  
azoller1's Avatar
Senior Member
Thanks Meter 1606
Posts: 1,748
Join Date: Aug 2011
Location: Lenexa

 
DONATE TO ME
dont delete the whole folder just the file/folder you cherrypicked in, like say i cherry picked a wrong thing into the settings apps, i would go to packages/apps/settings and remove just that folder, then resyncing shouldnt take that long
DONATIONS WOULD BE NICE!!-- HERE

Device: LG Spectrum 16GB 4G
Rom: Running Beanstalk Builds
Kernel: Running My S-Kernel JB

Device: Asus TF300T 32GB
Rom: Running My Own CyanogenMod Builds
Kernel: Running Stock CM Kernel

MY DEV
GOO.IM FILES/FOLDERS
ANDROID FILE HOST DEVICES
SOURCEFORGE FILES
 
jabza
Old
#34  
Senior Member - OP
Thanks Meter 518
Posts: 508
Join Date: Aug 2012

 
DONATE TO ME
Quote:
Originally Posted by jonathanxx1 View Post
Lets say i make a mistake,,like i just did btw, and cherrypicked in the wrong directory, what should i do to remove it without affecting anything else ?
Because at the moment when i make a mistake and dont want to get error in builds later i remove the whole folder containing the aosp source and its very time consumming to wait to redownload the whole aosp source.
Chances are, if you cherry-pick something in the wrong folder, it just won't apply. If you notice it before you've committed it (with the command "git commit"), you can just use the command "git cherry-pick --abort". It'll quit the cherry-picking process.

However, if you've really messed up a certain directory and don't know how to get back to a workable state, you can just delete the directory you cherry-picked in and do "repo sync" from the base of your AOSP source. It'll just redownload that folder.
Nexus 5: Personal Paranoid Android nightly build
HTC One: Paranoid Android official beta
Samsung Infuse 4g: Beanstalk
====================================
My personal nightly builds from Paranoid Android source

With Halo: Nightly folder
Without Halo: Nightly folder

Also, you can check out the thread for updates and info.
Donate Bitcoins
The Following User Says Thank You to jabza For This Useful Post: [ Click to Expand ]
 
sirovai
Old
#35  
sirovai's Avatar
Senior Member
Thanks Meter 158
Posts: 688
Join Date: Jan 2014
Location: Rome
Can you make a guide also for forking project and save our work on github?
Thank you!
Device: Nexus 5
ROM: Purity
Kernel: Code_Blue Kernel

Hit Thanks if i help you
The Following User Says Thank You to sirovai For This Useful Post: [ Click to Expand ]
 
jabza
Old
#36  
Senior Member - OP
Thanks Meter 518
Posts: 508
Join Date: Aug 2012

 
DONATE TO ME
Quote:
Originally Posted by sirovai View Post
Can you make a guide also for forking project and save our work on github?
Thank you!
Sure thing, I'll write something up tonight.
Nexus 5: Personal Paranoid Android nightly build
HTC One: Paranoid Android official beta
Samsung Infuse 4g: Beanstalk
====================================
My personal nightly builds from Paranoid Android source

With Halo: Nightly folder
Without Halo: Nightly folder

Also, you can check out the thread for updates and info.
Donate Bitcoins
The Following 2 Users Say Thank You to jabza For This Useful Post: [ Click to Expand ]
 
Rycon33
Old
(Last edited by Rycon33; 8th July 2014 at 05:37 AM.)
#37  
Rycon33's Avatar
Senior Member
Thanks Meter 1198
Posts: 2,503
Join Date: Apr 2011
Guys, I've been searching around but no luck atm, can anybody point where are the commits feom Mahdi rom for "Navigation Bar height adjustment"?

Edit: nvm, found it.

Tapatalked from my Xperia
My Nexus 5 mods for PA
My Xperia SP on Paranoid Android
My Family's Android devices - xperia P, xperia SP, xperia TX, moto G, and nexus 5

 
opticore
Old
#38  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jul 2014
Location: Portland
Great guide which covers everything you need to successfully cherry-pick. Thanks so much for posting this! Although I do have a question about moving in entire folders from Cyanogemon to my Vanilla AOSP, for example I want to use frameworks_av and frameworks_base to start but when I use those folders and files to build I always get a ton of errors. Is there something i'm missing? Do I need to merge? Any help is greatly appreciated.

Tags
cherry pick, cherry picks, cherry-pick, gerrit, github
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes