android 在lunch选项中添加项目名

sancaiodm Bug异常与ODM定制 2021-09-15 1965 0

MTK平台  在alps\device\mediateksample\project-name\AndroidProducts.mk中添加你的项目名aaa,即可

SPRD平台     aosp/device/sprd/project-name/AndroidProducts.mk


    full_aaaa_101-eng \

    full_aaaa_101-userdebug \

    full_aaaa_101-user  

如果要过滤则是可以按下面:

diff --git a/alps/build/make/envsetup.sh b/alps/build/make/envsetup.sh

index 9e381a23e3..16e529af12 100755

--- a/alps/build/make/envsetup.sh

+++ b/alps/build/make/envsetup.sh

@@ -577,6 +577,11 @@ function print_lunch_menu()

     local choice

     for choice in $(TARGET_BUILD_APPS= get_build_var COMMON_LUNCH_CHOICES)

     do

+#added for filter out starting with _vnd start

+        if [[ $choice == vnd_* ]]; then

+            continue

+        fi

+#added for filter out starting with _vnd end

         echo "     $i. $choice"

         i=$(($i+1))

     done

@@ -631,6 +636,14 @@ function lunch()

         fi

     fi

 

+#added for filter out starting with _vnd start //此问题是GMS版本过滤

+        if [[ $product == vnd_* ]]; then

+            echo

+            echo "Invalid lunch combo:  filter out $selection"

+            return 1

+        fi

+#added for filter out starting with _vnd end

     if [ -z "$product" ]

     then

         echo


评论