yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] AzraelsKiss:
When you open the shell, you should be at your home directory... Within that directory... You have a directory that you created called PN... This is where you initialized and synced the repo and started the build process... Within that directory is a series of directories starting with out and followed by target then product then angler. Within this directory called angler is a file by the name of pure_nexus_angler-7.0-20160920-HOMEMADE.zip, which is the zipfile of the ROM you built. That is the file you will want to download onto your device, so that you can flash it onto it.

Have a good one!

P.S. If you're asking how to download the file from the Google Cloud Services Console... You should have read up on Google's documentation or at least Googled it... Here's a link to get you started... https://cloud.google.com/storage/docs/cloud-console#_downloadingdata
[Nexus 6P Android Development] netwokz:
I have many questions, but to start with a few...

1. Best practices when using a local_manifest? I have forked a few repositories. I've setup a local manifest, removing a few and adding mine in place. How do I know that I am editing changes on my repo's? When i run "git remote show" it returns with "pure" and "mygit", "mygit" being my remote in my local manifest. Am I doing something wrong?

2. When I fork a repo(ex. frameworks/base), how do I keep up to date with my added changes?

This Isn't my first time building. But I want to get more active in it.
[Nexus 6P Android Development] nathanchance:
1. When you type git remote -v, what shows as origin? If you removed the PN repo with a remove-project tag and added yours back, it should be your repo.

2. https://help.github.com/articles/syncing-a-fork/

I personally prefer to fetch and cherry pick though

git fetch <GIT_URL> <BRANCH>
git cherry-pick <SHA_HASH>
[Nexus 6P Android Development] netwokz:
It shows both repo's as fetch and push.

Thank you for that, will do some reading.
[Nexus 6P Android Development] AzraelsKiss:
When you're making changes in your build directory... Those changes shouldn't affect either remote, until you commit the changes and push them to a remote (in this case, I would assume it to be mygit). You should read up on git to learn more about working with commits, remotes, branches, pulling and pushing... Below are some references I've used in the past...

https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes

https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging

https://help.github.com/articles/configuring-a-remote-for-a-fork/

https://help.github.com/articles/pushing-to-a-remote/

http://ilikekillnerds.com/2014/05/how-to-fix-a-detached-head-on-a-git-repository/

As well as the syncing a fork link that [MENTION=6842057]nathanchance[/MENTION] posted. Good luck!

Have a good one!

P.S. You may also want to look into getting a github account, and forking the projects you want to tinker with to it... To use as your remote... But whatever you're most comfortable with should work just fine...
[Nexus 6P Android Development] netwokz:
Thank you, I have a github, and have forked the repos I want to mess with. I know how to make my own changes, now I'm curious on how to keep them in the build(using a local mainifest) and keeping my forked repos up to date.
[Nexus 6P Android Development] nathanchance:
Guess Ninja doesn't slow the build down that much :p
[Nexus 6P Android Development] AzraelsKiss:
Following the syncing a fork link should allow you to keep up to date with upstream commits and a proper local manifest should keep the commits on your personal remote during a repo sync. As long as a local commit doesn't conflict with an upstream, merging should be pretty automatic, but if there is a conflict, you just need to follow the directions to find out where it's at and what need to be done to fix it. Normally, to update with upstream commits, just entering the following commands in each project that you're modifying should be all you need...

$ git fetch pure (fetch commits from upstream)
$ git checkout n (I'm assuming you're using branch n like pure... Otherwise... Change it to the branch used on your local commit...)
$ git merge pure/n (merge the upstream commits with your local source)
$ git push mygit/n (push the commits to your personal remote. You'll also want to do this whenever you're ready to update your repo with your commits...)

If anything goes wrong... There's plenty of documentation available to help direct you to the proper answer... There's also plenty of information on local manifests, but I don't have any links of documentation I've personally used, so here's a page I found on XDA University...

http://xda-university.com/as-a-developer/local_manifests-cookbook

Good luck! Have a good one!

---------- Post added at 02:28 AM ---------- Previous post was at 02:19 AM ----------

I would think not... My last build using ninja only took 23 minutes and change... lol

Have a good one!
[Nexus 6P Android Development] qsec:
Trying this on my laptop, but when i stop the server it is saying that it is not running,

And when i start it it says that Jack server installation not found.

in terminal i did the commands in my folder called PN where my repo is.
[Nexus 6P Android Development] daimerion:
The ram requirements spoken about here seems strange to me. The only reason I say this is during the two builds I've cooked my ram usage never went above 3gb and that's including system usage in mint 18.

My system;

Mint 18 64bit

I7 4800MQ 2.7GHz 4 logical 4 Virtual

24 GB RAM

750 GB 7200rpm hdd

*Edit* Nvm, towards the end when creating the images it does jump up to 7.4Gb of ram usage.
[Nexus 6P Android Development] fhem:
So...... What you gonna do going forward.?? :confused:
[Nexus 6P Android Development] qsec:
My builds seems to use more memory later in the progress. For example right now it uses 5,5gb and progress is 60%
[Nexus 6P Android Development] snak3ater:
It'll come down. Don't worry
[Nexus 6P Android Development] kantjer:
For me building with Ninja add's about 10 minutes to a full clean build (clean ccache) time and 5 minutes to a clobber build.

That combined with the cryptic messages is enough reason to leave it off for me.
[Nexus 6P Android Development] dbarrett480:
The jack server folder is actually in the root of your home folder so back out of your PN folder and then try
[Nexus 6P Android Development] nathanchance:
Going to have to test it for several more builds. need to also dig in and see what the other added benefits are. That time is pretty average for me, might be a few minutes longer.
[Nexus 6P Android Development] kantjer:
Did some more testing, the time difference seems less big as I initially thought, max 5 minutes longer.
[Nexus 6P Android Development] qsec:
It seems that i never will succeed in build :(

First i got some Ninja errors, then i built without Ninja and got this error. Is this last errors the cause of the fail, or should i look earlier in the log?

Does anyone know what the cause could be?

thanks.

ERROR: /home/henrik/PN/packages/apps/PureSettings/src/com/pure/settings/fragments/PowerMenuSettings.java:178: The method onPreferenceTreeClick(PreferenceScreen, Preference) of type PowerMenuSettings must override or implement a supertype method

ERROR: /home/henrik/PN/packages/apps/PureSettings/src/com/pure/settings/fragments/PowerMenuSettings.java:226: The method onPreferenceTreeClick(Preference) in the type PreferenceFragment is not applicable for the arguments (PreferenceScreen, Preference)

make: *** [/home/henrik/PN/out/target/common/obj/APPS/Settings_intermediates/with-local/classes.dex] Error 41

make: *** Waiting for unfinished jobs....

#### make failed to build some targets (01:55:48 (hh:mm:ss)) ####
[Nexus 6P Android Development] pvtjoker42:
decided to build again today, had to update the manifest (purenexus vs pure from my last build) and the build only took 17 min today, down from 40ish the last couple builds.. Good to see some of the Pure Nexus settings making their way back. Couple more minor things that I'm used to and this should be good enough for me.. :) (missing the option to separate ringtone and notification volumes the most)
[Nexus 6P Android Development] DowntownRDB:
[MENTION=1413661]pvtjoker42[/MENTION] +1 on missing the option to separate ringtone and notification volumes. Hopefully Nate will add it in as his time permits or I will get it figured out how to add it in my local repo.
[Nexus 6P Android Development] Ericarthurc:
Hey quick question; I got the homemade build to finally finish without error haha! And it installed fine and booted with supersu 2.78 in system-less mode just fine; well I hate using system-less mode and wiped the phone and reinstalled with 2.78 SR1 systemmode and the system wont boot (just in the boot animation forever). I can go back to systemless mode; but prefer the /system mount. Is there a modified boot.img I need to flash for this to work? And does anyone have access to this? If this post goes against the rules of this thread please remove!
[Nexus 6P Android Development] fhem:
I agree w/ you. So far I am only testing my own n9 rom builds (haven't tried my n6p or n6 yet) --> no pn --> so I am going to hold my final decision until I have more test cases.

1. Clean builds w/ clean ccache seem to be about the same time.

2. Ninja appears to be faster once the ccache is built ---- but school is still out for me LOL

Thanks for testing and keeping us informed.
[Nexus 6P Android Development] qsec:
Question about Ninja & Ccach

Is it ok to just add those values to the very end of .bashrc file like below, or should they be in some if loop?

if [ -x /usr/bin/mint-fortune ]; then

/usr/bin/mint-fortune

fi

export USE_NINJA=false

export USE_CCACHE=1
[Nexus 6P Android Development] nathanchance:
That's fine, that's what I do. Your error above is due to the fact Beans was working on stuff on Github.
[Nexus 6P Android Development] qsec:
So you think it is time for a re-sync and then build?
[Nexus 6P Android Development] jmtjr278:
Sorry for being thick. I did read previous post and don't see a definite answer. I used Google cloud Ubuntu 16.04 to build. Worked great. Now, I see the directory where it sent my ROM but I cannot find it considering this only seems to install a command line and no GUI. How would I get my newly compiled ROM to my phone?
[Nexus 6P Android Development] nathanchance:
Either FTP upload it somewhere or use a Bucket instance. I'll write a post about how to do the latter here in a bit.
[Nexus 6P Android Development] jmtjr278:
That would be great [MENTION=6842057]nathanchance[/MENTION]. You are the best, bro
[Nexus 6P Android Development] jmtjr278:
Can't find any data within bucket. Not sure what to do next. Find created. It tells me the directory. Just built again. No info found in bucket.
[Nexus 6P Android Development] AzraelsKiss:
If it's not running, that's fine... And you shouldn't need to start it manually, because it'll start when you start the build...

Have a good one!
[Nexus 6P Android Development] eregev:
Question. Is anyone having issue with Google now always on listening not working? I've been having some issues syncing repo and am curious if it's just my setup or if it's something still in the works for everyone. Not complaining about bugs or anything just want to double check.
[Nexus 6P Android Development] AzraelsKiss:
Okay... Here is another link I found while Googling...

http://xdaforums.com/chef-central/android/guide-how-to-build-rom-google-cloud-t3360430/page3 (You should probably read the whole thread, but I noticed download discussions starting on that page...) Good luck!

Have a good one!

P.S. More information about transferring files with your Linux instance...

https://cloud.google.com/compute/docs/instances/transfer-files#winscp
[Nexus 6P Android Development] nathanchance:
What GApps are you using?
[Nexus 6P Android Development] 1112ee:
Customization updates are slowly rolling in on GitHub, I think I'll wait for substratum to build again though
[Nexus 6P Android Development] nathanchance:
Can always add it yourself :p
[Nexus 6P Android Development] DowntownRDB:
[MENTION=6842057]nathanchance[/MENTION] Any quick tips on how best to add substratum?
[Nexus 6P Android Development] pvtjoker42:
i'm using substratum (i guess it says legacy) on the builds i've turned out.. there some newer version in the pipe?
[Nexus 6P Android Development] 1112ee:
I was thinking about it earlier but that's a bit deeper that my knowledge goes. I'll probably still try though

---------- Post added at 03:42 AM ---------- Previous post was at 03:42 AM ----------

Legacy is just RRO
[Nexus 6P Android Development] nathanchance:
Move into the repo you need to add commits to (system_core = system/core, frameworks_base = frameworks/base, etc)

cd <path>
e.g. cd frameworks/base

Fetch the Substratum repo corresponding to the one you are in

git fetch <repo_url> <branch>
e.g. git fetch https://github.com/TeamSubstratumResources/platform_frameworks_base.git android-7.0.0_r1

Cherry pick the commits you need (they will say committed with Nicholas Chum usually)

git cherry-pick <sha_hash>
e.g. git cherry-pick 4da127de34eac85df93f0043eb25845c8fa3bdd2

Rinse and repeat, the Substratum Github is here: https://github.com/TeamSubstratumResources

If you force sync, you'll need to re-do this process
[Nexus 6P Android Development] 1112ee:
Could you go more in detail on step 3? Do I only need the most recent commit?
[Nexus 6P Android Development] nathanchance:
You get the commit hash from the Github repo, next to the commit there is a button that looks like a clipboard with an arrow you can click to get the hash.
[Nexus 6P Android Development] aalupatti:
I have the same issue with Google now. Tried a few custom nougat builds and all of them seem to be broken. Tried different gapss including banks, benzo and open. Still the same. The issue I face is that the Google now everywhere is greyed out.

I am building a new build today and test out again

Sent from my Nexus 6P
[Nexus 6P Android Development] 1112ee:
for example, https://github.com/TeamSubstratumResources/platform_frameworks_base/commits/android-7.0.0_r1?page=1

would i only need the most recent one by Chum, 6d4e9126c4b28ba10e4d9630b823b29e761b2539, or all by him

I think I see now, I thought

meant by him
[Nexus 6P Android Development] zahir.dk:
[MENTION=6842057]nathanchance[/MENTION] Thanks for the wonderful guide. I was able to build it in the first go. Many learnings to come :)
[Nexus 6P Android Development] dbarrett480:
So would we sync for example the entire Platform_frameworks_base repo or just commits within that repo? Because it seems like there are thousands of commits in just the platform_frameworks_base repo
[Nexus 6P Android Development] nathanchance:
Congratulations and enjoy :) feel free to ask anything you need in here.

You would need to just merge what is committed by Nick on the first page.
[Nexus 6P Android Development] mrjaydee82:
Literally took 3 days to build lmao and 4GB ram setup but finally success... Just ordered a bunch of new computer parts to build a new desktop...soon I'll be messing with 32GB ddr4 and a bad ass i7 chip
[Nexus 6P Android Development] dbarrett480:
Awesome! I was wondering if you got it to build! What did you have to do to get it to work?
[Nexus 6P Android Development] theesotericone:
Nice. What mother board?
[Nexus 6P Android Development] mrjaydee82:
Asus TUF Sabertooth z170 s LGA 1151 Intel
[Nexus 6P Android Development] theesotericone:
Sweet. I have a Gigabyte Z170X Gaming 7. If your thinking of OCing, which you are judging by the board, get a liquid cooler if you don't have one ordered yet.

I have the i6700K with a Kraken X61. I have the chip clocked to 4.8GHZ and it's bomber stable. It also never gets over 59C when building. I got lucky with the silicon lottery and have no hot cores. They all run within 2C of each other. I went with 16GB of Corsair Vengeance LPX 3200MHz. I've got it clocked at 3000MHz. I couldn't get it stable at 3200. The XMP memory profile was a joke so I dialed the memory in manually. Let's just say build times are really fast.

If you have any questions or need any advice on getting the most out of that chip let me know. It took me the better part of 3 days to get it truly dialed in.:cool:
[Nexus 6P Android Development] mrjaydee82:
Cool. Ill be over clocking as well..I like my air cooled systems and I bought a cool master cooler for the i7 6700k
[Nexus 6P Android Development] nathanchance:
That's awesome haha, my server has an i7-3770 and 32GB of RAM, thing is a beast. Definitely share how it goes when you get it together :)
[Nexus 6P Android Development] Ericarthurc:
Took me 1 hour and 33 minutes on first try with ninja to make the rom.

System: i5 6600k 4.4ghz

MotherBoard: Gigabtye z170x gaming 6

Ram: 16gb DDR4 G.Skill 3000mhz

SSD: Samsung Evo 840 250gb

GPU: Fury X

Operating System: Ubuntu 16.04 LTS
[Nexus 6P Android Development] theesotericone:
Tried and true works man. If I was gonna go air cooled that would have been my number one choice. Have fun with the building the new hardware and enjoy the rig. It's a very solid chipset.
[Nexus 6P Android Development] qsec:
Finally!

Mmmmm, dat feeling.

#### make completed successfully (01:51:49 (hh:mm:ss)) ####

Question, i read a lot about the second build goes much faster than the first one.

Is that with clobber?

Or should i not use clobber when doing a re-sync and second build?

Question 2, when build without Ninja i always have to use the command source ~/.bashrc first?

thanks.
[Nexus 6P Android Development] qsec:
That didn't work, any other ideas?

the commands i am trying to run are:

export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx7168m"

then

./prebuilts/sdk/tools/jack-admin kill-server (it says no such file or dir)

and

./prebuilts/sdk/tools/jack-admin start-server

i have .jack-server in my home folder.

but this commands points to a different location.

Forget this, somehow it is working now. Don't know why tho :)
[Nexus 6P Android Development] nathanchance:
Make sure you are running those commands in the source directory.
[Nexus 6P Android Development] zahir.dk:
EDIT: Ignore
[Nexus 6P Android Development] qsec:
I did that first with the same error.

The source directory as in the directory created by following you guide in step 3 (mkdir ~/<foldername> (eg. mkdir ~/PN or ~/PureNexus)

I called it PN.
[Nexus 6P Android Development] zahir.dk:
Need help with the below noob questions :)

1. In Step #2 when we did the below what exactly does it do?

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

2. If I make any changes to any files and commit, I am sure it won't end up commit to the PureNexus repo. Need a confirmation though.

3. If in #2, it does not commit to PureNexus, then where are those commits actually done? Will the versions be managed so that I can revert back in case of issues?

More questions would be coming soon. :)
[Nexus 6P Android Development] nathanchance:
1. That identifies you to git for the sake of commits and pushing/pulling.

2. Yes, your cherry picks or commits will not be pushed back to Pure Nexus.

3. If you do not push them, they will just sit on your computer. If you want to push them, you will need to fork the repo and add it to a local manifest.
[Nexus 6P Android Development] zahir.dk:
EDIT:

Thanks [MENTION=6842057]nathanchance[/MENTION] . I forked the repo's I needed. Now how do I link my local source with my GitHub account's forked repo (I hope the terms are correct hehe)
[Nexus 6P Android Development] nathanchance:
Give this post a read: http://xdaforums.com/showpost.php?p=55178446&postcount=77
[Nexus 6P Android Development] Trak-X:
Finally, after a zillion tries and 3 different machines, i managed to build my own PN zip for Angler.

Questions i have are as follows:

1. If i need to build for 5X too (i have one for testing), will it use the ccache, or i will have to wait 6 hours again for building?

2. Just doing brunch bullhead will it build? I did now - mka clobber / breakfast angler / mka bacon

3. Anyone compiling on OSX ? :) I have a spare one with 16 gb and i7 but running osx beta.

Thank you Nate,​ Nathan and the rest of the team.﻿
[Nexus 6P Android Development] DowntownRDB:
[MENTION=6842057]nathanchance[/MENTION] Thanks for the information on how to add substratum. I followed your directions to a "T", did a rebuild and voila substratum is working. :) :) Also, thanks for the reminder about having to re-do this process after a repo sync. Otherwise, I'm sure I would have forgotten to do that. LOL.

---------- Post added at 08:26 AM ---------- Previous post was at 08:13 AM ----------

[MENTION=2477527]mrjaydee82[/MENTION] I have that same white mobo. I love that it has a USB Type C. Moving up from my old DDR3 RAM to DDR4 RAM 2400 was definitely a huge plus. I recently added a Samsung 850 PRO - 1TB SSD and now my build times are down to 29 minutes. Best of luck on your upcoming build and I'm sure your build times will drastically drop on your new PC.
[Nexus 6P Android Development] mohammed510:
Hi!

I'm using this thread to build benzo. i have already downloaded the source using

repo init -u git://github.com/BenzoRoms/manifest.git -b nougat and repo sync -f -j8 then finally repo sync --force-sync.

the problem is that I'm kinda stuck here. i dont know how to initiate the build.

i have tried

. build/envsetup.sh
breakfast angler
mka clobber
mka bacon

but it didn't work

i get this error

build/core/tasks/kernel.mk:135: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:136: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:137: * BoardConfig.mk file *
build/core/tasks/kernel.mk:138: **********************************************************
make: *** No rule to make target 'bacon'. Stop.

#### make failed to build some targets (01:16 (mm:ss)) ####

root@chemist-Lenovo-Y50-70:~/benzo#

kindly advice

thanks so much
[Nexus 6P Android Development] eregev:
Open, Nano.

Thank you.
[Nexus 6P Android Development] NatsuDzn:
Building DU (clean build) took me around one hour with ninja but I found that the build time is really long compared to my specs

CPU : i7-6700K

Motherboard : Asus MAXIMUS VIII HERO

RAM : 32 GB DDR4 2400 MHz

SSD : Samsung 850 EVO 500 GB

HDD : Seagate Barracuda, 2 TB

Anyone know if that's normal

btw sorry for my english
[Nexus 6P Android Development] Gizmoe:
I got almost the identical setup. Only difference is my ram is 3000 mhz and motherboard is Gigabyte Gaming 7. If I install Linux straight to my drive it takes 50 min fresh. If I run a VM it takes 1:20 min. So yeah it sounds normal for your specs.
[Nexus 6P Android Development] qsec:
When building the out put log shows progress percent.

But another time the out put log shows the text 'target' first followed by a lot of code stuff but no percent?

How come?
[Nexus 6P Android Development] beng2k:
So ive followed the guide exactly as per the OP.

This is done through Google Cloud Computing as per the instructions.

Each time it fails with this. Seems to be at different times but same error.

Once it mentioned selinux and another time it mentioned wpa

Any help?

http://pastebin.com/DjSP2Jnj
[Nexus 6P Android Development] zahir.dk:
Did it require cherry picking only the latest commit id or we have to trace back and cherry pick all the commit id's?
[Nexus 6P Android Development] nathanchance:
1. It will build clean at first then be sped up due to ccache.

2. Yes. Brunch is the same thing as breakfast && mka bacon, I just like to do it separate.

3. Some have tried but it just doesnt work. Apple has screwed with the SDK too much and Google hasn't caught up.

Awesome :highfive:

Try to do lunch instead of breakfast, he may have screwed with his vendor since he only builds for Angler.

Quite a few people have said that Ninja aside, N builds slower. No idea why.

Are you running as root?