yashsingh1/xdaforums huggingface dataset:
[Nexus 6  General] mmcneil:
That did the trick! Build completed in less than an hour! Now, here's the other challenge; looks like I'm having an issue with GPS. I have an app that automatically detects my location, but it doesn't seem to be working. When I try to have the app detect my location, I get:

"We cannot determine your location. Either your GPS is disabled or your location is temporarily unavailable."

Do I need to grab the Nexus 6 binaries and / or the Nexus 6 device tree from google?

Thanks,

Mike
[Nexus 6  General] sykopompos:
The only changes you need in the device tree would be to turn off the forced encryption really. Did you grab the reverted n6 binaries? Don't know if they were reverted by the time you were compiling but gps works fine for me
[Nexus 6  General] ben_pyett:
Would be great is these final steps were added to the details given in #1

Sent from my Nexus 6
[Nexus 6  General] mmcneil:
Yeah, I grabbed them. git log shows e3166b53602dafa6cbef61ee4c54dce5702fccb4 (Revert updated bins, have missing sim card bug with them) What about the settings in GPS.conf ?

sykopompos, can you hit me up on hangouts? shakir.abdul.ahad09@gmail.com I'm working with Despair on a ROM project and I had a couple of questions for you if you have time.

Thanks.
[Nexus 6  General] sykopompos:
Unfortunately I won't be able to talk till tomorrow night. I'm actually already in bed and gotta be up at 4 am to drive 2 hours then work 12 to drive back 2
[Nexus 6  General] mmcneil:
Ok, no prob. Hit me up when you can, I really appreciate it.

Thanks.
[Nexus 6  General] Scott:
Guys, please hit thanks for [MENTION=1050103]sykopompos[/MENTION]!

He has provided a wealth of info, for beyond what I could provide, yet and gets no "Thanks" love!
[Nexus 6  General] sykopompos:
Eh, I don't share info for the thanks :p. I learned most of this stuff years ago then a few year hiatus, when I came back though I had to relearn a lot of it all over again.

For someone starting out, a lot of this can all be overwhelming to learn and a lot of the info is out there but scattered all around so if sharing knowledge helps get a few more aspiring android devs in, then I'm all for helping out, who knows, that aspiring Dev that learns here today might create the next cool feature.
[Nexus 6  General] Scott:
If you on an i7 Mobile, I would not go beyond 8 worker threads... I would actually use 4.

i7 Mobile, believe it or not it only a dual core with hyper-threading.
[Nexus 6  General] ben_pyett:
I suspect it's a quad core as it gives 8 logical view in taskmgr and htop, although the fan was beginning to sound like a jet engine/washing machine with a full load on spin cycle

Might try 8 next time, could the errors be related to worker thread setting? Or are they unrelated.

Sent from my Nexus 6
[Nexus 6  General] Scott:
They can be directly related which is why I would start at lowering there.

Go with 8 then if that doesnt work go with 4.
[Nexus 6  General] mmcneil:
I'm trying to add versioning to my AOSP build, but I'm having a little trouble. I have a common.mk file in my vendor/myrom/product folder, but it's not being read. What's the correct way to go about doing this? Basically, I want my ROM zip file to be something like myrom-aosp-<date>-<time>.zip As always, thanks in advance.

Mike
[Nexus 6  General] fhem:
Edit /build/core/Makefile e.g. https://github.com/craigacgomez/platform_build/commit/f8bc517b47afef50df9cf1aa540c567c77ba7070 or https://github.com/grogg/platform_build/commit/f88e11356be2670e54b9adffc8615a138488a858
[Nexus 6  General] davall:
look at dmesg

maybe the linker was killed with out of memory.

So you need to add more ram (e.g. swap file)
[Nexus 6  General] GrayBoltWolf:
Mobile i7s are 4 physical cores with 8 v-cores after hyperthreading.

Running with 8 cores is no issue.

http://en.m.wikipedia.org/wiki/List_of_Intel_Core_i7_microprocessors
[Nexus 6  General] Scott:
YEah, I am talking about new Haswell chips...

Like this one: http://ark.intel.com/products/81015/Intel-Core-i7-4510U-Processor-4M-Cache-up-to-3_10-GHz

Unless the chip has the "Q" at the end then it is only dual core.
[Nexus 6  General] mmcneil:
[MENTION=5526655]fhem[/MENTION], thank you so much. I really appreciate you getting back to me on this ;)

Mike

---------- Post added at 04:47 PM ---------- Previous post was at 04:20 PM ----------

[MENTION=426561]scrosler[/MENTION], can you quickly explain how to apply the diff / patch file that fixes the Browser crash, location services, YouTube / Netflix, recovery issues you described? The location services problem has been driving me nuts. ;) Thanks!

Mike
[Nexus 6  General] fhem:
[MENTION=426561]scrosler[/MENTION], can you quickly explain how to apply the diff / patch file that fixes the Browser crash, location services, YouTube / Netflix, recovery issues you described? The location services problem has been driving me nuts. ;) Thanks!

Mike[/QUOTE]

First let me say that your question has already discussed/answered by [MENTION=426561]scrosler[/MENTION] and others on this thread. Read and digest please!!!

Now I will give you some help:

YouTube/Netflix --- use [MENTION=6420954]sykop[/MENTION]omos vendor files and this -> https://github.com/fwhem/platform_build1/commit/f350715c2b2ef854f438b38abb0a028a17ce62da

Remove stock recovery from ota zip (this is not the same as his but works) --->>> https://github.com/fwhem/platform_build1/commit/a34395ba4b4764fe3cc5f302075cf1d0cfc52a5f and https://github.com/fwhem/platform_build1/commit/266383b341ea8b052f0ac072e20dfc0576c237b0

For the location services look at his dff below:

go to frameworks/base/core/res/res/values/config.xml --> find "config_locationProviderPackageNames" at about line 946 +/- will be diff location on newer tags.

under that add --> <item>com.google.android.gms</item>

=============

project frameworks/base/

diff --git a/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.jpg b/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.jpg

index 03a14c0..9ab8944 100644

Binary files a/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.jpg and b/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.jpg differ

diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml

index 8006659..cfd55b1 100644

--- a/core/res/res/values/config.xml

+++ b/core/res/res/values/config.xml

@@ -946,6 +946,7 @@

-->

<string-array name="config_locationProviderPackageNames" translatable="false">

<!-- The standard AOSP fused location provider -->

+ <item>com.google.android.gms</item>

<item>com.android.location.fused</item>

</string-array>

==================

The rest of the diffs can be handled the same way or you can troll github and find the commits. He has provided a text file of the diffs so you can simply cut and paste. I hope this helps.

Fred
[Nexus 6  General] mmcneil:
First let me say that your question has already discussed/answered by [MENTION=426561]scrosler[/MENTION] and others on this thread. Read and digest please!!!

Now I will give you some help:

YouTube/Netflix --- use [MENTION=6420954]sykop[/MENTION]omos vendor files and this -> https://github.com/fwhem/platform_build1/commit/f350715c2b2ef854f438b38abb0a028a17ce62da

Remove stock recovery from ota zip (this is not the same as his but works) --->>> https://github.com/fwhem/platform_build1/commit/a34395ba4b4764fe3cc5f302075cf1d0cfc52a5f and https://github.com/fwhem/platform_build1/commit/266383b341ea8b052f0ac072e20dfc0576c237b0

For the location services look at his dff below:

go to frameworks/base/core/res/res/values/config.xml --> find "config_locationProviderPackageNames" at about line 946 +/- will be diff location on newer tags.

under that add --> <item>com.google.android.gms</item>

=============

project frameworks/base/

diff --git a/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.jpg b/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.jpg

index 03a14c0..9ab8944 100644

Binary files a/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.jpg and b/core/res/res/drawable-sw600dp-nodpi/default_wallpaper.jpg differ

diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml

index 8006659..cfd55b1 100644

--- a/core/res/res/values/config.xml

+++ b/core/res/res/values/config.xml

@@ -946,6 +946,7 @@

-->

<string-array name="config_locationProviderPackageNames" translatable="false">

<!-- The standard AOSP fused location provider -->

+ <item>com.google.android.gms</item>

<item>com.android.location.fused</item>

</string-array>

==================

The rest of the diffs can be handled the same way or you can troll github and find the commits. He has provided a text file of the diffs so you can simply cut and paste. I hope this helps.

Fred[/QUOTE]

Thanks Fred, once again. For the record, and I probably should have clarified this in my initial post, I was asking if there was a way to apply the patches without having to hand edit each file; ie. the repo command, etc. My first inclination was to do exactly that ;) Please accept my apologies for not thoroughly searching the thread.

Mike
[Nexus 6  General] fhem:
No problem Mike -- I may have misunderstood your question -- FYI -- hitting the thanks button is always appreciated by all who try to help with answers to your questions on the threads.
[Nexus 6  General] 530farm:
[MENTION=5526655]fhem[/MENTION] Sorry for the probably dumb question. But just following up on those fixes you posted. For those github links, how do you apply them? Do you just have to search through your local files and make the corrections manually based on matching what is shown on those links? Or is there an easier way like syncing a specific commit(very new to github and trying ot understand it more)?
[Nexus 6  General] sykopompos:
Thanks Fred, once again. For the record, and I probably should have clarified this in my initial post, I was asking if there was a way to apply the patches without having to hand edit each file; ie. the repo command, etc. My first inclination was to do exactly that ;) Please accept my apologies for not thoroughly searching the thread.

Mike[/QUOTE]

I so need to get that vendor part up since this can be done with a overlay from vendor. BTW, u missed a p ?
[Nexus 6  General] fhem:
I learned by reading, trial and error and more reading and trial and error ----- I am still a noob and still learning , here's a start for you ---- > http://xdaforums.com/showthread.php?t=2763236

---------- Post added at 06:14 PM ---------- Previous post was at 05:58 PM ----------

[MENTION=1050103]sykopompos[/MENTION]

I so need to get that vendor part up since this can be done with a overlay from vendor. BTW, u missed a p [/QUOTE]

Sorry about that but what do expect from an old guy born in house at 903 W. Sommerset ST, 19133 in 1945. :D;) .. Time to get the Cannondale's out yea!!!
[Nexus 6  General] mmcneil:
Hey everyone. I was able to complete a build from source, however, I'm have two issues that I hope someone can help me with:

1. During the initial setup, when I'm asked to restore my apps from the playstore, I get and error that says "Cannot restore from backup, try again". If I click skip, then the installation continues then begins to restore my apps.

2. I can get SuperSU to work... I flashed UPDATE-SuperSU-2.46 in TWRP, then the playstore version gets installed automatically.

Thanks in advance!

Mike
[Nexus 6  General] chrischriswtf:
Is there a way to add the necessary files to allow a T-Mobile device to access the 700Mhz band and VoLTE? Basically, the proprietary stuff from the "M" build.
[Nexus 6  General] sykopompos:
Nope, it is a trade secret ?
[Nexus 6  General] chrischriswtf:
Seriously? Dang. Oh well! At least I finally figured out how to read and apply changes using the diff files. I really need to do this stuff more often :D
[Nexus 6  General] sykopompos:
Nah, just playing. My vendor files were posted earlier. If u are in a band 12 area, u will get it with those
[Nexus 6  General] chrischriswtf:
Oh, sweet! I'll read back and use those then. One more question for now; with the Add QCOM targert-specific cong & helper macros changes, is that under the AOSP/Build/Core directory? I'm guessing since the directory in the github has the folder as "android_build", the path I should take seeing as I don't have an android_build folder would just be Build. Or am I looking in the wrong area?
[Nexus 6  General] sykopompos:
That would be platform_build (some people rename it to android instead of platform) which is the whole build folder
[Nexus 6  General] chrischriswtf:
From the root folder AOSP, could that just be labeled as "build" then? I did a search for both Android_build and platform_build and neither of those showed up. Sorry for the noob question; just want to make sure I make the changes to the right files
[Nexus 6  General] fhem:
yes it is the build folder just replace _ with / gives you the path -- open teriminal in build folder and cherry-pick the commit------->http://xdaforums.com/showthread.php?t=2763236
[Nexus 6  General] chrischriswtf:
Alright, got it all built and flashed. Everything's good so far! For future builds, is there a way to compile with Google applications included? And where should I obtain the Google apps? The Cyanogen packages are kind of old and not all the Google apps are there in them.
[Nexus 6  General] sykopompos:
You could build them in. Also, must people use banks gapps
[Nexus 6  General] mmcneil:
UPDATE; I was able to fix the root issue with a new set of vendor and device folders (thanks to sykopompos for providing them on github). Basically now, I just need to sort out the weird "Cannot restore from backup, try again" when trying to restore my apps during the initial setup. I've tried using different GApps, but I get the same message. If anyone could lend a hand with that, I'd appreciate it.

Thanks,

Mike
[Nexus 6  General] fhem:
take your pick http://xdaforums.com/android/software/gapps-consolidated-gapps-thread-t3064693
[Nexus 6  General] sykopompos:
It isn't the gapps, you have to provide a provider for it. Most of us do it in a static build time overlay https://github.com/The-Ancile-Proje...ages/SettingsProvider/res/values/defaults.xml
[Nexus 6  General] fhem:
Thanks for the info LOL now i have to figure out how to incorporate static build time overlays ----- new learning experience good thing I'm retired :D
[Nexus 6  General] sykopompos:
Been meaning to make a write up about it but you can do it in the device tree, just copy that whole file and put it in the same structure and placement except in your device tree's overlay folder. It will pull it right into the build
[Nexus 6  General] fhem:
I'm a little slow --- It will take me awhile to figure out the diff vendorsetup.sh's and make calls but I will get there :confused: . I am looking at (rascarlo, ayysir, zephiK, and your vendor_frank) and I can see they are doing things pretty much the same??? I'm just missing the switch to turn on the bulb in my old brain.............:D:good: Thanks again.
[Nexus 6  General] sykopompos:
It isn't too hard, let me know if you need any help
[Nexus 6  General] mmcneil:
Thanks sykopompos!! Not trying to be pushy at all, but do you have any ETA for the write up on setting up the vendor folders? From what I can see, it makes life a lot easier ;) Again, I appreciate all of your help.

Thanks,

Mike
[Nexus 6  General] fhem:
I can't see it!! Where is the call from ------> source build/envsetup.sh to add ------> vendor/frank/vendorsetup.sh lunch combos ??? I can follow what happens from there just can't get there :confused::confused: What am I missing?? Thanks
[Nexus 6  General] sykopompos:
You need to make a androidproducts.Mk file, the vendor setup pulls from there and then pulls the individual products which are the names of your product Mk files
[Nexus 6  General] sykopompos:
A bit of a write up on selinux for everyone https://plus.google.com/+SykoPompos/posts/G5k1JkAge9M
[Nexus 6  General] Xileforce:
hmmm. after running repo sync it goes for awhile then says "error: Exited sync due to fetch errors" any ideas?
[Nexus 6  General] Scott:
Bad connection? Server overload?

Can you screenshot the terminal window? I have never seen that error.
[Nexus 6  General] Xileforce:
here ya go. and I've got like 50mbs down and 5 up so it shouldnt be an issue. Also it doesn't add any files to the directory i specified as it downloads. Is that normal? also it stops at a differrent place each time.

---------- Post added at 04:47 PM ---------- Previous post was at 04:40 PM ----------

Also I'm running buildbuntu. Idk if that's why it doesn't work. For instance, it already had the bin folder made and that bashrc file already had the export thing added.

---------- Post added at 05:26 PM ---------- Previous post was at 04:47 PM ----------

OK so it seems that running repo sync -f fixes the issue. Mines been going far longer than it ever has before. Hope that helps someone else. I found that solution on an old XDA thread.
[Nexus 6  General] Scott:
Hmmm...

Are you in a VirtualBox?

Sometimes virtual boxes can cause weird network errors as a well.

I never used Buildbuntu but I did see it on distorwatch. Also make sure that the build tools are upto date. "The distro may not be Lollipop friendly?"

Also, sometimes you need to adjust the TCP connection limits.

At 50 Meg down the repo should take about 50 to 60 minutes to sync. I have done it all to many times, lol
[Nexus 6  General] Tikerz:
Sorry, noob here. I have it building right now. What am I supposed to do with the code in post #2? Thanks.
[Nexus 6  General] Scott:
Modify the source code. If you dont its not a HUGE deal... Its just a minor modification as noted in Post #2.

However, be warned... You need to flash SuperSU right after the ROM or you WILL loose your custom recovery.

One of the edits in that god awful mess is the edits to remove the stock recovery and to pre-root the boot image. I dont think that will be needed on the newer SuperSU's though.

However the recovery replacement can be taken care of flashing SuperSU.

Or just let it finish then go in and make all the edits. And build again without make clean and it will just rebuild the edited code.
[Nexus 6  General] Scott:
Wow, they did it, lol

Thanks man!

This is my first sticked thread, lol....

Nearly 25,000 posts, 55k+ Thanks and 1 sticky thread. This makes my day!
[Nexus 6  General] garyd9:
Yes. It's still xda-

DEVELOPERS

. Actually, I'm wondering how you'd feel about moving this thread out of 'general' and into "developer discussion." While it's not "advanced" dev discussion, it IS discussion about development.

The only drawback (or maybe not) is that dev-discussion has minimum post requirements... Oh, and the thread would get pruned on occasion to remove the "off topic" cruft (with heavy handed moderation.)

Gary
[Nexus 6  General] Scott:
I think dev-discussion would take it too far away from where I wanted it.

I wanted it easily accessible for everyone and some may be put off on the fact that its in the Dev Only forum. Ya know?
[Nexus 6  General] Xileforce:
now ive got a new issue :(

here is what happens when i run lunch.

android@builduntu:~/Onyx$ source build/envsetup.sh

android@builduntu:~/Onyx$ lunch

You're building on Linux

Lunch menu... pick a combo:

1. aosp_arm-eng

2. aosp_arm64-eng

3. aosp_mips-eng

4. aosp_mips64-eng

5. aosp_x86-eng

6. aosp_x86_64-eng

Which would you like? [aosp_arm-eng] aosp_shamu-userdebug

find: `vendor': Permission denied

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

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

** Do you have the right repo manifest?

so i tried changing vendor folder to permissions 777 and now it doesnt say permission denied...but it still says everything else.
[Nexus 6  General] EmptyGODFATHER:
Have you tried syncing again with repo sync?
[Nexus 6  General] allenjthomsen:
So am i correct on assuming i just need my propriotary sources in vendor then do repo sync and i should be able to build for note 4
[Nexus 6  General] cobyman7035:
Wow… way beyond my scope

Via my NeXus™ 7FHD on XDA Premium app
[Nexus 6  General] EmptyGODFATHER:
Thanks for the help! I eventually figured it out, now I am exploring what else I can change. One question I did have is to rename the rom do you edit the build.prop in the out folder before making the rom or is there a better place to do that?
[Nexus 6  General] Scott:
Honestly man, you may want to consider switching Linux builds. Ive never seen all these issues before. Im not 100% sure what to say. You could also try deleting the current repo sync and starting with a fresh sync.

You would also need a manifest and make file for the Note 4. Thats not included in the AOSP chain, only Nexus files are.

It depends what you want to change. Give me an example...
[Nexus 6  General] EmptyGODFATHER:
The build number I think is changed in the build.prop as for the model number I am unsure if that is in the same file or somewhere else. Also, I have a working AOSP Rom thanks to your guide! I did miss something since my recovery is bye bye now...Time to go back through my code and compare!
[Nexus 6  General] Scott:
Ok, I am assuming you dont want to have "AOSP on Shamu" and would prefer it to say "Nexus 6" or something else...

That is actually in the make file for shamu. If you look at my example edits in post #2 you will see what I had to mode for Deb and Flo to be "Nexus 7"

So you should review that to edit out the recovery codes and use it to edit the make file for shamu.
[Nexus 6  General] Scott:
HEre is the example for Nexus 7

[B]project device/asus/deb/[/B]
[B]aosp_deb.mk[/B]

PRODUCT_NAME := aosp_deb
PRODUCT_DEVICE := deb
PRODUCT_BRAND := Android
[B][I][COLOR="Red"]-[/COLOR]PRODUCT_MODEL := AOSP on Deb
[COLOR="Green"]+[/COLOR]PRODUCT_MODEL := Nexus 7[/I][/B]

Like I stated above though, you need to edit aosp_shamu.mk and you should find the gold. I have not done it myself. Too lazy, lol
[Nexus 6  General] Xileforce:
ok im going to try it on lubuntu instead of buildbuntu. So far its going a lot smoother. will let you guys know if it works!
[Nexus 6  General] Scott:
Lubuntu is fine, I have built on that.

Any 14.10 versions sucked but any 14.04 legit ubuntu's were all fine.

I actually use Linux Mint - MATE Edition.
[Nexus 6  General] sykopompos:
I got everything exploding out my head and just trying to find the time to sit down and write it up
[Nexus 6  General] Stephen:
When you get your thread sorted, I will download the latest source code over the next day or so and try it out for you! Can you add in a bit on adding busy box and SuperSU as well? I got superSU added and could see it running during the install, but when I went into the ROM it was never there. I was never able to get busy box added at all!
[Nexus 6  General] mmcneil:
Hi Stephen, I thought I'd chime in here;

Busybox is really easy to add. You really only have to clone the source to external/busybox. It's bionic, so it builds automatically. You can clone the one from BrokenOS, Chroma, etc. Here's a link to my github:

https://github.com/Outqast/external_busybox

Let me know if you have questions. Lastly, I too am interested in building in SuperSU, so let me know what you find.

Thanks,

Mike
[Nexus 6  General] fhem:
git

[MENTION=2746542]Stephen[/MENTION] & [MENTION=1623684]mmcneil[/MENTION] I got busybox and supersu working thanks to Gogg88 (his grogg github). I need to clean up my vendor_noobbuilds repo I borrowed from [MENTION=1050103]sykopompos[/MENTION] but all is working. https://github.com/fwhem/platform_vendor_noobbuilds/commits/NOOBBUILDS and https://github.com/fwhem/platform_build1/commits/NOOBBUILDS

04/07/2015 I broke my github. Under construction LOL

04/09/2015 Fixed finally.
[Nexus 6  General] Stephen:
I am working on a stock firmware build at the minute with some nice features added in! One thing I am looking for is the notification quick pull down. Do you know of a systemUI that has only this mod added in? I would love to diff it and port it accros to my build!
[Nexus 6  General] lbxmobbin_1:
need some help

getting this error when trying to make otapackage

Import includes file: out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/import_includes

host C: mkbootfs

Edit..

Solved the problem had to install ma

Now its building and hope it goes good