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 > and <'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!
Related
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.
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.
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
I'm stuck following googles source documents as what to do next. I have download the source code as described here and I have done this "git clone https://android.googlesource.com/kernel/msm.git". I see the ".git" file in the working directory but I'm confused as to what to do next. Where are the kernel files? I dont see the files that I see here: https://android.googlesource.com/kernel/msm.git/+/android-msm-marlin-3.18-nougat-mr1. Maybe I am confused but I'm just not sure what to do next. Any help or info will be appreciated.
ducksauce88 said:
I'm stuck following googles source documents as what to do next. I have download the source code as described here and I have done this "git clone https://android.googlesource.com/kernel/msm.git". I see the ".git" file in the working directory but I'm confused as to what to do next. Where are the kernel files? I dont see the files that I see here: https://android.googlesource.com/kernel/msm.git/+/android-msm-marlin-3.18-nougat-mr1. Maybe I am confused but I'm just not sure what to do next. Any help or info will be appreciated.
Click to expand...
Click to collapse
Well, there are a buncha guides over here if you look in.
Ive found one for you - [Guide] build a kernel .
sachin n said:
Well, there are a buncha guides over here if you look in.
Ive found one for you - [Guide] build a kernel .
Click to expand...
Click to collapse
I've searched the forums and they are all out dated. The one you linked is from 2012. Google's documentation has changed and I can't find any extra info that is aligned with googles documentation.
Need some advice here, thought I'd give building Lineage from source a go as it would open up a whole lot of opportunities from there. But I didn't think it would require a massive (unknown size) download to even begin. Could anyone give me an idea of realistically what a repo sync such as "repo init -u https://github.com/LineageOS/android.git -b cm-14.1" would make me download.?
Unfortunately I'm an aussie and data caps are quite strict here, so I can't really go out downloading massive files of unknown sizes.
Well I had to stay up several nights in a row buttt I finally downloaded the 14.1 repo, and it's roughly 20GB .
Spooderman46 said:
Need some advice here, thought I'd give building Lineage from source a go as it would open up a whole lot of opportunities from there. But I didn't think it would require a massive (unknown size) download to even begin. Could anyone give me an idea of realistically what a repo sync such as "repo init -u https://github.com/LineageOS/android.git -b cm-14.1" would make me download.? Unfortunately I'm an aussie and data caps are quite strict here, so I can't really go out downloading massive files of unknown sizes.
Click to expand...
Click to collapse
I've never built a Custom ROM but, your best bet is to post this question within the following thread guide specific to your question.
https://forum.xda-developers.com/showthread.php?t=3551484
There's other guides on the forum but, that one seems, to me, to be the most active one.
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
Ibuprophen said:
I've never built a Custom ROM but, your best bet is to post this question within the following thread guide specific to your question.
https://forum.xda-developers.com/showthread.php?t=3551484
There's other guides on the forum but, that one seems, to me, to be the most active one.
Good Luck!
Click to expand...
Click to collapse
Thanks, I'll try over there