脚本:自动下载安卓应用并安装到手机

编程入门 行业动态 更新时间:2024-10-15 18:23:05
# -*- encoding: utf-8 -*-
# Feature: 自动下载android应用并安装到手机
# Time:2021/7/23 12:51   
import os
import glob
import time
import logging
import requests
import traceback

logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s - %(message)s')

def get_apk_file():
    '''
    :return: 获取某个文件夹下的所有文件名
    '''
    file_apk = []
    path = '\resource\\'
    for filename in os.listdir(path):
        x = filename.split(".apk")[0]
        file_apk.append(x)
    return file_apk

def get_installed_apk():
    '''
    :return: 手机里已经安装的apk
    '''
    try:
        installed_app_list = []
        installed_app = os.popen(f"adb shell pm list packages").readlines()
        for item in installed_app:
            # print("获取的值::", item)
            installed_apk_name = item.split(":")[1].split("\n")[0]
            # print("installed_apk_name:", installed_apk_name)
            installed_app_list.append(installed_apk_name)
        return installed_app_list
    except BaseException as E:
        traceback.print_exc()
        print("Please make sure the phone is connected to the computer!")

def need_install_apk(dict_need_apk):
    '''
    :return:   需安装的apk
    '''
    # 文件夹有的
    x2 = get_apk_file()
    print("文件夹已有的apk:",x2)
    print("资源文件里已经下载的能用到的应用数量:", len(x2))
    real_need_download = []
    need_apk = []
    for item in dict_need_apk.keys():
        need_apk.append(item.strip())
    # 已经安装的
    x1 = get_installed_apk()
    for temp in need_apk:
        if temp not in x2:
            if temp not in x1:
                real_need_download.append(temp)
    return real_need_download

def download_apk(dict_need_apk):
    '''
    :param dict_need_apk: 测试需要的所有应用包名:URL字典
    :return:
    '''
    num = 0
    try:
        # 需要安装的apk名字
        need_apk_name_list = need_install_apk(dict_need_apk)
        # 找到需要安装apk名字的链接
        for key, value in dict_need_apk.items():
            if key in need_apk_name_list:
                url=value
                num += 1
                logging.info(f"第{num}个应用正在下载,下载速度depend on网络带宽和应用大小......")
                print(f"The {num}th app is downloading, and the download speed depends on network bandwidth and the "
                      f"size of app ")
                res = requests.get(url).content
                dir_path = 'resource\\'
                # dir_name = os.path.join(dir_path, "resource")
                with open(f"{dir_path}/{key}.apk", "wb") as fp:
                    fp.write(res)
                    print(f"成功下载第{num}个应用到文件夹")
                    time.sleep(5)
        return True
    except BaseException as E:
        traceback.print_exc()
        print("The download is abnormal, please run again to confirm. If you report this abnormality repeatedly, "
              "please contact the core experience department classmate: Luo Bing1~_^")

def install_apk():
    dict_need_apk = {
        "com.android.vending": "https://app.mi/download/191?id=com.android.vending&ref=search&nonce=2709602472671176931%3A26992095&appClientId=2882303761517485445&appSignature=AcmuTL50R7ojVAk3LfeYn5JtlWCcFUcCfFZhbj3J2cw",
        "com.mxtech.videoplayer.ad": "https://app.mi/download/2010?id=com.mxtech.videoplayer.ad&ref=search&nonce=-5120960665555565319%3A26992097&appClientId=2882303761517485445&appSignature=kuTK6N6UcnlEZEj5Bqr6Z0K00U4ERuR4HLZouWV4j3c",

        "com.tencent.mtt": "https://app.mi/download/297?id=com.tencent.mtt&ref=search&nonce=-6067055323619216180%3A26992098&appClientId=2882303761517485445&appSignature=PHMS9TzjbRZAIRhUGdB-x9PVzw1OFf6CLr7T8HCjN7g",
        "com.UCMobile": "http://p.gdown.baidu/8ebfb89a37ae088a2a80439d89192df569e9b8747980ed086dc302c851636f7aa70479b432b1e779f26aafa106327dab36f72ca337a7172452abac4a4def29c5c58f29b5df2eeb1196bee32f8bfb041c3b34f189fbcd34f55f8ef2df9f6c499892f8aabd4a634fa7911f425461d0738a12f5e5ac71c57c5938f29814a7bc09dcd93b03f0e633bd7c108eae589dc73477ec6daf78892e0875f60776074b9b3815fdec5788711c2205",
        "com.hipu.yidian": "http://p.gdown.baidu/a39eb6f8db117bae91bdd4b9e704a253537696c95b9c7c383da6d7e4d5932d7090549cfff970fce78153df4f225021c270e6a0bd0d629c84ea25acc6ae12acc316cc2106f68f18e01773c871e63d0c20de0d84a94d541d71803689a5da03421b39ca779c215174d6cdb364153f0d9a10d9e4114e5abf00149f882388a179d3c644ff3c7c415a9ace64d554da85320db6b5c271bc32497c02bdf127cac2cab13fab7ef69a729ede56db8278e70d5f7c59af3f8b8c92ed3e748f26647a19b39c22c58ff296ac00afd7823c191455648a00536c20fd81f9e8482d7a3c3a04bef86c4e271f36119dd28969f65f0da0b13a58141cf0cf4368df6170c87bd8e3714941eee2dd5b8f3237926909be49ec462cfed18307c91f9d554f7730657c9e9f549ed340fdf50d50ac91ffeded54a41be82ceff068de1fc2b2e06f3e3a9f64db2d555ec3ee083db2ba69dd43cf25963bde71dfc4ed4d4665f2f1",
        "com.ss.android.article.news": "http://p.gdown.baidu/b11d9602dc3a1c017aee002b7d1fe25af57b63721bfb5c684bf4e5d8c3e86fad0c68b0da0cdb251f52651f73c5d0e634c854eb6d89c3993792b98df13a46a23a2c40b7e3c076030b35434fd7a90b419827ab59e993bf10a81a4d25e5b1fd0244a7de73f08c683e3124378f86469372b16553f2167addae8551edee3bd2823029215f8bbe276a4912be17c95701709d34",
        "com.ss.android.article.lite": "https://app.mi/download/440188?id=com.ss.android.article.lite&ref=search&nonce=1094704538085108430%3A26992102&appClientId=2882303761517485445&appSignature=vnX3d5r1mE63RiyRq3WZq_aHyN89F1ioo-pn08MgtbQ",
        "com.youku.phone": "http://gdown.baidu/data/wisegame/aef81dac39975588/3a61aef81dac39975588fd9154eacebe.apk",
        "com.tencent.karaoke": "http://gdown.baidu/data/wisegame/1bb0a4c89c6e94de/d0761bb0a4c89c6e94de1a4af85447e2.apk",
        "com.smile.gifmaker": "http://p.gdown.baidu/9fc18fa4497653e47fac12e8cb30d70d2b1f0730c5f84653e3ab09ca74771ce26536a89fb2fd59bcd91e3c30bf81d356b2db4d82703790203a791a72dd84b2eda1e6c791c58f181854478bcf3485b852baee525eedb1843985fd1ee63c8fec9c723cd775c6a9d1292ed6b6e06ab70837cdf140012b39df0edef4e92d06a03713900ec604a3e1e57e1dee9881f536bdd0891a39be91d86ebb304a151629fcd92110ac2d1bfa03be74ec161d24b91305896578f04bd6726743141cf0cf4368df6190930e5a372e4725f3b3f1f0f1a9c2d8fda97880dcb2142f1ae44eae714fb27433bb720923495a5e20ad04bbc250918109c5e5c5fb1b6e39e788b6d52936888360ef1ba9f5449ed45656b1de4268019105ae1c7bedc031805241188279336373",
        "com.ss.android.ugc.aweme": "https://app.mi/download/431355?id=com.ss.android.ugc.aweme&ref=search&nonce=6113009856369216645%3A26992105&appClientId=2882303761517485445&appSignature=W6V6QizpFG89zDPr3_M_IsgND-r6VkFIyQf5PynZTgc",
        "com.ss.android.ugc.live": "http://p.gdown.baidu/f022adfb05f9da6484daf6c9b5a37c71e1c956d1de973c30168a558990a3aa1b34a1d7a2e51c3b03c1250aa4f4faf971aa203944249f08ffd42c2ac7d5ad142ea7f4a43b68846eba6c51cd87caa78bf5e0a298bb97d56738a79655df0dbfdf408f716d1d8cebf143d9e3b224cef90a2b45425ca1397777c868c3bd076a9b4ef9262707edcd5164b4b8420f96f1a4d67c",
        "com.qiyi.video": "https://app.mi/download/125?id=com.qiyi.video&ref=search&nonce=7946322236421729006%3A26992106&appClientId=2882303761517485445&appSignature=1wdmWBGFZ-9rFVVumbepDIUym_3_odXVYQKei4C2-2I",
        "com.baidu.searchbox": "http://p.gdown.baidu/fd3821a1b5f15877b6cd5bea850b34fe1cb49a586303fb90046720b06fc7f712a20372cc899405cb82f0d1dc1e946eb40e45e6d4f0dc35584b7fe6ae880867c93322e66e0d357f7498d1ee4874f9c02efe3bb9ec7752826a8f877b5818ebef730fcd168eb6477b349f344a8ff7d0e2c982bde17f40314b1afabeadfb9972ca757cbd90aaf1aaaed496ac379447e037b9910a2d3f383a62cbcf2b8ce84a214ba9c8c144cac4d159d847888ae82bfdc912e03bf5686f5f41b6546e953cb95a55474f73ab5eeb0d04bc62c585de743d158217ae182df74db33ba0d82c5b13e0484dd442cad9c642093049bfb087abe5d3ad2093102d7e6c0d3e7d651b1d7af27d97d7f2d21b1b9ba6e6dbd4354efcc432d0ce55dd8b35cdd61800db6bb02c4a78380f60e01bd20d6e2e08e7eb141094a65d00e6399701d83d47359c6e64cc33bbfa5e66d3d8ce172043336bfcdc341db6bcace97b234b283f73",
        "com.baidu.BaiduMap": "https://app.mi/download/219?id=com.baidu.BaiduMap&ref=search&nonce=1479830761739233133%3A26992107&appClientId=2882303761517485445&appSignature=-GyWtF7qxuYTnDko110KfcnclPC_ZxZ4dTrEuJkblf8",
        "com.lr.us.modern.shooting.arena.off": "https://app.mi/download/1323788?id=com.lr.us.modern.shooting.arena.off&ref=search&nonce=-4195315384612526310%3A26992108&appClientId=2882303761517485445&appSignature=BrpytVMIPqVtR8azB1KniWJFN53apRlvj_kprpp11Jw",
        "com.tencent.news": "http://p.gdown.baidu/1d0c3d05cf0938bf911590be040a87c96e78c9e36a971e05c12f06a1102d1b10cd863ccddb6f475260bcd8813b455ae7a540f0022c5607b3fbd70c3c41ab75817a8b28630327815197078d07103a7214745e7e363d73c46b8358eb29b64f0e42da99b28a1303dec782832b9bc202d2d3f9dea22851df2ff29b7f62149cec856a7e95ee348ad73b99d7517c77539489750f26bbff88e9b53f053c51093331d66a3b00514d591b4cb60b76a5d0bf5243af8cbcb34392b182488461106c68874bb00364bf2b3bad23dbc845c5bc58d922d2ef7d3974e5f13fbfbf73fab6bc6a32c3141cf0cf4368df61de8a193e0803b5879a3af977b534437c8ad76599816ba631e1e8c5661e2dd8fd819b87aa037f79362ffbbb6c980aa06e02173e1addf4fb4df8fbee41c61206255ff5e7fca3bf850d8ba6865de836171b3575c10c6cdd549d5b38ddf2d1e9818d",
        "com.tencent.qqlive": "http://p.gdown.baidu/9a47862e4a45b9fd64450bb98b4f7445b262514770a683b406bd48e9fd89d2cc4023800ce0020446445b6ec7faf7e1d83aea78e394509766b1bedb40439e49587b0b7349510f854576e0d98df62ff3e7b65b634a53ed4a8ba2386592b05689ea7c65bf9ef9522fd91a4097a7c2a59a3ca0f56a6febfa50b0126ec6154ee5bd44f35fe28736262e5d2108cd37aafb035b105cc31d6bfa23b8141cf0cf4368df6119aa6c3acba0fbaff1db5ec84817eb647ef71ae874cfc510a4a13fb33c8913b7bdc00cb0464977504dbd6690ddc4bad65f638a818ad12301457e98dad4484754de197e2f90ad9d2dd69c93cf6726d04bc9dee98aabd1941f5241188279336373",
        "com.ss.android.article.video": "https://app.mi/download/427443?id=com.ss.android.article.video&ref=search&nonce=-4934495666489632731%3A26992109&appClientId=2882303761517485445&appSignature=FJwCdWbUr4TmIJJvBa8La4ixgLBA6WQOB318mFlX2Ng",
        "com.jifen.qukan": "https://app.mi/download/419869?id=com.jifen.qukan&ref=search&nonce=-2181494281013384885%3A26992110&appClientId=2882303761517485445&appSignature=ulAHs3d8yO4oa_AHGLJw_qNIEhyOyrp6JdzurM5bx28",
        "com.autonavi.minimap": "https://app.mi/download/1338?id=com.autonavi.minimap&ref=search&nonce=-4213812270469617501%3A26992110&appClientId=2882303761517485445&appSignature=vTp_1CyWT71gc0x4SjtirNNE9GgBC_uqyQx0bf-HXxw",
        "com.duokan.reader": "https://app.mi/download/1108?id=com.duokan.reader&ref=search&nonce=-1128611385062265221%3A26992111&appClientId=2882303761517485445&appSignature=co7RQKJyelzbouXa_8Qc6n3gCCLSz_MjqHZ_33fBMi0",
        "com.tencent.tmgp.sgame": "http://gdown.baidu/data/wisegame/bfa185f3c4d7d631/1f42bfa185f3c4d7d6317084d509ac04.apk"
    }
    dir_path = '\\resource\\'
    dir_name = os.path.join(dir_path)
    # dir_name = os.path.join(dir_path, "resource")
    os.chdir(f'{dir_name}')
    # 获取apps
    file_list = []
    fileList = glob.glob('*.apk')
    print("文件夹下的应用:::", fileList)
    file_list =fileList
    # not_installed_pk = need_install_apk(dict_need_apk)
    # print("还没安装的应用:::", not_installed_pk)
    # for item in fileList:
    #     if item in not_installed_pk:
    #         file_list.append(item)
    # print("真正需要安装的应用:::", file_list)
    # app数量
    file_index = len(file_list)
    # 存放app
    file_list_finally = []
    if file_index != 0:
        print('%s, %d' % (file_list, file_index))
        if file_index == 1:
            print(f"The number of local apps {file_index}")
            logging.info(f'本地存在app数量{file_index}')
            # 如果只有一个app,特殊处理
            num0 = 0
            for file_num in range(file_index):
                file_list_finally.append(file_list[file_num])
                print('%d: %s ' % (file_num + 1, file_list[file_num]))
                app_name = file_list[file_num]
                num0 += 1
                print(f"The {num0}th apk is being installed *_*")
                os.system(f"adb install -t {app_name}")
                time.sleep(5)
        # 如果有多个app,进行安装
        elif file_index > 1:
            print(f"The number of local apps {file_index}")
            for file_num in range(file_index):
                app_name = file_list[file_num]
                os.system(f"adb install -r {app_name}")
                time.sleep(5)
    else:
        print("All test apk are installed*_*")

if __name__ == '__main__':
    # 部分应用下载安装过程中由于网站链接签名失效,所以可能会存在安装失败的情况,这个时候请手动安装一下
    dict_need_apk = {
        "com.android.vending": "https://app.mi/download/191?id=com.android.vending&ref=search&nonce=2709602472671176931%3A26992095&appClientId=2882303761517485445&appSignature=AcmuTL50R7ojVAk3LfeYn5JtlWCcFUcCfFZhbj3J2cw",
        "com.mxtech.videoplayer.ad": "https://app.mi/download/2010?id=com.mxtech.videoplayer.ad&ref=search&nonce=-5120960665555565319%3A26992097&appClientId=2882303761517485445&appSignature=kuTK6N6UcnlEZEj5Bqr6Z0K00U4ERuR4HLZouWV4j3c",
        "com.tencent.mtt": "https://app.mi/download/297?id=com.tencent.mtt&ref=search&nonce=-6067055323619216180%3A26992098&appClientId=2882303761517485445&appSignature=PHMS9TzjbRZAIRhUGdB-x9PVzw1OFf6CLr7T8HCjN7g",
        "com.UCMobile": "http://p.gdown.baidu/8ebfb89a37ae088a2a80439d89192df569e9b8747980ed086dc302c851636f7aa70479b432b1e779f26aafa106327dab36f72ca337a7172452abac4a4def29c5c58f29b5df2eeb1196bee32f8bfb041c3b34f189fbcd34f55f8ef2df9f6c499892f8aabd4a634fa7911f425461d0738a12f5e5ac71c57c5938f29814a7bc09dcd93b03f0e633bd7c108eae589dc73477ec6daf78892e0875f60776074b9b3815fdec5788711c2205",
        "com.hipu.yidian": "http://p.gdown.baidu/a39eb6f8db117bae91bdd4b9e704a253537696c95b9c7c383da6d7e4d5932d7090549cfff970fce78153df4f225021c270e6a0bd0d629c84ea25acc6ae12acc316cc2106f68f18e01773c871e63d0c20de0d84a94d541d71803689a5da03421b39ca779c215174d6cdb364153f0d9a10d9e4114e5abf00149f882388a179d3c644ff3c7c415a9ace64d554da85320db6b5c271bc32497c02bdf127cac2cab13fab7ef69a729ede56db8278e70d5f7c59af3f8b8c92ed3e748f26647a19b39c22c58ff296ac00afd7823c191455648a00536c20fd81f9e8482d7a3c3a04bef86c4e271f36119dd28969f65f0da0b13a58141cf0cf4368df6170c87bd8e3714941eee2dd5b8f3237926909be49ec462cfed18307c91f9d554f7730657c9e9f549ed340fdf50d50ac91ffeded54a41be82ceff068de1fc2b2e06f3e3a9f64db2d555ec3ee083db2ba69dd43cf25963bde71dfc4ed4d4665f2f1",
        "com.ss.android.article.news": "http://p.gdown.baidu/b11d9602dc3a1c017aee002b7d1fe25af57b63721bfb5c684bf4e5d8c3e86fad0c68b0da0cdb251f52651f73c5d0e634c854eb6d89c3993792b98df13a46a23a2c40b7e3c076030b35434fd7a90b419827ab59e993bf10a81a4d25e5b1fd0244a7de73f08c683e3124378f86469372b16553f2167addae8551edee3bd2823029215f8bbe276a4912be17c95701709d34",
        "com.ss.android.article.lite": "https://app.mi/download/440188?id=com.ss.android.article.lite&ref=search&nonce=1094704538085108430%3A26992102&appClientId=2882303761517485445&appSignature=vnX3d5r1mE63RiyRq3WZq_aHyN89F1ioo-pn08MgtbQ",
        "com.youku.phone": "http://gdown.baidu/data/wisegame/aef81dac39975588/3a61aef81dac39975588fd9154eacebe.apk",
        "com.tencent.karaoke": "http://gdown.baidu/data/wisegame/1bb0a4c89c6e94de/d0761bb0a4c89c6e94de1a4af85447e2.apk",
        "com.smile.gifmaker": "http://p.gdown.baidu/9fc18fa4497653e47fac12e8cb30d70d2b1f0730c5f84653e3ab09ca74771ce26536a89fb2fd59bcd91e3c30bf81d356b2db4d82703790203a791a72dd84b2eda1e6c791c58f181854478bcf3485b852baee525eedb1843985fd1ee63c8fec9c723cd775c6a9d1292ed6b6e06ab70837cdf140012b39df0edef4e92d06a03713900ec604a3e1e57e1dee9881f536bdd0891a39be91d86ebb304a151629fcd92110ac2d1bfa03be74ec161d24b91305896578f04bd6726743141cf0cf4368df6190930e5a372e4725f3b3f1f0f1a9c2d8fda97880dcb2142f1ae44eae714fb27433bb720923495a5e20ad04bbc250918109c5e5c5fb1b6e39e788b6d52936888360ef1ba9f5449ed45656b1de4268019105ae1c7bedc031805241188279336373",
        "com.ss.android.ugc.aweme": "https://app.mi/download/431355?id=com.ss.android.ugc.aweme&ref=search&nonce=6113009856369216645%3A26992105&appClientId=2882303761517485445&appSignature=W6V6QizpFG89zDPr3_M_IsgND-r6VkFIyQf5PynZTgc",
        "com.ss.android.ugc.live": "http://p.gdown.baidu/f022adfb05f9da6484daf6c9b5a37c71e1c956d1de973c30168a558990a3aa1b34a1d7a2e51c3b03c1250aa4f4faf971aa203944249f08ffd42c2ac7d5ad142ea7f4a43b68846eba6c51cd87caa78bf5e0a298bb97d56738a79655df0dbfdf408f716d1d8cebf143d9e3b224cef90a2b45425ca1397777c868c3bd076a9b4ef9262707edcd5164b4b8420f96f1a4d67c",
        "com.qiyi.video": "https://wap.pp/app/dl/fs08/2021/07/20/7/106_203d90079dc60526eb43511a0afff83e.apk",
        "com.baidu.searchbox": "http://p.gdown.baidu/fd3821a1b5f15877b6cd5bea850b34fe1cb49a586303fb90046720b06fc7f712a20372cc899405cb82f0d1dc1e946eb40e45e6d4f0dc35584b7fe6ae880867c93322e66e0d357f7498d1ee4874f9c02efe3bb9ec7752826a8f877b5818ebef730fcd168eb6477b349f344a8ff7d0e2c982bde17f40314b1afabeadfb9972ca757cbd90aaf1aaaed496ac379447e037b9910a2d3f383a62cbcf2b8ce84a214ba9c8c144cac4d159d847888ae82bfdc912e03bf5686f5f41b6546e953cb95a55474f73ab5eeb0d04bc62c585de743d158217ae182df74db33ba0d82c5b13e0484dd442cad9c642093049bfb087abe5d3ad2093102d7e6c0d3e7d651b1d7af27d97d7f2d21b1b9ba6e6dbd4354efcc432d0ce55dd8b35cdd61800db6bb02c4a78380f60e01bd20d6e2e08e7eb141094a65d00e6399701d83d47359c6e64cc33bbfa5e66d3d8ce172043336bfcdc341db6bcace97b234b283f73",
        "com.baidu.BaiduMap": "https://app.mi/download/219?id=com.baidu.BaiduMap&ref=search&nonce=1479830761739233133%3A26992107&appClientId=2882303761517485445&appSignature=-GyWtF7qxuYTnDko110KfcnclPC_ZxZ4dTrEuJkblf8",
        "com.lr.us.modern.shooting.arena.off": "https://app.mi/download/1323788?id=com.lr.us.modern.shooting.arena.off&ref=search&nonce=-4195315384612526310%3A26992108&appClientId=2882303761517485445&appSignature=BrpytVMIPqVtR8azB1KniWJFN53apRlvj_kprpp11Jw",
        "com.tencent.news": "http://p.gdown.baidu/1d0c3d05cf0938bf911590be040a87c96e78c9e36a971e05c12f06a1102d1b10cd863ccddb6f475260bcd8813b455ae7a540f0022c5607b3fbd70c3c41ab75817a8b28630327815197078d07103a7214745e7e363d73c46b8358eb29b64f0e42da99b28a1303dec782832b9bc202d2d3f9dea22851df2ff29b7f62149cec856a7e95ee348ad73b99d7517c77539489750f26bbff88e9b53f053c51093331d66a3b00514d591b4cb60b76a5d0bf5243af8cbcb34392b182488461106c68874bb00364bf2b3bad23dbc845c5bc58d922d2ef7d3974e5f13fbfbf73fab6bc6a32c3141cf0cf4368df61de8a193e0803b5879a3af977b534437c8ad76599816ba631e1e8c5661e2dd8fd819b87aa037f79362ffbbb6c980aa06e02173e1addf4fb4df8fbee41c61206255ff5e7fca3bf850d8ba6865de836171b3575c10c6cdd549d5b38ddf2d1e9818d",
        "com.tencent.qqlive": "http://p.gdown.baidu/9a47862e4a45b9fd64450bb98b4f7445b262514770a683b406bd48e9fd89d2cc4023800ce0020446445b6ec7faf7e1d83aea78e394509766b1bedb40439e49587b0b7349510f854576e0d98df62ff3e7b65b634a53ed4a8ba2386592b05689ea7c65bf9ef9522fd91a4097a7c2a59a3ca0f56a6febfa50b0126ec6154ee5bd44f35fe28736262e5d2108cd37aafb035b105cc31d6bfa23b8141cf0cf4368df6119aa6c3acba0fbaff1db5ec84817eb647ef71ae874cfc510a4a13fb33c8913b7bdc00cb0464977504dbd6690ddc4bad65f638a818ad12301457e98dad4484754de197e2f90ad9d2dd69c93cf6726d04bc9dee98aabd1941f5241188279336373",
        "com.ss.android.article.video": "https://app.mi/download/427443?id=com.ss.android.article.video&ref=search&nonce=-4934495666489632731%3A26992109&appClientId=2882303761517485445&appSignature=FJwCdWbUr4TmIJJvBa8La4ixgLBA6WQOB318mFlX2Ng",
        "com.jifen.qukan": "https://app.mi/download/419869?id=com.jifen.qukan&ref=search&nonce=-2181494281013384885%3A26992110&appClientId=2882303761517485445&appSignature=ulAHs3d8yO4oa_AHGLJw_qNIEhyOyrp6JdzurM5bx28",
        "com.autonavi.minimap": "https://app.mi/download/1338?id=com.autonavi.minimap&ref=search&nonce=-4213812270469617501%3A26992110&appClientId=2882303761517485445&appSignature=vTp_1CyWT71gc0x4SjtirNNE9GgBC_uqyQx0bf-HXxw",
        "com.duokan.reader": "https://app.mi/download/1108?id=com.duokan.reader&ref=search&nonce=-1128611385062265221%3A26992111&appClientId=2882303761517485445&appSignature=co7RQKJyelzbouXa_8Qc6n3gCCLSz_MjqHZ_33fBMi0",
        "com.tencent.tmgp.sgame": "http://gdown.baidu/data/wisegame/bfa185f3c4d7d631/1f42bfa185f3c4d7d6317084d509ac04.apk"
    }

    install_apk()

更多推荐

脚本:自动下载安卓应用并安装到手机

本文发布于:2023-06-13 08:28:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1365983.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:并安装   脚本   手机

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!