[Completed] Trying to Build CM 12.1 for Galaxy Avant but Unable to Figure Out How to Lunch Device - XDA Assist

Hi, I am trying to build CyanogenMod for the Samsung Galaxy Avant (for learning purposes), but it not supported by the ROM. This is my first build ever, so please cut me some slack. I have been following a tutorial to build one for this phone, and was successfully able to get to the "lunch" stage of the build. When I "lunch" the device name, however, I receive an error in Terminal:
build/core/product_config.mk:234: *** Can not locate config makefile for product "afyonltetmo". Stop.
Device afyonltetmo not found. Attempting to retrieve device repository from CyanogenMod Github (ht tp:// github . c om/ Cyanogen Mod).
Repository for afyonltetmo not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:234: *** Can not locate config makefile for product "afyonltetmo". Stop.
** Don't have a product spec for: 'afyonltetmo'
** Do you have the right repo manifest?
This prevents me from continuing with the build, so what do I do to fix it? How do I manually add it to my local_manifests? I am doing this on Ubuntu 14.04 64 bit, by the way. Also, I can use the stock kernel to for this build right? The current ROM I am running does not support wifi or using the camera. Sorry for this noobish question, and thanks for all of your help.

shash222 said:
Hi, I am trying to build CyanogenMod for the Samsung Galaxy Avant (for learning purposes), but it not supported by the ROM. This is my first build ever, so please cut me some slack. I have been following a tutorial to build one for this phone, and was successfully able to get to the "lunch" stage of the build. When I "lunch" the device name, however, I receive an error in Terminal:
build/core/product_config.mk:234: *** Can not locate config makefile for product "afyonltetmo". Stop.
Device afyonltetmo not found. Attempting to retrieve device repository from CyanogenMod Github (ht tp:// github . c om/ Cyanogen Mod).
Repository for afyonltetmo not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:234: *** Can not locate config makefile for product "afyonltetmo". Stop.
** Don't have a product spec for: 'afyonltetmo'
** Do you have the right repo manifest?
This prevents me from continuing with the build, so what do I do to fix it? How do I manually add it to my local_manifests? I am doing this on Ubuntu 14.04 64 bit, by the way. Also, I can use the stock kernel to for this build right? The current ROM I am running does not support wifi or using the camera. Sorry for this noobish question, and thanks for all of your help.
Click to expand...
Click to collapse
Hi,
Thanks for using XDA Assist.
Try posting your query in Android Q&A,Help and Troubleshooting or in the friendly Q&A thread here->[Ask Any Question][Newbie Friendly] .Experts there may be able to help you.
Good luck

Related

[Q] Need help on building android from source

Hello, I just found out I posted this in the wrong forum section before :crying: sorry!
I can't post links because I'm new here, so I'll tell you how to find the links to what tutorial/website I'm using.
If you just search "building android from source", at the fifth link from the top, it should say "Getting Started: Building Android From Source" (xda-university). If you go there and scroll down to "Initialising repo and syncing", that's where I'm stuck at. To just add some info, I'm doing this to start off building cyanogenmod at a later time for my device; as, it isn't supported.
But anyway, where it says to run "repo init -u < URL to android manifest > -b < branch name > " [I replaced the &gt and &lt's]
I'm not sure what url/branch to put. My device isn't supported by cyanogenmod and I dont know where my device repo's are in general (and if there are any at all).
It's a Samsung Galaxy Admire 4G (SCH-R820).
Any help is appreciated, thanks!

[Completed] Error when porting AOKP using source

Good evening to all. I have been trying to port AOKP for the HTC Desire 816 (htc_a5) for several weeks now, and I always get errors. The 816 already has 97% functional Cyanogenmod, So I'm using that as source. I repo synced with the Lollipop branch of AOKP and then used git clone to clone the CM device source ( https://github.com/CyanogenMod/android_device_htc_a5/tree/cm-12.0) into vendor/htc/a5. When I follow all the steps detailed in this guide, http://forum.xda-developers.com/showthread.php?t=2223690 I always get an error like this :
[email protected]:~/Working_dir$ . build/envsetup.sh
including vendor/aokp/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/Working_dir$ lunch
You're building on Linux
Lunch menu... pick a combo:
\ 1. aokp_shamu-userdebug 4. aokp_grouper-userdebug 7. aokp_find7s-userdebug 10. aokp_sirius-userdebug
2. aokp_hammerhead-userdebug 5. aokp_amami-userdebug 8. aokp_honami-userdebug 11. aokp_yuga-userdebug
3. aokp_mako-userdebug 6. aokp_find7-userdebug 9. aokp_jfltevzw-userdebug 12. aokp_a5-userdebug
Which would you like? [aokp_shamu-userdebug] 12
ls: cannot access device/*/a5/aokp.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "aokp_a5". Stop.
** Don't have a product spec for: 'aokp_a5'
** Do you have the right repo manifest?
Any help would be VERY much apreciated! Thanks!
Hi there,
Our XDA Assist team will give you links to threads/forums that are relevant to your problem. You may be pointed towards guides and instructions that can be quite complex.
This is not a "helpdesk" providing technical assistance but more to point you in the correct direction with your problem.
Thanks
You can learn more about kernel development here: [GUIDE] Build Your Own Android Kernel{Easiest and Fastest Way] [Using The NDK]
Here is also a video guide : [TUTORIAL][VIDEO]Build your own Android kernel
Good luck
Thread closed
Mod Edit: As a Senior Member you should be able to navigate the site without using Xda Assist please do some searching next time.

[Completed] Android M Source code Tagging

Okay, I'm trying to build Marshmallow preview 2 for the Nexus 7 2012, and I'm unsure of the source tagging on Google git.
I want to download the files using repo init, but obvious branch names aren't working.
I've tried this:
Code:
repo init -u https://android.googlesource.com/platform/manifest -b m-preview-1
But this returns a 404 error.
I think the manifest file is correct, but "m-preview-1" is a tag and not a branch name like last year's "l-preview" branch.
TL;DR
What is the repo init command to download the Nexus 7 2012 Android M preview 2 branch?
P.S
M preview 3 isn't on the git, which is why I'm doing preview 2.
WeShallFall said:
Okay, I'm trying to build Marshmallow preview 2 for the Nexus 7 2012, and I'm unsure of the source tagging on Google git.
I want to download the files using repo init, but obvious branch names aren't working.
I've tried this:
Code:
repo init -u https://android.googlesource.com/platform/manifest -b m-preview-1
But this returns a 404 error.
I think the manifest file is correct, but "m-preview-1" is a tag and not a branch name like last year's "l-preview" branch.
TL;DR
What is the repo init command to download the Nexus 7 2012 Android M preview 2 branch?
P.S
M preview 3 isn't on the git, which is why I'm doing preview 2.
Click to expand...
Click to collapse
Hello and thank you for using XDA Assist.
There is no XDA forum dealing specifically with building M Previews at this time, and I could only find the same external links you probably tried already. Even though it's not really device-specific, you may want to ask your question with all relevant details in the Nexus 7 Forum at http://forum.xda-developers.com/nexus-7 but I also see some related discussion in the Nexus5 area, such as http://forum.xda-developers.com/google-nexus-5/devs-only/android-m-source-t3122123 where the experts familiar with the Marshmallow build process might be able to guide you.
Good Luck!
Mike B. said:
Hello and thank you for using XDA Assist.
There is no XDA forum dealing specifically with building M Previews at this time, and I could only find the same external links you probably tried already. Even though it's not really device-specific, you may want to ask your question with all relevant details in the Nexus 7 Forum at http://forum.xda-developers.com/nexus-7 but I also see some related discussion in the Nexus5 area, such as http://forum.xda-developers.com/google-nexus-5/devs-only/android-m-source-t3122123 where the experts familiar with the Marshmallow build process might be able to guide you.
Good Luck!
Click to expand...
Click to collapse
Thanks, I'll see what I can do.

Need help for ROM building

Hi there,
I'm trying to make a lineageos ROM for our great Xperia XZ but I face some problems.
I done all the steps of the ultimate ROM making thread on XDA, and i can't see my XZ in the device list of the lunch command.
To be precise i see it as aosp_f8331 and not lineage_f8331 nor lineage_kagura.
I already tried to build aosp on XZ without any success.
Maybe someone can light my candle.
Thanks
fastbooking said:
Hi there,
I'm trying to make a lineageos ROM for our great Xperia XZ but I face some problems.
I done all the steps of the ultimate ROM making thread on XDA, and i can't see my XZ in the device list of the lunch command.
To be precise i see it as aosp_f8331 and not lineage_f8331 nor lineage_kagura.
I already tried to build aosp on XZ without any success.
Maybe someone can light my candle.
Thanks
Click to expand...
Click to collapse
Looks like you haven't changed the "vendorsetup.sh" file
Should look like THIS (But where carbon is, put lineage)
You can also use "lunch lineage_kagura-userdebug"
THANKS,
Maybe this will help me a lot !
I was looking all over internet to find an answer and you gave it.
nzzane said:
Looks like you haven't changed the "vendorsetup.sh" file
Should look like THIS (But where carbon is, put lineage)
You can also use "lunch lineage_kagura-userdebug"
Click to expand...
Click to collapse
hey, now i'm here.
Code:
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_f8331". Arrêt.
Device f8331 not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Repository for f8331 not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_f8331". Arrêt.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_f8331". Arrêt.
** Don't have a product spec for: 'lineage_f8331'
** Do you have the right repo manifest?
can you guide me or pm the steps.
I would like to write and post a detailed tutorial for building roms for our phone with all the links to the needed files etc.
Cheers
fastbooking said:
hey, now i'm here.
Code:
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_f8331". Arrêt.
Device f8331 not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Repository for f8331 not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_f8331". Arrêt.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_f8331". Arrêt.
** Don't have a product spec for: 'lineage_f8331'
** Do you have the right repo manifest?
can you guide me or pm the steps.
I would like to write and post a detailed tutorial for building roms for our phone with all the links to the needed files etc.
Cheers
Click to expand...
Click to collapse
https://github.com/nzzane/device-sony-kagura/blob/cm-14.1/vendorsetup.sh
Like that
Yeah I just understood that way and done that, the error is after the edit
fastbooking said:
Yeah I just understood that way and done that, the error is after the edit
Click to expand...
Click to collapse
@nzzane
fastbooking said:
@nzzane
Click to expand...
Click to collapse
Is your repo clones from the official device repo or made yourself?
nzzane said:
Is your repo clones from the official device repo or made yourself?
Click to expand...
Click to collapse
I cloned the lineageos repo and added Sony's device specific files after and edited local_manifest.xml
fastbooking said:
I cloned the lineageos repo and added Sony's device specific files after and edited local_manifest.xml
Click to expand...
Click to collapse
Can you link me to your repo?
I can have a look for you and see whats up
nzzane said:
Can you link me to your repo?
I can have a look for you and see whats up
Click to expand...
Click to collapse
Hum I'm a bit new, i need to fork everything i used ?
Or maybe i can upload my entire work file (i have fast internet 950mb/s Down and 250mb/s up)
fastbooking said:
Hum I'm a bit new, i need to fork everything i used ?
Or maybe i can upload my entire work file (i have fast internet 950mb/s Down and 250mb/s up)
Click to expand...
Click to collapse
Just upload your device folder: device/sony/kagura
and setup a new repo if you haven't already https://github.com/
and upload your Kagura folder's contents into the new repo
I see, I'll do it after school tomorrow (16 yo french boy), thanks for help tho
fastbooking said:
I see, I'll do it after school tomorrow (16 yo french boy), thanks for help tho
Click to expand...
Click to collapse
All good, XDA is a great place to learn, as long as the devs are friendly ?
If you need help, you can reach out to me
I figured out for the build issue,( thanks to @nzzane)
Now the kernel issue some files are missing so if anyone can help me,
I'll post a full tutorial from scratch and give ALL the needed files for building
?

[DEV][HELP]Custom ROM development[Possibly Oreo]

Hello Moto G community!
I am a newbie to Android development but I have a will to learn and work hard. I would like to obtain help from developers while I embark on a mission to build a Android ROM for our beloved Moto G falcon.
What I already did:
1. Setup AOSP build environment from Android official tutorial and had a successful build of nougat 7.1.1
2. Currently, I have setup the build environment for lineage-os using this guide:
https://forum.xda-developers.com/chef-central/android/how-to-build-lineageos-14-1-t3551484
A Lineage 14.1 build is in progress as I write this and hopefully there will be no errors. I plan to flash it on my device and try it out personally to see for myself how well it turns out to be. *Done
Plan:
1. I wish to build an Android 8.x ROM eventually. Lineage is not ready yet, so I was thinking of going ahead with AOSP. Correct me if I am wrong.
2. If I do that, I will first have to build the falcon device tree. I will follow some tutorials for that but will need help here.
3. When I am done with that, I will start the building process and that is when the real work starts.
I will start building the device tree in 2-3 days and will post for help wherever required. I will keep this thread updated with my progress and resources as well.
Anybody who is willing to work with me on this project is welcome to do so. Send me a PM and we can be a team.
To moderators:
1. This is my first time creating a thread on XDA Forums. If I made a mistake, please let me know.
2. This is not just another Android Oreo thread. I plan to learn Android device development and coincidentally the time matches with Android O release. Possibly a good time to learn
My Devices:
Moto G (falcon) XT1033 India
Moto G4 Plus (athene) XT1644 US
this is great, good luck bro, i am waiting for android O :laugh::fingers-crossed:
Here comes the first one:
Lineage 14.1 arm-eng
Code:
[ 39% 13388/33953] Building with Jack: /media/viraj/Work/Android/Dev/android_lineage_14.1/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex
FAILED: /bin/bash /media/viraj/Work/Android/Dev/android_lineage_14.1/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp
java.lang.AssertionError: java.util.zip.ZipException: duplicate entry: jayce/com/android/internal/inputmethod/InputMethodSubtypeSwitchingController$ImeSubtypeListItem.jayce
at com.android.sched.vfs.WriteZipFS$ZipEntryOutputStream.writeEntryIfNeeded(WriteZipFS.java:350)
at com.android.sched.vfs.WriteZipFS$ZipEntryOutputStream.close(WriteZipFS.java:320)
at com.android.sched.vfs.VFSToVFSWrapper.dumpToDir(VFSToVFSWrapper.java:127)
at com.android.sched.vfs.VFSToVFSWrapper.dumpToDir(VFSToVFSWrapper.java:112)
at com.android.sched.vfs.VFSToVFSWrapper.dumpToDir(VFSToVFSWrapper.java:112)
at com.android.sched.vfs.VFSToVFSWrapper.dumpToDir(VFSToVFSWrapper.java:112)
at com.android.sched.vfs.VFSToVFSWrapper.dumpToDir(VFSToVFSWrapper.java:112)
at com.android.sched.vfs.VFSToVFSWrapper.dumpToDir(VFSToVFSWrapper.java:112)
at com.android.sched.vfs.VFSToVFSWrapper.close(VFSToVFSWrapper.java:99)
at com.android.sched.vfs.ReadWriteZipFS.close(ReadWriteZipFS.java:87)
at com.android.sched.vfs.GenericOutputVFS.close(GenericOutputVFS.java:56)
at com.android.jack.library.v0002.OutputJackLibraryImpl.close(OutputJackLibraryImpl.java:218)
at com.android.jack.Jack.run(Jack.java:742)
at com.android.jack.Jack.checkAndRun(Jack.java:412)
at com.android.jack.CommandLine.runJack(CommandLine.java:79)
at com.android.jack.api.v01.impl.Cli01CompilationTaskImpl.run(Cli01CompilationTaskImpl.java:85)
at com.android.jack.server.tasks.JackTask.handle(JackTask.java:188)
at com.android.jack.server.tasks.SynchronousServiceTask.handle(SynchronousServiceTask.java:49)
at com.android.jack.server.tasks.JackTaskRawOut.handle(JackTaskRawOut.java:34)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:86)
at com.android.jack.server.router.PartParserRouter.handle(PartParserRouter.java:95)
at com.android.jack.server.router.PathRouter.handle(PathRouter.java:68)
at com.android.jack.server.router.ContentTypeParameterRouter.handle(ContentTypeParameterRouter.java:88)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:86)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:86)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:86)
at com.android.jack.server.router.ContentTypeParameterRouter.handle(ContentTypeParameterRouter.java:88)
at com.android.jack.server.router.ContentTypeRouter.handle(ContentTypeRouter.java:86)
at com.android.jack.server.router.MethodRouter.handle(MethodRouter.java:69)
at com.android.jack.server.router.RootContainer.handle(RootContainer.java:51)
at org.simpleframework.http.core.RequestDispatcher.dispatch(RequestDispatcher.java:121)
at org.simpleframework.http.core.RequestDispatcher.run(RequestDispatcher.java:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.zip.ZipException: duplicate entry: jayce/com/android/internal/inputmethod/InputMethodSubtypeSwitchingController$ImeSubtypeListItem.jayce
at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:232)
at com.android.sched.util.file.OutputZipFile$CustomZipOutputStream.putNextEntry(OutputZipFile.java:150)
at com.android.sched.vfs.WriteZipFS$ZipEntryOutputStream.writeEntryIfNeeded(WriteZipFS.java:346)
... 34 more
Internal compiler error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by [email protected])).
java.util.zip.ZipException: duplicate entry: jayce/com/android/internal/inputmethod/InputMethodSubtypeSwitchingController$ImeSubtypeListItem.jayce.
Warning: This may have produced partial or corrupted output.
Couldn't find a solution to this not-so-rare problem.
I just re-ran
Code:
brunch falcon
and did not see that error again. It is not reproducible.
Now I am stuck at Out of Memory error for the same file. I tried reducing max-services for jack server in config file to 1.
I tried multiple heap sizes (2,4,6,8 GB) using -Xmx flag. No luck.
I am curious as to why AOSP built successfully and LOS is showing these errors. They both use jack-server right?
I will search for a solution for a few hours now. If anyone has any, please let me know.
Edit: Alright! I made a build without using ninja.
Code:
export USE_NINJA=false
brunch falcon
Took longer, but succeeded. It boots but SetupWizard stops after setting up Google account. Cannot bypass it to home. Deleting LineageSetupWizard in /system/priv-app using adb works.
See screenshot below.
This completes 1 task. I can start building the device tree tomorrow.
great still like this
Can you tell me size of source code ?? How long it will take to download source code
Trying to build aosp O today. Still syncing
FortoszoneID said:
Trying to build aosp O today. Still syncing
Click to expand...
Click to collapse
That is something! I'd like to test this build if you are successful.
Me too
Sent from my Moto G4 Plus using XDA-Developers Legacy app
Good step dude...
Just one request "Please focus to build Stable one rather then frequent unstable update"
I hope they do not abandon this project is very good
SunilSuni said:
Can you tell me size of source code ?? How long it will take to download source code
Click to expand...
Click to collapse
Source code should be somewhere between 20-40 GB
virajmalia said:
Source code should be somewhere between 20-40 GB
Click to expand...
Click to collapse
40 GB more likely

Categories

Resources