yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] :
If you're .bashrc was empty, it wasn't the right file. Your environment may have a different name. What flavor of Linux is it running?

Anything it tells you to put in there, just execute as a command for now. Adding it to .bashrc just makes it persistent across sessions.
[Nexus 6 Android Development] DreamFX:
Figured it as much it was the wrong file. Never thought about just using commands.

Ubuntu 16.04.1 LTS (Xenial Xerus). Any ideas where the file might be I thought it was always in /home for Ubuntu.? I even Googled it so makes me more confused here.
[Nexus 6 Android Development] nathanchance:
nano ~/.bashrc
source ~/.bashrc

Should be what you need.
[Nexus 6 Android Development] DreamFX:
Worked great Flash. Still getting the build error though. Thought it might work since it built almost 20 mins in.

I have made no changes to anything. I literally made a new VPS (new image on Ubuntu) , downloaded JAVA, and other building apps, made my directories, and synced, and disabled ninja and this is what

i get....

/bin/sh: 1: bc: not found

/home/dreamfx/PureNexus/kernel/moto/shamu/kernel/Makefile:141: recipe for target 'kernel/timeconst.h' failed

make[3]: *** [kernel/timeconst.h] Error 127

/home/dreamfx/PureNexus/kernel/moto/shamu/Makefile:799: recipe for target 'kernel' failed

make[2]: *** [kernel] Error 2

make[2]: *** Waiting for unfinished jobs....

target thumb C++: libutils <= system/core/libutils/String8.cpp

target thumb C++: libutils <= system/core/libutils/String16.cpp

target thumb C++: libutils <= system/core/libutils/SystemClock.cpp

target thumb C++: libutils <= system/core/libutils/Threads.cpp

target thumb C++: libutils <= system/core/libutils/Timers.cpp

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

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

make[1]: Leaving directory '/home/dreamfx/PureNexus/kernel/moto/shamu'

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 (18:16 (mm:ss)) ####
[Nexus 6 Android Development] :
Yeah, but this time is not a ninja error.

I'd try deleting your kernel folder and resyncing. If it's failing, something probably didn't sync right.
[Nexus 6 Android Development] DreamFX:
I started off fully fresh again. When I say fully I literally mean a fresh install of Ubuntu and fresh everything. Like baby fresh and it still fails at the same spot every time. I am at a loss.
[Nexus 6 Android Development] DreamFX:
No suggestions? Hate to give up. Have tried 2 computers now and they both stop with above error. Can someone try a fresh sync and see if they get same issue? [MENTION=6842057]The Flash[/MENTION] [MENTION=4231562]Yoinx[/MENTION]
[Nexus 6 Android Development] :
I honestly have no idea. Your log starts with a missing command. If have to assume that you're missing some package still.
[Nexus 6 Android Development] DreamFX:
I have built for M many of times but never N. I literally used everything from the guide. Nothing more nothing less. I wonder what it could be? Any master package list I can try? I was trying to avoid old M guides out there with old instructions.
[Nexus 6 Android Development] nathanchance:
sudo apt-get install bc
[Nexus 6 Android Development] :
The standard guide should still be applicable.

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

I noticed when seeing up my build environment on a clean install that I also needed to install schedtool (sudo apt-get install schedtool). It warned of this just after the device config was printed to the screen during brunch.
[Nexus 6 Android Development] DreamFX:
You the man that was it. May I suggest you add to your guide for building noobs like me :)

#### make completed successfully (51:04 (mm:ss)) ####

---------- Post added at 09:23 PM ---------- Previous post was at 08:37 PM ----------

My next goal is to build a good custom kernel into this. [MENTION=6842057]The Flash[/MENTION] I see you have kernel. How difficult would it be to add your kernel into my builds? I have not really explored this ever. I ask you because you are extremely helpful in helping me figure this stuff out. You and Yoinx
[Nexus 6 Android Development] :
You'd need to make you local manifest point to the right repo here : https://github.com/PureNexusProject/manifest/blob/n/default.xml#L47

And make sure that the proper defconfig is defined here : https://github.com/PureNexusProject...c4d155303dddcab0d022ac2fbf/BoardConfig.mk#L28

If you look around a bit, you should see how to modify the manifest.

One you do that, delete the current kernel source, then repo sync.
[Nexus 6 Android Development] nathanchance:
Like Yoinx said, use this local manifest (needs to be put in .repo/local_manifests within your source folder) and force sync:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project path="device/moto/shamu" name="android_device_moto_shamu" />
<project path="device/moto/shamu" name="nathanchance/shamu" remote="github" revision="release" />
</manifest>

You'll also need to modify this line from pure_defconfig to flash_defconfig.
[Nexus 6 Android Development] DreamFX:
Thought I had it. And boommm

PRODUCT_COPY_FILES vendor/moto/shamu/proprietary/vendor/firmware/bcm4354A2.hcd:system/vendor/firmware/bcm4354A2.

hcd ignored.

No private recovery resources for TARGET_DEVICE shamu

make: *** No rule to make target 'me/moto/shamu/Android.mk'. Stop.

#### make failed to build some targets (01:45 (mm:ss)) ####

DreamFX@androidbuild:~/PureNexus$
[Nexus 6 Android Development] patch_Adams:
My builds rarely break. Building AOSP mostly. But I can't get past the Android boot logo. No matter what!! I'm ready to give up :( This device is supposed to be easy to work with. I used to build quincyatt a couple years back and never had this much issue. I'm frustrated to say the least. If you suggest a vendor repo to try, I have probably tried it. But any help would be appreciated just the same.

Thanks
[Nexus 6 Android Development] MrBrady:
Thanks for the great guide! I'm still having a heck of a time getting it to build. Part of the issue is I'm using Ubuntu in a VM on my Mac, so it's pretty slow. A typically build takes 3.5-5.5 hours. I can't get it to build at all when using breakfast, then mka. I can only get it to build by using brunch.

Most of my builds have failed, but I think it's due to issues in the current ROM state. For example, two days ago the build failed because of an error with the "lights" file. Although I did get a successful build last night.

Two questions:

1) The OP lists "bacon". That should be "shamu", correct?

2) Mka clobber erases the build directory, correct? Does that defeat the purpose of using CCache? I don't notice a difference with CCache enabled or disabled, so maybe I don't have it setup correctly.
[Nexus 6 Android Development] scott45333:
mka bacon is the command line for compiling. You can also use make -j4 otapackage , same effect. I've never built on a VM, so some of those issues may be do to that. I can't confirm, just a thought.
[Nexus 6 Android Development] slothdabski:
Wow this thread has been a great guide! Just finished my first build and successfully booted dirty unicorns nougat for shamu!!!! :)
[Nexus 6 Android Development] :
If you ended up with a Dirty Unicorns build from this guide... You may have messed up some steps somewhere...

:p
[Nexus 6 Android Development] slothdabski:
Lol well purenexus already has release an N build, so I figured I might as well build something else!
[Nexus 6 Android Development] MrBrady:
What are the advantages of a custom toolchain? Please share your knowledge and let us know what you did.
[Nexus 6 Android Development] MrBrady:
Does anybody have experience / success / suggestions building natively on a Mac? I've tried Google's setup instructions, but have never been successful.

Macs are all we have in our household and running Ubuntu in a VM seems like it is a total timesuck. Takes A LONG time to build, even with resources allocated to the VM. Tried to build last night and @ 5+ hours, the failed with waiting to connect to Jack server error - even with killjack applied.

This machine certainly isn't a powerhouse, but it has an SSD, i5 2.7 CPU and 8GB RAM. It would seem that a native environment would be more beneficial.
[Nexus 6 Android Development] donlad:
Hi guys.

I've successfully done this guide before but now I'm running into issues.

I'm getting this error:

Install: /home/donald/PureNexus/out/target/product/shamu/system/app/LatinIME/LatinIME.apk

mkdir -p /home/donald/PureNexus/out/target/product/shamu/system/app/LatinIME/lib/arm ;ln -sf /system/lib/libjni_latinime.so /home/donald/PureNexus/out/target/product/shamu/system/app/LatinIME/lib/arm/libjni_latinime.so

target Package: EasterEgg (/home/donald/PureNexus/out/target/product/shamu/obj/APPS/EasterEgg_intermediates/package.apk)

Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Install: /home/donald/PureNexus/out/target/product/shamu/system/priv-app/Contacts/Contacts.apk

Install: /home/donald/PureNexus/out/target/product/shamu/system/app/EasterEgg/EasterEgg.apk

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

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

ERROR: /home/donald/PureNexus/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/donald/PureNexus/packages/apps/PureSettings/src/com/pure/settings/fragments/CarrierLabelSettings.java:79: CUSTOM_CARRIER_LABEL cannot be resolved or is not a field

ERROR: /home/donald/PureNexus/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/donald/PureNexus/packages/apps/PureSettings/src/com/pure/settings/fragments/CarrierLabelSettings.java:118: CUSTOM_CARRIER_LABEL cannot be resolved or is not a field

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

make: *** [/home/donald/PureNexus/out/target/common/obj/APPS/Settings_intermediates/with-local/classes.dex] Error 41

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

#### make failed to build some targets (13:30 (mm:ss)) ####

I'm not sure what to do. Is this an error pertaining to the source code that will have to be fixed by PureNexus devs? Or is there something I can do?
[Nexus 6 Android Development] :
Don't expect repos to always be in a state that will compile without errors...

Each portion of android is contained in various repos. They don't all update at the same time every time.
[Nexus 6 Android Development] MrBrady:
I'm having trouble building today as well. Jack error 41. I raised the memory limit as described in the OP. It was at 2 and now it's at 4. That's the max I an run on this VM. Does this look like a memory error?

Building with Jack: /home/bradysewall/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/android-support-v13-ics_intermediates/classes.jack
Communication error with Jack server (28). Try 'jack-diagnose'
make: *** [/home/bradysewall/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/android-support-v13-ics_intermediates/classes.jack] Error 41
make: *** Waiting for unfinished jobs....
Communication error with Jack server (52). Try 'jack-diagnose'
Communication error with Jack server (52). Try 'jack-diagnose'
make: *** [/home/bradysewall/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-micro_intermediates/classes.jack] Error 41
make: *** [/home/bradysewall/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex] Error 41

#### make failed to build some targets (01:09:58 (hh:mm:ss)) ####
[Nexus 6 Android Development] MrBrady:
Tried doing another build overnight and it's failing at the same spot, with the same Jack error 41, but this time the Jack message is slightly different.

Copying: /home/bradysewall/android/purenexus/out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/javalib.jar
Copying: /home/bradysewall/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-jarjar.jar
Copying: /home/bradysewall/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes-jarjar.jar
Copying: /home/bradysewall/android/purenexus/out/host/common/obj/JAVA_LIBRARIES/jarjar_intermediates/javalib.jar
No Jack server running. Try 'jack-admin start-server'
make: *** [/home/bradysewall/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/libprotobuf-java-micro_intermediates/classes.jack] Error 41
make: *** Waiting for unfinished jobs....
No Jack server running. Try 'jack-admin start-server'
make: *** [/home/bradysewall/android/purenexus/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex] Error 41

#### make failed to build some targets (03:58:34 (hh:mm:ss)) ####
[Nexus 6 Android Development] nathanchance:
Instead of mka bacon after breakfast, do mka bootimage.
[Nexus 6 Android Development] harpin14789:
I have been build ABCrom for shamu. But it never boots unless I flash kernel zip after main zip flash. And I can't get to the root of this issue. Has anyone had this issue before and know how to deal with it?
[Nexus 6 Android Development] nathanchance:
If you are using gcc 4.9 as your prebuilt, switch to 4.8
[Nexus 6 Android Development] harpin14789:
Okay, will do that. Thanks.
[Nexus 6 Android Development] nathanchance:
Did you grab the commits for frameworks_native and system_sepolicy in addition to the ones for frameworks_base?
[Nexus 6 Android Development] nathanchance:
Yes but you just need the system_sepolicy and frameworks_native commits (there is one in each repo)
[Nexus 6 Android Development] ztotherad:
can someone explain to me what is this ninja thing? I've tried to build octo-n and killed ninja but i have no idea what it is at all. thanks
[Nexus 6 Android Development] MrBrady:
What's the sudo -i command? $ sudo -i ninja enabled ?
[Nexus 6 Android Development] MrBrady:
Decided to try to build PN again. Started with a fresh Ubuntu 16.04 Parallels virtual machine and followed [MENTION=6842057]The Flash[/MENTION] 's instructions on his Github. Everything was going smooth until I got a jack memory error, so ran those commands, changing the configuration to 4g since the virtual machine has 4gb of RAM. Ninja is still enabled, since that hasn't thrown any errors.

After a make clobber and attempt to rebuild, it hangs at the same spot every time. Been stuck there for a couple hours now.

39% 11705/29612 build /home/brady/PN/out/target/common/obj/JAVA_LIBRARIES/sdk_v12_intermediates/classes.jack

EDIT: I have a feeling it's something with the Parallels Virtual Machine. The virtual drive is an expanding disk, 384 GB, but when I look at the overall VM size, it was showing 75 GB, now showing 155 GB. Maybe the "expanding" part is slowing things down?
[Nexus 6 Android Development] DreamFX:
Building N takes a crap ton of ram. M limit was much less. 4GB isn't going to cut it mine always failed everytime. Bumped up to 12GB builds flawless everytime. Also building in virtual machines always causes problems unless you dedicate lots of processing powder and tons of ram and a fixed hard disk. Auto resize doesn't always work the greatest.
[Nexus 6 Android Development] nathanchance:
You'll need to make sure the commits come from the oms7 branch, there should be 11 of them and they will merge in cleanly.
[Nexus 6 Android Development] colourfuldays:
hello everyone,i am recently working on building cm14.1,but every time stop ninja at 92% , I've tried to fix it but my ability was not good,so i came here for some help,thanks!
[Nexus 6 Android Development] colourfuldays:
I had used this command before but unfortunately the same issue:(
[Nexus 6 Android Development] nathanchance:
Nothing, Beans isn't done yet.
[Nexus 6 Android Development] TotalChen:
It's a good tutorial from which I learn a lot. I'm a newbie to build system.
[Nexus 6 Android Development] Phrodini:
Good looks,the flash. I reckon I'll try this out
[Nexus 6 Android Development] harpin14789:
This guide is awesome. It's what got me into build ABCrom.
[Nexus 6 Android Development] Phrodini:
The steps make it look simple..Nathan stopped doing builds but he set up this nice tutorial... You're still building? I have to get a new hard drive,setup Linux and try this out
[Nexus 6 Android Development] harpin14789:
I will start building again in a few days. Tooks a break from building because of final exams.
[Nexus 6 Android Development] adio201:
Anyone got a link to root purenexus
[Nexus 6 Android Development] nathanchance:
Huh? You're in the wrong thread, see the FAQ in the main thread.
[Nexus 6 Android Development] alphamale:
Keep getting this error with aosip rom compiling can someone advise

No private recovery resources for TARGET_DEVICE shamu

Import includes file: /home/krystalsdude/aosip/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes

host C: libhost <= build/libs/host/CopyFile.c

make: *** No rule to make target 'kernel/motorola/shamu/arch/arm/configs/slim_shamu_defconfig', needed by '/home/krystalsdude/aosip/out/target/product/shamu/obj/KER

NEL_OBJ/.config'. Stop.

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

host C: libcompiler_rt-extras <= external/compiler-rt/lib/builtins/mulodi4.c
[Nexus 6 Android Development] Piesek:
Build error question

[RESOLVED]

I hope it is okay to post this issue under this thread :fingers-crossed:

I've successfully compiled this ROM from source without making any modifications. What I am trying to do now is build the ROM with MicroG support by patching the signature spoofing patch supplied in their GitHub repository.

cd ~/purenexus/frameworks/base
patch -p1 < android_frameworks_base-N.patch

patching file core/res/AndroidManifest.xml
Hunk #1 succeeded at 1907 (offset 253 lines).
patching file core/res/res/values/config.xml
Hunk #1 succeeded at 1267 (offset -31 lines).
patching file core/res/res/values/strings.xml
Hunk #1 succeeded at 660 (offset 44 lines).
patching file services/core/java/com/android/server/pm/PackageManagerService.java
Hunk #1 succeeded at 3097 (offset 30 lines).

At the end of compiling the ROM, I am getting the following output:

I tested the patch before applying and no errors kicked back. Thoughts?

Thank you!
[Nexus 6 Android Development] nathanchance:
Can you link the patch?
[Nexus 6 Android Development] Piesek:
Here it is --

https://github.com/microg/android_p...aster/patches/android_frameworks_base-N.patch
[Nexus 6 Android Development] nathanchance:
I think the error may be above that. Can you screenshot your whole terminal window at the end when it stops compiling? Also, what is at line 4439 in that file?
[Nexus 6 Android Development] Piesek:
[RESOLVED]

I decided to start from scratch and downloaded the source code again. Strangely, I got a different error this time as you can see in the pastebin.

I copied the terminal output from where I first found an error and pasted it to pastbin:

http://pastebin.com/HvVa9vV0

Which file did you mean line 4439? In AndroidManifest.xml?

Thanks!

Edit: P.S. [MENTION=6842057]The Flash[/MENTION] --- just realized I'm on the Nexus 6 thread not the 6p thread :eek:

[RESOLVED] -- completed build successfully with MicroG signature spoofing patch applied. Perhaps the issue was related to repo sync? I ran the build twice and both completed successfully. Sorry for the fire drill.
[Nexus 6 Android Development] hewewe:
I was able to download 52GB of the source by calling repo sync many times, but now I can't get the rest. Even -f or --force-sync doesn't help. How can I get past this? Here is the error:

Fetching projects: 23% (115/498) Fetching project platform/packages/providers/TelephonyProvider
Fetching project platform/external/expat
Fetching project platform/external/strace
Fetching project platform/external/javasqlite
Fetching project platform/system/nativepower
Fetching projects: 24% (120/498) Fetching project platform/external/slf4j
Fetching project platform/external/selinux
Fetching project platform/packages/providers/BlockedNumberProvider
Fetching project platform/prebuilts/ninja/darwin-x86
Fetching project platform/external/wpa_supplicant_8
Fetching projects: 25% (125/498) Fetching project platform/external/droiddriver
Fetching project platform/external/libvpx
Fetching project platform/external/ant-glob
Fetching project platform/external/messageformat
Fetching project proprietary_vendor_google_devices
Fetching projects: 26% (130/498) Fetching project platform/external/autotest
Fetching project android_packages_apps_PureSettings
fatal: Couldn't find remote ref refs/heads/android-7.1
Fetching project android_build
fatal: Couldn't find remote ref refs/heads/android-7.1
fatal: Couldn't find remote ref refs/heads/android-7.1
fatal: Couldn't find remote ref refs/heads/android-7.1
fatal: Couldn't find remote ref refs/heads/android-7.1
fatal: Couldn't find remote ref refs/heads/android-7.1
fatal: Couldn't find remote ref refs/heads/android-7.1
fatal: Couldn't find remote ref refs/heads/android-7.1
fatal: Couldn't find remote ref refs/heads/android-7.1
error: Cannot fetch android_frameworks_av
Fetching project platform/packages/apps/Calendar
error: Cannot fetch android_packages_services_Telephony
error: Cannot fetch android_build
error: Cannot fetch android_packages_apps_PureSettings
error: Cannot fetch android_packages_apps_Dialer
error: Cannot fetch android_external_busybox

error: Exited sync due to fetch errors
[Nexus 6 Android Development] nathanchance:
Branches are being shuffled and moved around, syncing will be impossible until this is done.
[Sony Xperia XZ Questions & Answers] jeffrey7701:
Hi

When I try to flash firmware for my Xperia XZ Dual (F8332). There is missing a specified file loader.sin
[Sony Xperia XZ Questions & Answers] mitpio:
Try version flashtool-0.9.22.3-windows
[Sony Xperia XZ Questions & Answers] MysticEnforcer:
Say yes to fsc.script
[Sony Xperia XZ Questions & Answers] itandy:
I had similar problem before. It turned out the flash mode driver was incorrectly installed. I had to manually install it from the Flashtool package again.
[AT&T Samsung Galaxy S7 Edge Guides, News, & Discus] Xak:
Do not update AT&T S7 Edge to G935AUCS4API2 you will loose ability to flash the G935U boot and all lower firmware versions so no downgrading. You will be temporarily soft bricked I managed to obtain the G935AUCS4API2 files will be uploading them and making a new thread soon with files. These files return it to stock, but once back at G935AUCS4API2 you can not downgrade or flash boot tar from g935u or you are still stuck in soft brick. For anyone that upgrades to G935AUCS4API2 you are now stuck on it and future updates and can no longer root ever eng boot now patched or something with G935AUCS4API2.
[AT&T Samsung Galaxy S7 Edge Guides, News, & Discus] Xak:
Uploading via GDrive 1 hour left for the files to upload. If anyone is stuck and waiting, please be patient.
[AT&T Samsung Galaxy S7 Edge Guides, News, & Discus] twoxa:
Damn son... bad news. Glad I'm on 935U...

Are we able to disable OTA's at all by the way?...
[AT&T Samsung Galaxy S7 Edge Guides, News, & Discus] mod777:
I think I may have the same problem. All stock firmware here is a dismatch.
[AT&T Samsung Galaxy S7 Edge Guides, News, & Discus] muppetmaster916:
I used package disabler to kill ota.
[AT&T Samsung Galaxy S7 Edge Guides, News, & Discus] mod777:
Root is still obtainable on PI2 but can not downgrade or flash U -- uploading PI2 in a few minutes