yashsingh1/xdaforums huggingface dataset:
[Android Software Development] TheByteSmasher:
I think the actual error is higher up... do you still have more? Can you put another 40 or so lines up on paste? Including the bit you already have? Thanks
[Android Software Development] k2wl:
ok i will put more..i have to rebuild it again.
[Android Software Development] TheByteSmasher:
Looks like just before the kernel build so... not too far in
[Android Software Development] k2wl:
error log

here is more detailed error log.

see the attached file.

i have one more question to ask ...can i put prebuilded zimage for aokp building instead of kernel source...???
[Android Software Development] TheByteSmasher:
You need to change another file as well... I am currently in a nighttime schedule ( USA eastern time... gmt -5) I'll look at this tonight and get you the required changed if you want to u use a prebuilt kernel.
[Android Software Development] pkelly517:
You've got to build the kernel for aokp. No prebuilt kernels allowed anymore.

https://github.com/AOKP/vendor_aokp
[Android Software Development] TheByteSmasher:
It's a relatively simple change to use prebuilt...
[Android Software Development] TheByteSmasher:
To use a prebuilt kernel. Change the device's boardconfig.mk. If we were using MAKO We'd do this:

Change the following line in: ~/aokp_jb/device/lge/mako/boardconfig.mk

TARGET_KERNEL_CONFIG := mako_defconfig

to

# TARGET_KERNEL_CONFIG := mako_defconfig

and add:

TARGET_USE_PREBUILT_KERNEL

That should do it... unless the entire build has changed..
[Android Software Development] pkelly517:
Talk to me!

I'd love to just 'have' the latest Franco kernel built in.

Shoot! That would save me, uhm, one whole zip in the flash process.
[Android Software Development] TheByteSmasher:
Look one post up... :)
[Android Software Development] k2wl:
i m very confused..

i have made modifications to aokp code i downloaded...

now i wanted to go back to original source tree.. how do i do it.

i know that there is a hidden folder in which all the repository is present in original state. how do i do it...??? plz help.

UPDATE - i get it...sorry to bother u..!!
[Android Software Development] TheByteSmasher:
The reset commands at the end of section 6. Do that in each folder you changed, then sync... or delete every visible folder in your AOKP directory, and sync.
[Android Software Development] Chromium:
In the root of your source delete all the folders except the .repo folder which is hidden by default (ctrl + h toggles hidden folders)

After you've deleted the folders run repo sync. It wont take as long as it originally did when you first downloaded the source.
[Android Software Development] TheByteSmasher:
As far as linaro... I don't use it. I suppose I could mess around a bit more and see if it's viable... but the big issue is that the MAKO kernel (for example) doesn't like being built with it... inline.. so.. if in can get it to work, Yes, if not... then no. If anyone else figures it out, I'll put it in the OP. Later.
[Android Software Development] pkelly517:
I'm sure that it would take more than that.

Is there a particular naming convention required?

Where would the boot.Img need to be placed. Can a ram disk be included? Franco seems quite happy with using his.

Now I have a weekend project :)
[Android Software Development] TheByteSmasher:
I've only gone from prebuilt to inline :) However, that is the only change required that I know of.. and If you are using a Prebuilt.. it shouldn't matter if the kernel has ramdisk or not... it should essentially copy & paste the kernel into the zip.... and I *believe the .img would go in the same directory where the buildable one would ... so kernels/lge(or whatever)/mako(or whatever)/
[Android Software Development] TheByteSmasher:
[MENTION=4406848]pkelly517[/MENTION] OH!... You were right... You need to change 3 Files:

So, again using mako as the example:

In device/lge/mako:

File: AndroidBoard.mk

Add:

-#
# Copyright (C) 2011 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

ifeq ($(TARGET_PREBUILT_KERNEL),)
TARGET_PREBUILT_KERNEL := device/lge/mako/kernel
endif

File: BoardConfig.mk

Add:

TARGET_USE_PREBUILT_KERNEL := true

Remove:

TARGET_KERNEL_SOURCE := kernel/lge/mako
TARGET_KERNEL_CONFIG := mako_defconfig

File: device.mk

Add:

LOCAL_KERNEL := device/lge/mako/kernel

PRODUCT_COPY_FILES := \
$(LOCAL_KERNEL):kernel

Then You can use a kernel image placed in the kernel/lge/mako folder....

-OR-

You can put the boot.img into your finished build, replacing the stock one and it'll flash with the ROM...
[Android Software Development] ThePresence:
I'm willing to build Rom for an unsupported device.... I don't have any experience with building roms so want some help....:)
[Android Software Development] rob54321:
Hi thanks again for this wonderful guide.

I am building and cherry picking - all woking .

Where in the source code can I set who built the ROM and kernel? Should I do this by editing the Makefile and putting EXTRAVERSION="robkey"?

Thanks,

Rob
[Android Software Development] rob54321:
Further to my post above I would ideally like to define a variable on the command line of Make to set the build name.

Like this

. build/envsetup.sh

brunch tilapia -j 7 VARIABLENAME="RobKey"

But which VARIABLENAME would I use to set the build name in the settings?

Thanks,

Rob
[Android Software Development] TheByteSmasher:
Sorry, a topic like this & your previous question will have to wait until Sunday night. That's when I'll have the time to go over this with you.
[Android Software Development] Chromium:
Look in build/core/version_defaults.mk on line 97
[Android Software Development] TheByteSmasher:
Thanks chromium... I was going to get him a copy of that file that I modified on Sunday, but if he can figure it out.... awesome!
[Android Software Development] rob54321:
Thanks,

Rob

---------- Post added at 03:54 PM ---------- Previous post was at 03:51 PM ----------

Thanks very much.

Rob

---------- Post added at 04:02 PM ---------- Previous post was at 03:54 PM ----------

Figured it out

Thanks
[Android Software Development] creeve4:
Is there any benefit to using a prebuilt kernel vs a kernel built with the ROM vs a separately flashed kernel? I use franco kernel and am wondering if I would see any difference if I built the kernel with my ROMs.
[Android Software Development] amit_sen:
If i like to use cm kernel with aokp rom what wud be the steps to achieve if its even possible

Build cm.

Build aokp.

Theres a file boot.img in out dir of CM build. Replace boot.img file in aokp.zip from out dir of cm build.

Will it even work ??

DNA | ⓣⓐⓟⓐⓣⓐⓛⓚ | TF300T
[Android Software Development] TheByteSmasher:
I really don't see why not since the kernel is for the device not the ROM... easiest way would be to build AOKP, but change your local manifest to grab the kernel from CM instead of aokp, and build inline.
[Android Software Development] amit_sen:
Thnx a lot for the quick reply.

One more query for prebuilt kernel which file is needed to be put into a specified/defined dir.

Is it boot.img or kernel file ? from out dir of lets say cm build.

DNA | ⓣⓐⓟⓐⓣⓐⓛⓚ | TF300T
[Android Software Development] TheByteSmasher:
Neither. To build inline you need the source.
[Android Software Development] TheByteSmasher:
Read the guide... section 4 discusses kernels and the local manifest section should answer your questions. If you still don't get it, then ask again
[Android Software Development] amit_sen:
Sorry i mean to say prebuilt kernel

DNA | ⓣⓐⓟⓐⓣⓐⓛⓚ | TF300T
[Android Software Development] TheByteSmasher:
Look back 2 or 3 pages
[Android Software Development] abhi08638:
im stuck at editing the kernel manifest. i trying to build for an unsupported device the lg optimus 4x hd (p880) and it runs on the tegra 3. i dont know which lines to delete. please help
[Android Software Development] WildfireDEV:
Does anyone know how to fix this problem?
[Android Software Development] TomakiD:
Theme chooser not working in actual nightly build?

Hi community,

thanks for the awesome guide, so I was able to build my own AOKP rom using Mac OS X 10.8 for my Samsung Galaxy Nexus (maguro).

One question regarding the actual nightly build (my own and the one I've downloaded on the official homepage from 30.06):

The menu item "Designs" (which is the theme chooser) doesn't work anymore and died right after the start with an IllegalStateException.

Is it just me or do you have the same issue?

Regards,

Tom
[Android Software Development] TomakiD:
Solution: I've deleted the data from the theme provider and now it works.
[Android Software Development] iamjsed:
Hi,

I have an MTK6589 device which has kernel source posted here. Is this enough for me to do an unofficial port of AOKP?

Thanks,

-iamjsed
[Android Software Development] assassin0408:
Unsupported device for aokp

Awesome guide! :good: but one question, how to build aokp for unsuppported device like my device is janice ( galaxy s advance). For sync part i have no problem. The problem is for building guide. There are no userdebug list for janice right?So what should i do?
[Android Software Development] mar5hal:
Hey thanks for the awesome guide man [MENTION=2287484]TheByteSmasher[/MENTION], really well done. I was wondering if anyone could shed some light on a build error I'm having. I am able to make stock mr1 builds of AOKP but the second I cherry pick say this commit http://gerrit.aokp.co/#/c/8533/ http://gerrit.aokp.co/#/c/8534/

, both part 1 and 2 to AOKP/frameworks/base and AOKP/packages/apps/ROMControl my build stops half way through giving me an error code 1 and an error code 2. Here's the readout

Sent from my [AOKFP] Nexus 4
[Android Software Development] mar5hal:
Edit sorry I read a few pages back about linaro being screwy with the makos kernel if Im not mistaken. Could that be my problem here? I wouldn't think so being that the previous compiles finished with no errors. Only the cherry picked source wouldn't finish
[Android Software Development] TheByteSmasher:
What -j are you using? Additionally, did you make clobber after cherry picking? Did you cheery pick to the correct directories....
[Android Software Development] mar5hal:
Not using any -j command. Never have. And yes they went to their corresponding directories and yeah I always make clobber out of habit :)

Edit: I am re downloading the AOKP source. Probably unnecessary but what the hell right? It output something like "android manifest.XML already defines..... Like the cherry pick I added doubled something up. Quick question for the pick, I believe it was part 2 that went to packages/apps/ROMControl it didn't take at first. I had to run git commit then git commit -a after the initial try. I got the dialogue box to make any changes but just hit cntrl x to close it. It then reflected that the commit was added. Should I have added or removed any lines from that cherry pick before committing it?

Edit2: sorry for the noobness but that's what this guide is here for right ;)

Sent from my [AOKFP] Nexus 4
[Android Software Development] TheByteSmasher:
Yeah... it has both the original versions of the files and the modified versions. If you wanna keep one over the other you've gotta use the # sign. The ctrl-o, enter, ctrl-x ...
[Android Software Development] mar5hal:
Ok so for example in the commit where I see the androidmanifest.xml I would # the original correct? That way the new one from the commit is used?

Sent from my [AOKFP] Nexus 4
[Android Software Development] pkelly517:
You do realize that that commit is in the first phase of release. Even the submitter places the code review at -1 (8533).

In general, make sure that the code has at least been verified before trying to pick. And if nothing has happened in a couple months, it's more likely that the commit will be abandoned than merged.

Good luck, though. This pick may get some love after the Milestone release.
[Android Software Development] TheByteSmasher:
[MENTION=4406848]pkelly517[/MENTION] Did you get the pre built kernel working? I added more stuffs that needed to be changed... just curious. :confused:
[Android Software Development] pkelly517:
I admit to lazy weekend.

And with one more week until vacation (and 4.3), I think I'll hold off just a bit.

And I just got the N10 to replace my aging Xoom, so I'm doing a little work on getting a mako and manta build working every night. Biggest issue with that was a CM merge that crashed the AOKP build the same freaking day I started trying to get the manta build.

I promise I'll try in the lull when the 4.3 sources drop.
[Android Software Development] mar5hal:
Sorry guys but I'm back. I keep getting this output:

s/src/R.stamp] Error 1

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

Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

I picked these commits into their corresponding directories:

http://review.cyanogenmod.org/#/c/34026/- aokp/frameworks/base

http://review.cyanogenmod.org/#/c/34681/- aokp/packages/apps/settings

again I apologize for the noobness. still learning it all
[Android Software Development] TheByteSmasher:
Milestones

Someone Had asked Me about Building a previous milestone.. Well, It's possible now since AOKP has released Manifests for each of the Milestones. It's on their gerrit in the OPEN Section
[Android Software Development] rob54321:
It was me. Thanks for the info and guide.

Rob
[Android Software Development] DaMadOne:
good tutorial. I am a total n00b to git and working with android source but I managed to build AOKP last night for my Verizon Samsung S4, and flashed this morning. Everything seems to work just fine. Now I want to try my hand at cherry picking. So lets start off by saying what I would like to do. Brandon McAnsh is the maintainer for jfltevzw on AOKP and he posted an unofficial build on 7/14 over on rootzwiki that had working support for the IR sensor, but the commit HERE was never merged and was abandoned. Obviously I could still cherry that just fine. But in the info it states that it depends on change id Id4da55cfbd297fa46c50aa8a6af9cd4d056086cd (Add Irda System Service for Samsung devices) which makes some changes to the framework, however I cannot find it on AOKP's git.

Now I know what the commit that is not in AOKP's git is because a bit of googleing led me to CM's repo which has updated versions of both the device specific patch HERE to enable the IR and the framewoks patch HERE that it needs to work. So my question is how would I go about pulling those commits from CM into my AOKP source so I can compile the latest with working IR? picking from the same repo is easy... I am guessing that picking from another is not quite as easy. I tried, it "failed" =P so I reverted the source back.
[Android Software Development] ny-hardcore:
I think you can add the remote repo with git remote add

Then fetch the remote and then cherry pick.
[Android Software Development] TheByteSmasher:
It really depends on the actual files and changes... CM & AOKP have different folders and filenames for somethings. You can make the changes manually... it's more tedious, but if done properly it works.
[Android Software Development] escape_artist:
can this be used for galaxy grand

hey can i use this guide to port for samsung galaxy grand duos
[Android Software Development] TheByteSmasher:
Not specifically for the porting, but for all the other building aspects.
[Android Software Development] escape_artist:
error

while downloading aokp source this error is shown

curl: (22) The requested URL returned error: 404

Server does not provide clone.bundle; ignoring.

although downloading doesnt stop is anything wrong ???
[Android Software Development] kecinzer:
It's ok :)
[Android Software Development] WildfireDEV:
What is the number you are using after the -j sometimes you will get errors for to high of a number. What I normally do is repo sync -f it takes a bit longer but I get everything.

**Press the thanks button if I have helped you.
[Android Software Development] TheByteSmasher:
Actually, if you ultimately get fetch 100 and sync 100 ...you've gotten everything anyway.. The -f SKIPS errors and really means that if a fatal one occurs, it won't try again and you DON'T get everything... sorry...
[Android Software Development] TheByteSmasher:
Who doesn't trust a baby?! :D
[Android Software Development] WildfireDEV:
Sorry was half a sleep when I posted this. I didn't realize what on earth I was posting. Now it makes me feel plain dumb.

**Press the thanks button if I have helped you.
[Android Software Development] kecinzer:
Anyone know something about AOKP 4.3 merge? Official repo seems frozen :(.
[Android Software Development] escape_artist:
help

my device is samsung galaxy grand and its an unsupported device

so what things i would need to change to make it wrk

my phone has a working cm10.1 with its device specific source code

thanks in advance for u r help
[Android Software Development] mar5hal:
I'm not sure if its entirely merged yet. When trying to repo init aokp mr2 branch, brunch commands fail for me. Says it doesn't support arm devices or something like that.
[Android Software Development] escape_artist:
Anyone help
[Android Software Development] kecinzer:
Are you joking with us?

Brint new device into AOKP is not that easy!
[Android Software Development] SynnyG:
Hi all !

I don't understand. I've sync the repo all the night, after that I've reboot my PC but the command line . ./platform_manifest/manual_add_kernel_manifest.sh does'nt work, it tell me that there wasn't any folder of this type. I hope thaht somebody could help me ! Thanks a lot !

EDIT: Also, I don't understand why I couldn't find any part of the source code that I've downloaded ...
[Android Software Development] mar5hal:
Did you set the path of your repo correctly? Inside your source tree press Ctrl h to view the .repo folder and look at platform manifests
[Android Software Development] SynnyG:
Yes I've done this : PATH=~/bin:$PATH.

When I open nautilus and go to the root folder, it's said that I dont have the permissions to access to this folder. May be because I don't open it by doing gksu nautilus ?

Also I try to build on gnome 3.2.0.4. There will be no issue to use it instead ubuntu ?
[Android Software Development] mar5hal:
I personally can't say as I am on Ubuntu 13.04. Not familiar with gnome :/

Normally I would mkdir android/aokp in my home directory and sync my tree there
[Android Software Development] SynnyG:
There is no issue to do this instead in the root folder ? I will try to do this but so boring to spend one night. One day lost with this issue ><

So the path must be set like this: PATH=/home/blabla/android/aokp:$PATH ?
[Android Software Development] mar5hal:
No try it this way

mkdir ~/bin
PATH=~/bin:$PATH
curl [url]https://dl-ssl.google.com/dl/googlesource/git-repo/repo[/url] > ~/bin/repo
chmod a+x ~/bin/repo
mkdir ~/android/aokp
cd ~/android/aokp

repo init -u [url]https://github.com/AOKP/platform_manifest.git[/url] -b jb-mr1

repo sync

edit: again this is how i sync my trees just because i have aosp, cm and aokp trees in my android folder. just makes it easier for me
[Android Software Development] SynnyG:
OK, it's almost the same thing as the OP.

That's good, I've found the source code by using gksu nautilus instead opening nautilus normaly.

Now on GNOME I've a bug with wifi so I'll copy all the aokp tree and install ubuntu 13.04.

Thanks for your help ;)

---------- Post added at 05:36 PM ---------- Previous post was at 05:29 PM ----------

Sorry for the nooby question but what is the différence beetween mkdir bin and mkdir ~/bin ?

EDIT: for the kernel manifest command, I have to go to which folder ?I am not come to solve this problem :-/
[Android Software Development] TheByteSmasher:
~/ prevents you having to type the full path: i.e. home/SynnyG/

Mkdir bin just makes the directory where you currently are.

You need to be on the root of your build directory i.e. ~/aokp_jb to run the kernel_manifest.sh command.
[Android Software Development] SynnyG:
Thanks for the reply, I'll try as soon as my ubuntu will be functional ! :)
[Android Software Development] apophis9283:
Anyone know how to revert inline kernel building and go back to using prebuilt? Cant really find any info on it.
[Android Software Development] carltonhimself:
I have a question: what would I change to make the version description read something other than "UNOFFICIAL" in my builds? Like my name or something?
[Android Software Development] apophis9283:
Look in the build.prop
[Galaxy S II Q&A, Help & Troubleshooting] meminiau:
Hey all,

My wife is using one of my old phones; the galaxy s2.

I currently use a Galaxy Note 2 with custom ROM and have also had the Galaxy Nexus running on a custom ROM too.

The problem is that is was a long time since i did stuff to the S2, and wanted to touch base with you all before i go ahead and flash a new ROM for the wife.

So here are the specs:

It's a GT-I9100

Currently running 2.3.4 Lite'ning ROM v6.1 xxkh3

Kernel is 2.6.35.11 ninphetamine #20

Recovery is CWM v4.0.0.2

I don't care about having the triangle at boot.

My wife wants Google Now, so the ROM has to be JB.

In about to start some researching, but whatever i find I'll just go and ask about anyways just to confirm, coz i just can't afford to screw up the wife's phone, coz she will kill me!

So is it safe to just flash a new JB ROM, or do i have to do something else first?

Thanks guys
[Galaxy S II Q&A, Help & Troubleshooting] MistahBungle:
Read the thread devoted to the rom you want to flash. Instructions/requirements will be very clear on the first page of that thread (as they are with any thread devoted to a rom/kernel I've ever seen). Follow the instructions and you won't have any problems. Don't follow the instructions & you will have problems. Simple.
[Galaxy S II Q&A, Help & Troubleshooting] meminiau:
Re: Time to flash 1st ROM in long time

Thanks for taking the time to reply.

The ROM i want to flash is PA 3.15 and it looks like I'm good to go, but the problem i have is that it says to update the recovery, yet in my researching I've read that the recovery is usually part of the ROM, and when looking to update my recovery, i can't update it.

So is it still safe to flash as per the instructions?

I'm just a little worried that what is currently on my phone has been there for a very long time, and what i end up flashing could brick the phone. The ROM on it may have had the recovery part of it and might disappear when i attempt to flash the new ROM...

Am i just being too cautious?
[Galaxy S II Q&A, Help & Troubleshooting] MistahBungle:
Yes. As per my PP, read the instructions, follow the instructions. If you have more specific queries, ask in the particular thread.
[Galaxy S II Q&A, Help & Troubleshooting] immortalneo:
Re: Time to flash 1st ROM in long time

What they mean is, u need to update your stock recovery to any working CWM recovery.:)

So you should be fine if u go directly to Step 2.:thumbup:

FYI, recovery is a part of the kernel as well as ROM.:)

And if you're afraid of bricking or things going wrong, why not take a nandroid backup of your current setup? :rolleyes:

"To err is human, to forgive is divine"

Sent from my SGS II
[Galaxy S II Q&A, Help & Troubleshooting] meminiau:
Re: Time to flash 1st ROM in long time

Thanks for the replies guys! Much appreciated :D

My wife now has a Jelly Bean ROM!