yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] nathanchance:
When you don't specify a branch in the git fetch command, it fetches the main branch, which is currently n7.0. You need to use the following command:

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

I have gotten in the habit of always specifying the branch when fetching, even if it is the main branch.

Substratum works perfectly in legacy mode and that is how I prefer it. However, if you want full OMS support, here is what you need to do:

1. Go to Substratum's Github organization here: https://github.com/TeamSubstratumResources

2. Fetch the repo using the following pattern:

cd <PN_SOURCE_FOLDER_LOCATION>
cd <FOLDER_CONTAINING_REPO>
git fetch <SUBSTRATUM_REPO_URL> android-7.0.0_r1

3. Cherry pick the necessary commits:

git cherry-pick <COMMIT_HASH>

Here's an example:

cd ROMs/PN
cd frameworks/base
git fetch https://github.com/TeamSubstratumResources/platform_frameworks_base.git android-7.0.0_r1
git cherry-pick 4da127de34eac85df93f0043eb25845c8fa3bdd2

You will need to do this every time you repo sync/build. [MENTION=3306843]kantjer[/MENTION] has a tutorial on how to avoid this but I can't seem to find it lol.

Necessary commits:

platform_frameworks_base

OMS-N: Support downloaded overlay packages [1/14]

OMS-N: installd: add command 'rmidmap' [2/14]

OMS-N: Make asset manager cookies opaque [3/14]

OMS-N: Add ResTable::remove(cookie) [4/14]

OMS-N: introduce the OverlayManagerService [5/14]

OMS-N: integrate OverlayManagerService into framework [6/14]

OMS-N: pm: set EXTRA_REPLACING correctly in ACTION_PACKAGE_ADDED [7/14]

OMS-N: idmap: suppress print for padded resources [8/14]

OMS-N: Check invariants after ResTable is modified [9/14]

OMS-N: Fix memory leak during idmap creation [10/14]

OMS-N: Persistence on boot through OverlayManagerServiceImpl [11/14]

OMS-N: Ensure unique type IDs when parsing overlays [12/14]

OMS-N: adb shell command to access OverlayManagerService [13/14]

OMS-N: Officially announce the rebase completion to Android Nougat [14/14]

OMS-N: Allow multiple targets for enabling and disabling overlays

OMS-N: Allow on-demand window refreshes using "om refresh"

OMS-N: Disable Zygote preloaded drawables.

N-Extras: Add dynamic theme BootAnimation support

N-Extras: AudioService: Allow system effect sounds to be themed

OMS-N: Themes should be dynamically theming the power menu

N-Extras: Add dynamic theme fonts support (Squash)

OMS-N: ApplicationsState: add filter for Substratum overlays [1/2]

platform_system_sepolicy

OMS-N: Add service 'overlay' to service_contexts

platform_build

OMS-N: adb shell command to access OverlayManagerService

platform_frameworks_native

OMS-N: installd: add command 'rmidmap'
[Nexus 6P Android Development] pvtjoker42:
The only thing i'm really missing right now is the separate notification/ring option.. otherwise it's nearly perfect. Anybody know where i can cherry pick that?
[Nexus 6P Android Development] kantjer:
Here you go
[Nexus 6P Android Development] oldman_58:
The Repo has not changed size i 7-8 hours, is that normal?

Still running "curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo"

8,832,430,080 bytes (8.83 GB on disk)

Running on a MacBook Pro 16 GB RAM and 40GB Android disk.

The terminal screen window looks like repetitive data:

6605 335584MM 6605 232 217MM 00 00 33758584 6 56 0 3 5345M8 M 65 6 203 2 M2 1 7 M 0 0 0 03 7 88 3 5 5 4 6 56 0 3 5345M8 M 6 56 0 2 3221M7 M 0 0 0 0 3 7 8385 5 4 6650 335548MM 6650 223127MM 00 00 33758584 6650 335584MM 6605 221372MM 00 00 33575848 6605 335584MM 6605 221372MM 00 00 33758584 6650 335548MM 6650 223127MM 00 00 33758584 6605 335584MM 6605 221372MM 00 00 33575848 6650 335548MM 6650 223127MM 00 00 33758584 6605 335584MM 6605 221372MM 00 00 33575848 6605 335584MM 6605 221372MM 00 00 33575837 6 56 0 354M 65 232M 3 508 M 600 231778M7 0 0 2 70:65 232M 0 6 0 0 3 5 83M7 8 7 6 0 2 107 M2 7 : 1 50: 4 5 1 70: 5 5 6203 2M 3 5 80M 6 00 2 1377M8 7 0 0 207 : 1 53:54553 217M 0 6 50 335545M3 65 203 22M9 : 2 4 :03 8 1 7 :05 1 : 2 6650 335548MM 6650 21 72M3 2 M 0 0 0 03 5 5 33 7 87 232M 0 0 376807 3 5 80M 2 7 :6105 : 4251 71M7 : 0 0 5 1 6650 335584MM 6605 221372MM 00 00 33575837 6605 335584MM 6605 221372MM 00 00 33575837 60 358M 60 217M 0 0 3553 6 5 305 42M9 : 2 46:53 8 21372:M5 65 232M 0 600 3 738578 M 6 00 2271:71M5 : 4 5 01 7 : 5 1 :65 6 03 5 43M5 8 M 6 5 6 02 3 22M1 7 M 0 0 0 03 7 8 73 5 5 3 6650 335548MM 6650 223127MM 0 0 0 0 3 738575 3 6650 335548MM 6650 223127MM 0 0 0 0 3 738575 3 0 6251 7M 3 5 40M 6 50 2 33255M3 0 0 2 90: 2 4 :33788 71 7 : 5 1 : 304 2171::1353::4054 1 7 : 5 10:46 9:23:59 0

Should I stop and start again?
[Nexus 6P Android Development] nathanchance:
I would.
[Nexus 6P Android Development] pauljohnson75:
I build a physical machine out of an old I7 860 16 GB 256 ssd and 1 TB HD fresh build after first repo sync 44:17 beats my old virtual machine big time.
[Nexus 6P Android Development] laxattack:
BTW what gapp pkg is everyone using, I'm personally using opengapps bust seem to have issues with OK google not working from every screen
[Nexus 6P Android Development] emb531:
Before you continue you are going to need way more storage than 40GB - my last build ran out of space on a 120GB SSD
[Nexus 6P Android Development] ohlin5:
As did mine...ended up lowering CCACHE below 50GB and seeing how things work now. I don't know what the deal is but last time I tried to build it worked pretty flawlessly...now it's error after error lol. First out of memory errors, then ninja errors, space running out errors here and there...lol suppose that's what I get for trying to skimp by with a lower spec'ed VM :)

May end up just waiting another day or 2 for the official release lol, if this 3rd try I have running doesn't work. Anyways great tutorial and post as always [MENTION=6842057]The Flash[/MENTION]!
[Nexus 6P Android Development] AzraelsKiss:
I use OpenGAPPS aroma and select the apps I know I'll use and deselect the webview and package installer. I haven't noticed any issues...

Have a good one!
[Nexus 6P Android Development] Gizmoe:
I do the same with aroma. The only app that misbehaves for me is projectfi. It crashes a few times during setup but then its fine and activates as the last step during setup.
[Nexus 6P Android Development] rchtk:
ccache 25GB (check with ccache -s)

/home needs 85GB for repo and build

/tmp (/) needs 5GB for image building

4GB RAM free for jack
[Nexus 6P Android Development] eregev:
Does your "Ok Google" anywhere work?
[Nexus 6P Android Development] Gizmoe:
Yes. I just checked it.
[Nexus 6P Android Development] eregev:
Hmm. No good on my end. Building again, trying to get oms and substratum running, having issues. When I flash again I'll see what's good. Running latest nano at time of flash, btw.
[Nexus 6P Android Development] oldman_58:
Thanks for that heads up, I have a 3 TB external drive i will set as the android partition
[Nexus 6P Android Development] mrjaydee82:
Damn it man lol...I keep making a new build and then I see more updates lol..I'll wait a few more hours and see then haha
[Nexus 6P Android Development] turboedm:
can anyone help with this error?
[Nexus 6P Android Development] laxattack:
yeah mine isn't working still either, im going to be doing the same thing but then go with the pico gapps to see if it makes a difference
[Nexus 6P Android Development] eregev:
Lemme know if Pico is the magic ticket! ☺
[Nexus 6P Android Development] nathanchance:
If you are getting errors related to Java, it means that Beans is doing something and you just have to wait for him to fix it.
[Nexus 6P Android Development] turboedm:
How long could that be? I'm trying to update the repo now.
[Nexus 6P Android Development] laxattack:
No dice, even tried a dynamic gapps package :(
[Nexus 6P Android Development] eregev:
?. Maybe a long shot, but does it have anything to do with user vs user debug? I know that android wear app doesn't play nicely with my builds when I build with user debug throwing an error telling me to flash again with user build.

I don't know if there's any relation, just grasping at straws. Anyone else have insight?
[Nexus 6P Android Development] purian23:
It'll be as long as it takes for him to complete and push the code he's tasked with. That's not likely an easy question to answer. It's tough trying to build right before release whenever the dev is in active development of the ROM. I tried to build last night with errors myself. Just have to wait them out.
[Nexus 6P Android Development] AzraelsKiss:
I don't believe the pico package has hotword detection...

Have a good one!
[Nexus 6P Android Development] mrjaydee82:
I updated with no issues...just did it about an hour ago
[Nexus 6P Android Development] turboedm:
well I'm having problems and I can't seem to find out why it's happening. I really wanna build PureNexus but I can't find out why this is happening.
[Nexus 6P Android Development] mrjaydee82:
You disabled ninja and all that? How much ram you have?
[Nexus 6P Android Development] turboedm:
Yup. 16GB.
[Nexus 6P Android Development] mrjaydee82:
Hmm..I'd try clobber and resync and rebuild
[Nexus 6P Android Development] nathanchance:
repo sync --force-sync
[Nexus 6P Android Development] turboedm:
Already resyncing. Gonna do clobber afterwards, add OMS commits, and rebuild.

---------- Post added at 10:34 PM ---------- Previous post was at 10:28 PM ----------

edit: nvm, fixed it, I'm dumb

---------- Post added at 10:53 PM ---------- Previous post was at 10:34 PM ----------

new error

File "build/tools/findleaves.py", line 95
print r
^
SyntaxError: Missing parentheses in call to 'print'
File "build/tools/findleaves.py", line 95
print r
^
SyntaxError: Missing parentheses in call to 'print'
File "build/tools/diff_package_overlays.py", line 88
print r
^
SyntaxError: Missing parentheses in call to 'print'
No private recovery resources for TARGET_DEVICE angler
make: *** No rule to make target '/home/nauticalnexus/PN-OMS/out/host/linux-x86/bin/mkbootimg', needed by '/home/nauticalnexus/PN-OMS/out/target/product/angler/boot.img'. Stop.
[Nexus 6P Android Development] nathanchance:
No idea what happened there since that file hasn't been modified in like five years. Did you force sync? I just built and it worked fine.
[Nexus 6P Android Development] turboedm:
yup. --force-sync and still the same issue. :(

edit: there's nothing in the "out" folder. That's.. not normal is it?
[Nexus 6P Android Development] nathanchance:
Yeah that's not normal, what are you compiling on (OS and specs)?
[Nexus 6P Android Development] turboedm:
Arch Linux, i7 3770 3.4GHz, 16GB DDR3 RAM, 2TB HDD

I followed the instructions as much as I could, if I have to nuke the folder and try again, that'll have to wait until tomorrow.
[Nexus 6P Android Development] nathanchance:
Did you do the virtual environment steps for it?

virtualenv2 venv
source venv/bin/activate
[Nexus 6P Android Development] turboedm:
Oh my god that might actually work. Lemme do the OMS commits again and try.

edit: seems to be working fine, I'll let you know if there's any more errors, though.
[Nexus 6P Android Development] jamsoolee:
Went from windows to Ubuntu almost solely for the purpose of building PN Nougat. After a long two hours of syncing and then a 45 minute build, am very happy with the decision.
[Nexus 6P Android Development] sengab1991:
What if I want to build from google's repo ? Can you guide me to steps ?
[Nexus 6P Android Development] Gizmoe:
https://source.android.com/source/downloading.html
[Nexus 6P Android Development] sengab1991:
Thanks :)
[Nexus 6P Android Development] mangusZen:
Hey guys how is the battery life in the custom builds?
[Nexus 6P Android Development] aalupatti:
Very good

Sent from my Nexus 6P
[Nexus 6P Android Development] erbsmokah:
My last build is running real nice!

Just started to build a fresh sync now, this time trying to build with ninja.
[Nexus 6P Android Development] mrjaydee82:
Since I got an updated computer..ninja builds fine now.

I'm curious is there any perks with building with ninja? If anyone knows
[Nexus 6P Android Development] gnadenlos:
I tried it for the first time and got a zip file, but there were hundreds of warnings like

comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
unused parameter 'rw_type' [-Wunused-parameter]
unused variable 'retval' [-Wunused-variable]
variable 'crc' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]
missing field 'discard' initializer [-Wmissing-field-initializers]
missing field 'flags' initializer [-Wmissing-field-initializers]
missing field 'second_code' initializer [-Wmissing-field-initializers]
'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]

Is this normal and expected or are these "real" problems that shouldn't occur?
[Nexus 6P Android Development] mrjaydee82:
Ignore the warnings.. If it got to the end and made a zip you'll be fine :)
[Nexus 6P Android Development] erbsmokah:
I'm really not too sure.. I like how it gives me a completion percentage lol
[Nexus 6P Android Development] jmtjr278:
Built yesterday and looking at the git I had to build again this morning! Beans is hard at work! Love that proximity speaker is back this morning!
[Nexus 6P Android Development] Gizmoe:
Nano Opengapps. Had play services crashing with stock gapps pkg.
[Nexus 6P Android Development] Helloworld294:
and this is with "repo sync -f" (forcing the sync)

Still gives fetch error but syncs all projects... I don't know what's going on.

pastebin.com/PczJMx8U
[Nexus 6P Android Development] kantjer:
try this (fixed similar fetch issues for me in the past)

sudo sysctl -w net.ipv4.tcp_window_scaling=0
repo sync -j1
[Nexus 6P Android Development] Helloworld294:
Didn't work unfortunately... It's never happened to me before when I used to build PN 6.
[Nexus 6P Android Development] aalupatti:
Wow this is a new thread...

Sent from my Nexus 6P
[Nexus 6P Android Development] bigshotrob22:
Give this a try ..CD to manifest and type git reset --hard and then try to repo sync again
[Nexus 6P Android Development] AzraelsKiss:
You may want to try 'repo sync --force-sync'... -f is force broken which just keep the sync going after an error... Force sync will redownload and overwrite a git directory that needs it. Good luck!

Have a good one!
[Nexus 6P Android Development] aalupatti:
try this

repo sync -j4 --force-sync
[Nexus 6P Android Development] king3opobn:
So Google doesn't use gentoo?
[Nexus 6P Android Development] TheUndertaker21:
Is official purenexus done?
[Nexus 6P Android Development] jmtjr278:
What? No
[Nexus 6P Android Development] Helloworld294:
I tried it, still getting fetch errors. My internet connection is fast though. Goes up to 10MB(megabyte)/s so it's not that.
[Nexus 6P Android Development] dbroer91884:
I couldn't get things to work right. I've decided to partition out part of my 1.5 TB hard drive and dual boot Windows and Ubuntu. Figure at least then I can use all 8gb of RAM with no issues on the host computer.
[Nexus 6P Android Development] sthbr82:
angler and bacon are different devices right, shouldn't it be mka angler
[Nexus 6P Android Development] aalupatti:
Nope. It is just a command to cook to for any device

The device will depend on your synced repo and other commands earlier
[Nexus 6P Android Development] nathanchance:
Yes, they are different devices but mka bacon doesn't tell the compiler to make a OnePlus One build :p

You tell it which device to compile using the breakfast or lunch command then tell it to compile an OTA zip (which is the bacon part). mka is a special version of the command make, which schedules tasks on different cores and makes use of all of the cores.
[Nexus 6P Android Development] aalupatti:
Make sure u have installed the proper tools

I would recommend starting from the begining..

This is a good guide

https://nathanpfry.com/how-to-setup-ubuntu-16-04-lts-xenial-xerus-to-compile-android-roms/

Follow the steps excatly as is.

use open jdk 8 and not 7
[Nexus 6P Android Development] hibby50:
This is my first time trying to make a home build and a got a couple errors when adding the git source (something about an email address??) and its syncing the repo right now and I see some 404 errors flashing by. Is this normal?

Edit: also my android folder in my home directory is empty. Are the files hidden or being cached somewhere or did I mess something up?

Edit2: just had to show hidden files, I see its syncing stuff into the folder now. Just wondering if those 404s and "cannot fetch...." errors are bad
[Nexus 6P Android Development] DevALT:
How long

Repo sync command can take? I've already synched repo before and never took that long.... (Been around 3hours now..)

Edit : never mind.. xD exactly when I pressed post on XDA terminal started to check file rip timing
[Nexus 6P Android Development] sthbr82:
You can do du -h .repo to track code syncing.
[Nexus 6P Android Development] kantjer:
I compared Ninja with old way of building.

In my test there was no real difference in build time, tried with and without make clean

Zip size was exactly the same so it seems the end products are identical

Ninja gives you a percentage of were it is in the build script but if you're build fails the Ninja build isn't giving any helpful info to find the cause. For that last reason most devs don't use Ninja.
[Nexus 6P Android Development] Gizmoe:
It builds faster if you just run make again. But that's the only difference I have noticed. When you add stuff, make clobber erases it and it takes just as long. So I don't see the point either.
[Nexus 6P Android Development] Bonehead Fraggle:
My notification LED is not working. Never lights up when it should. Not even when testing with an app such as LED controller. My phone or the ROM?
[Nexus 6P Android Development] turboedm:
BLESS YOU SIR!!

I have a built homemade PN ROM and I'm about to flash it. Thank you so much!!
[Nexus 6P Android Development] :
I have been hitting this error twice with the build today. Does anyone why is this happening?
[Nexus 6P Android Development] erbsmokah:
Just finishing a new build with ninja.. Build time is much longer but I forgot to set cache before building :/
[Nexus 6P Android Development] waleed.wa03:
Just ran a build and installed clean with banks gapps and the permission dialog is working perfectly fine now!
[Nexus 6P Android Development] turboedm:
anyone else having issues with OK Google Everywhere and Trusted Voice?
[Nexus 6P Android Development] zosimov21:
Thank for putting the source back up.

Build time was 3 hours 5 min :)

Unfortunately I'm on Fi and the activation keeps crashing I attempted to get a logcat but all I can get is

Attempted to finish an input event but the input event receiver has already been disposed.
[Nexus 6P Android Development] aalupatti:
someone reported that using aroma gapps helped

http://xdaforums.com/showpost.php?p=69024701&postcount=739
[Nexus 6P Android Development] turboedm:
Eh, I need to rebuild anyway. Apparently not all the OMS commits were put in, even though I definitely did put them in. :/
[Nexus 6P Android Development] airbat:
compiled again with NINJA and no errors.

[100% 41942/41942] Package Complete: /home/airbat/Pure_Nexus_GIT/out/target/product/angler/pure_nexus_angler-7.0-20161008-HOMEMADE.zip

#### make completed successfully (01:09:07 (hh:mm:ss)) ####

The package is only 268,6 MB. Is it normal ?
[Nexus 6P Android Development] nathanchance:
Yup. The ROM is deodexed.
[Nexus 6P Android Development] Bonehead Fraggle:
Tried AOSP, LED notification works as expected, but not at all with PN7.

Does your LED work with PN7?

Is there anything I can do to make it work?

Mine doesn't even work when charging.
[Nexus 6P Android Development] jamsoolee:
Just checking did you guys by chance not turn LED notification on in your settings?
[Nexus 6P Android Development] Bonehead Fraggle:
Well, no actually. Cause I simply can't find that setting in PN7. It used to be in settings - screen, but not anymore.
[Nexus 6P Android Development] mrjaydee82:
Go to notification settings then hit the gear icon settings to turn on led notifications
[Nexus 6P Android Development] Bonehead Fraggle:
Ok, now I really feel stupid. I thought I'd checked every menu and every option, but no.

Thanks!
[Nexus 6P Android Development] mrjaydee82:
No problem
[Nexus 6P Android Development] pvtjoker42:
light manager also works if you want to set custom colors etc
[Nexus 6P Android Development] AzraelsKiss:
On my system... First build (without ccache), ninja built significantly faster... Other builds (with ccache), ninja builds approximately 25% faster...

Have a good one!
[Nexus 6P Android Development] JamFan05:
I'm having trouble with permissions dialog on my personal build as well. Where did you find Banks Gapps

Edit: I found them and everything is working fine now!
[Nexus 6P Android Development] airbat:
Cool, i'm going to flash it with Open Gapps and look if all works fine.
[Nexus 6P Android Development] dieselbuddeh:
Has opengapps nano package installer been fixed? Or should i use the aroma installer and uncheck package installer like post #739 or https://download.dirtyunicorns.com/gapps/Banks/ 7.x.x?
[Nexus 6P Android Development] nathanchance:
Package installer issue is still present, it's something on Open's end.
[Nexus 6P Android Development] dieselbuddeh:
Ok. So banks or open-aroma and deselect package installer then or what would you suggest?
[Nexus 6P Android Development] nathanchance:
I will personally be clean flashing with Banks a little later.
[Nexus 6P Android Development] dieselbuddeh:
Ok. Is this the version you'll be using?
[Nexus 6P Android Development] waleed.wa03:
Hey guys, this might be a weird issue.

When I build using a server from DigitalOcean everything works fine and I dont have to disable Ninja or anything. But when I build using a server from Vultr, 1) the build will fail in 1-2 minutes if I keep Ninja on. If I turn it off, then the build will run for some time (40mins-1h) and then give me an error saying "Make build failed for some targets"

Reason I prefer using Vultr is I have some free credits I woudl rather use. Anyone know what it might be? Both servers are running Ubuntu 16.0.4

Regards
[Nexus 6P Android Development] erbsmokah:
I'm using stock openGapps with no issues.. I was having directory issues before but on my last install I made a setup config file prior to flashing Gapps and it seems to have worked.

Edit: is there something I can do to test this a little more? My problem was with the notifications and ringtones folders before.
[Nexus 6P Android Development] kantjer:
You use the gapps-config file to exclude the package installer from open gapps
[Nexus 6P Android Development] AlienSr1:
Hi, I just built pn last night and am flashing it now. Do you guys know if magisk is working already? (i have never used it before).
[Nexus 6P Android Development] mrjaydee82:
I made a little 3minit battery mod for latest PureNexus as of 10/9/16. I also set to permissive so that things like adaway will work and apply. Just flash zip and disable battery icon in pure nexus settings. Enjoy!!!

https://www.dropbox.com/s/ibnswnjgt55zi21/3Minit_Battery_Set_Permissive_PureNexus.zip?dl=0
[Nexus 6P Android Development] slothdabski:
hello. I need some help making a change to my current setup before I build using ubuntu. I synced the repo, but I'm realizing that I'm low on space, plus im being told building on my internal SSD will probably shorten its lifespan.

So my question is, how can move my working directory to my external drive? I would like to use the external drive for both maintaining the repo, and doing the building itself. Should I just put the folder on the existing ext4 partition on the external drive and mount it? Should I create a new partition on the drive to use? if so, how should it be formatted in gparted?

Thanks in advance!
[Nexus 6P Android Development] dbroer91884:
Sorry wrong thread
[Nexus 6P Android Development] aalupatti:
Love this mod always... Will try it.. Please keep updating this frequently [emoji4].

Sent from my Nexus 6P