yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] michelemascia7:
Do you compile the user version or the user debug version?
[Nexus 6P Android Development] infernusdark:
Differences between user and userdebug?

Enviado desde mi Nexus 6P mediante Tapatalk
[Nexus 6P Android Development] nathanchance:
https://source.android.com/source/building#choose-a-target

https://source.android.com/source/add-device#build-variants
[Nexus 6P Android Development] infernusdark:
Thanks

Enviado desde mi Nexus 6P mediante Tapatalk
[Nexus 6P Android Development] HiM@L:
since we are all here to learn:

how do i update ROM to April source. does changing manifest.xml to April repo enough besides binaries.

thanks in advance..
[Nexus 6P Android Development] 5.1:
Hello,

I guess all you need to do is:

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

repo sync --force-sync

Hopefully someone corrects me if I'm wrong... :angel:

Cheers...
[Nexus 6P Android Development] HiM@L:
thanks for the reply.

and sorry for not being more clear.

I was talking in general and not specific to PN.
[Nexus 6P Android Development] 5.1:
Hey,

Hehe, no problem. But in this case, i'm not of much help, sorry...

Cheers...
[Nexus 6P Android Development] nathanchance:
For the repos you have not forked, you can update the manifest version in default.xml to the tag you want.

In general, for the repos you have forked:

git pull <googlesource_url> <tag>

For example:

git pull https://android.googlesource.com/platform/frameworks/base/ android-7.1.2_r6

You may run into conflicts and have to fix them then you commit the merge.
[Nexus 6P Android Development] pvtjoker42:
so, been outta town for work the last week. I saw others had success building and flashing the 7.1.2 base, but when i do a clean flash, there's no gapps. So I grabbed the latest open gapps, and flash again, but there's no keyboard, only voice input. Anybody else run into this issue? Is there a different 7.1.2 gapps i'm missing somewhere?

I did notice this last flash with the open gapps nano that it did say "detected gapps already installed" so i'm not sure what the deal is.

finally got things working with open gapps aroma to install gboard.
[Nexus 6P Android Development] Hadookie:
How much space is needed to sync?
[Nexus 6P Android Development] 5.1:
Hello,

Haven't flashed on Angler yet, but there's Beans gapps here if you wish: https://xdaforums.com/android/software/gapps-dynamic-gapps-t3487192

Cheers...

Hello,

I'm using a 250GB partition.

You need a few 50GB for the source if i remember well + 50 more if you want to build with ccache enabled.

Cheers...
[Nexus 6P Android Development] CYoung234:
I am using this guide to try to build another ROM, and kept running out of disk space, even though I have a VM with 125G. I just noticed a 50Gb file /var/log/vmware-install.log. Does anybody know what this file is, and why on earth it would be that large?

At any rate, I deleted it. The VM still runs just fine, but now I see what Azraelskiss noted. My disk usage is 71.6Gb after installing Ubuntu 17.04 and doing repo sync. I now have over 50Gb free to build with, so hopefully that will be enough space!
[Nexus 6P Android Development] Hadookie:
Success!
[Nexus 6P Android Development] mysth:
I installed latest PN Official and now that it has private keys, does it mean i cant flash my own build without clean install?

After one clean install, i can dirty flash my own builds?

Is there a a drawback not using official because private keys? Where would one notice the difference between private key and public key?
[Nexus 6P Android Development] nathanchance:
Yes, that's what it means. Test keys aren't as secure but it's not that big of a deal.
[Nexus 6P Android Development] dieselbuddeh:
delete
[Nexus 6P Android Development] CYoung234:
Success - finally!

Screenshot attached. My computer is just a Core i5, so no big deal. Screenshot attached.
[Nexus 6P Android Development] dieselbuddeh:
So even with a local manifest for gallery2 and adding it to /vendor/pure_main.mk and deleting the line override line. Gallery2 still did not build with 7.1.2. So I guess it's a losing battle but I will fight till the end. Any idea on how to get it to build?
[Nexus 6P Android Development] dieselbuddeh:
[IMG="Screenshot"]http://i.imgur.com/Tm3d554.png[/IMG]So i tried to build today and got this error. Any ideas?
[Nexus 6P Android Development] nathanchance:
It's this commit, Beans will need to fix it: https://github.com/PureNexusProject...mmit/31e1cb15b8bbec873b4be0af28f6ab323ebf2b19
[Nexus 6P Android Development] dieselbuddeh:
That's what i kind of figured but i wanted to see if it was something I done f'd.
[Nexus 6P Android Development] pvtjoker42:
looks like n2g47o has been merged, anyone successfully build yet? wasn't even a full day ago that it was merged, just curious...
[Nexus 6P Android Development] Neejay:
Yep!

Edit: I forgot I'm on DU now...whoops! Screenshot removed.
[Nexus 6P Android Development] dieselbuddeh:
Did you build PN or DU? My PN build keeps failing.
[Nexus 6P Android Development] placebo_domingo:
Related to this I believe. https://plus.google.com/u/0/106045469789476107905/posts/38WZq1WKnVH
[Nexus 6P Android Development] AzraelsKiss:
Build is completing again.

Have a good one!
[Nexus 6P Android Development] placebo_domingo:
Did yours​ compile with that kernel?
[Nexus 6P Android Development] AzraelsKiss:
Nope. Flash Kernel isn't part of Pure Nexus. You have to flash it separately. I needed it for F2FS.

Have a good one!
[Nexus 6P Android Development] Audioffensive:
He guys hope you can help. I made an android rom with the PureNexus device tree. Now i can not install Netflix from Playstore.

Found sonething aboutbchanging build.prop. but maybebsomeonebcan tell me what i have wrong in my rom source?
[Nexus 6P Android Development] pvtjoker42:
nothing wrong with your rom, netflix is blocking rooted devices, try magisk hide.
[Nexus 6P Android Development] tr1gg3r.man:
[MENTION=6842057]The Flash[/MENTION] - you have no idea how long I've been waiting for a thread like this. Thank you sir! ? total awesome sauce.
[Nexus 6P Android Development] AzraelsKiss:
Psst... Ya know the thread was started like 8 months ago... Right?

:P

Have a good one!
[Nexus 6P Android Development] tr1gg3r.man:
Yeah, but I just got my Nexus 6P... Sorry I'm a bit behind the times, my bad.
[Nexus 6P Android Development] Fralund:
I'm not sure if this has already been discussed, but I couldn't find any answer when I searched.

Is there a way to checkout the source for a specific release or date? I would like to checkout the code for the latest release of PureNexus (2017-05-09), is that possible?

Best regards,

Fredrik
[Nexus 6P Android Development] nakamoniel:
Can you please re upload, link is dead
[Nexus 6P Android Development] guitar1238751:
It's continuously updated. Also check recent commits. Is there something specific your looking for?

https://github.com/PureNexusProject
[Nexus 6P Android Development] Fralund:
Hi,

Since it's continuously updated it would be nice to check out an older version, or the same revisions that was made to build the official release. I would like to be able to build my own ROM using the same revisions that was used for the official builds.
[Nexus 6P Android Development] JamFan05:
I synced and built last night and everything is working fine, but its missing the AOSP phone and contacts apps that Beans added back in the June update. I was wondering what to do to make it build with these in my home build.
[Nexus 6P Android Development] AzraelsKiss:
Revert commit 85ddf958 in vendor_gapps.

Have a good one!
[Nexus 6P Android Development] pvtjoker42:
Anyone else anxiously watching the github page for updates to 8.0?
[Nexus 6P Android Development] Samuel Holland:
I'm trying to build Pure Nexus 8.0 but have failed so far twice. I sure hope I can figure this out. I built successfully nougat but so far I updated the repo address for pn Oreo, sync repo, and then tried to build. Thanks everybody for all the info and help getting started. I hope to update my post with success.
[Nexus 6P Android Development] MoistPicklez:
Thanks to [MENTION=6044187]yung40oz84[/MENTION] for directing me to this guide and big thanks to [MENTION=6842057]The Flash[/MENTION] for writing up this awesome guide, will continue to peck out these errors and hopefully get a build working for my HH.

Cheers, you guys rock!
[Nexus 6P Android Development] pvtjoker42:
he doesn't have a complete build up for 8.0 on github yet, so your builds will continue to fail.
[Nexus 6P Android Development] Samuel Holland:
Thank you sincerely & May God bless. I believe last night was like the fifth time I tried. I was just wondering should I wipe everything and start over. I'm sure thankful you were kind enough to inform me of my ignorance. I'll continue to monitor the build and look forward to success good Lord say the same.:)
[Nexus 6P Android Development] abyz12:
Bro are you a tester of pure Nexus rom??
[Nexus 6P Android Development] pvtjoker42:
Thanks for the update Azrael. On a side note, is it only OPR5 or OPR6 for the Oct update?

Also, I just tried to run a build and it failed. Am I missing something?
[Nexus 6P Android Development] AzraelsKiss:
Nope... Just built it from source.

OPR5 is the r17 October build. Not too sure how I got it to build. Maybe because I'm on a fresh build environment. I actually hadn't expected it to... lol The build I got isn't much different from stock Oreo, because the custom PN settings ain't showing up yet and it was crawling at a snail pace on first boot, but now after a few reboots it seems to be running a bit cleaner than stock Oreo (could be placebo or just that it's a fresh flash). Hopefully, it won't be too much longer before all the PN goodness shows up.

Have a good one!
[Nexus 6P Android Development] pvtjoker42:
I guess i was just confused by the name of the October file, as it's OPR5 when August/September's file was OPR6..

I just redid my build environment, with a full repo sync 2 days ago, still won't build.. so I guess we'll wait and see..
[Nexus 6P Android Development] placebo_domingo:
What platform are you building on?
[Nexus 6P Android Development] AzraelsKiss:
I think I figured it out... I forgot to clear ccache after building stock AOSP and I think the PN build may have been using some of those files which allowed the build to complete... lol That's what I get for building while fogged out on cold meds... Damn colds... :P

Have a good one!
[Nexus 6P Android Development] placebo_domingo:
Weird. Were you building AOSP and PN in the same directory? Here's what I always get. Using Debian.
[Nexus 6P Android Development] AzraelsKiss:
The build directories are different, but because PN is built on AOSP source, I'd guess ccache is still able to use at least some of the files AOSP generates. It's probably similar to how it's technically possible for ccache to corrupt a build when the sources update, although it's extremely rare, because ccache should be able to identify that the files need rebuilt.

I'd venture a guess that everyone's build should be stopping around the same location as your's. I don't think Beans has the source for angler ready to build yet. I haven't dug into it too much (I'm not a coder), but I think something needs fixed somewhere in the camera source. That's just an uneducated guess though...

Have a good one!
[Nexus 6P Android Development] Samuel Holland:
That's where I end up also by the way. Thanks y'all.
[Nexus 6P Android Development] placebo_domingo:
Well, you're more educated on ccache than I am. I decided to try a plain AOSP build, left the ccache behind and the PN build worked! :laugh::good:
[Nexus 6P Android Development] netwokz:
Just an FYI, this commit should fix the build error with camera. At least thats how I fixed it to build a couple of weeks ago. but not sure if there will be more errors.
[Nexus 6P Android Development] pvtjoker42:
Anybody else notice?! There's been updates on github! Here's to Beans being back at it! (and in my case, let's see a TAIMEN PN!)

Also, out of random curiosity, anyone gone through and setup their build environment in windows 10 with the ubuntu bash shell? Was just messing around with it, not sure if it'll work properly or not (still have my build VM, so it's just me killing time till i can actually build something again)
[Nexus 6P Android Development] AzraelsKiss:
Haven't tried building in WSL for a while, but didn't have any luck the last time I tried. This thread has a few pointers to check out on that front... https://xdaforums.com/android/general/guide-build-rom-source-windows-10-t3469420 Good luck!

Have a good one!
[Nexus 6P Android Development] pvtjoker42:
Yeah, looks like they haven't gotten it to play nice with a full rom build. Was just an idea. Guess i'll keep my build VM around a while longer yet. :)
[Nexus 6P Android Development] kakabobo:
any advice to fix below error ?

build/core/envsetup.mk:232: *** TARGET_COPY_OUT_VENDOR must be either 'vendor' or 'system/vendor', seeing 'system'.. Stop.
[Nexus 6P Android Development] AzraelsKiss:
Might be because the bring up isn't done yet. Ya may have to wait a bit.

Have a good one!
[Nexus 6P Android Development] alphamale:
Anyone know the differences between the main branch and the staging branch of akhilnarang scripts
[Nexus 6P Android Development] alphamale:
Delete
[Nexus 6P Android Development] huhuang03:
have you solve this problem? I occur this also.
[Nexus 6P Android Development] laijirong:
Can I compile in other systems like Deepin instead of Ubuntu?
[Nexus 6P Android Development] dharmabm:
Of course you can, as long as you have all the proper dependencies
[Nexus 6P Android Development] laijirong:
OK，thanks:)
[Nexus 6P Android Development] aalupatti:
Make a directory inside the root and call it PN . Inside this directly open a terminal and type repo init -u https://github.com/PureNexusProject/manifest.git -b n

Yes use the nano gapps, All others are giving playstore force close

Edit : You guys are so fast... Love PN team
[Nexus 6P Android Development] nathanchance:
Most modifications are going to take place in the frameworks/base folder. Within there, you'll most likely be modifying stuff in SystemUI. I would recommend looking through past Android versions with all of the commits and seeing what folders/files they are modifying to give you an idea of what files do what. Also, if you look at the manifest (for example, this line), the path part will tell you the location within the source folder and the name part will be the repo name.
[Nexus 6P Android Development] chrisexv6:
Thanks! Excellent info.... I could be the next beans! [emoji1]
[Nexus 6P Android Development] AzraelsKiss:
Unless you are looking to create your own custom ROM (and most likely even if you are)... Probably the best way to get started modifying ROMs to suit what you want is to find a good base custom ROM that has a lot of features that you like and not many, if any, features you don't... Then find features on other ROMs that you like and cherry pick them into your build. You can do this from a local repo, or fork the base ROM in github to your own remote repo, so you can have your repo saved on the web in case anything happens to your local repo. Having your own remote repo would also be beneficial if you ever get your personal ROM to a point that you can share it with others, because part of the open source philosophy is paying it forward and making your commits available to others to peruse...

To get you started on cherry picking, here's a link to a guide I used a while back... http://xdaforums.com/showthread.php?t=2763236 It'll probably be a good idea to do a lot of googling on it and other functions of git as well... Good luck!

Have a good one!
[Nexus 6P Android Development] Ndp9882:
Does anyone know what this error is trying to tell me? I've tried over and over to build this and it keeps failing at the end.

target C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/ap/sta_info.c

target C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/ap/tkip_countermeasures.c

target C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/ap/ap_mlme.c

target C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/ap/ieee802_1x.c

target C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/eapol_auth/eapol_auth_sm.c

target C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/ap/ieee802_11_auth.c

target C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/ap/ieee802_11_shared.c

target C: wpa_supplicant <= external/wpa_supplicant_8/wpa_supplicant/src/ap/drv_callbacks.c

Makefile:130: recipe for target 'sub-make' failed

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory '/home/droid/PureNexus/kernel/huawei/angler'

build/core/tasks/kernel.mk:220: recipe for target 'TARGET_KERNEL_BINARIES' failed

make: *** [TARGET_KERNEL_BINARIES] Error 2

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

#### make failed to build some targets (50:22 (mm:ss)) ####
[Nexus 6P Android Development] airbat:
Compiling with Arch Linux

Hi all,

I'm using Arch Linux and want to compile my own PN ROM, just to learn and just because i'm curious :D

But, i have a problem and compilation always stop just after 1s. It said i haven't recovery.img in the output folder.

Have i missed up some package ? If yes, is there someone who know all packages i need under Arch, or is it simply impossible ?

I have solved a lot of errors (libncurses5, ninja, clang++, kati and many others) but still don't compile.

I have all necessary android files (android-platform, android-studio, android-sdk, jdk8)

Am i need the latest binaries from google, if yes, where i need to put them ?
[Nexus 6P Android Development] nathanchance:
Can you post the commands you are using to compile in addition to the contents of your PureNexus source folder (using ls)?
[Nexus 6P Android Development] airbat:
I'm at work so i can't post the output of 'ls' but there is all the files from Pure Nexus Repo (all synced via repo init and repo sync cmd)

i use the following commands :

Repo sync :

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

Compilation :

. build/envsetup.sh
breakfast angler

the problem occur with this command

I'm not on a VM and i use a decent desktop computer (i think)

I use Ninja so, i d'ont use the 'export USE_NINJA=false' command.
[Nexus 6P Android Development] kipue:
Guys, as an aside.

I can use TWRP3.0.2-0 without troubles to flash PN 7.0 right?

I mean the point of the first unstable TWRP update was to allow encrypted devices to use the recovery with N, right?

I'm decrypted so can I safely stay on that one?

ty for the input (getting the compilation done finally, thank you all so much for all the input! Will still get more RAM tomorrow to avoid making my host computer suffer so much for future builds :))
[Nexus 6P Android Development] qsec:
I was following this excellent guide in the op. When I synced the repo I went out of disk space, how many GB does this sync need in generally?

I have a laptop i7 with 8gb ram and a 120gb ssd. The problem is that I have both Ubuntu and win10 on it.

Would it be enough with 120gb and only Ubuntu installed?

Thanks.

Tapatalked.
[Nexus 6P Android Development] kantjer:
If you have only 120GB I would remove windows and instead of Ubuntu use Mint (less demanding)

Also if you are going to use ccache don't make it to big (max something like 25 GB)

You might get away with 120 GB if you don't add anything else.

Sent from my Nexus 6P
[Nexus 6P Android Development] qsec:
Ok, i will try to install just Ubuntu and make ccache smaller.

Tapatalked.
[Nexus 6P Android Development] kantjer:
One other thing you can do to save disk space is use a local_manifest to remove device and kernel repo's for device you don't build for.

Sent from my Nexus 6P
[Nexus 6P Android Development] qsec:
Ok thanks. It is over my knowledge. I can only follow the guide :)

But I will Google it if I run out of disk again.

Tapatalked.
[Nexus 6P Android Development] aalupatti:
With 120gb space and only mint installed, you should be able to built it...

I have dedicated around 150gb and i notice that during the building process it crosses over the 100gb mark.
[Nexus 6P Android Development] dbroer91884:
Are the directions for building from the OP the same on mint as Ubuntu
[Nexus 6P Android Development] aalupatti:
Yes

Sent from my Nexus 6P
[Nexus 6P Android Development] nathanchance:
And you get that error after typing in mka bacon? I can't imagine why you would. Did you try doing a make clobber between breakfast angler and mka bacon?
[Nexus 6P Android Development] kantjer:
here you have an example of my current local_manifest. I only build for Angler on Linux so I remove Bullhead and Shamu related repo's and also the Darwin (Apple) toolchains.
[Nexus 6P Android Development] serubin323:
Has anyone who's built PN7 had issues with cell service? I'm struggling with my device not registering my sim card.
[Nexus 6P Android Development] aalupatti:
Nope. No issues

First remove the sim and reinsert

Then try to use another sim or same sim in another phone

Try to flash the stock image and see if that helps

It is extremely rare that a rom can cause that.
[Nexus 6P Android Development] airbat:
Ok, i have tested to compile with only the command in the readme provided on Pure Nexus GIT.

Now, i use this commands :

make clobber
breakfast angler
make bacon

And now i have another error after the make bacon command ...

Here is the last part of the log

[ 1% 688/41949] JarJar: /home/airbat/Pure_Nexus_GIT/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes-jarjar.jar
FAILED: /bin/bash -c "java -jar /home/airbat/Pure_Nexus_GIT/out/host/linux-x86/framework/jarjar.jar process external/conscrypt/jarjar-rules.txt /home/airbat/Pure_Nexus_GIT/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes-full-debug.jar /home/airbat/Pure_Nexus_GIT/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes-jarjar.jar"
Error : unable to find or load main class com.tonicsystems.jarjar.Main
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:149: ninja_wrapper] Error 1

#### make failed to build some targets (01:29 (mm:ss)) ####
[Nexus 6P Android Development] Cerinthus:
No, it doesn't know, and yes it makes a difference. Linux just doesn't work that way. Make has no idea what /proc/cpuinfo says.

You have to tell it how many to use, the default configuration is one that works on all devices. If you're not using that, it needs to be specified.

FWIW, benchmarks pretty consistently put optimal threads as coresx1.5 for anything over four cores, defying the conventional wisdom, but systems vary.
[Nexus 6P Android Development] JedixJarf:
export USE_NINJA=false
[Nexus 6P Android Development] trebills:
Exited Sync due to fetch errors

I keep getting an error: Exited sync due to fetch errors here is what it reads in terminal. Any ideas what might be causing this. I used a variation of repo sync with force syn and -j10 etc. ALso, I have plenty of disk space free so that can't be an issue. Any ideas?

Fetching projects: 99% (478/482) Fetching project platform/packages/providers/CallLogProvider
fatal: Not a git repository: '/home/jeff/PureNexus/.repo/projects/system/nvram.git'
fatal: Not a git repository: '/home/jeff/PureNexus/.repo/projects/external/jsr330.git'
error: Cannot fetch platform/system/nvram
error: Cannot fetch platform/external/jsr330

error: Exited sync due to fetch errors
[Nexus 6P Android Development] AzraelsKiss:
What was your exact repo sync command? Have you tried it with -j1...

Have a good one!
[Nexus 6P Android Development] dbroer91884:
So I have the option of either putting Ubuntu 16.04 or mint 18 on my computer. I'm more comfortable with Ubuntu in that I've used it before but I've heard that mint is more lean and since I'm only going to use this to build, should I use mint?
[Nexus 6P Android Development] AzraelsKiss:
Linux Mint is just fine and shouldn't have hardly any learning curve if you've used Ubuntu... Especially if the only thing you'll be using it for is building ROMs... Good luck!

Have a good one!