yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] Fralund:
It works fine one one computer, not the other, on the same network. I can do git clone https://gitlab.com/PureNexus/vendor_gapps.git on the machine where I cannot sync so it's very strange.

Anyway, can I just copy vendor/gapps from the machine where I could do the sync, or do I have to change somehting else?
[Nexus 6P Android Development] Fralund:
Forget this, I found the problem. On the machine where I couldn't sync I had an old Git-version (1.x) installed in /usr/local/bin. After removing this it synced just fine.
[Nexus 6P Android Development] Piesek:
How easy would it be to remove GApps being built in when compiling from source? I'm fairly new to this, and if it is one of those "if you have to ask, then you shouldn't do it" questions, let me know haha.
[Nexus 6P Android Development] AzraelsKiss:
It's not impossible, but it'd take a bit of manual editing of the makefiles.

Have a good one!
[Nexus 6P Android Development] Fralund:
After building the ROM and doing a clean flash I cannot setup the device. In the setup wizard, after connecting to my network the wizard crashes over an over again.

The is the log:

03-21 12:44:31.096 5294 5294 E AndroidRuntime: Process: com.google.android.setupwizard, PID: 5294

03-21 12:44:31.096 5294 5294 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.setupwizard/com.google.android.setupwizard.account.AccountSetupWrapper}: java.lang.SecurityException: Permission Denial: updateLockTaskPackages() from pid=5294, uid=10039 requires android.permission.UPDATE_LOCK_TASK_PACKAGES

03-21 12:44:31.096 5294 5294 E AndroidRuntime:	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2680)

03-21 12:44:31.096 5294 5294 E AndroidRuntime:	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2741)

03-21 12:44:31.096 5294 5294 E AndroidRuntime:	at android.app.ActivityThread.-wrap12(ActivityThread.java)

03-21 12:44:31.096 5294 5294 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)

03-21 12:44:31.096 5294 5294 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:102)

03-21 12:44:31.096 5294 5294 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)

03-21 12:44:31.096 5294 5294 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6169)

03-21 12:44:31.096 5294 5294 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)

03-21 12:44:31.096 5294 5294 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)

03-21 12:44:31.096 5294 5294 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)

Have anyone seen this?
[Nexus 6P Android Development] dieselbuddeh:
Was Gallery2 taken out of source?
[Nexus 6P Android Development] nathanchance:
Gallery2 hasn't been in the ROM like.... ever LOL. But if you are talking about the actual repo, most likely. No point in having repos that we don't build.
[Nexus 6P Android Development] dieselbuddeh:
Damn. I know it wasn't in the rom, but i added it to the device.mk file. It's been making it and i've been using it. I just prefer it over any other gallery apps.
[Nexus 6P Android Development] nathanchance:
It's most likely because the repo was being synced. Beans tends to keep his manifests clean of stuff he doesn't need. You can add it back via a local manifest if you want.
[Nexus 6P Android Development] dieselbuddeh:
How would i manage to do that?
[Nexus 6P Android Development] skidaway:
I just checked, and Gallery2 is still listed in the manifest.xml file. I synced the source up for PN a few hours ago.

Edit your vendor/pure/configs/pure_main.mk file and add Gallery2 to the end of the #Custom packages at the end of the file. It should build the next time you compile the rom.

edit:

I personally use the Gallery2 from abc, which is forked from cm14.1.

If you don't have a local_manifest.xml file, create this file:

~/whereveryourPNsourceis/.repo/local_manifests/local_manifest.xml

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

<!-- use Gallery2 from ABCrom -->
<remove-project path="packages/apps/Gallery2" name="platform/packages/apps/Gallery2" groups="pdk-fs" />
<project path="packages/apps/Gallery2" name="ezio84/abc-n_packages_apps_Gallery2" remote="github" revision="n2" />

</manifest>

As above, make sure you add Gallery2 to pure_main.mk.
[Nexus 6P Android Development] pvtjoker42:
Anybody running this and having the play store say that super Mario run isn't compatible with your device? Trying to figure out what the deal is..
[Nexus 6P Android Development] dieselbuddeh:
Sweet! Thank you! Will be doing this.

Just so everybody knows the comment is malformed. Its is supposed to be <!-- use Gallery2 from ABCrom -->
[Nexus 6P Android Development] skidaway:
Thanks, I missed that when typing it out. I'll edit it now.
[Nexus 6P Android Development] dieselbuddeh:
Local manifest worked and it downloaded. I added Gallery2 to pure_main.mk and it didn't build.

This is what my main_pure.mk looks like:

# Include overlays
PRODUCT_PACKAGE_OVERLAYS += \
vendor/pure/overlay/common

# Main Required Packages
PRODUCT_PACKAGES += \
Launcher3 \
LiveWallpapersPicker

# Include explicitly to work around Facelock issues
PRODUCT_PACKAGES += \
libprotobuf-cpp-full

# Custom Packages
PRODUCT_PACKAGES += \
Busybox \
ThemeInterfacer \
OmniStyle \
Gallery2

Any ideas?
[Nexus 6P Android Development] dieselbuddeh:
Bump
[Nexus 6P Android Development] nathanchance:
The inclusion of Google Photos is overriding Gallery2: https://gitlab.com/PureNexus/vendor_gapps/blob/n-mr1/app/Android.mk#L146

Remove that line and it will build.
[Nexus 6P Android Development] Neejay:
Ok, so I was able to do a basic compile (no cherry-picks) and a build with two F2FS cherry-picks. Things got a little hairy once I started trying different ways to KEEP any commits I cherry-pick after I repo sync.

What method do you all use to keep your local commits after you "repo sync"? I read about doing either a "repo start" or a "git checkout"...
[Nexus 6P Android Development] DEVILOPS 007:
I just wanted to ask what the difference is between mka bacon and make services? Mka bacon wouldn't work for me because of Jack memory error even after the killjack trick. However make services works flawlessly.
[Nexus 6P Android Development] nathanchance:
make services is only building a small part of the ROM, using a lot less memory. mka bacon builds the whole ROM zip. To put it in perspective, mka bacon usually builds around 39000-42000 files depending on the ROM. make services just built with 1935 files.
[Nexus 6P Android Development] DEVILOPS 007:
Oh okay thanks! I guess I might need more ram then:crying:

---------- Post added at 09:40 AM ---------- Previous post was at 09:36 AM ----------

Luckily all I needed which was services.jar is in make services
[Nexus 6P Android Development] michelemascia7:
It's ok to do the first two command in the terminal without specify any directory? And the last two commands in the source directory? I did this process before start to build. Thanks
[Nexus 6P Android Development] AzraelsKiss:
The first two commands are environmental variables, so it doesn't matter where you enter them, because they will apply to the terminal session as a whole. The second two commands must be done from the build directory, because they're calling a specific file.

Have a good one!
[Nexus 6P Android Development] michelemascia7:
Thank you [MENTION=3964027]AzraelsKiss[/MENTION] :)

Sorry for the another question, [MENTION=3964027]AzraelsKiss[/MENTION] and [MENTION=6842057]The Flash[/MENTION]

Can I do this before start to build to fix this error? Or this work only for out memory problem? [IMG="Error"]https://drive.google.com/open?id=0B3tXntoMfyTYOXAzMmdZQ0h1eXc[/IMG]

- Create a text file in rom directory name it killjack

- Open text file and paste this:

#!/bin/bash
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server

- Then open terminal and do:

chmod 755 killjack

Thanks to [MENTION=2640853]Garrykd[/MENTION] for the guide
[Nexus 6P Android Development] AzraelsKiss:
That's just a script to simplify most of the commands you entered manually in your previous post. The only thing different is that it doesn't contain 'export USE_NINJA=false'. The script, as is, is for helping the heap/memory issue and would need to be executed prior to each build.

Have a good one!
[Nexus 6P Android Development] pvtjoker42:
anybody else try building tonight? new repo to sync..

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

even with that, i was unable to build, ran the standard commands to kick off a build, but i kept getting errors

. build/envsetup.sh worked fine

brunch angler gets me:

brunch angler user

ls: cannot access 'vendor/pure/products/angler.mk': No such file or directory

build/core/product_config.mk:245: *** Can not locate config makefile for product "angler". Stop.

ls: cannot access 'vendor/pure/products/angler.mk': No such file or directory

build/core/product_config.mk:245: *** Can not locate config makefile for product "angler". Stop.

** Don't have a product spec for: 'angler'

** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

breakfast angler gives me the same error basically..

Should I assume it's too early to build since things were updated to 7.1.2?
[Nexus 6P Android Development] AzraelsKiss:
Beans is still updating the repo, so you'll have to wait.

Have a good one!
[Nexus 6P Android Development] pvtjoker42:
That's what i was figuring.. thanks! :good:
[Nexus 6P Android Development] placebo_domingo:
Anyone having luck with the new mr2 repo?
[Nexus 6P Android Development] Neejay:
I just started a build, so we'll see. I'll report back later on.
[Nexus 6P Android Development] mazz0310:
Build fails for me building Angler. Fails to compile the Kernel.

make[1]: *** [modules_install] Error 1
make: *** [sub-make] Error 2
make: Leaving directory `/opt/PureNexus/kernel/huawei/angler'
find: '/opt/PureNexus/out/target/product/angler/system/lib/modules': No such file or directory
find: '/opt/PureNexus/out/target/product/angler/system/lib/modules': No such file or directory
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
[Nexus 6P Android Development] placebo_domingo:
Same happens to me. Thought it was my setup, but it sounds like they've got some kinks to work out.
[Nexus 6P Android Development] AzraelsKiss:
Beans is still updating the repo, so you'll have to wait a bit.

Have a good one!
[Nexus 6P Android Development] mazz0310:
Exactly, same thing happened with the rebase to 7.1.1. It's only a matter of time, but for now we just wait and try to build every hour with our fingers crossed! ?
[Nexus 6P Android Development] Jertlok:
I've got the exact error some hours ago and i thought it was an environment issue.

Glad it isn't.
[Nexus 6P Android Development] PunkUnity:
Anyone have an updated April Build with April vendor? I was thinking about building like once a week again.
[Nexus 6P Android Development] michelemascia7:
[MENTION=3964027]AzraelsKiss[/MENTION] is there a way to know when repo are ready to be built?
[Nexus 6P Android Development] AzraelsKiss:
The only reliable way to know is when Beans starts releasing builds. Sometimes you can tell things are about ready when he starts updating the GApps repo. When it's just a monthly security update, sometimes you just need to watch out for the update of the blobs and/or kernel. But occasionally, even if it builds, he'll suddenly post a bunch of commits and you'll have to repo sync and build again. lol

Have a good one!
[Nexus 6P Android Development] DowntownRDB:
[MENTION=3964027]AzraelsKiss[/MENTION] Great information to know and will save a lot of time trying to make builds when not all commits are finished by Beanstown106..
[Nexus 6P Android Development] DevALT:
oh hey my bad i meant to say hammerhead so N5 no X thanks for correcting me :)

:s
[Nexus 6P Android Development] kantjer:
yes, only it won't build anything "mka bacon" however will build you a ROM :p

if you want to use all threads when doing a repo sync use "repo sync -j$(grep -c ^processor /proc/cpuinfo)"
[Nexus 6P Android Development] AzraelsKiss:
Yes... According to the Intel spec page your processor has two cores with four threads total. Typing lscpu in your linux terminal will give you a thorough explanation of your CPU, including number of threads (listed as number of CPUs), threads per cores, cores per CPU and number of CPUs (sockets).

Have a good one!
[Nexus 6P Android Development] millerd79:
Anyone want to make a quick step by step guide to build the rom? I have already installed Linus Mint in a VM. But, that is as far as I can get. :)
[Nexus 6P Android Development] aalupatti:
Oops I meant

mka bacon = make bacon - j4 for a 4 thread cpu?

Sent from my Nexus 6P
[Nexus 6P Android Development] kantjer:
[MENTION=6842057]nathanchance[/MENTION] wrote a tutorial, it's linked in his sig, only when building N you will need to install open_java 8
[Nexus 6P Android Development] nathanchance:
I'll be spiffing up the OP here in a bit but in my signature is a guide to building a ROM. You will need OpenJDK 8 instead of 7 but that guide is good otherwise.

Correct.
[Nexus 6P Android Development] AzraelsKiss:
I thought about writing out a build guide, but there are already so many great references explaining how to build ROMs (including nathanchance's great guide or this guide that aalupatti mentioned helped with their build). Not to mention all the great advice on this thread... Just google 'How to build a ROM' and you will get all kinds of guides. Good luck!

Have a good one!

P.S. You may want to familiarize yourself with the official build guide for AOSP from Google as well... https://source.android.com/source/initializing.html
[Nexus 6P Android Development] millerd79:
ok, so I have been following the guide and this is where I am stuck:

dave-VirtualBox pn # repo init -u https://github.com/PureNexusProject/manifest.git -b n

/root/bin/repo: line 1: syntax error near unexpected token `<'

/root/bin/repo: line 1: `<?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist.</Message></Error>

I really have no idea what I am doing just trying to follow the guide step by step.
[Nexus 6P Android Development] Nekromantik:
Am I right in thinking currently PN 7 is stock without PN settings or substratum?
[Nexus 6P Android Development] Gizmoe:
Follow this guide on setting up repo and a working directory.

https://source.android.com/source/downloading.html

Insert above repo for pure nexus at the appropriate step.

---------- Post added at 10:16 PM ---------- Previous post was at 10:14 PM ----------

Yes. Not a single option in pure nexus settings. Still very fresh.
[Nexus 6P Android Development] millerd79:
[MENTION=4248385]Gizmoe[/MENTION] is this the correct repo? repo init -u https://github.com/PureNexusProject/manifest.git -b n
[Nexus 6P Android Development] Gizmoe:
Yes. Its the right repo.
[Nexus 6P Android Development] nathanchance:
OP has been updated with my build guide and a couple of FAQs. I'll update it as more things get asked and answered :)
[Nexus 6P Android Development] AzraelsKiss:
It would seem it's an error with forwarding with the cloud server host. I just reinitialized with 'repo init -u https://github.com/PureNexusProject/manifest.git -b n' and it worked just fine, so perhaps the problem is over.

btw... It's not recommended to build as root. You really should create a user account and build under it... Good luck!

Have a good one!
[Nexus 6P Android Development] dieselbuddeh:
Would this be it?
[Nexus 6P Android Development] AzraelsKiss:
A few ideas

I've been doin' a little reading and I figured I share some of what I found...

Google's recommended build system requirements

:

https://source.android.com/source/requirements.html

Network Issues

:

If you are downloading behind a proxy, you may have to specify your proxy credentials...

$ export HTTP_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
$ export HTTPS_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>

Source: https://source.android.com/source/downloading.html

Network issues during repo init or sync may also be helped by using Python 2.7 and typing the following...

$ repo sync -j1

Source: https://source.android.com/source/known-issues.html

If you're having issues syncing in a VirtualBox VM, you may have to change the networking on the VM from NAT to Bridged mode.

Source: https://source.android.com/source/known-issues.html

Jack Issues

:

Out of memory errors may be helped by either editing ~/.jack-server/config.properties and change the number next to jack.server.max-service= with a lower number, or editing ~/.jack and change the number next to SERVER_NB_COMPILE= to a lower number. After saving the edits, remember to restart the jack server as explained by hervelo http://xdaforums.com/showpost.php?p=68667560&postcount=107

Source: https://source.android.com/source/jack.html & https://android.googlesource.com/platform/prebuilts/sdk/+/master/tools/README-jack-server.md#Transitioning-from-server-1_1-e_g_Marshmallow_to-server-1_3-e_g_N

Out of memory issues may also be dealt with by stopping the jack server by typing the following in terminal:

jack-admin stop-server

Then type the following:

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

Then restart the build process.

Source: https://android.googlesource.com/pl...f-you-experience-Jack-compilations-failing-on

Good luck! Have a good one!
[Nexus 6P Android Development] nathanchance:
[MENTION=3964027]AzraelsKiss[/MENTION], thank you for the post. Added mention of it to the OP!
[Nexus 6P Android Development] chrisexv6:
Not a building question but more of a modification question -

Is there any explainer on the Android source tree? i.e. if I wanted to mess with notifications, where is the code located in the tree? Or is everything just spread out?

Id love to get into modifying my own ROMs but every time I try to get my head around what is where, I rapidly lose interest :)

Thanks.

-Chris
[Nexus 6P Android Development] Geofferey:
If anybody wants to build 7.1.1 n-mr1 still, it should be doable.

repo init -u [url]https://github.com/PureNexusProject-Legacy/manifest.git[/url] -b n-mr1

After initializing repo you will need to edit the manifest.xml in .repo

nano .repo/manifests/default.xml

Change :

fetch="https://github.com/PureNexusProject"

To:

fetch="https://github.com/PureNexusProject[COLOR="lime"]-Legacy[/COLOR]"

Add:

<remote name="pure-current" fetch="https://github.com/PureNexusProject/"/>

Change:

<project path="frameworks/base" name="android_frameworks_base" groups="pdk-cw-fs,pdk-fs" remote="[COLOR="red"]pure[/COLOR][COLOR="lime"]-current[/COLOR]" revision="n-mr1"/>

<project path="packages/apps/PureSettings" name="android_packages_apps_PureSettings" remote="[COLOR="red"]pure[/COLOR][COLOR="lime"]-current[/COLOR]" revision="n-mr1"/>

<project path="packages/apps/Settings" name="android_packages_apps_Settings" groups="pdk-fs" remote="[COLOR="red"]pure[/COLOR][COLOR="lime"]-current[/COLOR]" revision="n-mr1"/>

EDIT: I got it to checkout by editing the default.xml in .repo/manifests/default.xml

I've attached with changes detailed here in case anybody wants to try building n-mr1 while Beans finishes n-mr2.
[Nexus 6P Android Development] AzraelsKiss:
https://xdaforums.com/showpost.php?p=71743647&postcount=1376

Have a good one!
[Nexus 6P Android Development] mysth:
Thank you.

I`ll wait then :)
[Nexus 6P Android Development] placebo_domingo:
Just did a re-sync of mr2 and started a build. At 12% and hasn't crashed yet. There may be hope today...

NM. Crashed at 75% today.
[Nexus 6P Android Development] Neejay:
Damn, you gave me hope, and I'm currently at 29%...
[Nexus 6P Android Development] DEVILOPS 007:
What are you trying to do?
[Nexus 6P Android Development] placebo_domingo:
brunch angler user
[Nexus 6P Android Development] DEVILOPS 007:
For what though? The manifest?
[Nexus 6P Android Development] 5.1:
Hello,

As [MENTION=3964027]AzraelsKiss[/MENTION] stated, check for Gapps repo update. Usually means it's ready to build, even though it's not polished yet.

Cheers...
[Nexus 6P Android Development] placebo_domingo:
For my own jollies.
[Nexus 6P Android Development] DEVILOPS 007:
If you want I can try and help you with the build
[Nexus 6P Android Development] Neejay:
I did, as he released a new GApps package within the past few days. The GitHub one wasn't updated, but it's now on gitlab.

Edit: https://gitlab.com/PureNexus/BeansGapps
[Nexus 6P Android Development] 5.1:
So we must not be so far from an update. :)

Cheers...
[Nexus 6P Android Development] Neejay:
Haha hopefully!
[Nexus 6P Android Development] AzraelsKiss:
That's BeansGApps... Vendor_gapps hasn't been updated yet for mr2 yet.

Have a good one!
[Nexus 6P Android Development] Neejay:
Ah, so you meant VENDOR GApps. Gotcha, thanks!
[Nexus 6P Android Development] AzraelsKiss:
PN 7.1.2 builds now.

Have a good one!
[Nexus 6P Android Development] Neejay:
Literally just pulled in my garage!!! Thanks for the heads up!
[Nexus 6P Android Development] AzraelsKiss:
BTW... Beans has removed the prebuilt GApps from Nexuses, so if you repo sync'd less than 15 minutes ago, you need to flash GApps separately.

Have a good one!
[Nexus 6P Android Development] dieselbuddeh:
Is anybody else having an issue with build failing at busybox?
[Nexus 6P Android Development] Neejay:
Nope, mine finished just fine.
[Nexus 6P Android Development] HiM@L:
yup...it did for me after latest commit sync.
[Nexus 6P Android Development] dieselbuddeh:
Ok I guess I will wait then.
[Nexus 6P Android Development] AzraelsKiss:
Seems to build now.

Have a good one!
[Nexus 6P Android Development] DEVILOPS 007:
What do you guys do when you get an error like this of you ever do that is? Thanks

Fetching projects: 99% (476/480) Fetching project platform/external/oauth

fatal: Not a git repository: '/home/grimy1928/SAOSP/.repo/projects/external/bouncycastle.git'

error: Cannot fetch platform/external/bouncycastle

warn: --force-broken, continuing to sync

Fetching projects: 100% (480/480)

error: Exited sync due to fetch errors
[Nexus 6P Android Development] placebo_domingo:
I blow away the whole directory and start over from scratch, or use a different machine. But that's just me.
[Nexus 6P Android Development] HiM@L:
try:

repo sync --force-sync
[Nexus 6P Android Development] DEVILOPS 007:
I've done all of that thanks:)

---------- Post added at 03:20 PM ---------- Previous post was at 03:20 PM ----------

Do you mean delete the whole folder and go from mkdir?
[Nexus 6P Android Development] placebo_domingo:
Yes. Especially if you know the repo does exist on GitHub. Or, if you have time, edit the manifest in . repo
[Nexus 6P Android Development] DEVILOPS 007:
Can someone link me the latest gapps please. I honestly can't find it. Thanks.
[Nexus 6P Android Development] 5.1:
Hello,

Full: https://www.androidfilehost.com/?fid=817550096634762306

Mini: https://www.androidfilehost.com/?fid=745425885120724534

Cheers...
[Nexus 6P Android Development] nathanchance:
He gave you the direct links but you can always find them here: https://xdaforums.com/android/software/gapps-dynamic-gapps-t3487192
[Nexus 6P Android Development] 5.1:
Hello,

He only asked for the latest..! :angel:

Cheers...
[Nexus 6P Android Development] DEVILOPS 007:
Thanks a lot, I'm trying out this dev build of paranoid android by Chad. There's problems right now so I've reverted back to his uber.

---------- Post added at 11:15 PM ---------- Previous post was at 11:13 PM ----------

Thanks I appreciate it. I'll definitely sub to this thread to keep updated but when I checked the link it seemed to be just dynamic gapps not the most recent ones. I don't know if I misworded what I said but I got banksgapps now. Thanks:)
[Nexus 6P Android Development] popper668:
just pulled off a new build, will flash it later, but I got it to work. thanks for the directions everybody