yashsingh1/xdaforums huggingface dataset:
[Nexus 6  General] sykopompos:
For the most part, you can diff and find file differences but aosp has it's own files and stuff like that so you gotta be able to figure out what they do
[Nexus 6  General] fhem:
I was afraid you were going to tell me that. :D:laugh: Oh well It will give my old brain and google a workout. hahahaha Thanks and enjoy yourself.
[Nexus 6  General] purian23:
Hey [MENTION=5526655]fhem[/MENTION]! Glad to see you take over, you're always very helpful!

In your Repo Int code above, did you mean "android-5.1.1_r4"? I wanted to double check that part for the guide.
[Nexus 6  General] fhem:
Yep. That's the latest. That's what I built above if you look at the fhemaosp default manifest.
[Nexus 6  General] purian23:
Okay cool! Just trying to save some headache if someone grabs the guide one listed lol.
[Nexus 6  General] fhem:
Fixed thanks for catching that typo.
[Nexus 6  General] Scott:
Hello [MENTION=1050103]sykopompos[/MENTION], I am just glad to see you here! Thanks for all your contributions!

I let [MENTION=5526655]fhem[/MENTION] take over the thread since he is more active than I. But I appreciate all the help you have given and will continue to give!

Knowledge is TRULY priceless!

-Scott

EDIT: Can someone put that on my tombstone, lol ;)
[Nexus 6  General] janjan:
Can we have guide about building ROM from open source? e.g LG open source. Actually I was trying to build a M1 review ROM with the LG open source but it fails. I tried several times and finally give op due to errors. I downloaded the android source and then follow this guide and then download LG G4 ROM from following.

http://opensource.lge.com/osSch/list?types=ALL&search=H815

I set up the environment and then started building but it fails again and again. I think it will be very helpful for every one who interested in building ROM from open source. Thanks
[Nexus 6  General] fhem:
I have never worked with any LG source codes. I would suggest you start your own thread on the LG G4 Forum. It definately sounds like you got enough to get one rolling. Good luck with the G4.
[Nexus 6  General] KerryWood34:
Hello,

I am trying to build android 5.1.1_r6 for the Nexus 6 and was able to get it to build and install. Had a weird issue where gapps would not install, but I think I fixed that by flashing a different set of gapps. My issue is that I am unable to hear people through the handset speaker when I make phone calls. I have no idea what it is. Apparently they can hear me, but I cant hear them. I can use speaker phone, but even that seems lower volume than normal.

Also, side question, since I am building AOSP 5.1.1_r6 am I supposed to use the preview binaries found here: https://developers.google.com/android/nexus/blobs-preview

or just use the factory image binaries?

Thank you
[Nexus 6  General] rockinroyle:
I haven't been able to get _r6 to build due to errors in frameworks/opt ever since merging so good for you on that. As for the binaries It was found a while back that the Google one were incomplete. People were using The vendor files from chroma in their stead. I haven't spoken to fhem in a couple of days but it looks like his github is under construction atm. I forked the vendor repo from him since he had changes that fixed some no sound issues as well. Again I've yet to build _r6 successfully so no idea if these will solve your issue but you're welcome to try them out? You can get them from my github here: https://github.com/rockinroyle/platform_vendor_moto_shamu

Let us know how it goes? I'm trying again after I clone frameworks from scratch.
[Nexus 6  General] fhem:
I had no luck with r6 either. I reverted back to r5. I looked at chroma/zephk on git and I don't think he took the whole r6 merge to his git repos - not sure what he did.

I'm sticking to to r5 for now.
[Nexus 6  General] HolyAngel:
I've been building r6 fine with zero issues. Did notice the speaker issue on call but fixed it with two commits from chroma in device/moto/shamu for audio. I've also been using the latest binaries posted by google on the aosp page, no issues that I can tell. WiFi calling/normal calling, sound all around, SMS/MMS, all works.
[Nexus 6  General] fhem:
I updated OP to 5.1.1_r5 and changed the rom vendor blobs. New rom build linked in OP. I will also take closer look at r6 issue.
[Nexus 6  General] fhem:
Which binaries did you use LMY47Z or LYZ28E?? Also other then the two audio commits you mention did you make any other commits to your build? I assume you are Tmo w/ wifi calling so you probably used LYZ28E -- right??
[Nexus 6  General] HolyAngel:
Only added the couple commits you mentioned here to get it to build, and not have issues with netflix. Pretty positive I did use the tmo LYZ28E binaries.

Edit: was using the international binaries and no wifi calling - My mistake there. I did however just change to the Tmobile binaries though and all boots, wifi calling in testing as I made some other commits for ramdisk edits to make it work and not sure that's a thing yet or not.
[Nexus 6  General] KerryWood34:
I guess my next problem is that I have no idea how to merge commits to my build. I assume I have to upload my stuff to git first. Is there another guide for how to do this? I will start searching the googles...
[Nexus 6  General] fhem:
Here's a start. We are all newbs when it comes to git LOL

http://xdaforums.com/showthread.php?t=2763236

http://xdaforums.com/showthread.php?t=2329228

http://gitref.org/creating/

http://git-scm.com/docs

gotta make commits locally and then push to git.
[Nexus 6  General] KerryWood34:
Thank you very much! I will start my homework when I get home from work lol
[Nexus 6  General] fhem:
OK--- I finally got 5.1.1_r6 to build. I had problems pulling/merging r6 into my build directory so I just started over :D:victory:. The OP linked github and ROM are both updated to 5.1.1_r6. I understand that the latest nexus binaries for your specific carrier may now be working but I am using the ones I linked in the OP. I believe these should work for all carriers. These are the same ones being used by Zephk/TheMuppets/Chroma. I also added some missing build.props to the vendor binary device-vendor.mk file to fix some audio issues.

Any questions please ask.

HAPPY FOURTH ----- ENJOY
[Nexus 6  General] fhem:
OP # 1 Update

Hi all I upated the OP to 5.1.1_r8. I also updated the linked ROM to the same build version 5.1.1_r8.
[Nexus 6  General] fhem:
GitHub Tips OP # 2.

Hi all added GitHub tips to OP # 2. Hope they are helpful.
[Nexus 6  General] sykopompos:
From what I have been told by several rom devs, r8 breaks on anything but shamu and technically r5 has the newest code and everything after that was specific thing branches like fi and such
[Nexus 6  General] fhem:
Thanks for the input. Glad to see you back on the threads. I read about the fi stuff but not the breaking of other devices. I only build the N6 and N9 (wifi) and all seems ok on them. I also noticed that there was very little changed from r5 -> r6 -> r7 -> r8. I guess I will sit where I am for now ---- Thanks again.
[Nexus 6  General] sykopompos:
No problem, is it just a heads up for anyone building anything other then the latest devices and why they might have problems
[Nexus 6  General] Red Devil:
Hi ! Great thread!

Very informative!

Glad I could be useful! :D

Cheers ! [MENTION=5526655]fhem[/MENTION]
[Nexus 6  General] vboyz103:
Thanks OP for the share. I did try to build the r8 and man oh man, it takes a while on my i7 CPU with -j8, mad respect for you devs to spend that kind of time in compiling.
[Nexus 6  General] sykopompos:
There are a whole bunch of tricks that we used to cut compiling time down like compiler cache (ccache) and prebuilt apks and libs that don't need to be rebuilt every time.
[Nexus 6  General] duofilm:
Excellent info! Thanks.

Would these procedures be similar to building an Unofficial Chroma AOSP?
[Nexus 6  General] fhem:
If you mean this. The answer is yes but the purpose of this guide is to help everyone build their own roms. It's all a learning process !!!!!
[Nexus 6  General] fhem:
OP Update to 5.1.1_r9

The OP has been updated to 5.1.1_r9.
[Nexus 6  General] HiM@L:
sudo apt-get install git gnupg flex bison gperf build-essential \

> zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \

> libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \

> libgl1-mesa-dev g++-multilib mingw32 tofrodos \

> python-markdown libxml2-utils xsltproc zlib1g-dev:i386

Reading package lists... Done

Building dependency tree

Reading state information... Done

bison is already the newest version.

g++-multilib is already the newest version.

gperf is already the newest version.

zip is already the newest version.

zip set to manually installed.

curl is already the newest version.

curl set to manually installed.

git is already the newest version.

gnupg is already the newest version.

libc6-dev is already the newest version.

libc6-dev set to manually installed.

libxml2-utils is already the newest version.

x11proto-core-dev is already the newest version.

x11proto-core-dev set to manually installed.

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

build-essential : Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed

libcheese-gtk23 : Depends: libclutter-gtk-1.0-0 (>= 0.91.8) but it is not going to be installed

Depends: libcogl15 (>= 1.15.8) but it is not going to be installed

libcheese7 : Depends: libclutter-gst-2.0-0 (>= 0.10.0) but it is not going to be installed

Depends: gstreamer1.0-clutter but it is not going to be installed

libclutter-1.0-0 : Depends: libcogl-pango15 (>= 1.15.8) but it is not going to be installed

Depends: libcogl15 (>= 1.15.8) but it is not going to be installed

libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.4)

Recommends: libgl1-mesa-dri:i386 (>= 7.2)

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Hi all,,,i get this error. can anyone know what iit is.
[Nexus 6  General] fhem:
try

sudo apt-get update && sudo apt-get upgrade

then

sudo apt-get install -f

then try installing all again
[Nexus 6  General] dashingdon:
first time building on debian 8 64 bit.. started 5.1.1_r13 build at 9:15 am PDT. While it builds , just wanted to check if anyone has few words of wisdom to share about flashing.

Should I be taking any additional precautions other then backing my current ROM ? I have not made any changes to source code just yet. Simply establishing the build process before messing up with code and customization. . What are the potential issues I could face ?

PS : fyi - one thing I learned that this requires openjdk 7. oracle / sun jdk's started throwing compatibility issues.

-dash
[Nexus 6  General] jamieg71:
Just be sure to have the latest gapps and do a clean install. You should be fine, having a good nandroid or restore point is of course always a good idea. Other than that, so long as no grotesque build errors come up, (which if they do, you won't have anything to flash), you'll be fine. Welcome to the party and good luck on your first build
[Nexus 6  General] fhem:
OP Update to 5.1.1_r14

The OP has been updated to 5.1.1_r14.
[Nexus 6  General] haibane85:
Does this work for building in Virtualbox Ubuntu 14.04? I am struggling on building, and I can't find different instructions that would make something like that be an issue.
[Nexus 6  General] GrayBoltWolf:
The procedure should be identical, except for the make command, depending on the number of cores you gave the VM.
[Nexus 6  General] haibane85:
I've got 2 cores I gave it. I'm actually using Brunch because I was trying to build Cyanogenmod before AOSP, but I can't get that to take with Just brunch.

Ends up spitting out the following

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [/home/haibane85/android/system/out/host/linux-x86/obj32/EXECUTABLES/v8_tools_gyp_mksnapshot_arm_host_gyp_intermediates/mksnapshot] Error 1

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

#### make failed to build some targets (01:51:29 (hh:mm:ss)) ####
[Nexus 6  General] rockinroyle:
You should use the make command specified in the op. "Brunch" is a cynogenmod thing that is not setup in aosp's build/envsetup.sh script. They are referring above to the "-j_ portion of " make -j# of threads otapackage" command to compile rom. :thumbup:
[Nexus 6  General] haibane85:
rockinroyle,

I was actually coming hear for help on cyanogenmod with hopes that the systems are similar. I wonder if I could do the make command from AOSP to build Cyanogenmod correctly. Brunch errors out as shown above.
[Nexus 6  General] rockinroyle:
Ahh my mistake then. Not sure but I think it is possible it would work? Not really sure though? I know brunch should work and did for me in the past? Maybe someone with more knowledge of the error you show can chime in? Also did you try running it with the "-v" ? Will probably print a more verbose error which may help someone or even you to figure it out? Good luck!

Edit: also the cynogenmod wiki has tons of useful info about what brunch invokes amongst other tidbits that may help?
[Nexus 6  General] haibane85:
Apparently, there is something wrong with CM12.1. I built AOSP perfectly fine this weekend.
[Nexus 6  General] rockinroyle:
Happens. Cm breaks a lot and can be tough to keep up with.
[Nexus 6  General] dashingdon:
I built from source and trying to simulate through android emulator. Anyone know what does this mean ?

"ko:Invalid system partition image type: yaffs2 (expected ext4)"
[Nexus 6  General] fhem:
I've never played with the emulator but if you Google the line you posted you will see other people have had the same or similiar issue. looks like ramdisk issue or partition image format issue. good luck.
[Nexus 6  General] dashingdon:
Thanks for the response. I actually did the search before posting but none of the threads have a resolution. So was just curious to know if someone here had the similar issue. I just built the ROM based on the instructions so not sure what caused the issue or how to fix it.

On the other hand , do you recommend other way to test drive it before actually flashing ? I already google searched but could not find satisfactory answer.

Thanks in advance..

-dash
[Nexus 6  General] rockinroyle:
Hey. I just actually built a successful build to be run in the supplied emulator. From lunch menu you must select "aosp_arm-eng" rather than for shamu I believe? At least that's what worked for me? I can say however, I typically never do the emulator testing and I don't think a lot of devs do either? As long as you have a working backup to flash through custom recovery in the event of a failure you should be all set to just build for your device? I also must mention that if you have not added anything to the aosp source your build WILL replace a custom recovery with stock recovery which will not allow you to flash your backup. I advise going to original thread that [MENTION=5526655]fhem[/MENTION] posted in op and reading that op as well. There are some diff files in there that will show you how to remove the bits that cause stock recovery to replace any custom recovery you have currently. Straight aosp build without removing those will leave you in a unhappy place with no way restore a previous backup. Good luck and let us know!

Side note: emulator screen shot
[Nexus 6  General] dashingdon:
A huge Thank You. I was not aware that actual Shamu build can not be emulated. after changing the lunch to aosp-arm-eng , I am able to emulate on my linux as well as windows machine. As most of the you are the seasoned developer's you are comfortable flashing on the device .. I am still in learning phase so certainly emulation (any type) helps..

and case in making , I had completely forgotten about the recovery part. I was so frustrated with emulation not working , I was very close on flashing the shamu build directly on the device. So again a huge thank you for saving my phone. (if this happens accidentally , do i just flash twrp using fastboot ? )

now on to the next chapter of actually making some changes. For example , changing the default launcher to Apex. Any pointers to that would be helpful. Thanks again for the help [MENTION=5526655]fhem[/MENTION] and [MENTION=5353592]rockinroyle[/MENTION]
[Nexus 6  General] fhem:
If you cherry-pick the top two commits you will not loose your custom recovery -- if you happen to loose it-- then yes just reflash twrp using fastboot. For now if you want to use apex i suggest you just install from store and make it your default. enjoy.
[Nexus 6  General] istperson:
I've tried to build 6.0.0-r1, flashed it, and it seemed to work except it couldn't see the sim. So I had to flash back to 6.0 factory.

Is it the blobs, I've downloaded the right ones for Marshmallow, or was it just too soon?
[Nexus 6  General] fhem:
I had the same problem. It looks everyone is having the radio/sim issue -- waiting to see who finds a fix first. Then I will update the OP.
[Nexus 6  General] Face_Plant:
I'm attempting to build my first ROM ever using an old HP desktop PC my dad was going to throw away. I installed Fedora 22, got all the build tools, Android Studio, Android SDK, etc installed and did a repo sync, but I'm having problems actually building the ROM. The issue is I have Open JDK 1.8.0 installed and 1.7.0 is required so it terminates the build after ~5 seconds. I attempted to install 1.7.0, but it won't let me because it says it is too old. Does anyone know of a workaround?
[Nexus 6  General] GrayBoltWolf:
You should be able to su -c "dnf install java-1.7.0-openjdk"

Also another note, a ROM build on an older computer will take quite a while. So I would let it build overnight.
[Nexus 6  General] Face_Plant:
Thanks! I'll give that a shot after class.

I don't mind waiting overnight. This PC was free so I'm not gonna complain.

Edit: I managed to get Open JDK 1.7.0 installed and started building. I was super excited when it didn't quit after 5 seconds, but after a few minutes it failed on me again :( This time it's coming up with "Error 126". I searched and "Error 126" seems like it can be caused by missing packages. Here's what I'm seeing in the terminal:

4 warnings generated.
Import includes file: out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/import_includes
Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libcutils_intermediates/import_includes
host C: liblog <= system/core/liblog/logd_write.c
host C: liblog <= system/core/liblog/event_tag_map.c
host C: liblog <= system/core/liblog/fake_log_device.c
Yacc: checkpolicy <= external/selinux/checkpolicy/policy_parse.y
prebuilts/misc/linux-x86/bison/bison -d -v -o out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp external/selinux/checkpolicy/policy_parse.y
/bin/bash: prebuilts/misc/linux-x86/bison/bison: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
build/core/binary.mk:609: recipe for target 'out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp' failed
make: *** [out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp] Error 126
make: *** Waiting for unfinished jobs....

#### make failed to build some targets (02:23 (mm:ss)) ####

Edit #2- never mind. Turns out I forgot to install bison :silly: Time to try again!
[Nexus 6  General] Martend:
Fedora 22??

You will have more success by installing Ubuntu 14.04 LTS and than following this guide.

Also from the official wiki:

The Android build is routinely tested in house on recent versions of Ubuntu LTS (14.04), but most distributions should have the required build tools available. Reports of successes or failures on other distributions are welcome.

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

M
[Nexus 6  General] Face_Plant:
It had been building successfully for a couple of hours when I went to bed last night. I'll check on the progress next time I'm near my laptop (I have no monitor so I'm using remote desktop on my laptop to control it). If it fails again I'll give up and try Ubuntu.
[Nexus 6  General] fhem:
No need for ubuntu ----- I use Linux Mint Rebecca 17.1 (ubuntu base) is very user friendly and works great for building. I use it on three computers w/o any problems. You still need to set up your build environment per this thread. Good luck.

Edit: Just updated to Linux Mint 17.2 Rafaela and all looks good --- uses ubuntu 14.04 LTS as base.
[Nexus 6  General] GrayBoltWolf:
Mint is Ubuntu, while Fedora is a completely different line of distros.
[Nexus 6  General] Face_Plant:
I know there's no need for it, but Ubuntu is tried and true with lots of success stories. I had never heard of Fedora until my dad recommended it. He uses it at work so I figured if I ran into any issues he'd be able to help me out, so I installed it.

I actually kind of like Fedora because the commands are funny. To search/install you say "yum search (insert name here)" or "yum install (insert name here)" lol. I'm sure "yum" stands for something, but I find it amusing for some reason.
[Nexus 6  General] rockinroyle:
Lol. Yum is pretty funny.Pretty much any Linux distribution should have the dependencies for compiling installed or available as packages for download. Ubuntu is what Google uses and just about every tutorial you'll find will be about building on Ubuntu so for that reason its recommended. You can see by my signature I use Slackware 14.1 x86_64 just fine for building. Just not for the faint of heart since any packages outside their preloaded ones(which is few since Slackware by default comes with most libs and packages for compiling software) have to be maintained manually and most likely compiled if not an existing Slackware .t?z package. It's whatever works for you basically!
[Nexus 6  General] Face_Plant:
I just checked on my build and it failed after 7 hours and 48 minutes :mad: :mad: :mad: :mad: Much better than failing after 2 minutes like it used to, but I'm still not happy :mad: :mad: :mad:

**** Fedora. Downloading Ubuntu 14.04 now....
[Nexus 6  General] fhem:
I've been looking at BBQLinux but haven't taken the time to give it a test. Really no reason to everything working great as is --- don't fix what ain't broke LOL :D:good::cool:
[Nexus 6  General] fhem:
[MENTION=1978554]zephiK[/MENTION] & [MENTION=4395895]BeansTown106[/MENTION] Hi guys HELP PLEASE!!!! I'm head banging and it hurts this old retired guys head :D:D. I want to update this thread for building MM but I have one main problem ---- Gapps!!!!! I have sucessfully built and booted up roms using your vendor blobs but I can't get the gapps (zeph or beans) to work properly --- google play services keep's fc'g. I have tried many, many times but no. I have also built and booted up MM roms (WIP) with root and permissive K --- but still can't your gapps to work.

For this thread my goal is to have the minimum commits required to get the rom to boot up and then be able to flash gapps.

I'm feeling pretty dumb right now I have scoured many of the devs githubs and can't figure out what I'm missing.

Thanks in advance for the help and all of the great work you guys do.

Edit: Got them working my rom (WIP) w/ root and permissive k. Not sure which commit did the the trick LOL .
[Nexus 6  General] istperson:
I've used a combination of manually picking from the commits of Benzo (https://github.com/BenzoRom) and jakdillard's Clean AOSP (https://github.com/jakdillard/platform_device_moto_shamu/commits/android-6.0)
[Nexus 6  General] asrr62:
thanks fhem for this guide. i tried first in virtual box but that stuff confusing. i wana sideload windows and a ubuntu distro to make it easier i think.
[Nexus 6  General] michelemascia7:
Hi [MENTION=5526655]fhem[/MENTION] thanks for the guide :) once I synchro the source , I want to build the aosp without the aosp apps, how can I do this? Thanks :)