yashsingh1/xdaforums huggingface dataset:
[Nexus 6  General] hondajohn88:
Hi [MENTION=2746542]Stephen[/MENTION], can you recall which specific file was responsible for your error message

"frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsNumberUtils.java:602: error: cannot find symbol

.config_sms_convert_destination_number_support);

^

symbol: variable config_sms_convert_destination_number_support

location: class array"

This is where I'm stuck at the moment, and I can't seem to locate which file & folder the resource is located.

The block of code calling ".config_sms_convert_destination_number_support);" is looking for it in PhoneBase.java (or something like that), but wouldn't that variable be defined in an .XML file?

I'm kind of stumped at the moment, so any help would be greatly appreciated.

Thanks :)
[Nexus 6  General] Stephen:
I'll see if I can find it when I get home. I worked out what it was, I was cherry-picking an APM and it was putting in the <<< head error into one of the files. When I was cleaning up the file I found I was accidentally deleting the config_sms_convert_destination_number_support from the file. I just cant remember which file it is at the minute!
[Nexus 6  General] hondajohn88:
Thank you, I really appreciate it. I'm trying to add battery & notification lights, and after trying to use git cherry-pick, I decided to edit the files manually too. This build error is the last one (I hope lol) that I need to address. After this I'll tackle the sound volume issue.

Thanks again for your help :)
[Nexus 6  General] Stephen:
Ok have a look at your symbols.xml file in frameworks/base/core/res/res/values. Look and see if you have the following line: <java-symbol type="array" name="config_sms_convert_destination_number_support" /> You may have deleted it accidentally. That is what I was doing when I was cherry picking the APM. It was putting in an <<<<< head line just above it, I was removing the line and removing that string as well accidentally.

In mine it is in line 2077.
[Nexus 6  General] hondajohn88:
Dang it! I'll have to wait until I get home from work...Splashtopp has evidently decided to stop responding on my computer at home. It isn't too stable on Ubuntu :(

Thank you very much for looking into that and getting back to me so quickly. I'll let you know what I find and report back.

Have a great weekend! :)
[Nexus 6  General] Stephen:
No worries, I have actually only been building android for a few weeks and have learnt this all from scratch mainly due to this amazing guide! It is awesome I can now slowly start to help other people! :D
[Nexus 6  General] Scott:
One word...

AWESOME!

That was the intent of this guide... Spark your imagination!

-Scott
[Nexus 6  General] hondajohn88:
That fixed the error, thank you for that.

However, something in the Battery and Notification Lights commit files is causing some other errors that I need to figure out...more missing symbols. Ugh!

I've been able to build an unmodified aosp rom (did that a few months ago) but I've been struggling with this notification lights thing. I guess for now I'll make a clean repo and get the audio working right, then try the notification lights again.

I'll get 'er whipped one of these days :)

Thank you very much for your help :good:
[Nexus 6  General] Stephen:
No worries at all! Glad I could help. I have switched tactics and now building cm12 but making it look like stock Android L! I am also learning github and pushing all my changes to it. If @scrosler has no objections, I am considering releasing an example rom based on my changes and a guide on how to build cm12 as well. It would be very similar layout to this amazing guide, but changed to build cm12! I have all of next week off so I now think I am at a stage were I know enough to publish a guide and get people building the basics.

The only thing I am looking to edit now is the Build number and CyanogenMod version. It is a little different to edit these in cm12. Haven't figured it out yet :(
[Nexus 6  General] hondajohn88:
I finally got it to build with the battery and notification lights added in. And it boots up!

The Battery Notification and Light Settings are in the "Notifications" menu, I got them checked to On...and......No work! lol So much effort and no light :(

BUT, I've learned a lot and I'll still try to get it straightened out, but what a pain to add one feature and finding all the necessary resources and such. Maybe it'll get easier hahaha

Thanks for the help [MENTION=3954676]Stephen.[/MENTION] I have a CM12 repo on my machine, I'll see if I can find the files to modify to get the version and build number.

:):eek:
[Nexus 6  General] Stephen:
It will yes. That is one reason why I switched to cm12. All the features I wanted are added in, including battery light and notifications. It is much easier to make cm12 look like stock Android L than adding everything in I wanted in AOSP!

I would think for the LED lights you would need to make changes to the kernel as well, but I am not sure. Try flashing a kernel that has notification lights and see if it works!

I now have the build number changed properly so it displays LXR22G 5.0.2 - just need to change the CyanogenMod version string now!
[Nexus 6  General] janjan:
You did good. You can share your build, if you don't mind.
[Nexus 6  General] Stephen:
I am planning to over the next day or so. I am currently making a few more changes to clean it up and adding those to my GitHub. I also plan to write a guide similar to this one for cm12 as well, as I found there were a few changes needed to convert from building AOSP. Ok changes are sorted and currently uploading now. Planing on making a thread later today!

I also thought I would make the kernel description a bit more interesting so had a bit of fun with that too!

Edit thread is now up: [ROM][5.0.2][CM12 - Android L][LRX22G] Version 1.0.0 - [8/03/2015]​
[Nexus 6  General] hondajohn88:
Sudden "Duh!" for me regarding your kernel suggestion lol I had a copy of modified Franco Kernel from chroma rom, so I flashed that and sure enough, the battery light started working! Thank you for that suggestion! :good:

There was one line in the packages/apps/settings/src/com/android/settings/cyanogenmod/SystemSettingSwitchPreference.java file that was preventing the build to finish ( [MENTION=439709]override[/MENTION]) for "protected boolean isPersisted()", so I deleted the [MENTION=439709]override[/MENTION]" line and it built.

But, the setting in my settings menu won't stick when I move the slider for Notification Light to "On".

So the battery light works, but the notification light doesn't work yet. I'll have to figure out what "super (content)" that [MENTION=439709]override[/MENTION] is supposed to override. Perhaps that will get the whole package working.

In any event, have you gotten the CyanogenMod version string figured out yet?
[Nexus 6  General] Stephen:
No but I released my ROM anyway! I would like to be able to edit that at some stage :D
[Nexus 6  General] Scott:
Link? I want to check it out :)
[Nexus 6  General] GrayBoltWolf:
So looking forward to an update on building for 5.1. :D
[Nexus 6  General] Scott:
Me too!
[Nexus 6  General] Stephen:
[ROM][5.0.2][CM12 - Android L][LRX22G] Version 1.0.0 - [8/03/2015] - Native LED's

And my guide for building cm12 is stickied under yours here:

[Guide][9/3/2015] Building CM12 for the Nexus 6 Shamu

And I just released a 5.1 build here:	[ROM][★5.1★]New[LMY47D]Android L 5.1 v1.0.0 [10/03/2015] *Beta* - But there are issues with Camera, phone calls and playing music, so until we get the 5.1 vendor blobs its not really a daily driver yet. Just to show people what 5.1 is going to be like.

:D :good:
[Nexus 6  General] Stephen:
[MENTION=426561]scrosler[/MENTION] hey, I will be very shortly side loading the 5.1 zip on to my phone. How do I go about extracting the vendor files so I can add them into my ROM?
[Nexus 6  General] cjkacz:
Plug your phone in to your PC. In terminal CD to device/moto/shamu. Type $ ./extract-files.sh

You should see the proprietary files (aka “blobs”) get pulled from the device and moved to the~/android/system/vendor/moto
[Nexus 6  General] Stephen:
Thanks just finished setting up 5.1 on my phone. I have it rooted un-encrypted and twrp installed. So I will try extracting the vendor blobs now :D

EDIT: @cjkacz extract-files.sh is not in the shamu folder! - I am building AOSP now not cm12 does that make a difference? I can see vendorsetup.sh is that the file for AOSP?

EDIT2: I copieed the device-proprietary-files.txt and extract-files.sh from my CM12 device/moto/shamu folder into my AOSP folder and running it now. It seems to have created a vendor folder and running the extract now. Will see how it goes! As I figured it has not fully copied as it is expecting to see files there for cm12!
[Nexus 6  General] cjkacz:
Sorry I am not sure. I assumed it would be the same concept.
[Nexus 6  General] Stephen:
No worries, that is were CM12 is better, simply extract the vendor files from existing device. Pinging [MENTION=5526655]fhem[/MENTION] to see if he knows how to extract vendor files from a device for AOSP
[Nexus 6  General] fhem:
above my pay grade :D i'm waiting for them to be posted. if you figure it out let us all know. thanks for the effort.
[Nexus 6  General] Stephen:
Ok no worries. Pinging [MENTION=3667193]GROGG88[/MENTION] and [MENTION=3082108]Milly7[/MENTION] to see if there is anyway to extract the vendor files from the device and put them into the rom build folder. I think I may have a cheat way of doing it. I built the rom with the 5.0.1 vendor files. Then went to out/target/product/shamu/system/vendor - deleted the contents, then took the vendor contents of the vendor folder I copied from my device and replaced them, then build a new dirty build. No idea at all if it will work, but we will see!
[Nexus 6  General] GROGG88:
That's pretty much all you can do for AOSP. Unfortunately the extract script is not present for shamu...
[Nexus 6  General] Stephen:
Didn't work, I still cant get camera to work and this time the mobile network wouldn't connect at all! Guess I need to wait for the vendor files to be released :(
[Nexus 6  General] GROGG88:
Lots of changes in 5.1.0... I'm having trouble getting camera working on Nexus 5 right now. Weird because I have updated my vendor blobs and I'm building the kernel from the new sources. Unless the blobs are missing a lib file I would have to guess it's kernel related. I'm going to try the prebuilt kernel later today before chasing further into it. Everything on Nexus 7 is working well so far...

Good luck with Shamu. Like I said, LOTS OF CHANGES!!
[Nexus 6  General] cjkacz:
This may be your answer

https://roostertech.wordpress.com/2013/11/11/building-nexus-5-rom-from-aosp/
[Nexus 6  General] Stephen:
Thanks looking into this now! EDIT no go. Doesnt look to be a generate-packages.sh for Shamu. There is one in the hamerhead folder, I don't know if I can modify that for Shamu

EDIT2: There is an extract-lists.txt which I think could be changed to do what I need to do give me a bit!

Nope looks to be a no go! Has given me a few things to look into further though!
[Nexus 6  General] sykopompos:
N6 bins and factory images are up now
[Nexus 6  General] Stephen:
Just flashed and starting to test my build now! Currently doing first boot :D

Camera works, but still having issues with phone calls. Trying a second build now!
[Nexus 6  General] GrayBoltWolf:
I'm giving it a go.

Initialized a new repo in a different folder for 5.1. Time to see if a noob can make a build.
[Nexus 6  General] Stephen:
[MENTION=426561]scrosler[/MENTION] just wondering do the build tools need to be updated for 5.1? I have everything working except voice calls, they only work when using loud speaker. I am just wondering if I am missing something? I am thinking of starting off with a new build tomorrow and only disabling recovery and encryption and seeing if I still have the same issues.
[Nexus 6  General] GrayBoltWolf:
Yup, the only thing not working so far is the earpiece. Speakerphone on calls works.
[Nexus 6  General] Stephen:
Doesn't seem to be the kernel. They must have messed up the binaries. Guess we will have to wait for somebody to have a look into it and see whats missing!
[Nexus 6  General] GrayBoltWolf:
Can someone explain something to me?

Shouldn't we be able to just download the drivers and the source and compile it together without having to do extra stuff to get it work? It seems silly that we have to do extra steps to get the speakers, YouTube, and Netflix working.
[Nexus 6  General] cjkacz:
I agree. I am running factory images with no issues. In fact I now have HD voice for Verizon. I compiled a build from source and have the same earpiece issue you guys have.
[Nexus 6  General] jakebites:
This is pretty cool. Thanks for the guide!
[Nexus 6  General] sykopompos:
I haven't brought up my n6 build but has been informed it is a missing line in mixer-paths causing the earpiece issue
[Nexus 6  General] fhem:
this -> http://xdaforums.com/showpost.php?p=59432577&postcount=6693
[Nexus 6  General] sykopompos:
Well there is the lines exactly. Makes that easier
[Nexus 6  General] Stephen:
I am compiling a build now, but a couple of people have reported it fixes the issue, with stock vendor 5.1 files and 5.1 radio. This is the setup I will test it with!
[Nexus 6  General] fhem:
thanks for pointing me to that post - great work - and i hope it works.
[Nexus 6  General] Scott:
Updated guide to reflect manifest change to 5.1.0
[Nexus 6  General] Stephen:
One thing I would like to do is add SuperSU and root my ROM. Is it difficult to do that?

Also would like to add persistent adb as well.
[Nexus 6  General] Toneman07:
So, I am relatively new to this and purchased a new laptop with the hopes of being able to learn to build aosp for my phone.

I got UBUNTU installed and started going through your guide.

When i try to save the BASHRC file I get the following errors:

(gedit:4108): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:4108): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.g
nome.SessionManager was not provided by any .service files

Any help would be greatly appreciated.

Thank you!
[Nexus 6  General] Scott:
No, its not hard. [MENTION=3667193]GROGG88[/MENTION] posted his code to do this.

Persistant ADB is just modifying the default.prop in boot. If you need more detail let me know. Sorry to be so short... Been a long week!

What version of Ubuntu?

Sorry guys, Nexus 6 Stock has had me tied up!
[Nexus 6  General] Stephen:
No worries at all mate! Know exactly how you feel! I think I have found the two commits I need from his GitHub for SuperSU.
[Nexus 6  General] tjohnsonjr:
Has anyone had anyone had any issues compiling a clean build? 5.0.2 builds with no issue but 5.1 keeps getting hung up with an error stating that there is an issue with external/jpeg.

: error: out/target/product/shamu/obj/STATIC_LIBRARIES/libjpeg_static_intermediates/libjpeg_static.a: member at 780106 is not an ELF object
external/jpeg/jcapimin.c:58: error: undefined reference to 'jinit_memory_mgr'
external/jpeg/jccoefct.c:289: error: undefined reference to 'jzero_far'
external/jpeg/jccoefct.c:308: error: undefined reference to 'jzero_far'
external/jpeg/jccoefct.c:183: error: undefined reference to 'jzero_far'
external/jpeg/jccoefct.c:191: error: undefined reference to 'jzero_far'
external/jpeg/jccoefct.c:427: error: undefined reference to 'jround_up'
external/jpeg/jccoefct.c:429: error: undefined reference to 'jround_up'
external/jpeg/jcdctmgr.c:367: error: undefined reference to 'jpeg_fdct_float'
external/jpeg/jcdctmgr.c:367: error: undefined reference to 'jpeg_fdct_islow'
external/jpeg/jcdctmgr.c:367: error: undefined reference to 'jpeg_fdct_ifast'
external/jpeg/jchuff.c:595: error: undefined reference to 'jpeg_natural_order'
external/jpeg/jchuff.c:287: error: undefined reference to 'jpeg_natural_order'
external/jpeg/jcmarker.c:153: error: undefined reference to 'jpeg_natural_order'
external/jpeg/jcmaster.c:350: error: undefined reference to 'jdiv_round_up'
external/jpeg/jcmaster.c:353: error: undefined reference to 'jdiv_round_up'
external/jpeg/jcmaster.c:102: error: undefined reference to 'jdiv_round_up'
external/jpeg/jcmaster.c:105: error: undefined reference to 'jdiv_round_up'
external/jpeg/jcphuff.c:250: error: undefined reference to 'jpeg_natural_order'
external/jpeg/jcprepct.c:112: error: undefined reference to 'jcopy_sample_rows'
external/jpeg/jcprepct.c:112: error: undefined reference to 'jcopy_sample_rows'
external/jpeg/jcprepct.c:112: error: undefined reference to 'jcopy_sample_rows'
external/jpeg/jcprepct.c:221: error: undefined reference to 'jcopy_sample_rows'
external/jpeg/jdapimin.c:59: error: undefined reference to 'jinit_memory_mgr'
external/jpeg/jdapimin.c:77: error: undefined reference to 'jinit_marker_reader'
external/jpeg/jdapimin.c:80: error: undefined reference to 'jinit_input_controller'
external/jpeg/jdapistd.c:42: error: undefined reference to 'jinit_master_decompress'
external/jpeg/jdapistd.c:96: error: undefined reference to 'jinit_master_decompress'
external/jpeg/jdapistd.c:230: error: undefined reference to 'jmin'
external/jpeg/jdapistd.c:237: error: undefined reference to 'jinit_color_deconverter'
external/jpeg/jdapistd.c:238: error: undefined reference to 'jpeg_calc_output_dimensions'
external/jpeg/jdapistd.c:239: error: undefined reference to 'jinit_upsampler'
external/jpeg/jdapistd.c:244: error: undefined reference to 'jpeg_decompress_per_scan_setup'
collect2: error: ld returned 1 exit status
make: *** [out/target/product/shamu/obj/SHARED_LIBRARIES/libjpeg_intermediates/LINKED/libjpeg.so] Error 1

#### make failed to build some targets (01:21:10 (hh:mm:ss)) ####
[Nexus 6  General] 530farm:
[MENTION=426561]scrosler[/MENTION] Question... For installing the proprietary binaries you say install them to the root 'AOSP ' folder. Do you just move the 3 .tgz files into the AOSP folder, or do you need to extract the .sh files and move them to the AOSP folder?

EDIT: Another question. For adding the AOSP folder to github to eventually learn how to add features, would following this work? I ask as it seems to add a .git folder to the AOSP folder, which not sure if that will cause issues.

https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/

Thanks
[Nexus 6  General] Scott:
After you extract the binaries you need to move to /AOSP/

Depending on the name of your Source directory '

Should look like this ../AOSP/Vendor/
[Nexus 6  General] 530farm:
Thanks for the response but I was a bit confused. are you saying to move the extracted files from the .tgz file to /AOSP/vendor?

EDIT: NVM, i see what you're saying. That after running the .sh scripts it will isntall to /vendor. But would still be interested in help on the github question.

Any idea on the github question?
[Nexus 6  General] 530farm:
failed to build some targets

Edit: NVM got it to build.

Are those changes you mentioned in post 2 something that needs to be done before or after building?
[Nexus 6  General] Scott:
UPDATE! Wooot!

Update guide to: android-5.1.0_r3
[Nexus 6  General] Swanseatom:
I'm not the best at explaining things but...

You need to extract the .tgz files then run each .sh script using "./SCRIPTNAME.sh" You will then have to accept the terms and it will extract all the binaries/files etc to a folder called Vendor for you. So you end up doing it 3 times. Moto, Qcom, Broadcom.

Hope that helps.
[Nexus 6  General] 530farm:
I actually did end up realizing you needed to run the scripts. Thanks for the follow up though.
[Nexus 6  General] Toneman07:
Ubuntu 14.04.2

Why did this lose the Sticky?????
[Nexus 6  General] efrant:
It's off-topic, but it is explained in the sticky roll up.
[Nexus 6  General] chrischriswtf:
So, I've gotten it to build successfully, but for the life of me I can't make heads or tails of the diff you posted. I'm a Linux noob, so if this is a case of me not understanding linux enough I'll go look elsewhere for help. But, if anyone could link me to an ELI5 to help with applying these patches, I'd be really appreciative!
[Nexus 6  General] Scott:
The patch file I posted is a from a "repo diff command"

I explained a couple times how to read it... Its pretty easy if you can see it in color.... I will try to find one in color so you can see how to read it...
[Nexus 6  General] Stephen:
It would be great to get more info on the binaries added into the tutorial. This is something I am struggling with, adding in all the missing fixes eg VoLTE etc.
[Nexus 6  General] Scott:
Im not sure what is missing for VoLTE. The more experienced AOSP developers will have to chime in.
[Nexus 6  General] sykopompos:
https://github.com/Chroma-Aosp/vendor_moto_shamu
[Nexus 6  General] Scott:
Thank you sir! Your help is always appreciated!
[Nexus 6  General] sykopompos:
I just put frank on a long hiatus so I think I might hop in and start adding the more advanced stuff around so people can start going farther
[Nexus 6  General] Scott:
That would be really cool!

If you need to create a thread I can certainly link to it! :good:

Good teamwork as always! :highfive:
[Nexus 6  General] fhem:
The vendor folder [MENTION=1050103]sykopompos[/MENTION] posted # 320 works - I got VoLTE using his vendor/moto/shamu/. What we could use is a tut on how to pull and build that folder........please!!!!!!! Also looking for tut/direction on how to pull info from stock rom to build rom updater script. Thanks to all for the help.
[Nexus 6  General] sykopompos:
I actually just updated that vendor about an hour ago with a lot newer props.

As far as how to modify a manifest and pull in other projects and the like.

I'm gonna be starting a advanced compiling yourself write up for [MENTION=426561]scrosler[/MENTION] to add that goes into the manifest, making your own vendor, pulling in things like busybox and so on in the new few days
[Nexus 6  General] fhem:
so you did lol - thanks - I knew I should have forked it :good: I look forward to learning from your write up --- thanks
[Nexus 6  General] mmcneil:
Hi. I just cloned Chroma-Aosp/vendor_moto_shamu and now I'm getting the following error:

build/core/tasks/vendor_module_check.mk:61: *** Error: vendor PRODUCT_COPY_FILES file "vendor/moto/shamu/lib/libflacencoder.so:system/lib/libflacencoder.so" has unknown owner. Stop.

Would someone mind giving me a hand with this? I chown'd the entire vendor directory, and the local permissions appear to be correct:

ll vendor/moto/shamu/lib/libflacencoder.so

-rw-r--r-- 1 mmcneil mmcneil 151K 28.03.2015 13:33 vendor/moto/shamu/lib/libflacencoder.so

Thanks,

MIke
[Nexus 6  General] fhem:
He just reverted his latest two commits - i did mine before he made those two commits and mine worked ok
[Nexus 6  General] mmcneil:
Thanks for getting back. I tried deleting and cloning the repo again, but I get the same error message. Any ideas?

Thanks,

Mike
[Nexus 6  General] fhem:
Not sure you using this commit --------- https://github.com/fwhem/platform_build1/commit/aef88e57aa6cbd4fbb4c4f89ee23fe9202763bd5
[Nexus 6  General] sykopompos:
Yup, u need that commit to bypass the silly vendor check where it has to match the one in the device tree
[Nexus 6  General] mmcneil:
As a matter of fact I'm not. But looking at the commit, it looks like I need to. Thanks fhem!

Mike
[Nexus 6  General] Stephen:
A step by step guide on how to build the vendor folder from scratch, add busy box and superSU would be simply awesome. This is what I am working on at the minute. I have taken a break over the last few days from AOSP, as it was giving me a headache, Shame google can't include everything you need in the stock binary files. I might try a new build soon, I am going to have a 4 day weekend, next weekend, so it would be a good chance to get back into building again!
[Nexus 6  General] sykopompos:
All those are actually pretty easy to add