<GMS> compilation process

Source: Internet
Author: User

1#!/bin/Bash2my_android_dir=$ (pwd)3my_build_board="POLARIS-G739_WIFI_HD"4Gms_device=V_tab_7_lite_ii5gms_product=V_tab_7_lite_ii6Is_clean_android=7 8 functionexports_env ()9 {TenSOURCE Build/envsetup.SH OneLunch v_tab_7_lite_ii-User A } -  - functionGms_clean () the { -     RM-RF out/dist/ -      MakeInstallclean - } +  - functiongms_build_firm () + { A  at      Make-J12 - Pack $MY _build_board - get_uboot $MY _build_board -      Make-J8 Dist - } -  in functiongms_signed () - { to./build/tools/releasetools/sign_target_files_apks-d device/softwinner/v_tab_7_lite_ii/security Out/dist/V_TAB_7_ lite_ii-target_files-$ (Date+%y%m%d).ZipOut/dist/signed-target-files.Zip +   theExpect-c" *Set timeout -;  $   Panax NotoginsengSpawn./build/tools/releasetools/sign_target_files_apks-d DEVICE/SOFTWINNER/V_TAB_7_LITE_II/SECURITY-E CN.WPS.MOFFICE_ENG.APK,COM.VESTEL.SMARTCENTER.APK,COM.ESTRONGS.ANDROID.POP.APK,VIDEOTEST.APK,DRAGONFIRE.APK, Dragonphone.apk,softwinnerservice.apk,softwinnerservice.apk,com.mxtech.videoplayer.ad.apk=device/softwinner/v_ Tab_7_lite_ii/security/releasekey out/dist/v_tab_7_lite_ii-target_files-$ (Date+%y%m%d).ZipOut/dist/signed-target-files.Zip -  the Expect { +\"*password*\ "{send \" brn\r\ "; exp_continue} A\"*password*\ "{send \" brn\r\ "; exp_continue} the\"*password*\ "{send \" brn\r\ "; exp_continue} +\"*password*\ "{send \" brn\r\ ";} -};" $  $  - } - functiongms_makeimg () the { -./build/tools/releasetools/img_from_target_files Out/dist/signed-target-files.ZipOut/dist/signed-img.ZipWuyi     RM-RF out/dist/signed-img/ the     mkdir-P out/dist/signed-img -     UnzipOut/dist/signed-img.Zip-D out/dist/signed-img Wu     CPOut/dist/signed-img/*. IMG $OUT/ - pack-s $MY _build_board About } $ function gms_auto_sign () - { - local unsigned_apk= './build/tools/releasetools/sign_target_files_apks-d device/softwinner/$GMS _device/ Security out/dist/$GMS _product-target_files-$ (date +%y%m%d). zip Out/dist/signed-target-files.zip | grep \.apk$ | awk ' {printf '%s, ', ' $} ' | Sed-e ' s///g ' | Sed-e ' s/,$//g ' - Echo $UNSIGNED _apk A expect-c "" sign_apk $GMS _device $GMS _product $UNSIGNED _apk + } the function Gms_ota () - { $ ./build/tools/releasetools/ota_from_target_files Out/dist/signed-target-files.zip Out/dist/signed-ota.zip  the build_ota_inc= the ls *.zip >/dev/null 2>&1 the if [$?-eq 0]; Then the build_ota_inc= "true" - MV *.zip Old-signed-target-files.zip in if [$?-eq 0]; Then the echo "Discover Gms-ota base package, modify name Old-signed-target-files.zip, compile differential package !!" the Else About echo "The Android directory already has a. zip package, please confirm the deletion after compiling" the fi the fi the if ["$BUILD _ota_inc" = "true"]; Then + echo-e "\033[31m============== build_ota_inc= $BUILD _ota_inc ============== \033[0m" - ./build/tools/releasetools/ota_from_target_files-i Old-signed-target-files.zip out/dist/ Signed-target-files.zip out/dist/signed-ota-inc-' Date +%y%m%d '. zip the fiBayi } the  the While getopts b:c OPTION -  Do - Case $OPTION in the c) is_clean_android=1 the         ;; the b) my_build_board= $OPTARG the         ;; - m) my_password= $OPTARG the         ;; the Esac the  Done94  the exports_env the Gms_clean the gms_build_firm98 gms_auto_sign About gms_makeimg - Gms_ota

<GMS> compilation process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.