Search code examples
androidandroid-sourcerepository

downloading android source problems


I'm very new to this. please forgive any misuse of terminology.

I am following the steps on source.android.com to download the source for android 4.2.2_r1

I did the steps where I initialized the repo and repo init like so: repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1

I've also done repo init -u https://android.googlesource.com/platform/manifest -b master

followed my repo sync to pull down the android source tree

My question, or problem, is I want my target to be manta. The lunch command displays the following options: 1. full-eng 2. full_x86-eng 3. vbox_x86-eng 4. full_maguro-userdebug 5. full_tuna-userdebug 6. full_panda-eng

no mantas.

I hope that made sense and someone can guide me.


Solution

  • There is an easy method to add builds to lunch.

    First, check if there is a manta folder inside android_source/device/

    if it does exist, all you have to do is copy the vendorsetup.sh from one of the options that does show up in lunch and paste it into the manta folder and tweak its contents slightly.

    Now, all you need to do is rerun the . build/envsetup.sh and you should see manta in lunch