yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] kantjer:
By using "repo start" you can have you're commits or reverts automatically added after a repo sync without the need for maintaining your own repo. It's a very nice solution if you only want to make a few changes to a repo. I'm now in the car but I will post more info about this when I'm home later. Please remind me if I forget.

Sent from my Nexus 6P
[Nexus 6P Android Development] Gizmoe:
Ninja only prints warnings and errors and some other stuff. It keeps the progress on one line with a percentage. Without Ninja it just prints everything.
[Nexus 6P Android Development] zahir.dk:
Anyone gets this screen when any application request for permission.
[Nexus 6P Android Development] dieselbuddeh:
Good to see i'm not the only one. For me it's on the dialer. Guess i'm not calling anybody today :)
[Nexus 6P Android Development] Nekromantik:
Hi

When I cherry pick I get

error: Commit 6d4e9126c4b28ba10e4d9630b823b29e761b2539 is a merge but no -m option was given.
fatal: cherry-pick failed
[Nexus 6P Android Development] zahir.dk:
Go to Settings - > Apps and find dialer and give the permissions from there. After that you should not see that window. That's how I have to do for all the apps for now.
[Nexus 6P Android Development] nathanchance:
Don't pick the merge commits. That commit is already here: https://github.com/TeamSubstratumRe...mmit/7a0ac9bb47722fff407c70954d5b8fc9368dd216
[Nexus 6P Android Development] Nekromantik:
Ah silly me!

Long day ha ha

thanks
[Nexus 6P Android Development] DowntownRDB:
[MENTION=3306843]kantjer[/MENTION] Thanks for the nice tip as it will definitely be a time saver. Looking forward to your forthcoming post with more info. Thanks again for being so helpful to all us "noob builders".
[Nexus 6P Android Development] brbdiving:
Could you possibly show exactly where to put the -Xmx?

start-server)
if [ ! -d "$JACK_HOME" ]; then
echo "Jack server installation not found" >&2
abort
fi

isServerRunning
RUNNING=$?
if [ "$RUNNING" = 0 ]; then
echo "Server is already running"
else
JACK_SERVER_COMMAND="java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=$TMPDIR $JACK_SERVER_VM_ARGUMENTS -cp $LAUNCHER_JAR $LAUNCHER_NAME"
echo "Launching Jack server" $JACK_SERVER_COMMAND
(
trap "" SIGHUP
for i in $(seq 3 255); do
eval exec "$i"'>&-'
done
cd "$JACK_HOME"
umask $BASE_UMASK
exec $JACK_SERVER_COMMAND
abort
) >"$JACK_OUT_ERR" 2>&1 &
fi

waitServerStarted
exit 0 ;;
[Nexus 6P Android Development] hackaveli:
im not a developer and dont have that kind of knowledge. Looks like this thread is for people to get PureNexus with Nougat build? I dont have linux nor experience with linux =( will there be a pure nexus nougat rom releasing eventually? Any ROMs worth flashing that have Nougat? Dont want crappy battery life though =p
[Nexus 6P Android Development] nathanchance:
Yes, PN 7.0 is definitely coming. There are several Nougat ROMs available, just look at the development section. This thread is not the place for this discussion though, feel free to create a Q&A thread if you have further questions.
[Nexus 6P Android Development] Nekromantik:
Is it quite hard to port the battery text option from PN 6.0 yourself?
[Nexus 6P Android Development] dieselbuddeh:
Boooo! Now i have to call people. And thanks.
[Nexus 6P Android Development] AzraelsKiss:
Why not just use the following command in terminal before starting the build?

export ANDROID_JACK_VM_ARGS="-Xmx2g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"

Just replace the 2 in -Xmx2g with however many gigs of RAM you can afford to use. You can even add the command to the bottom of ~/.bashrc to make sure it does it for every build. http://xdaforums.com/showpost.php?p=68675629&postcount=137 has other recommendations for out-of-memory and other errors... Good luck!

Have a good one!
[Nexus 6P Android Development] mrjaydee82:
Anyone getting this error?
[Nexus 6P Android Development] AzraelsKiss:
It may just be me, because I'm blind as a bat at times, but I don't see any errors in that pic... Perhaps you need to scroll up a ways... If you're asking about the warning it printed just before stopping the job... It's a warning...

Have a good one!
[Nexus 6P Android Development] eregev:
So my build is working fine when running manually, but I'm working on trying to automate with a script (so I can get pushbullet progress notifications and such simultaneously). Only issue I'm having is getting the envestup.sh to run in bash/allow for the following brunch command to go through. I can't seem to get it to run properly, even with adding the shebang as the first line. Again, no problem running all commands by hand. Any assistance? I'm running on Google Cloud's default Ubuntu 16.04 image.
[Nexus 6P Android Development] AzraelsKiss:
Here's my old simple build script I used for MM... Should work the same now... Of course,this is on a local linux box, but I don't think it should run any differently on a could instance...

#!/bin/bash

cd ~/android/pure
make clean
repo sync -f
. build/envsetup.sh
brunch angler
cp ~/android/pure/out/target/product/angler/pure_nexus_angler-* ~/android/builds
make clobber
cd ~

Have a good one!
[Nexus 6P Android Development] nathanchance:
If you are running on Google Cloud, you will need to run the script as root, so something like sudo bash or sudo source to get it rolling.
[Nexus 6P Android Development] beng2k:
[MENTION=6842057]nathanchance[/MENTION] Yes i am
[Nexus 6P Android Development] nathanchance:
EDIT: didn't realize who I was quoting lol. Can I see the errors?
[Nexus 6P Android Development] eregev:
That surely did it! Awesome as always, thank you. :)
[Nexus 6P Android Development] beng2k:
Reset the whole thing. Not sure what I missed the first time but this time around all went perfect. Thanks for your quick response.
[Nexus 6P Android Development] qsec:
Is this the recommended order to flash things?

Thanks.
[Nexus 6P Android Development] Step-han:
I've upgraded from last PureNexus M offical build to my personal PureNexus N build using those steps:

- Flash latest TWRP

- Flash new bootloader

- Flash new radio

- Flash vendor

- Full wipe, included /data

- Flash rom

- Flash custom kernel (if you want to)

- Flash SuperSU

- Flash gapps (i've used opengapps with no problems)

And then boot and smile! :)
[Nexus 6P Android Development] rchtk:
Ahah trying to get this to build on a 6GB RAM laptop but run twice into out of space errors. This thing is a beast! Hope ccache kicks in on the next ones..

Regarding vendor we are talking about r6 vendor right, so NRD90U ? Anyone knows what's the difference between vendors from T and U? Other than vendor the rest is the same (just one revert commit). Users on beta program are still running T without a problem.

And for my first post in this thread , thanks to the people involved, very good and detailed instructions, just what I am looking for on XDA.
[Nexus 6P Android Development] davall:
Maybe my post from a few days ago is of any help to you for your build on a 6GB RAM laptop?

http://xdaforums.com/showthread.php?p=68759360#post68759360
[Nexus 6P Android Development] erbsmokah:
Took every trick in the thread to finally compile.. Build time was 2h20mins. Core i5 2.5ghz, 8g RAM, WD Caviar Blue 750g HDD.

Looking forward to testing it out tonight!
[Nexus 6P Android Development] mohammed510:
getting this error ??

root@chemist-Lenovo-Y50-70:/home/chemist/pure/frameworks/base# git cherry-pick 7a0ac9bb47722fff407c70954d5b8fc9368dd216
error: could not apply 7a0ac9b... Notifications: Expose a bool to disable dynamic colors
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
root@chemist-Lenovo-Y50-70:/home/chemist/pure/frameworks/base# git cherry-pick 7a0ac9bb47722fff407c70954d5b8fc9368dd216
error: cherry-pick is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: cherry-pick failed
root@chemist-Lenovo-Y50-70:/home/chemist/pure/frameworks/base#

and this

root@chemist-Lenovo-Y50-70:/home/chemist/pure/frameworks/base# git cherry-pick 360c2a2bf25af3c3f6609936d165cfd258ba6c72
HEAD detached from 7a0ac9b
You are currently cherry-picking commit 360c2a2.

nothing to commit, working directory clean
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:

git commit --allow-empty

Otherwise, please use 'git reset'
root@chemist-Lenovo-Y50-70:/home/chemist/pure/frameworks/base#
[Nexus 6P Android Development] masInvasion:
Thanks for the info, unfortunately it is still not working. I tried a few different settings and still errors out. I think the last error was error 41
[Nexus 6P Android Development] kantjer:
This whats needed if you want to add your own changes after a repo sysnc

repo sysnc to remove any commits you added

repo start n your/repo -> this creates a branch 'n' on your/repo and let the repo knows that you want to track the "n" branch

make your wanted changes and commit them as usual or cherry-pick/reverting something

if you do a repo sync your changes will be added to the synced repo

To give you a real example, I want to revert this commit on every build.

these are the steps I have taken

repo sync -j8 --force-sync

repo start n frameworks/base

git revert 18deda3bb5cc3ab891e2062fa0cb899e8a7a7adc

that's all, I don't have to think about this ever again
[Nexus 6P Android Development] DowntownRDB:
[MENTION=3306843]kantjer[/MENTION] Wow, great tip and definitely a time saver. Thanks for sharing. I'm definitely learning a lot from following this thread and the great tips and guidance shared by you and many others. Have a fantastic day.
[Nexus 6P Android Development] kantjer:
You have a cherry-pick conflict, something that's guaranteed to happen when you start cherry picking commits from other ROM sources.

Check this How-To Cherry-Pick Features for your ROM thread, in your case specially post #4 Resolving Conflicts from Cherry-Picking
[Nexus 6P Android Development] aalupatti:
This is awesome. I have a question. If I want to cherry pick more than one commit for eg: all the commits for substratum i.e. everything in this page https://github.com/TeamSubstratumResources Is there a shorter way of doing it rather than adding each commit one by one..

Thanks
[Nexus 6P Android Development] dbarrett480:
Anyone have any tips to speed up build time? I got my hands on a 1 year old i7 laptop with 16gb ram and a 256gb SSD. My first build took a little over 4 hours. That seems like a long time judging by some of the build times others posted.
[Nexus 6P Android Development] Brutalibus:
sure!

git cherry-pick hash_commit_1 hash_commit_2 hash_commit_3 ...and so on...
[Nexus 6P Android Development] kantjer:
You can use the method posted by [MENTION=4124285]Brutalibus[/MENTION], or you can have a look at a program called smartgit, that let you do bulk cherry-picking using a gui

---------- Post added at 17:19 ---------- Previous post was at 17:17 ----------

did you setup ccache as suggested in the OP?

That will speed up your next builds
[Nexus 6P Android Development] dbarrett480:
Yes I gave it 100gb....I'm doing another build now to see what it does
[Nexus 6P Android Development] kantjer:
OK, you will see a significant drop in build time.

BTW 100gb is a lot, setting ccache to 50gb in my experience is more then enough.
[Nexus 6P Android Development] nathanchance:
An even quicker way is git cherry-pick <start_hash>^..<end_hash>, if you are picking a bunch of commits in a row.
[Nexus 6P Android Development] AzraelsKiss:
I would like to try to help you further, but you haven't given enough information. A screenshot, pastebin or copy and paste of the exact errors would be a lot more helpful. Good luck!

If you check the size of ccache after a build, you'll find that it's actually only using between 10 and 11 GB of space... 50 GB is the recommended (if available) because it provides more than enough room to allow it to grow as needed. 100 GB will likely just waste storage space, unless you plan to build more than just PN...

Have a good one!
[Nexus 6P Android Development] dbarrett480:
Can I change the size back to 50 without it rebuilding the cache? or will it rebuild the cache on my next build if I change it?
[Nexus 6P Android Development] Aswin08:
Can someone please share the total approx. repo size to be synched?

It has already crossed 15+gb so far..
[Nexus 6P Android Development] nathanchance:
My repo size is about 55GB or so. Compiled stuff ranges from 20-30GB
[Nexus 6P Android Development] kantjer:
You can change it, no problem.

Sent from my Nexus 6P
[Nexus 6P Android Development] aalupatti:
I see that there are thousands of commits in https://github.com/TeamSubstratumResources Do i have to find the hash for each of them.

Can you give an example with https://github.com/TeamSubstratumResources/platform_frameworks_base how you would add that to a rom build ?

I will give this a shot. thanks
[Nexus 6P Android Development] nathanchance:
You need "OMS-N: Support downloaded overlay packages [1/14]" to "SystemUI: Expose QS edit item decoration background color"
[Nexus 6P Android Development] aalupatti:
Holy cow that went over my head..:confused: [MENTION=6842057]nathanchance[/MENTION] more simpler please.. Like what commands should I use in the terminal :eek:
[Nexus 6P Android Development] nathanchance:
I can't really give a full git lesson right now but I made a post here about it http://xdaforums.com/showpost.php?p=68786690&postcount=466
[Nexus 6P Android Development] AzraelsKiss:
As [MENTION=3306843]kantjer[/MENTION] said, you should be able to change the ccache size without problem.

http://xdaforums.com/showpost.php?p=68767494&postcount=390

Have a good one!
[Nexus 6P Android Development] nathanchance:
On a side note, just for the lols.
[Nexus 6P Android Development] aalupatti:
Trying to do a PN build but getting the following error. Any suggestions please

http://pastebin.com/abWqueu9
[Nexus 6P Android Development] AzraelsKiss:
Is this with or without cherry picks, and if so, did the error occur the first build after adding a cherry pick... Then try reverting the commit and building again... Otherwise... I saw that Nate was pushing commits earlier, so perhaps you need to do another repo sync to pull in all the commits... You could do as it recommends, and try a jack-diagnose as well... It may give you better information... Good luck!

Have a good one!
[Nexus 6P Android Development] aalupatti:
I am still reading about cherry picking. SO this was without cherry pick

Will try a new sync first and then see

thanks
[Nexus 6P Android Development] IM0001:
Going to have to give this a shot sooner or later. I have been wanting to get into rom building on my own for some time, just don't have the time. (last rom's I was cooking are from the Windows Mobile 5-6.X days).

One thing that does baffle me a little bit though, is how bloody big Mobile OS's are getting.
[Nexus 6P Android Development] Nekromantik:
Im surprised there is no N rom with battery percent added.I thought that would be one of the less complex add ons. Or am I mistaken?
[Nexus 6P Android Development] dieselbuddeh:
[MENTION=6842057]nathanchance[/MENTION] [MENTION=4395895]BeansTown106[/MENTION] Did the permission notification get fixed?
[Nexus 6P Android Development] nathanchance:
Status bar and navigation bar got reworked quite a bit.

It was never an issue for either of us but someone earlier said today's build fixes it.
[Nexus 6P Android Development] dieselbuddeh:
Cool. I set my machine to build before I left for work. Will flash when I get home.
[Nexus 6P Android Development] mazz0310:
I'm building now. I can confirm shortly.

UPDATE: [MENTION=5409941]dieselbuddeh[/MENTION] [MENTION=6842057]nathanchance[/MENTION] Unfortunately on the latest build (sync'ed and built around 2:00 PM PST) I am still having the same issue with the permissions dialog.
[Nexus 6P Android Development] nathanchance:
Are you using a theme?
[Nexus 6P Android Development] mazz0310:
I am not. My install process:

PureNexus-Homemade

OpenGapps-64 pico

Franco Kernel (occurred with stock also, but would have to confirm)

Magisk v6

PHH SuperUser

Thanks for the response.

EDIT: [MENTION=6842057]nathanchance[/MENTION]

Here is the logcat when I launch the camera (requesting permission for camera)

http://pastebin.com/kGyrLGGY
[Nexus 6P Android Development] aalupatti:
Build error was due to jack server issue. Sorted and created a new build.

Now time to cherry pick for substratum
[Nexus 6P Android Development] kantjer:
In this case is much easier to use the gerrit review

start at the bottom and up from there, open each commit, go to download in the upper right corner and copy the cherry-pick link in your terminal
[Nexus 6P Android Development] aalupatti:
How do I figure out the commits that I need to cherry-pick for a particular feature.

In the example for substratum gerrit there are around 30 commits. Would I have to pick all the commits in that page ?

Thanks
[Nexus 6P Android Development] kantjer:
If you want full OMS support you will need to pick all commits from there.

I wouldn't bother at this time, I have tried one build with OMS and did go back to legacy support for now.

Lot's of themes need to be updated for N support.
[Nexus 6P Android Development] aalupatti:
Got it thanks

Any tips on how to add the commits with the smartgit you suggested , for adding commits to the repo ?
[Nexus 6P Android Development] nathanchance:
Thanks, I'll pass that on to Beans and see if it makes sense. Btw, pro tip, use pastebin or hastebin for logcats in the future :)

EDIT: [MENTION=756777]mazz0310[/MENTION], apparently the issue resides with Google's Package Manager. Make a file named ".gapps-config" in the same folder as your Open GApps zip and simply type "PackageInstallerGoogle" in that file. That will omit the Google Package Manager while flashing so that you can use the AOSP one included in the ROM. See more info here: https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options

To get rid of everything, wipe system then reflash your files.
[Nexus 6P Android Development] BeansTown106:
It's the Google package manager installed with open gapps that's causing the permission dialog issue
[Nexus 6P Android Development] mazz0310:
Ah, I had a feeling it had something to do with gapps. Which do you recommend?
[Nexus 6P Android Development] nathanchance:
See my post, I added an addendum.
[Nexus 6P Android Development] erbsmokah:
So do I flash the boot.IMG that's inside the compiled .zip file? Also where do I find the radio
[Nexus 6P Android Development] nathanchance:
The boot.img is flashed when you flash the ROM zip. The radio is found in the factory images but I have uploaded them separately on my AFH page linked in my signature.
[Nexus 6P Android Development] mazz0310:
Thank you [MENTION=6842057]nathanchance[/MENTION] [MENTION=4395895]BeansTown106[/MENTION] . The above worked perfectly for the Permissions popup. Appreciate the help and quick responses, especially considering this is an unsupported/BETA (Alpha?) build so far.
[Nexus 6P Android Development] kipue:
Hi, I dunno, I got ccache on 100 Gb (lots of spare space), and my last build was super fast, like 20 minutes.

Still in a VM.

But maybe ccache @ 50 Gb would still work same I guess?
[Nexus 6P Android Development] AzraelsKiss:
We're not saying that ccache won't work with the extra space... Just that it'll likely never be used and therefore a waste...

Have a good one!
[Nexus 6P Android Development] kipue:
Yeah, i know what you all meant.

My question is : does ccache make use of more than 50 Gb, or not. That was actually what I was wondering.

No matter either way, that's just me being curious :)
[Nexus 6P Android Development] AzraelsKiss:
Maybe... If you build for multiple projects... But for just one ROM, 50GB should be more than enough...

Have a good one!
[Nexus 6P Android Development] walbuls:
Thanks, that seemed to work. Not sure if its a bug or not concerning the /sdcard/ringtones folder. Phone wouldnt use them from there.
[Nexus 6P Android Development] dbroer91884:
I've seen quite a few of you post discussing kernel issues with the PN Nouget. I'm not sure how to tell if this is working or not. There are some errors messages that pop up while the ROM is building and there are some around the kernel part. What should I be looking for, knowing whether or not it is working? Or won't I know until I try to flash it at the end?
[Nexus 6P Android Development] kipue:
Boy, I really can't get to the end of the compilation.

Always abort at the "jack server" thing part.

Now I really narrowed it down to the fact that I cannot attribute enough ram to my vm. I can only spare 3gb and that must be that. Will get some more ram so I can allocate 8 gb then try again.

I get the jack server error no matter the environment (mint, Ubuntu 14/16) so I believe only the resources allocation is left.

All the pointers given here helped me a lot to overcome all the other errors so that's that. Thanks to all of you ^^
[Nexus 6P Android Development] denkru:
The line i changed in jack admin is,

JACK_SERVER_COMMAND="java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=$TMPDIR $JACK_SERVER_VM_ARGUMENTS -cp $LAUNCHER_JAR $LAUNCHER_NAME"

Change it to,

JACK_SERVER_COMMAND="java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=$TMPDIR $JACK_SERVER_VM_ARGUMENTS -Xmx6G -cp $LAUNCHER_JAR $LAUNCHER_NAME"

Change -Xmx6G to how many GB you have to spare, do this before you start to build.

This was the only thing that worked for me, it solved all the memory issues i had with Jack.
[Nexus 6P Android Development] AzraelsKiss:
If it gets a bad error, the build should fail and terminate with a failure. There's not much benefit of sitting and stressing out over all the warnings during a build, because there will almost always be warnings.

Yeah... 3 GB might be a little too little. I personally believe one should have at least 4 GB of RAM, because I've noticed up to that much allocated on a headless server I used for building. But that was while I was building Lollipop on the Note2, so it's possible the build usage has changed. Good luck!

Have a good one!
[Nexus 6P Android Development] Helloworld294:
I'm having fetch errors aswell.

I tried using "repo sync -f" to force sync it but then when I brunch, the build fails.

I even tried doing "make clean" and then re running "repo sync" with no success.

No idea what could be the culprit of the problem.
[Nexus 6P Android Development] nathanchance:
Want to give me a pastebin with your sync log?