yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] 911jason:
No budget right now, going to be using my existing Dell XPS 15 from 2011. I would actually go exclusively Linux if I could be sure I'd be able to run Photoshop.
[Nexus 6P Android Development] AzraelsKiss:
No... They are not accumulative... They were each total HDD use at certain points... If anything, you can delete some from others to determine other sizes. i.e... Total after make minus total after clobber equals total output by make. I used 107 GB at the end of make, plus a little more for overhead, plus swap partition, you would need at the bare minimum of 125 to 150 GB of virtual HDD.

200 GB should be fine for a dual boot.

Have a good one!
[Nexus 6P Android Development] pvtjoker42:
build succeeded! hooray! I've been on the every 3 day build cycle, so having Beans making all these updates and breaking that timeframe has been makin me itch to flash!
[Nexus 6P Android Development] kantjer:
200 GB is sufficient for building one ROM. I'm using a 250 GB ssd and build ROM, Kernel and gapps on that. I have about 40 GB free on that disk.
[Nexus 6P Android Development] 911jason:
After analyzing my disk usage, I decided to give Ubuntu 250gb. Going to install Win7 now, and then Ubuntu after that. Wish me luck!
[Nexus 6P Android Development] clnzx2:
I am seeing changes on git but when I sync it returns no changes. I am using repo sync --force-sync . Any ideas? Thanks.
[Nexus 6P Android Development] Gizmoe:
Try git reset --hard from .repo folder.
[Nexus 6P Android Development] clnzx2:
Still getting remote: Total 0 (delta 0), reused 0 (delta 0) :(
[Nexus 6P Android Development] Gizmoe:
Did you try from .repo/manifest/

May need to go deeper one directory. It should take a while to resync if it resets.
[Nexus 6P Android Development] clnzx2:
Not home right now but I tried reset on just about every folder but I don't think it actually worked. Sync would finish in under a minute with no changes. I will play with it more later today. Thanks for the help.
[Nexus 6P Android Development] emanoj.i9103:
Any tips to integrate substratum support to the home made self builds?

I added the masquerade manifest but not sure where to add the config stuff. Kindly advice.
[Nexus 6P Android Development] AzraelsKiss:
Have you tried re-initializing? Try 'repo init -u https://github.com/PureNexusProject/manifest.git -b n' from within your build directory, then try to repo sync. If still nothing, perhaps you're already up-to-date and don't know it. Good luck!

Have a good one!

P.S. Using 'git log' from within the directory of the project you think has been updated will show all the commits in you local repo. If the first one listed is the same as the last one committed in github, then you should be up-to-date. Use 'q' to exit the git log.
[Nexus 6P Android Development] DowntownRDB:
[MENTION=3964027]AzraelsKiss[/MENTION] Thanks for this info. Just learned something new again today. LOL. Guess it is true that we never get too old to learn something new.
[Nexus 6P Android Development] clnzx2:
Tried this with the same result. Git log shows the latest as 10/4 which is def not the latest. I may just blow everything away and start over. Thanks for all of the help, I am lost at this point.
[Nexus 6P Android Development] AzraelsKiss:
The date shown in the git log is not the date it was most recently added to the source, but the date it was originally authored...

That's why I said to compare the very first commit in the log with the very top commit listed on github for the project... i.e. The top commit in android_frameworks_base in github is commit fe7b4e2a40ee0971779350e3e644ac6f4efca1d1 SystemUI: Enable three icon switching within QS DND tile and the first commit list in the git log for frameworks/base is commit fe7b4e2a40ee0971779350e3e644ac6f4efca1d1 SystemUI: Enable three icon switching within QS DND tile, so my local repo is up-to-date. If your's isn't after a repo sync, before completely wiping out your build directory, try deleting the .repo directory, reinit the repo, then repo sync --force-sync. See if that makes a difference. Good luck!

Have a good one!
[Nexus 6P Android Development] clnzx2:
Yeah they didn't match either. It was all from the last time I built or older. I wiped everything already and synced. It is now up to date and building. Between the last time and now I did a lot of playing around trying to learn more so I most likely botched something. Thanks again for all of the help and being so patient as I try to learn all of this. Been a while since I have done any command line stuff or programming but it is slowly coming back and bringing back some good memories. :)
[Nexus 6P Android Development] 911jason:
So after about 3 hours of syncing, I got "exited sync due to fetch errors". I'm not sure what the problem is, but I'm going to try it again tomorrow when I think my internet will be much faster than prime streaming time on a Sunday evening. The question I have though, is do I just repeat the same commands to try again? Or is there a different command I can use to take advantage of the 3 hours of data it had downloaded before the crash?
[Nexus 6P Android Development] AzraelsKiss:
Just use 'repo sync' again... It'll only download what it needs, so everything that's already downloaded will be fine.

Have a good one!
[Nexus 6P Android Development] clnzx2:
Just start with the sync command. It does just that, syncs, so it will not overwrite files that are the newest and downloaded correctly.
[Nexus 6P Android Development] eregev:
Search for Flash's post in this thread. He shows you each commit to cherry pick.
[Nexus 6P Android Development] Ericarthurc:
Hey so on page 73 flash posted about adding oms substratum support and I tried following it; but I am getting a "Couldn't find remote ref android-7.0.0_r1" error

Should i be changing android-7.0.0_r1 to 7.0.0_r14??
[Nexus 6P Android Development] slothdabski:
Can oms be integrated into cm based builds, or only aosp?
[Nexus 6P Android Development] nathanchance:
At this point, it can because they haven't started work on the CMTE. As soon as that starts, you would need to start reverting things in addition to cherry picking.
[Nexus 6P Android Development] Bonehead Fraggle:
Hi.

I've tried to build several times today, byt I only reach 94%:

ERROR: /home/PureX/packages/apps/PureSettings/src/com/pure/settings/fragments/LockScreenItemsSettings.java:46: LOCK_CLOCK_FONTS cannot be resolved or is not a field

ERROR: /home/PureX/packages/apps/PureSettings/src/com/pure/settings/fragments/LockScreenItemsSettings.java:59: LOCK_CLOCK_FONTS cannot be resolved or is not a field

ERROR: /home/PureX/packages/apps/PureSettings/src/com/pure/settings/fragments/CarrierLabelSettings.java:59: STATUS_BAR_SHOW_CARRIER cannot be resolved or is not a field

ERROR: /home/PureX/packages/apps/PureSettings/src/com/pure/settings/fragments/CarrierLabelSettings.java:79: CUSTOM_CARRIER_LABEL cannot be resolved or is not a field

ERROR: /home/PureX/packages/apps/PureSettings/src/com/pure/settings/fragments/CarrierLabelSettings.java:94: STATUS_BAR_SHOW_CARRIER cannot be resolved or is not a field

ERROR: /home/PureX/packages/apps/PureSettings/src/com/pure/settings/fragments/CarrierLabelSettings.java:118: CUSTOM_CARRIER_LABEL cannot be resolved or is not a field

ERROR: /home/PureX/packages/apps/PureSettings/src/com/pure/settings/fragments/CarrierLabelSettings.java:121: ACTION_CUSTOM_CARRIER_LABEL_CHANGED cannot be resolved or is not a field

[ 94% 39696/41936] Building with Jack:...I_intermediates/with-local/classes.dex

ninja: build stopped: subcommand failed.

make: *** [ninja_wrapper] Error 1

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

Anything I can do or should I just wait and try later?

Thanks for all your guidance!
[Nexus 6P Android Development] mazz0310:
I have the same issue. I just assume that something has not been completely committed yet. Just patiently waiting and will try again later today or tomorrow.

EDIT: Actually, looking at GitHub now, it looks like it may have been committed in the past hour. I will try again and report back.

EDIT2: Still broken
[Nexus 6P Android Development] Ericarthurc:
Hey Flash, how can I cherry pick (add) oms substratum support to a homemade build right now? I tried your previous guide from a couple pages back but keep getting an error? Appreciate all the work you have done btw! Thank you
[Nexus 6P Android Development] nathanchance:
It's a merge conflict due to the advanced reboot menu. I don't have time to go into resolving merge conflicts as it involves actually reading code and understanding what the code is doing but I'll try to do it soon.
[Nexus 6P Android Development] Ericarthurc:
Oh okay!! Thanks!
[Nexus 6P Android Development] katinatez:
Go into packages/apps/PureSettings and enter this

git revert e22df85ae82b9af3642788e82fe0f13d0f0316b5

git revert 44b9ca2f72a68538c22435f05812f2bc842bc2fd

and build again, my build just finished
[Nexus 6P Android Development] aalupatti:
Looks like more changes have happened.

I get the following error

http://pastebin.com/ZxsusnTx

Tried your suggestions but looks like that is not the issue now.

Any suggestions, please.

Thanks
[Nexus 6P Android Development] DowntownRDB:
[MENTION=3814731]katinatez[/MENTION] Thanks for the quick "lesson" on figuring compilation errors. Very useful information that I will definitely put to use with any future build errors I see. It is 100% more inspiring to learn how to overcome errors instead of being told what to do.

Have a fantastic day. :)
[Nexus 6P Android Development] aalupatti:
[MENTION=3814731]katinatez[/MENTION] thanks for the quick lesson. this is much more useful... I can now trouble shoot some of the error..
[Nexus 6P Android Development] laxattack:
I was able to build successfully just now fyi with no modifications

[100% 41936/41936] Package Complete: /...nexus_angler-7.0-20161018-HOMEMADE.zip

#### make completed successfully (36:27 (mm:ss)) ####
[Nexus 6P Android Development] pvtjoker42:
just kicked off a repo sync, hoping my build completes. :good:
[Nexus 6P Android Development] AzraelsKiss:
You may need to do a 'repo sync --force-sync'

Have a good one!
[Nexus 6P Android Development] pvtjoker42:
I do that every time just to make sure.. :cool:

Build completed, flashed successfully. I'm a happy camper!
[Nexus 6P Android Development] waleed.wa03:
So after a couple of days of trying to finally set up builduntu on a second HD in my PC got everything working and successfully built today (10/19). Thank you all !
[Nexus 6P Android Development] DowntownRDB:
Congratulations! Another success story for a personal build. :)
[Nexus 6P Android Development] oldman_58:
Syncing work tree: 0% (3/483) Traceback (most recent call last):

File "/home/android/PN/.repo/repo/main.py", line 531, in <module>

_Main(sys.argv[1:])

File "/home/android/PN/.repo/repo/main.py", line 507, in _Main

result = repo._Run(argv) or 0

File "/home/android/PN/.repo/repo/main.py", line 180, in _Run

result = cmd.Execute(copts, cargs)

File "/home/android/PN/.repo/repo/subcmds/sync.py", line 821, in Execute

project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)

File "/home/android/PN/.repo/repo/project.py", line 1363, in Sync_LocalHalf

lost = self._revlist(not_rev(revid), HEAD)

File "/home/android/PN/.repo/repo/project.py", line 2501, in _revlist

return self.work_git.rev_list(*a, **kw)

File "/home/android/PN/.repo/repo/project.py", line 2700, in rev_list

(self._project.name, str(args), p.stderr))

error.GitError: android_bootable_recovery rev-list ('^3ff3affaca12e5266c15c8256d7029cc1e5182f6', 'HEAD', '--'): fatal: bad object 3ff3affaca12e5266c15c8256d7029cc1e5182f6

Is that a reference to bad local files or is the Repo under construction?

==============

UPDATE

==============

I logged in as 'sudo -s' and all the scripts are running as expected, hopefully I will have a new build shortly.
[Nexus 6P Android Development] mangusZen:
Just finished a build, and dirty flashed

All seems very nice
[Nexus 6P Android Development] qsec:
Is it ok to dirty flash a personal build over beans official 7.0?

Tapatalked.
[Nexus 6P Android Development] eregev:
Yep.
[Nexus 6P Android Development] :
I have just done the repo sync and have triggered the build.. Let's see how it goes
[Nexus 6P Android Development] psychomaniac189:
to the people who are building this. if you build this right now will you get a build that has the changes to the changelog under "Upcoming Release Rom changes" just curious.
[Nexus 6P Android Development] AzraelsKiss:
At least most of them most likely... I haven't checked the changelog in a while, but last time I did, it was all caught up.

Have a good one!
[Nexus 6P Android Development] :
I still get the same failure with the libdng_sdk.so and I am not sure I am missing in the environment. [emoji19]

~Nexus6P~
[Nexus 6P Android Development] qsec:
Are you sure?

Just flashed a build made 2hrs ago and can't find the battery in this below, the notification led is there tho.

'Added custom battery and notification led controls (5x,6p,6)'
[Nexus 6P Android Development] nathanchance:
I have it in Settings > Pure Nexus Settings > Display > Battery light.
[Nexus 6P Android Development] katinatez:
Now I can rest! Just finished cherry-picking all substratum commits! Now my personal builds have themes!!

Tested and confirmed!
[Nexus 6P Android Development] qsec:
Aaaa, i read it like custom battery. And notificaton light.

Like custom battery icons, silly me.

Tapatalked.
[Nexus 6P Android Development] aalupatti:
That is great. Tried doing that a few times but errors threw me off..
[Nexus 6P Android Development] katinatez:
Was it you who posted a script with some of the cherry-picks? Anyways I used someone's list that was posted here.
[Nexus 6P Android Development] aalupatti:
This one ?
[Nexus 6P Android Development] katinatez:
Yes that's the one, used it as reference. I could tell its an old list it's missing about 12 commits & 2 repos
[Nexus 6P Android Development] hi4s4:
Hi [MENTION=3306843]kantjer[/MENTION], [MENTION=6842057]The Flash[/MENTION],

I'm new to Git. Until now, I've forked PN manifest, and added the edits from your post to get a downsized version for Angler only. However, I still have to merge the changes from PN manifest everytime. Is there a way, I can use his manifest, but selectively remove the respective files as you do.

Thanks a lot,
[Nexus 6P Android Development] pvtjoker42:
stupid DDoS keeping github down, i just wanted to build again today..
[Nexus 6P Android Development] aalupatti:
[MENTION=3814731]katinatez[/MENTION], can you share the new script. Would save me from reinventing the wheel
[Nexus 6P Android Development] oldman_58:
http://www.huffingtonpost.com/entry/websites-down-hackers_us_580a1289e4b0cdea3d86c19c?section=

May be something else...
[Nexus 6P Android Development] katinatez:
Yes, its open source code, a couple of request have already been made. Here it is my local_manifest this will remove all devices and just leave angler & you need to download substratum theme engine, then after flashing you'll see a new settings under SuperSu in Settings.

I eventually I will just have substratum built into ROM but that I will do tonight.

As of this time of this post you could

make clobber && repo sync --force-sync

compile and it will finish! :D

Enjoy

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<remote name="github"
fetch="https://github.com" />

<!-- Remove Devices -->
<remove-project name="android_device_lge_bullhead" />
<remove-project name="android_device_moto_shamu" />

<!-- Remove Kernels -->
<remove-project name="android_kernel_lge_bullhead" />
<remove-project name="android_kernel_moto_shamu" />

<!-- Remove Vendors -->
<remove-project name="proprietary_vendor_lge" />
<remove-project name="proprietary_vendor_moto" />

<!-- Remove Purenexus-->
<remove-project name="android_build" />
<remove-project name="android_frameworks_base" />
<remove-project name="android_packages_apps_Settings" />
<remove-project name="android_vendor_custom" />
<remove-project name="platform/frameworks/native" />
<remove-project name="platform/system/sepolicy" />

<!-- Add Substratum PureNexus-->
<project name="katinatez/android_build-1" path="build" remote="github" revision="n" />
<project name="katinatez/android_frameworks_base-1" path="frameworks/base" remote="github" revision="n" />
<project name="katinatez/android_packages_apps_Settings-1" path="packages/apps/Settings" remote="github" revision="n" />
<project name="katinatez/android_vendor_custom" path="vendor/custom" remote="github" revision="n" />
<project name="katinatez/platform_frameworks_native" path="frameworks/native" remote="github" revision="master" />
<project name="katinatez/system_sepolicy" path="system/sepolicy" remote="github" revision="master"/>
<project name="katinatez/masquerade" path="packages/apps/masquerade" remote="github" revision="master" />

</manifest>
[Nexus 6P Android Development] emanoj.i9103:
Got the build done just fine! Yet to try a substratum theme though.
[Nexus 6P Android Development] aalupatti:
Worked very well

Thanks

Sent from my Nexus 6P
[Nexus 6P Android Development] waleed.wa03:
I have ccache enabled with 50GB but my daily builds still take around 2 hours. which was the same as my first build. Shouldn't it be much less? I have 8GB ram and a 4th generation i3
[Nexus 6P Android Development] :
Wow this is nice.. I have an I5 and 8 GB RAM but the builds run close to 5 hours.
[Nexus 6P Android Development] waleed.wa03:
Haha maybe I shouldn't complain. I read on the CM Angler build page that enabling ccache can reduce an hour long build to 20 minutes.
[Nexus 6P Android Development] :
Let me try again. Currently I am hit some error in the external packages with a libdng_sdk.so error. I am trying to find what is causing it but in vain.. If nothing works I will need to start afresh with the sync ?
[Nexus 6P Android Development] AzraelsKiss:
If a ccache build takes just as long as a non-ccache build, then ccache isn't working... During your next build, try running the following command in a separate terminal window from your build directory:

watch -n1 -d prebuilts/misc/linux-x86/ccache/ccache -s

If everything is zero, then ccache isn't being written... You may need to try entering 'export USE_CCACHE=1' (did you remember to put it in your .bashrc file) and 'prebuilts/misc/linux-x86/ccache/ccache -M 50G' from your build directory again. Maybe even try deleting your ~/.ccache directory (the ccache should rebuild itself on your next build). It the numbers aren't all zeroes, but also aren't changing, that means a ccache was built, but isn't being used for the build... Try entering 'export USE_CCACHE=1' again. If the numbers are moving, that should mean that the ccache is being used, so perhaps you were mistaken as to how long your first build took, or you could try deleting the ~/.ccache directory and letting it rebuild, in case something is wrong... Good luck!

Have a good one!
[Nexus 6P Android Development] hibby50:
Thanks to this thread I was able to compile a personal build of DU. Thank you to everyone who contributed to the guide!
[Nexus 6P Android Development] sToRm1nG:
Maybe someone wants to try [MENTION=4800121]Sultanxda[/MENTION]'s bypass for the SafetyNet Bootloader check which is done in the kernel. This is easy "portable" to any kernel by changing fs/proc/cmdline.c when looking at his commit: https://github.com/sultanxda/androi...mmit/abc05b16bbd33521c2fffaf491c5657a94bfcfc5

His commit should be mergeable without any issue to something like this:

#include <linux/fs.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <asm/setup.h>

static char new_command_line[COMMAND_LINE_SIZE];

static int cmdline_proc_show(struct seq_file *m, void *v)
{
seq_printf(m, "%s\n", new_command_line);
return 0;
}

static int cmdline_proc_open(struct inode *inode, struct file *file)
{
return single_open(file, cmdline_proc_show, NULL);
}

static const struct file_operations cmdline_proc_fops = {
.open	= cmdline_proc_open,
.read	= seq_read,
.llseek	= seq_lseek,
.release	= single_release,
};

static int __init proc_cmdline_init(void)
{
char *offset_addr, *cmd = new_command_line;

strcpy(cmd, saved_command_line);

/*
* Remove 'androidboot.verifiedbootstate' flag from command line seen
* by userspace in order to pass SafetyNet CTS check.
*/
offset_addr = strstr(cmd, "androidboot.verifiedbootstate=");
if (offset_addr) {
size_t i, len, offset;

len = strlen(cmd);
offset = offset_addr - cmd;

for (i = 1; i < (len - offset); i++) {
if (cmd[offset + i] == ' ')
break;
}

memmove(offset_addr, &cmd[offset + i + 1], len - i - offset);
}

proc_create("cmdline", 0, NULL, &cmdline_proc_fops);
return 0;
}
module_init(proc_cmdline_init);

[MENTION=4395895]BeansTown106[/MENTION]

Maybe this is something you would consider to merge?
[Nexus 6P Android Development] AzraelsKiss:
[MENTION=6842057]The Flash[/MENTION]'s Flash kernel has this.

Have a good one!
[Nexus 6P Android Development] :
Never mind... I just remembered part I missed ?
[Nexus 6P Android Development] AzraelsKiss:
It's working for me and others, so it may be something you are doing...

Have a good one!
[Nexus 6P Android Development] :
Yeah.. I think I missed a step.. I have been flashing multiple times that I missed some steps.. Gonna do a clean flash again..
[Nexus 6P Android Development] sToRm1nG:
Oh, I see. I was not aware of this.

I checked his source code. He did actually merge [MENTION=4800121]Sultanxda[/MENTION]'s commit. :)
[Nexus 6P Android Development] :
I did try dirty flashing the rom again and flashed the kernel.. I am still getting the SafetyNet check on boot
[Nexus 6P Android Development] :
Finally

:D

Package Complete: /home/raryshire/Angler/PureNexus/out/target/product/angler/pure_nexus_angler-7.0-20161024-HOMEMADE.zip

#### make completed successfully (11:55:08 (hh:mm:ss)) ####

[MENTION=3964027]AzraelsKiss[/MENTION] - Thanks mate.. Your post on cache cleanup did the trick for me.
[Nexus 6P Android Development] emanoj.i9103:
Google Cloud Compute Engine can help if in case someone is limited with bandwidth or processing power. I'm getting clean builds in approx 20-40 mins.

Gotta enjoy until trial lasts. [emoji1]
[Nexus 6P Android Development] aalupatti:
That thing is so expensive once the trial is over... Wish they had a cheap option for low end users like us.
[Nexus 6P Android Development] aalupatti:
I had to re install mint today

I am trying to build but there is a problem with jack

when I try " ./prebuilts/sdk/tools/jack-admin start-server " I get " Jack server installation not found "

Tried install jack ( apt-get install jackd ) but not helping

Any suggestions to have jack installing and working ?
[Nexus 6P Android Development] AzraelsKiss:
Why are you trying to start the jack server manually... It should be started by the build process...

Have a good one!
[Nexus 6P Android Development] aalupatti:
For some reason it is not installed.

here is the error that i get when I try to build

Building with Jack: /home/techvir/Du/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex

Communication error with Jack server (56). Try 'jack-diagnose'
build/core/java.mk:730: recipe for target '/home/techvir/Du/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex' failed
make: *** [/home/techvir/Du/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex] Error 41

EDIT : Figured it out.. Thanks
[Nexus 6P Android Development] nathanchance:
I have a site that I know of that offers fairly robust servers for a fairly reasonable price. If anyone wants to know more, hit me up via PM, don't want to sound like I am selling anything lol.
[Nexus 6P Android Development] aalupatti:
I am trying to use the same script for building DU rom with substratum but when I put it in the local_manifests folder and try to repo sync it gives me error that default_manifest.xml is missing.

Also the default local_manifests folder has a file called dirtyunicorns.xml file

I did remove the lines that remove other devices.
[MENTION=3814731]katinatez[/MENTION] do I have to make any other changes to build DU ?