yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] Fihlvein:
Back to CAF once again after two months of AOSP and it's a delight. The speed, and color set to vivid are so much +++.

Good to see building from cm repos is still a breeze, as there was some discussion basically all you need is (roughly):

1. repo sync

2. breakfast hammerheadcaf (this adds hhcaf device and kernel repos to roomservice)

3. add lge blobs repo to roomservice

4. repo sync, brunch hammerheadcaf
[Nexus 5 Original Android Development] Sparubens:
Found a new CAF build on Androidfilehost!

https://www.androidfilehost.com/?fid=24438995911976575

All credit goes to [MENTION=5072873]Pixelase[/MENTION]
[Nexus 5 Original Android Development] Alpha-Retard:
This is how my local_manifests.xml looks:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_lge_hammerheadcaf" path="device/lge/hammerheadcaf" remote="github" />
<project name="myfluxi/android_kernel_lge_hammerhead" path="kernel/lge/hammerhead" remote="github" revision="cm-13.0-caf-160310" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-13.0" />
</manifest>

With this current one, you build will have myfluxi's kernel sources so no need to change to anything. To build use:

brunch cm_hammerheadcaf-userdebug.
[Nexus 5 Original Android Development] :
He also updated the blobs. You should include those.

Fihlvein already mentioned it... that's exactly how I do it :)
[Nexus 5 Original Android Development] GiusGrec:
Yesterday I made a full wipe and a clean install of cm-13.0-20160312-UNOFFICIAL-hammerheadcaf.zip from phoval's site (with latest myfluxi's changes)

Today I was typing on Whatsapp (no beta version), the phone freezed and then rebooted.

If it can be useful, my cache and data partition are f2fs and when the phone freezed I wasn't using wifi but mobile data.

last_kmsg [MENTION=4152171]myfluxi[/MENTION]
[Nexus 5 Original Android Development] Alpha-Retard:
I don't know how to do that since I'm pretty new at this myself. Anyways looking at the steps Fihlvein posted, I need to add the updated blobs repo. But how exactly do I do it? Do I delete the current

<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-13.0" />

and replace it with myfluxi updated one? If yes, what is the exact code that I have to add?
[Nexus 5 Original Android Development] ssauger:
change it so and reposync

<project name="myfluxi/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-13.0" />
[Nexus 5 Original Android Development] Alpha-Retard:
Thanks man! I've learned quite a lot from you. :)
[Nexus 5 Original Android Development] adrianocolvero:
https://www.androidfilehost.com/?fid=24459283995295941

All credit goes to [MENTION=5072873]Pixelase[/MENTION]
[Nexus 5 Original Android Development] djalfy:
Ok. I did a clean ubuntu setup and started everything clean from the beginning. I've checked several times if the local_manifests.xml file is correctly edited and the repo sync started ok. But again it syncs sources for bacon and tomato, and besides that it's syncing very old sources like android 4.2, cm 7 and developer previews for android m and n, roms for android wear, etc. Is that necessary? Did i do something wrong again? Besides that, i didn't see even once the word hammerhead or hammerheadcaf in the terminal after the repo sync command. Is there a way to sync only the hammerheadcaf sources?
[Nexus 5 Original Android Development] Alpha-Retard:
It did happen to me as well. Bacon was the most used device name I could see in my terminal. Same goes for the old sources. Just a quick headsup: I did see hammerheadcaf as well when repo was syncing so lookout for that to insure that the process is working as intended.
[Nexus 5 Original Android Development] :
Please avoid full-quotes. You could have just answered without quoting at all.

If you used the -b while initializing your repo to specify a certain branch it will only download that one. It just lists the other ones...

What exactly do you mean by "syncing only hammerheadcaf sources"? These are in your local manifest. If you'd only have these one you could not build CyanogenMod :D
[Nexus 5 Original Android Development] djalfy:
Something happened and i had to reboot my pc during the repo sync and after the reboot i started again the repo sync and this time the log looked completely different. I didn't see old versions of cm, versions for bacon etc. and this time the word hammerhead appears 2 times in the log...so i belive this time i've got it right...i hope.

Now i enter cd vendor/cm and when i run ./get-prebuilts it says no such file or directory. Am i missing something?

Edit: I just realised that that command is not needed anymore.
[Nexus 5 Original Android Development] :
Yeah. You can use up-to-date blobs from TheMuppets.
[Nexus 5 Original Android Development] djalfy:
Nope. I've removed that line and added myfluxi's blobs. Should i leave TheMuppets blobs in the manifest too?

Also i have a new issue. The .build/envsetup.sh command is not working. It says there is no such file/directory so i tried source build/envsetup.sh and it looked like it worked but now when i try to brunch cm_hammerheadcaf-userdebug i get a java error. It seems that i have version 1.6.x and i need 1.7.x. I tried to update it via terminal commands but the version is still the same. Do you have any idea how can i get 1.7.x?
[Nexus 5 Original Android Development] mmo.xda:
Sorry for my late response, I miss your post.

This is the theme: DEEP DARKNESS // CM12 / CM13

It is a free one, so IMHO it is safe to post link here.

On the other hand, icon package is a paid one ("Morena - Flat Icon Pack").

Regards, and again sorry for late answer :)
[Nexus 5 Original Android Development] simplicio11:
[MENTION=2833355]phoval[/MENTION] no build (with_myfluxi_kernel) today? :)

Thanks!
[Nexus 5 Original Android Development] :
[MENTION=6243698]djalfy[/MENTION]

Sorry, you're right. myfluxi's repo is the one you should use right now with updated blobs.

You have to type '. build/envsetup.sh' (space after the point). The point acts like the source command and executes another shell script in the active terminal.

Use 'sudo update-alternatives --config java' and 'sudo update-alternatives --config javac' to switch to the proper Java version. Be sure that the package is installed. You can have multiple Java packages installed on your system at the same time.
[Nexus 5 Original Android Development] phoval:
new build is up:

https://nyyu.tk/cm13/

https://nyyu.tk/cm13/with_myfluxi_kernel/
[Nexus 5 Original Android Development] ASHURiCAN:
Thank you! Do we have to flash boot.img too?
[Nexus 5 Original Android Development] mmo.xda:
It seems that problem with Chromecast and Google Photos (not casting from any CM device with CM12.1 or CM13) is solved.

At least commit is merged.

fix metrics density comparisons

So...in next build :) :) :) we will be able to test it :) :) :)

Regards
[Nexus 5 Original Android Development] AKASWAY:
Can someone tell me what it means I'm new. ?.nc.rw.=&
[Nexus 5 Original Android Development] phoval:
no, the boot.img is extracted from the zip.It's for use with stock version and want to try the kernel of myfluxi.
[Nexus 5 Original Android Development] djalfy:
I tried again the '. build/envsetup.sh' command and again 'there is no such file or directory' error. I made sure i didn't make any typo. Eventually i solved the java problem...or at least i think i did. I removed everything java related from my pc and installed java 7 from the ubuntu store. After running your two commands to config java and javac i was told that there is only one alternative and there is nothing to configure.

After running source build/envsetup.sh and brunch cm_hammerheadcaf-userdebug i get this message: "Trying dependencies-only mode on a non-existing device tree?" And after that i get "find: 'dummy': No such file or directory" error 7 times in a row and then it looks like the build is being created. But the strange thing is that i get error "#### make failed to build some targets ####" after starting the building process at random times. I tried running it once and i've got the error in 10 minutes. The second time in 25 minutes and the third time in about 15 seconds since the begining of the build process. Any idea about this stuff? Sorry for the too long post.
[Nexus 5 Original Android Development] phoval:
You should install maven.
[Nexus 5 Original Android Development] ASHURiCAN:
[MENTION=2833355]phoval[/MENTION] Build changed from MMB29V to MHC19J. What are the differences? I could read it's from latest NEXUS 5X.

Edit: My bad, I've just saw it was from r22. [emoji4]
[Nexus 5 Original Android Development] djalfy:
Thanks. I did that, but i still get an error.
[Nexus 5 Original Android Development] phoval:
It's the update from android-6.0.1_r22, with general bug and security fixes.

You can check all the changes here : https://nyyu.tk/jenkins/job/cm13_hammerheadcaf/57/changes

@djalfy, Have you installed openjdk-7-jdk ? :D
[Nexus 5 Original Android Development] djalfy:
Yes, i did:

java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.15.10.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
[Nexus 5 Original Android Development] theodorius123:
Hey, what do you all think of starting a separate thread for

building ROMs

and maybe move all the stuff? I don't want to sound annoyed or pissed, I just like clean and organized structures, also in threads ;)

[MENTION=4145479]experience7[/MENTION], it's your thread, so it's all up to you.

...just a suggestion...if you don't like it, please ignore me!
[Nexus 5 Original Android Development] kong:
I wrote a shell script to setup build environment for CM 13.0 hammerheadcaf on a newly installed Ubuntu 15.10 machine. It's located here in case anyone wants to give it a try.

Quick Instructions:

- Create a new VM, install Ubuntu 15.10 server

- login to the server and run the following command:

$ wget https://raw.githubusercontent.com/suksit/cm13_hammerheadcaf_build_script/master/build_hammerheadcaf.sh

This will download the script to your server. Then you need to change some default variables.

$ nano build_hammerheadcaf.sh

There are 3 variables for you to edit. They are located at the top to the file, say Git user name and email and the ccache size. Choose ccache size that suits your VM harddisk space (e.g. I use 50G for my 200GB VM)

Make the script executable:

$ chmod a+x build_hammerheadcaf.sh

Run it!

$ ./buid_hammerheadcaf.sh

You may have to input your password once for the sudo command, after that you can just sit back and let the script run :silly:
[Nexus 5 Original Android Development] ASHURiCAN:
http://review.cyanogenmod.com/136169
[Nexus 5 Original Android Development] mmo.xda:
And this commit for ZUK Z1 is important to hammerheadcaf because.....???

Regards
[Nexus 5 Original Android Development] :
I thought about that, too. But we don't get official builds anymore - so I'm happy about everyone who wants to learn building and maybe even share their builds :)

Plus - right now - it's pretty useless to actually discuss about the ROM because myfluxi is inactive on xda since nearly a month...
[Nexus 5 Original Android Development] theodorius123:
yes, I agree on that point. talking about a ROM in a dev-forum without a developer is a bit useless.

The only thing people talk here is about problems with new nightlies etc...but no one is here to fix them so we can only hope that it will be fixed within basic CM.

and...my Screen is broken since a week :crying:, and the N5X is quite cheap at the moment.....but i love my N5!!!
[Nexus 5 Original Android Development] mmo.xda:
I think that is quite unfair with MyFluxy.

Yeah, it is true he has not been here since 24/02 but he is improving hammerheadcaf in his repository and even in CMsource (for example, we have commits in CM from 11/03 link)

We know MyFluxi has taken some space from xda.

And there are other developers who commit for hammerhead (Kim Lee for example).

So, this thread is still alive (builds) and maybe any other developer can read logs and bug issues and improve rom & kernel. Who knows.

IMHO I think it is very uselful.

Regards
[Nexus 5 Original Android Development] ASHURiCAN:
Dunno, I'm here to learn. It's marked as for hammerhead device. It's about security flaw in selinux. Maybe someone can give more infos.

Ok just checked again and you're right, it's about ZUK device. My bad [emoji5]
[Nexus 5 Original Android Development] mmo.xda:
I think it is ONLY marked for ZUK Z1 device("android_device_zuk_ham").

NOT for hammerheadcaf (neither hammerhead).

Regards

Edit: I see your edit, so, problem solved :) :) :) :)
[Nexus 5 Original Android Development] simplicio11:
Thanks for your script [MENTION=4467597]kong[/MENTION]

I'm on VM machine (ubuntu 15.10) but last command give me

guy@ubuntu:~$ ./build_hammerheadcaf.sh
bash: ./build_hammerheadcaf.sh: /bin/bash^M: interprete errato: File o directory non esistente

I'm a ubuntu noob, but the file is in the home dir (/home/guy)... What can I do? thanks
[Nexus 5 Original Android Development] kong:
Oops my bad :P

I guess dragging & dropping file from Windows to GitHub does mess with line endings of the script. Just fixed it, please try removing the old file and download it again :)
[Nexus 5 Original Android Development] simplicio11:
Now works fine... I'm going to build my first ROM... thanks! :fingers-crossed:
[Nexus 5 Original Android Development] theodorius123:
I really don't want to be rude to myfluxi....NEVER!

But afaik he is not here anymore. I did not expect him to read the thread, too. Maybe I'm wrong. I just wanted to say: "If nobody listens, it makes not much sense to scream" ;) But if someone reacts to bugs posted here, you are totally right - and I hope so!

ok, didn't know this.

Whatever, let us stop this discussion, it's experience7 decision, and that's fine!
[Nexus 5 Original Android Development] mmo.xda:
Ok. Do not worry, and please forgive me about my word (rude) I did not mean to be rude myself :)

English is not my mother tongue so....sometimes...

So,I agree with you, and Experience7 is a great man and whatever he decides it will be right.

To be on topic again, for example you can see here a commit from Kim Lee thah was merged on 19/02 for hammerheadcaf.

Best reagards
[Nexus 5 Original Android Development] asparaz43:
Someone still has the problem of black screen at the end of incoming calls? It often happens. I noticed that with the latest factory image does not happen anymore.
[Nexus 5 Original Android Development] :
Yeah guys, I'm fine with any discussion as long as it's not spam/rude. You are totally awesome and I just want to keep you here :P
[Nexus 5 Original Android Development] faZevoLv:
I'm not sure if I should be posting here, but I've tried omnirom and it is very fast, comparable to this rom, but it is not CAF. So I tried syncing up all the CAF repos for our device and I'm getting errors. Does anyone know if omni supports CAF builds? Or is it more likely to be a problem with my sources?
[Nexus 5 Original Android Development] satyr007:
U want to build omni with caf device? Will not happen
[Nexus 5 Original Android Development] faZevoLv:
Why not?
[Nexus 5 Original Android Development] mmo.xda:
There is planned an M release for cm13.

But if you're on a cm13 nightly build you should not flash.

A piece of advice from PA:

More official info here.

Regards

Enviado desde mi Nexus 5 CAF mediante Tapatalk
[Nexus 5 Original Android Development] eternal70:
Hey guys, quick question here. Is our hammerhead capable for power-off alarm ? Thanks
[Nexus 5 Original Android Development] djalfy:
It was on cm 12.1 but not on cm 13.0 yet.
[Nexus 5 Original Android Development] eternal70:
Damn. I see that commit in cm gerrit but maybe still didn't come. Very need that. Thanks for your answer [emoji6]
[Nexus 5 Original Android Development] q1t1:
Hi guys (and gals),

I'm just adding my stone here :

I managed to compile mine and want to share it with you!

The job will run each day at 6:30 (UTC+01:00) and will upload automatically the zip to my GDrive just after.

My GDrive

My local manifest is the following and I will try to follow myfluxi's kernel changes as soon as he upload a new branch :

<manifest>
<project name="CyanogenMod/android_device_lge_hammerheadcaf" path="device/lge/hammerheadcaf" remote="github" />
<project name="myfluxi/android_kernel_lge_hammerhead" path="kernel/lge/hammerhead" remote="github" revision="cm-13.0-caf-160310" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="myfluxi/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="cm-13.0" />
</manifest>

Still don't know how many versions I will keep, maybe a week...

Regards!
[Nexus 5 Original Android Development] mmo.xda:
Thank you very much to all who share their builds.

I am very envious (in a good way) because I have no chance to gain access to a decent machine with suficente SSD and RAM.

So, I depend on you, thank you very much again
[Nexus 5 Original Android Development] Kcetin20:
nvm w/o caf
[Nexus 5 Original Android Development] satyr007:
[MENTION=2216940]mmo.xda[/MENTION] SSD dies in couple of months, but at least building takes 2/3 less time...
[Nexus 5 Original Android Development] :
Okay then... :'D
[Nexus 5 Original Android Development] kong:
Lol, I suspect that too so I put my VM on an external HDD xD
[Nexus 5 Original Android Development] playitlouder:
Modern SSDs are designed to write about a Petabyte of data.

That might take a while :P

Could we put something like "maintainer wanted" into the title of the thread?

These unofficial nightly builds from different people are nice, but a maintainer and actual progress in development would be even better.
[Nexus 5 Original Android Development] satyr007:
[MENTION=4038245]playitlouder[/MENTION]

You can try if u really trust petabyte bull**** :)

Samsung evo850/840 and kingstone v300 died in a half year. Better use raid.

Since CM abandoned building chromium (it was at least 2 hours of building ****ty browser) and some other stuff and started using prebuilts SSD doesn't make any sense (previously it took 5/6 hours on real linux - Arch distro. VM is ~30-50% slower). Now I'm building on VM and it takes 2.5 hours. Of course check my signature for a lil bit faster CAF :))
[Nexus 5 Original Android Development] djalfy:
That would be great. You should suggest that to [MENTION=4145479]experience7[/MENTION]

I miss the official builds mostly because of the delta updates since in my campus the internet speed is divided to all the connected users and i get an average of 50kbps.
[Nexus 5 Original Android Development] simplicio11:
I've just building my first ROM :laugh:

Package Complete: /home/simplicio11/android/system/out/target/product/hammerheadcaf/cm-13.0-20160317-UNOFFICIAL-hammerheadcaf.zip
make: Leaving directory '/home/simplicio11/android/system'

#### make completed successfully (01:47:44 (hh:mm:ss)) ####

Thanks [MENTION=4467597]kong[/MENTION] for your script and thanks [MENTION=2837601]ssauger[/MENTION], [MENTION=4939901]q1t1[/MENTION], [MENTION=2833355]phoval[/MENTION] and everybody share their unofficial builds!

p.s. is there any tool or way to verify the rom after building?
[Nexus 5 Original Android Development] q1t1:
Backup then flash it on your phone [emoji12]
[Nexus 5 Original Android Development] simplicio11:
yeah! :p
[Nexus 5 Original Android Development] djalfy:
Hey. Thanks for your awesome script. I've run all commands as you said but in the end i still got some errors and the build failed. Here are the errors:

host Java: dx (/home/alfy/android/system/out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/classes)
Notice file: dalvik/dx/NOTICE -- /home/alfy/android/system/out/host/linux-x86/obj/NOTICE_FILES/src//bin/dx.txt
Error: JAVA_HOME is not defined correctly.
We cannot execute /usr/lib/jvm/java-7-oracle/bin/java
vendor/cm/build/core/maven_artifact.mk:42: recipe for target '/home/alfy/android/system/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.4.0.aar' failed
make: *** [/home/alfy/android/system/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.4.0.aar] Error 1
make: *** Waiting for unfinished jobs....
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
make: Leaving directory '/home/alfy/android/system'

#### make failed to build some targets (03:41 (mm:ss)) ####
[Nexus 5 Original Android Development] samadhi23:
is there an kernel supporting doupletab2wake on caf?
[Nexus 5 Original Android Development] kong:
Did you run it on a newly installed Ubuntu 15.10 Server?
[Nexus 5 Original Android Development] pavik62:
It's time to rename the forum in "How to build см13 caf"
[Nexus 5 Original Android Development] swapnildixit3:
I am not able to Pause/ Play songs from headphone button with default Music player(Same works with Google Player).

Please highlight this issue as its there from long time.
[Nexus 5 Original Android Development] Sick1:
sudo apt-get update && sudo apt-get install maven
[Nexus 5 Original Android Development] djalfy:
Yes. I finally did it. Thanks for everyone's help and for answering all my stupid questions :D
[Nexus 5 Original Android Development] SedyBenoitPeace:
Racer by Rachanta has the feature...but as always it drains a lot of battery!
[Nexus 5 Original Android Development] djalfy:
Now that i've finally managed how to build for hammerheadcaf i will upload my builds on my mega account.

For those of you who are interested, this is the link: https://mega.nz/#F!CVFFlIgK!j4HwMFTJ0Xzp6CxVF9OsIw

I will try to upload builds daily. :D
[Nexus 5 Original Android Development] theodorius123:
One question to everyone building ROMs now. Can you explain what is the difference to other ROMs here? I would love to have an overview about all builds here and whats the difference.

AFAIK everyone is using official CM + myfluxis stuff. So...are they all the same??? Don't want to discourage anyone, I'm just wondering about all the ROMs appearing lately.

Thanks!
[Nexus 5 Original Android Development] satyr007:
Sorry for being rude, but if u cannot install let say ubuntu by simply following any tutorial from xda 'how to build' without fail - just give up. There are even youtube step by step tutorials... Building hammerheadcaf is just ONE SINGLE command "brunch hammerheadcaf". Why would anybody trust you and use your version if u barely compile sources from myfluxi and cm? What will you do if "repo sync" tells you "discarding commits" :D? I bet you will spam this thread instead of reading and learning somewhere else. This thread has become spam thread that should be closed and opened only when myfluxi has something to say since it's "original android development" not "discussion".