yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] something15525:
Alright, well I didn't change anything in there...also why is it saying the kernel version is cyanogenmod? Shouldn't it just be a stock AOSP kernel?

Took a look in that file and didn't see anything out of the ordinary, not that I would even know what to look at...these are source files, and they shouldn't be modified if I'm right. So unless this is because of some change I made related to dream's tutorial, I don't know what happened. The whole kernel thing is really confusing me too. Lol
[Samsung Galaxy Nexus] ÜBER™:
Hmm maybe you initialized the wrong repo? should of been something like

repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.1_r1
[Samsung Galaxy Nexus] something15525:
Alright, well I'm just going to try another build from scratch again. I'll start with that line. Lol.
[Samsung Galaxy Nexus] ÜBER™:
Delete you current source folder, then create a new one. then once initialized you can just

repo sync -j* *being the number of jobs/double the amount of cores you have*

Should speed things up a bit ;). Then go ahead and start the tutorial on dreams site over and make sure you follow it to the T. Most things you are just pasting.. not replacing unless it says so, just keep that in mind. Good luck.
[Samsung Galaxy Nexus] something15525:
Thanks man. So one more thing. I am following this tutorial:

http://www.dreamsforgotten.net/gnexbuild.html

I am following the Android 4.2 Jelly Bean section. The question I have is this:

1. There is a section above the Android 4.2 Jelly Bean section named: Android 4.1.2 Jelly Bean.

2. I was told that I didn't need to follow anything above the Android 4.2 Jelly Bean section.

3. Dreams then told me that I was supposed to follow the recovery section of the Android 4.1.2 Jelly Bean section.

4. Do I need to follow anything else from there? From what I understand the device files are now included in the AOSP source for toroplus.

Thanks!
[Samsung Galaxy Nexus] ÜBER™:
The only thing you need to do that isnt already in the 4.2 tutorial is deleting the recovery folder in the zip when you make otapackage -j*. As well as removing two lines where it extracts "recovery" in the updater-script that is it. Nothing else. Then you should be golden.
[Samsung Galaxy Nexus] something15525:
Yeah, I was wondering about one of those lines, seems to be wrong or maybe I just don't know what I'm talking about, you tell me. It says to remove these two lines from the updater-script:

1. package_extract_dir("system", "/system");
2. set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");

The 2nd one seems fine, but I looked in the updater-script and thought to myself: "Doesn't the first line extract the system folder into system? And then I saw this line:

package_extract_dir("recovery", "/system");

Shouldn't I be getting rid of this line instead?
[Samsung Galaxy Nexus] ÜBER™:
YES, get rid of the recovery line not the system line. :D
[Samsung Galaxy Nexus] something15525:
Awesome! Glad I'm finally learning some stuff here. Thank you! :laugh:
[Samsung Galaxy Nexus] dreamsforgotten:
Wow i did that...

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] something15525:
You did:

package_extract_dir("system", "/system");

or:

package_extract_dir("recovery", "/system");?
[Samsung Galaxy Nexus] dreamsforgotten:
System lulz ...

Not really it's recovery

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] something15525:
Hey, so at the end of all these edits, are these the steps i need to perform?

1. source build/envsetup.sh

2. lunch

3. pick toroplus (i think its #14)

4. make otapackage -j# (where # is double the number of cores i have)
[Samsung Galaxy Nexus] ÜBER™:
Almost...

. build/envsetup.sh (yes there is a space between . and build)

Lunch

Select the # for Full Toroplus

Then make -j* when its done building then you do make otapackage -j*

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] mwalt2:
What is the reasoning of doing the make before the make otapackage? I've only ever done make otapackage, so I'm curious.
[Samsung Galaxy Nexus] jboyer0000:
I usually do make -j4 otapackage and do it all in one shot:D
[Samsung Galaxy Nexus] IT_Blackbelt:
Theres some changes you need to make to the build folder, like turning off vendor verification when you add your own, also the No resource found error means there is something coded wrong, it tells you the file and the lines, you just have to figure out where the error actually starts.

---------- Post added at 10:04 AM ---------- Previous post was at 10:03 AM ----------

make with no -j only uses 1 core, and will stop on an error,

to me, make -j4 and make otapackage -j4 do the same thing but otapackage just zips it up for you,
[Samsung Galaxy Nexus] exb0:
Does anyone know where I can find the file to modify LCD density ? I'd like my roms to be built with 240dpi and not 320. I've been searching up and down and I can't find it in the source folder.
[Samsung Galaxy Nexus] mwalt2:
I can't look at my source now, but you can probably just add a line to your build.prop. you can do that by adding it to a make file for your device under /device. I've added things to full-toro.mk (can't remember the exact name off the top of my head) for my Verizon gnex.
[Samsung Galaxy Nexus] ÜBER™:
Well I've always done make then make otapackage... :rolleyes:

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] Anon9mouz:
See I didn't know u can do-j8 to repo sync too damn all this time it could have been faster :(

__________________________________________________
[Samsung Galaxy Nexus] MBQ_:
In the build.prop, there is a line that looks like this:

ro.sf.lcd_density=320

change 320 to your desired number, and you're set
[Samsung Galaxy Nexus] cj360:
How would I turn off the vendor verification? Or could you give me a place to start, not sure how to do that.

And I'll be looking around git to see if I can figure out how it's coded wrong.
[Samsung Galaxy Nexus] something15525:
Hey, so I got a successful build now :D. Next up, I was wondering how to add root and SuperSU right built into the ROM?

Thanks for all the help so far guys, it's helped a lot!
[Samsung Galaxy Nexus] MBQ_:
I believe* you just push superuser.apk (or supersu.apk) to system/app
[Samsung Galaxy Nexus] Anon9mouz:
He's asking when building its somewhere in the vendor files its like 10 pages back or so bc I asked about it but I'm just doing it manually for now till I get more time to mess with it

__________________________________________________
[Samsung Galaxy Nexus] ÜBER™:
Download a SuperSU zip, there is a thread for it on xda. Place the su binary in /system/xbin and place the apk in /system/app. Then open the updater-script for this zip and find the lines where it sets permissions for the su binary and copy that to your updater script in the ROM zip. Then reflash it should give you SuperSU as well as set permissions for the su binary so things actually work ;). I found its easier to do this after the ROM is built otherwise you will have to add it to your vendor.
[Samsung Galaxy Nexus] Anon9mouz:
Hmm that's weird I didn't have to touch the script I just put the su in xbin and apk in system and flashed and was golden hmm:confused:

__________________________________________________
[Samsung Galaxy Nexus] MBQ_:
My bad :)
[Samsung Galaxy Nexus] ÜBER™:
Uh yeah you did.. dont you remember i told you had to after you said "i dont know why i dont have root" i told you exactly why :p
[Samsung Galaxy Nexus] Anon9mouz:
I never touched the script bc I kept looking at urs and it looked the exact same as mine so I just pulled ur apk and binary;)

__________________________________________________
[Samsung Galaxy Nexus] ÜBER™:
Gotcha, thought you forgot to add it to the script or something.
[Samsung Galaxy Nexus] something15525:
Thanks dude! I'll give this a shot. Anybody know where I can change the model number? Isn't it in build.prop or something like that?
[Samsung Galaxy Nexus] ÜBER™:
Yes. and No problem ;)
[Samsung Galaxy Nexus] something15525:
Where would I edit it in the source files?
[Samsung Galaxy Nexus] mwalt2:
You can have the rom built with superuser and the binary fairly easily. You just add a custom vendor folder. If you would like to see my vendor folders that I have setup for my toro, you can see them here. Superuser.apk is in vendor / extra / toro / proprietary / system / app / and the bin is in vendor / extra / toro / proprietary / system / xbin . I also have busybox compiled so you don't have to add a bunch of symlinks to the updater-script. The nice thing is if you get everything to build in the way you want (gapps, etc.), you don't even have to use a recovery to flash. You can take the system.img that is compiled and just use fastboot to flash it.
[Samsung Galaxy Nexus] exb0:
I mean from the source itself. Not on the device. I want it to compile with 240. Not 320 and change to 240.
[Samsung Galaxy Nexus] Anon9mouz:
If it does all it would be doing is changing build.prop, u could probably do it faster manually in rom zip than trying to figure out how to build it in :p

__________________________________________________
[Samsung Galaxy Nexus] dreamsforgotten:
I'm used to trying new things and seeing what works. I don't hope i don't error... I can't wait to see the error so i can determine how close i am to a successful mod. This i make -j8 to get to the error quick, make to see the error, -j4 again and repeat till the build completes, then i otapackage. Depends on your needs. There is no right way just what your comfortable with

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] mwalt2:
I already pretty much answered it, but here it is in more detail. This is assuming you build maguro. Add the following to /device/samsung/maguro/full_maguro.mk

PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=240
[Samsung Galaxy Nexus] dreamsforgotten:
This, you need a custom vendor for your extras and most of you guys are porting off roms with actual git hub repos. You should be emulating these guys custom vendors with your own style picking them apart adding things in, learning how to change certain files. Just dissect every .mk file seeing how they interact. This is where you take over from taught to self taught not being rude but in the since your mind should automatically be nagging to understand what's going on. You have everything in place to build changing files will most likely break your **** but fixing it using your intended code is where you learn volumes.

As far as vendor verification to not edit source, i left it on. On my github is a basic vendor/dreams to give you an idea. I have every extra file I'm adding verified and accepted. That too is person choice but after repo sync i dont have extra changes to pull only vendor.

Apologies on long silence and writing a book i now work 2 jobs. I just started a new one and am training. Special thanks to you guys chiming in i want to see more developers helping out think its awesome. :D

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] dreamsforgotten:
Lol i was going here next. Kinda extending what i just wrote if you guys dig into the files the answers are there don't be afraid to copy of what works. These values usually have similar ones already being used find a file already there doing something your trying to do and emulate it in the appropriate place find that by using the major githubs as a guide. You'll be addicted in no time.

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] jboyer0000:
So if you wanted to swap kernels...would you do that in device/Samsung/toroplus or does it have something to so with platform/prebuilts?
[Samsung Galaxy Nexus] dreamsforgotten:
That's a good one as far as i know it has to be built and combined separate. I have little kernel compiling knowledge not enough to answer that.

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] something15525:
Quick question about the extra vendor files...do I need to include them somewhere in a file or something for them to get included in the rom? Or will they just get included?
[Samsung Galaxy Nexus] exb0:
it doesn't seem to be working. Does it matter if I'm compiling cm10 and not AOSP?
[Samsung Galaxy Nexus] something15525:
Hey, I know this is technically a gnex support thread, but would anyone know about this? I compiled a grouper AOSP build and am having problems with location. In logcat I get this:

W/Sidekick_LocationOracleImpl( 3334): Best location was null

W/Sidekick_LocationOracleImpl( 3334): No network provider on device

W/Sidekick_LocationOracleImpl( 3334): Best location was null

W/Sidekick_LocationOracleImpl( 3334): Best location was null

W/Sidekick_LocationOracleImpl( 3334): Best location was null

And in Google Now, it keeps telling me location service is turned off, yet I got into settings and its on. Ideas? Or should I go somewhere else :p
[Samsung Galaxy Nexus] dreamsforgotten:
Gotcha. Dreamsforgotten.net/gnexbuild.html

Look down toward the bottom on 4.2 section there is an edit for the Google location package name to be combined with the code for fused location. Copy that same edit to your device files overlay

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] something15525:
So I should just do this fix for my grouper as well as toroplus?
[Samsung Galaxy Nexus] dreamsforgotten:
Every device you build against.

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] something15525:
Alright, and what about the other fixes you had in there? Are those more gnex specific?
[Samsung Galaxy Nexus] dreamsforgotten:
Well tether probably won't matter so you can skip that but do the location fix and the back up transport edit you need. Skip the edits to fix ril

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] something15525:
Awesome, that makes perfect sense. I'll give that a shot right now. Thanks! :)

---------- Post added at 01:37 PM ---------- Previous post was at 01:25 PM ----------

And the screenshot fix? Should I do that too?
[Samsung Galaxy Nexus] dreamsforgotten:
No that's the ril fix

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] something15525:
Alright thanks
[Samsung Galaxy Nexus] mwalt2:
I'm not sure about cm. You could try a : instead of the + I wrote in the line I gave you. I'm a Linux noob and I haven't searched to see what that does, but I have some things added to my build.prop using a : there instead of the + (it's used in other aosp devices for that line, so that's why I copied it in my original reply). Maybe someone who knows more will come in :D. Did you check to see if the line is added at all to the build.prop?
[Samsung Galaxy Nexus] IT_Blackbelt:
You can include a kernel with your rom, I include the zen kernel and then build so that it compiles with the ROM.

Download the kernel zip, goto device/samsung/tuna/ and delete the kernel file, extract the zimage file from the zip to the same location and rename it to kernel, extract the modules to the same location, in the .mk file add the modules so they build, and in the init.tuna.rc file add the info from the sysctrl.conf from the zip, and it will build with your ROM.
[Samsung Galaxy Nexus] something15525:
Did this get answered?
[Samsung Galaxy Nexus] Anon9mouz:
Lol I would say so pretty much broke it down for u. Helped me understand too:p

__________________________________________________
[Samsung Galaxy Nexus] IT_Blackbelt:
You have to have .mk files in your vendor folder for it to be included in the rom, I suggest getting on cm's github account and going to their cm vendor folder and studying how its done.
[Samsung Galaxy Nexus] Anon9mouz:
Off topic but new recovery on goo twrp 2.3.3.0

__________________________________________________
[Samsung Galaxy Nexus] something15525:
I'm assuming this is it?

https://github.com/CyanogenMod/android_vendor_cyanogen
[Samsung Galaxy Nexus] IT_Blackbelt:
Yep thats it :good:
[Samsung Galaxy Nexus] something15525:
Okay. The naming structure has me a little confused. Is this the equivalent of: platform/vendor/<repoishere>? If that makes sense? The root is inside cyanogen's vendor directory?
[Samsung Galaxy Nexus] IT_Blackbelt:
Yes to both
[Samsung Galaxy Nexus] something15525:
Okay, thanks. That was supposed to be <reposhare> btw. Also, does anyone know where the default bluetooth name for the phone is stored? I'll start poking around...
[Samsung Galaxy Nexus] dreamsforgotten:
You can add code to the build.Prop to change the ap broadcast name and i believe Bluetooth as well, give me some time to look that value up for you i ran into it today looking for something else.

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] sert00:
My god,how i always missed this wonderfull 3ad??it's some months i compile for myself and try to learn myself how to proper use github,etc...before with roms,lastly with kernels...yours site is full of awesomeness!very very appreciated dreamsforgotten!we really need a so helpful site\3ad :laugh:

:good:
[Samsung Galaxy Nexus] something15525:
Anyone know where the source is for the enhanced power menu? I'm talking about the one where you click reboot and then can choose recovery bootloader or regular reboot? Cyanogen has it in their ROM, so i'll start there, but just in case anyone knows, thought I would ask

Also, if i want to sync with google source, would i just do another repo sync? And will my changes get erased that I did to make tethering work and to fix the RIL?
[Samsung Galaxy Nexus] JediNinjafication:
Hey guys... I'm trying to sync my repo but keep getting authentication failure when trying to su. . I never setup a password and all the ones I would use aren't working.. Can I bypass this and how..?

Sent from my Galaxy Nexus using Xparent Purple Tapatalk 2
[Samsung Galaxy Nexus] something15525:
Sorry, what exactly do you mean by su? Walk me/us through the steps up until you are having the problem.
[Samsung Galaxy Nexus] dreamsforgotten:
I expected it to get real chaotic, I can handle this pace so far. Welcome aboard

"best to be fresh" sent from the n7
[Samsung Galaxy Nexus] dreamsforgotten:
I need a new logcat then, audio policy was also missing in that one which seems your vendor files so far are your issues

"best to be fresh" sent from the n7
[Samsung Galaxy Nexus] dreamsforgotten:
<TextView

android:id="@+id/weather_low_high"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_below="@id/weather_divider"

android:layout_centerHorizontal="true"

android:paddingTop="2dip"

android:textSize="12sp"

android:textColor="?android:attr/textColorPrimary" />

</RelativeLayout>

</RelativeLayout>

That second relative layout is my guess but your error tells you it's line 353 so check that line.

"best to be fresh" sent from the n7
[Samsung Galaxy Nexus] authentic765:
You should try go to the galaxy ace section in xda, the folks there might help you out happily.

Sent from my Galaxy Nexus fueled by Trinity
[Samsung Galaxy Nexus] dreamsforgotten:
Please post the text file, takes up less space and then I can see what line 353 is
[Samsung Galaxy Nexus] dreamsforgotten:
Read one page back, working on it.
[Samsung Galaxy Nexus] Tijmen:
Thanks a lot for your time!
[Samsung Galaxy Nexus] adil_:
Didn't get any help from there...

---------- Post added at 09:26 PM ---------- Previous post was at 09:24 PM ----------

You mean Audiopolicy.jar or something else?
[Samsung Galaxy Nexus] dreamsforgotten:
No problem, it seems there is no line 353 column 18 in your file. It ends on column 15. Try going as far down in the text file as you can and delete back to the > symbol of gridlayout??? Not sure on this one lol.
[Samsung Galaxy Nexus] Tijmen:
It's one big mess now, so I'm reapplying every patch in notepad++ whilst checking for syntax errors after every time I even move my cursor... If that doesn't cut it I'm selling my Nexus and buying an iPhone. :P

EDIT

It turns out the entire CalendarPanel was in the way, I'll try to figure that out later. Let's see if it compiles first... :D
[Samsung Galaxy Nexus] JediNinjafication:
Well...I believe I just put one of your files in a nice standby location. Thank you sir for the lovely root zip

Sent from my Galaxy Nexus using Xparent Purple Tapatalk 2
[Samsung Galaxy Nexus] dreamsforgotten:
Bump for updates to website and added content much more content on the way.
[Samsung Galaxy Nexus] jboyer0000:
I know I'm looking forward to it:D

And thanks for this thread

Sent from my Galaxy Nexus using Unofficial Xparent White Tapatalk 2
[Samsung Galaxy Nexus] dreamsforgotten:
No problem glad i can give something back. I plan to redo the setup guides step by step, clean up the navigation menus, and add other non development related content
[Samsung Galaxy Nexus] dreamsforgotten:
While I'm brainstorming is there any topics anyone would like to see covered?
[Samsung Galaxy Nexus] adil_:
I compiled a new build today with a lot of changes to the source...

The good news is that speakers are working now, but only loud noise instead of audio...

The camera is working, but only white preview...

Wifi not working..

I'll compile a new build tomorrow and see if I can fix these things, else I'll post a logcat here...
[Samsung Galaxy Nexus] dreamsforgotten:
I take it your building aosp for a phone that comes without it. You might have to compare the stock kernel from your phone's os to the aosp kernel and possibly mod kernel source.
[Samsung Galaxy Nexus] jboyer0000:
Should you make clean after every build..and when should you make clobber?

Sent from my Galaxy Nexus using Unofficial Xparent White Tapatalk 2
[Samsung Galaxy Nexus] JediNinjafication:
When I go to sync from git.. it tells me I don't have su...

I type in the repo Addy... then it says I need su in order to sync

Sent from my Galaxy Nexus using Xparent Purple Tapatalk 2
[Samsung Galaxy Nexus] IT_Blackbelt:
What distro are you running?

edited: I seen your second post, what commands did you run to get to this point. SU shouldnt be needed.

---------- Post added at 05:40 PM ---------- Previous post was at 05:34 PM ----------

All features like that will be on the github of a good known ROM, look at your fav ROM and see how they did it, if I remember correctly it will be in the frameworks/base commit histroy.
[Samsung Galaxy Nexus] JediNinjafication:
Ubuntu 12.04

Just went to my update manager... says need bunch of those so gonna do that and try again later... Ill send a pic of what it says in a few

Sent from my Galaxy Nexus using Xparent Purple Tapatalk 2
[Samsung Galaxy Nexus] something15525:
Does anyone know the average battery life of an AOSP built 4.2.1 stock ROM with stock kernel?

At least what it should be?
[Samsung Galaxy Nexus] ÜBER™:
Can't really tell since everybody uses it differently. And have different apps and have different signal and different connections etc etc. On average I get around 4 hours screen time with WiFi and on 3G around 2.5-3 doing normal things.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] JediNinjafication:
By the way... I'm just dumb. Guess maybe I should slow down and I miss stuff huh..? Love the site dreams

Can't wait until I'm Elite:D:cool:

Sent from my Galaxy Nexus using Xparent Purple Tapatalk 2
[Samsung Galaxy Nexus] MysteryEmotionz:
When you set up your build environment where you logged in as root. If so now you don't have permission to use repo.

Enter the following in terminial without root access to download make executable the repo binary:

curl https://dl-ssl.google.com/dl/googlesource/

git-repo/repo > ~/bin/repo

chmod a+x ~/bin/repo

Then reboot. Go to your source folder n init the source your using.

"Examble for cm9

repo init -u git://github.com/

CyanogenMod/android.git -b ics

Change the URL to source you want to use. Then try report sync.

I repeat make sure you do this while not logged in as root.
[Samsung Galaxy Nexus] something15525:
So does 11% after a little over 9 hours seem reasonable? That was a different person. Here's mine