yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] kantjer:
you made changes to your local source but didn't commit them, that's why your repo sync is failing.

probably the easiest fix is to delete the folders containing the changes you made (frameworks/base) and sync again
[Nexus 6P Android Development] kicker22004:
ok that makes sense, I'm not used to the way this is. I run my own github but not how this is..or it's just me failing lol. Thanks i'll be sure to fix this now.
[Nexus 6P Android Development] mrjaydee82:
I hope someone knows...after running this command

prebuilts/misc/linux-x86/ccache/ccache -M 50G my disk space went to 0/as you can see in the pic below. Im trying to delete files to free up space but the computer just hangs. Anyway to reverse that command or commands to delete files so I don't have to wipe the while HDD?
[Nexus 6P Android Development] kantjer:
to clean ccache type "ccache -C"

also when deleting files use shift-del, that way the wastebin isn't used
[Nexus 6P Android Development] masInvasion:
I can't explain this but after the first successful build, I decided to sync the changes and now I can't successfully build anymore. I am pretty sure its the same exact error as before so for some reason it worked once and that was it. If you have any suggestions, I would greatly appreciate it because I do not know where to go from here. I did copy the terminal session and its at the link below:

http://pastebin.com/dMnGGECW

One other thing, can you explain how jack-server is installed, i know it is in ~/.jack-server but are some settings stored in ~/(PN Repo)/prebuilts?
[Nexus 6P Android Development] Juzman:
So basically, a clean flash?
[Nexus 6P Android Development] nathanchance:
No, a clean flash would include wiping data. You just need to wipe system in that process :)
[Nexus 6P Android Development] Juzman:
Ah right, wipe system > flash ROM, opengapps, etc. Then should be good. Will give it a shot.

Edit: worked. ^_^
[Nexus 6P Android Development] pauljohnson75:
1-Intel Core I7 3770 16 GB Ram 256 SSD and 2 TB 7200 Hard Drive

2-Windows 10 1607 ( Ubuntu Server 4 cores 10 GB Ram in VMWare Virtual machine with 500 GB Hard Drive)

Build Time about 1.5 hours
[Nexus 6P Android Development] mrjaydee82:
I just got done building my computer today.. Well I'm just waiting for my 1080 nvidia card but it's up an running now.

i7 6700 4ghz

64GB DDR4 2400

Samsung 500gb 850 SSD

Black 2GB HDD

Red 4GB HDD

Latest Ubuntu that's loaded on my external HDD
[Nexus 6P Android Development] nathanchance:
That's pretty disgusting.... I'm jealous :p
[Nexus 6P Android Development] nathanchance:
My server specs:

Build times from completely clean (no ccache) are about 1.5 hours. With ccache and make clobber, 35 minutes. With ccache and make installclean, 15 minutes.
[Nexus 6P Android Development] pauljohnson75:
Thanks I never knew about screenfetch awsome.
[Nexus 6P Android Development] pauljohnson75:
That thing is going to scream.
[Nexus 6P Android Development] pvtjoker42:
Hope those GB's are actually TB's.. :cool:

That should be a zippy lil machine for ya!
[Nexus 6P Android Development] mrjaydee82:
Lol yeah I meant TB lol
[Nexus 6P Android Development] :
This seems like a transformer ?
[Nexus 6P Android Development] Asitaka:
Funny, my computer has almost identical specs to yours nathan, but my build is 2 to 2.5hrs
[Nexus 6P Android Development] nathanchance:
Oh geez lol... What's your hard drive configuration? And have you set up ccache?
[Nexus 6P Android Development] kicker22004:
Has anyone here gotten Substrate to build?. I'm having nothing but problems everytime I attempt to build it. Is anyone willing to share the commits they are pulling. I'm pulling this.

https://github.com/TeamSubstratumResources/platform_frameworks_base and putting it in framework/base.

But i keep running into issues with the build.. The comments i'm cherry picking are the OMS N 1/14 comments.. What could I be doing wrong here?
[Nexus 6P Android Development] nathanchance:
Did you pick the commits from the other repos like system_core and system_sepolicy that are in the TeamSubstratumResources organization?
[Nexus 6P Android Development] kicker22004:
I was going to but was unable to find system_core in this list: https://github.com/TeamSubstratumResources
[Nexus 6P Android Development] blitzerking1:
6600k 4.6Ghz

Gigabyte GA-Z170XP-SLI

16GB DDR4 3000mhz

GTX 1080

960GB Sandisk SSD

2TB Seagate Barracuda

Ubuntu 16.04
[Nexus 6P Android Development] nathanchance:
Sorry, my bad, I thought there was a commit from that repo but it is just frameworks_base, build, system_sepolicy, and frameworks_native. The other repos contain theme exposures.
[Nexus 6P Android Development] popper668:
View attachment 3885582

wahoo it worked :)

I'm backing everything up and going to flash it :p:p:p
[Nexus 6P Android Development] kicker22004:
OK i'm going to grab the others. I keep having to fix a few things in the framework/base/ area.... I use fix loosely lol. I'll try building again.

And since everyone else is saying build specs.

CPU: Intel(R) Core(TM) i7-4790k CPU @ 4.00GHz

Ram: 16GB DDR3 DDR3 1866

Mobo: Asus RoG Maximus VII Formula

GPU: Egva 980 Ti SC 6GB GDDR5

Storage Media: Main drive is 1TB Samsung SSD evo 850, And 5 standard HDD (7200Rpm)
[Nexus 6P Android Development] nathanchance:
Pro tip for those building right now: we have switched over to the Google Dialer and Contacts so if you dirty flash from a version with the AOSP dialer, you will need to reset the default dialer in Settings > Apps > Gear icon before opening it otherwise it will crash.
[Nexus 6P Android Development] Juzman:
1. Google Cloud VM - 4 CPUs / 15GB ram

2. Ubuntu 16.04

Build time, 45 minutes.

Just synced and compiled. Seems like Google Phone is crashing.
[Nexus 6P Android Development] Nekromantik:
Read Nathans post top of this page.
[Nexus 6P Android Development] Asitaka:
My computer is a little old, mka clobber mka bacon yields:

#### make completed successfully (02:13:23 (hh:mm:ss)) ####

ccache is 50GB
[Nexus 6P Android Development] laxattack:
Just switched back to my main OS, but for building I have the following:

Intel Core i7-3600 3.41 GHz

16GB Ram

Nvidia GeForce 8800 GT (flashed as Quadro FX 3700)

Main HD: 3TB Seagate 7200RPM (Mac OS X El Capitan)

2nd HD: 2TB Seagate 7200RPM (Windows 10)

3rd HD: 1TB White Label 7200 RPM (Linux Mint 18)

ccache set to 50gb

latest build time 45min
[Nexus 6P Android Development] mrjaydee82:
Running like a champ!!!
[Nexus 6P Android Development] jmtjr278:
Building every other day right now. Using Google cloud method and uploading my builds to mega. Works perfect. Beans is working hard. Every build has new features. Thanks for all the help everyone!
[Nexus 6P Android Development] aalupatti:
An SSD can really increase ur build speeds
[Nexus 6P Android Development] laxattack:
If I had the funds I would buy one, but 45 mins is fine by me!
[Nexus 6P Android Development] :
That's awesome.. I had to reinstall my Linux and had moved my repo to EHD.. But somehow the repo was corrupted and was getting a git error on the manifests.. I have now run the repo sync again.. Let's see how it goes..
[Nexus 6P Android Development] nathanchance:
Did you add export USE_CCACHE=1 to your .bashrc?
[Nexus 6P Android Development] sToRm1nG:
As far as I can tell you also switched to Google's version of Android System WebView (com.google.android.webview): https://github.com/PureNexusProject/android_external_chromium-webview

For some reason this app stays deactivated on my build (unable to activate it).

Do you know why?

I guess it was the default AOSP Android System WebView before that, right?
[Nexus 6P Android Development] masInvasion:
Out of Memory Error - Jack Server

So I figured out the issue. It took some searching on stackoverflow and Google. The funny thing is, it was right in front of me the whole time. the export command:

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

wasn't actually applying the -Xmx setting/wasn't applying anything at all. but in the link you referenced hervelo's post about stopping/starting the jack-server. I completely overlooked the fact that it wasn't using ANDROID_JACK_VM_ARGS, it was using JACK_SERVER_VM_ARGUMENTS.

By applying this command:

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

. It immediately fixed the issue and you could see the -Xmx4g command when starting jack-server. I still have no clue why it worked that one time but I learned a few things. Thanks for steering me in the right direction...I'm finally on 7.0! :)

Anybody that is experiencing Out of Memory issues. specifically java heap size error, the command to fix the issue is located in the link below:

http://xdaforums.com/showpost.php?p=68667560&postcount=107

Exact steps I took to fix it

Run in this order.

CD ~/LocationOfPureNexusRepoFolder
. build/envsetup.sh
breakfast angler
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
jack-admin kill-server
jack-admin start-server
mka bacon

When you run the start-server command, it will display it's parameters and in there you will see -Xmx4g.
[Nexus 6P Android Development] AzraelsKiss:
Probably because you manually started the Jack server... If the Jack server is started by the build process, then the line I quoted needs to be used. Glad you got it figured out... I've been out of town, so I haven't been paying much attention to the thread lately...

Have a good one!
[Nexus 6P Android Development] kicker22004:
OK i'm done playing with adding features lol, Takes too much time to have it just fail again. I'll just follow this thread and update on the regular as things are added in. My question is this tho. How should I normally update the build? Do I need to use Make clean? Here is my script can someone tell me what I can do to make it just get new updates and build.

make clean
repo sync -j8 --force-sync
. build/envsetup.sh
breakfast angler
mka clobber
mka bacon

Thanks in advance
[Nexus 6P Android Development] nathanchance:
The first make clean is unnecessary because mka clobber does the same thing and is in a better spot. Other than that, looks good :good:
[Nexus 6P Android Development] kicker22004:
Awesome thanks for the response. This is a very fast ROM and its always cool to know you did something yourself.... Even if it is just following a step by step guide. Thanks for everything.
[Nexus 6P Android Development] :
I have finally synced the repo and it comes around 40 GB. I have run the build but somehow I realized that mint did not have jack installed by default. Is it a must to have Jack running? I am asking because I have already triggered the build and on the way to work.. Will know anything about it in the evening..
[Nexus 6P Android Development] rchtk:
Jack is the build server. It is part of the repository and will be spawned automatically during the build.

---------- Post added at 01:13 PM ---------- Previous post was at 01:09 PM ----------

Is it justified to always run mka clobber? In theory(tm) it shouldn't be necessary if makefiles are properly written.

Just wondering if in practice, someone did run into problems without this step.
[Nexus 6P Android Development] kantjer:
Tricky question, make clobber is only needed under certain conditions.

Problem is for you as a builder (and even for a dev) it's almost impossible to know upfront if it's needed or not.

You can have a situation that without a clobber the ROM builds fine but will not boot (happened recent with the mod build were a make clobber was needed)

Depending on how fast you build machine is you can choose to always clobber a build you intent to flash (my preferred option)

Or don't clobber and make make sure you have an older working ROM, or a android as fall back on your phone.
[Nexus 6P Android Development] :
Thanks for the info.. Well yes the build failed due to a OOM error. I am re-running it again.
[Nexus 6P Android Development] kjcmusic17:
I'm trying to get my repo synced, but I continuously get

error: Exited sync due to fetch errors

and

fatal: Not a git repository <my directory where I did repo init>

I've been running

repo init -u https://github.com/PureNexusProject/manifest.git -b n

which didnt result in anything in the terminal window aside from the username/email init config thing. I get alot of the fatal:Not a repository message while trying to sync. I've also tried repo sync --force-sync and no dice.

I'm using Ubuntu 16.04 64-bit in VirtualBox; 4GB Ram, Host didnt want to share more; 200GB virtual drive; AMD Phenom II x6 1065T.

This is my first time trying to compile and build from source but have always wanted to! Thanks for the help!
[Nexus 6P Android Development] :
Check the Internet connection.. I was getting it the first time when my connection was not stable..

4 GB is a bit less.. Need atleast 8 GB.. Mine is running and hope it completes..
[Nexus 6P Android Development] king3opobn:
Is this normal?
[Nexus 6P Android Development] sToRm1nG:
What do you mean? The warnings?

They are completely normal.
[Nexus 6P Android Development] king3opobn:
Ok, thanks, cause it's still going, I didn't want to start over when it's finished
[Nexus 6P Android Development] stone1979:
Error: missing blob object

I get a past 99% complete and then get this error. Any ideas?

fatal: missing blob object '0780a270c0c25da1661c08e58b170e246af20f47'

error: android. googlesource. com /platform/ prebuilts/ sdk did not send all necessary objects

remote: Sending approximately 3.93 GiB ...

remote: Counting objects: 234, done

remote: Finding sources: 100% (36215/36215)

remote: Total 36215 (delta 12486), reused 36215 (delta 12486)

Receiving objects: 100% (36215/36215), 3.87 GiB | 13.35 MiB/s, done.

Resolving deltas: 100% (12486/12486), done.

fatal: missing blob object '0780a270c0c25da1661c08e58b170e246af20f47'

error: android.googlesource.com/ platform/ prebuilts/ sdk did not send all necessary objects

error: Cannot fetch platform/prebuilts/sdk
[Nexus 6P Android Development] jmtjr278:
Hey guys. I have been building every other day. Today I repo synced and tried to build 3 times. Build never finishes. Keeps failing with this message. Any insight?
[Nexus 6P Android Development] DowntownRDB:
Could be because Beans has been making several commits to those settings today and at one time it said WIP.
[Nexus 6P Android Development] JedixJarf:
Ok it's not just me then. Must be a bad commit, tried building a couple times, even blew out my dev environment and started fresh and got the same error.
[Nexus 6P Android Development] fkfmfz:
Is not a bad commit, is a part of a feature set that is a work in progress
[Nexus 6P Android Development] JedixJarf:
Ok, a "not fully working commit" lol. W/e you want to call it, it doesn't build :P
[Nexus 6P Android Development] laxattack:
yay, im not crazy and everyone else has the same issue :D
[Nexus 6P Android Development] DowntownRDB:
[MENTION=6842057]nathanchance[/MENTION] Nathan, shortly after noon today EST I did a repo sync in preparation to do another daily build. Anyway, something came up and I had to delay my build until this evening. I decided to take a quick look at Github to see if any further changes had been committed since noon so I would know whether I needed to do another repo sync. Lo and behold the most current commit now shows as 18 hours ago. Is there a problem with Github or do I need an eye exam? LOL Just asking.
[Nexus 6P Android Development] nathanchance:
frameworks_base, PureNexus Settings, and the settings repos have all been privatized, potentially for good. We'll see how this develops. I am not going to go into the reasoning behind it as Beans has deleted his public post on it but I'll keep you guys informed.
[Nexus 6P Android Development] DowntownRDB:
[MENTION=6842057]nathanchance[/MENTION] thanks for the rapid reply. I haven't kept up with his Google+ posts recently so I was not aware of any issues. Sorry to hear this but hopefully it will all work out for the best. I'll just await further info from you before I attempt any further unofficial builds. Hope your classes are going well this semester.
[Nexus 6P Android Development] rlivin:
I have changed laptops and now i keep getting error 41. Can anyone help me with this please?
[Nexus 6P Android Development] jmtjr278:
Did you just try this today? Read the past few posts. No one has been able to build. It sounds as though some of the repos have been privatized. Stay tuned for further updates.
[Nexus 6P Android Development] DowntownRDB:
[MENTION=2559879]rlivin[/MENTION] see post 686 above from Nathan Chance as the errors appear to be with Pure Nexus Settings which Nathan talks about above. Although I could be wrong.
[Nexus 6P Android Development] chopt51:
I think this needs to be CLOSED. You can't build Pure Nexus at the moment... Stop further drama. When its open sourced again open it up for discussion. Am I right?
[Nexus 6P Android Development] rlivin:
Did this start yesterday? That is when i started getting the error.
[Nexus 6P Android Development] jmtjr278:
What drama is being propagated here?
[Nexus 6P Android Development] :
Finally I had the repo synced yesterday morning and the build was run yesterday evening and have successfully completed the build. It took around 7 hrs and 10 mins...

My laptop is i5, 500 GB HD, dual boot with Windows 10 and Linux Mint, 8 GB RAM
[Nexus 6P Android Development] nathanchance:
See below
[Nexus 6P Android Development] nathanchance:
Pure Nexus source has been reopened and as a result, so has this thread!

Let me be very clear here: this thread is to help you build Pure Nexus for yourself. You should not be sharing personal builds as it is disrespectful to Beans and his release cycle. He releases when the ROM feels ready, not any time sooner and putting builds out in place of him goes against this philosophy.

With that out of the way, sync up and get to building! :highfive:
[Nexus 6P Android Development] 1112ee:
Yup, built already :good:
[Nexus 6P Android Development] AzraelsKiss:
+1 lol
[Nexus 6P Android Development] Bucika:
Will there be any difference from your guys build and the official one?!
[Nexus 6P Android Development] aalupatti:
[MENTION=6842057]The Flash[/MENTION] Question : To cherry pick 3minit battery would picking all the commits in this page ( https://github.com/gharrington/3Minit_Battery_Mod.git) be sufficient?

Thanks

Sent from my Nexus 6P
[Nexus 6P Android Development] Bonehead Fraggle:
Any change in vendor or still NRD90M if I build now?
[Nexus 6P Android Development] kantjer:
deleted
[Nexus 6P Android Development] nathanchance:
I don't think so since that is for the app, not the AOSP mod but I could be wrong.
[Nexus 6P Android Development] nathanchance:
It's NBD90X.
[Nexus 6P Android Development] Juzman:
Just synced, compiled, flashed, and flashed flash 3.10. Amazing!
[Nexus 6P Android Development] Constrabus:
For some reason, getting "fatal: not a git repository" (Full error in attachment)

I've tried:

--force-sync

--force-sync -j1

git reset --hard

re-initalizing the repo with repo init -u https://github.com/PureNexusProject/manifest.git -b n
[Nexus 6P Android Development] kantjer:
It appears your source is messed up

Try deleting the "external" folder and sync again
[Nexus 6P Android Development] pvtjoker42:
so glad to see this open again, i'd been itching to build and flash!
[Nexus 6P Android Development] aalupatti:
To Anyone who has built. Is the phone app working okay?

Sent from my Nexus 6P
[Nexus 6P Android Development] Bonehead Fraggle:
No problems so far.
[Nexus 6P Android Development] aalupatti:
May be I have to clean flash[emoji12] [emoji12]

Sent from my Nexus 6P
[Nexus 6P Android Development] mrjaydee82:
If you dirty flashed from a previous build..most likely you need to set google dialer to default which was discussed quite a few pages back..or full wipe which will correct that issue

---------- Post added at 10:22 PM ---------- Previous post was at 10:21 PM ----------
[Nexus 6P Android Development] aalupatti:
Thanks. Missed that post.. Did not know I had to do this...

Working very well now.. No issues at all..
[Nexus 6P Android Development] mrjaydee82:
Excited to get to build on my new computer :)
[Nexus 6P Android Development] kantjer:
Imagine the excitement flashing it :D
[Nexus 6P Android Development] mrjaydee82:
When changing the jack server memory is that permanent or temporary? Just asking because now I have plenty of ram and I have Ubuntu on a external HDD so all I had to do was plug it into new computer
[Nexus 6P Android Development] AzraelsKiss:
I've missed PN7 so much... It's so much nicer here... :P

Have a good one!
[Nexus 6P Android Development] kantjer:
I guess it depends how you add them. If you added them to a build script is just a matter of removing the "export ANDROID_JACK_VM_ARGS....." line from the script
[Nexus 6P Android Development] mrjaydee82:
I did it by command and restarted jack server
[Nexus 6P Android Development] kantjer:
then it was a one time thing
[Nexus 6P Android Development] pauljohnson75:
Sweet glad it's back up, I've been building OctOS while this was closed but now back to Pure Nexus I go. Syncing now.
[Nexus 6P Android Development] DowntownRDB:
[MENTION=2477527]mrjaydee82[/MENTION] Awesome. Plus it gives you something to do while Hurricane Matthew passes you on the opposite coast of Florida. I'm getting ready to hunker down here in northeast Florida.
[Nexus 6P Android Development] mrjaydee82:
Haha yeah man very true lol

---------- Post added at 11:54 PM ---------- Previous post was at 11:46 PM ----------

Nice!!! This time I built with ninja...completed a full build in 48min from clean..not bad..I'm sure I could knock down the time if I shared Linux with my SSD rather than a USB B external HDD
[Nexus 6P Android Development] oldman_58:
About how long does it take to "repo Sync" i have been syncing since about 9:00AM should I start again?
[Nexus 6P Android Development] AzraelsKiss:
Matters on your connection and server load... It can take anywhere from forever to eternity... Good luck!

Have a good one!
[Nexus 6P Android Development] aalupatti:
i am trying to add 3minit battery to the build. Searching landed me in this thread http://xdaforums.com/android/software-hacking/3minit-battery-mod-compatibility-t3263925

According to this thread, I have to cherry-pick 2 commits. But when i try to do it , I am getting 'fatal: bad object 91cf8b844a6eff038f5411d9a58883979942cc07 ' Same error fo the 2nd commit as well.

Any suggestions ?

Thanks
[Nexus 6P Android Development] nathanchance:
1. Did you fetch AICP's mm6.0 branch?

2. Those commits need to be updated for 7.0, no way they are going to go in cleanly.
[Nexus 6P Android Development] aalupatti:
I used the following commands

git fetch https://github.com/AICP/frameworks_base.git

git cherry-pick 91cf8b844a6eff038f5411d9a58883979942cc07

git cherry-pick b9872b97d104f7a9c07e8fa92cfb55fb37c83735
[Nexus 6P Android Development] laxattack:
so what is that best way to add full substratum support to these builds?