Exemplo n.º 1
0
def post_test(device):

    print "###########################################"
    print "##### STAGE 99: CLOSING TEST          #####"
    print "###########################################"
    dev = device.serialno

    print "#STEP 99.1 deactivating all wifi networks"
    wifiutils.disable_wifi_network(dev)

    print "#STEP 99.2 uninstalling AGENT"
    agent_instance = apk_dataLoader.get_apk('agent')
    agent_instance.clean(dev)

    print "#STEP 99.3 uninstalling rilcap"
    print device.shell('rilcap ru')

    print "#STEP 99.4 uninstalling eicar"
    eicar_instance = apk_dataLoader.get_apk('eicar')
    eicar_instance.clean(dev)

    #STEP 99.5: delete wifimanager!
    print "#STEP 99.5: delete wifimanager!"
    apk_instance = apk_dataLoader.get_apk('wifi_enabler')
    apk_instance.clean(dev)

    #STEP 99.6: delete ALL the avs!
    print "#STEP 99.6: delete ALL the avs!"
    for av_to_delete in avs_all:
        av_instance = apk_dataLoader.get_apk_av(av_to_delete)
        av_instance.clean(dev)

    #STEP 99.7: uninstalling BusyBox
    print "#STEP 99.7: uninstalling BusyBox"
    adb.uninstall_busybox(dev)
Exemplo n.º 2
0
def post_test(device):

    print "###########################################"
    print "##### STAGE 99: CLOSING TEST          #####"
    print "###########################################"
    dev = device.serialno

    print "#STEP 99.1 deactivating all wifi networks"
    wifiutils.disable_wifi_network(dev)

    print "#STEP 99.2 uninstalling AGENT"
    agent_instance = apk_dataLoader.get_apk('agent')
    agent_instance.clean(dev)

    print "#STEP 99.3 uninstalling rilcap"
    print device.shell('rilcap ru')

    print "#STEP 99.4 uninstalling eicar"
    eicar_instance = apk_dataLoader.get_apk('eicar')
    eicar_instance.clean(dev)

    #STEP 99.5: delete wifimanager!
    print "#STEP 99.5: delete wifimanager!"
    apk_instance = apk_dataLoader.get_apk('wifi_enabler')
    apk_instance.clean(dev)

    #STEP 99.6: delete ALL the avs!
    print "#STEP 99.6: delete ALL the avs!"
    for av_to_delete in avs_all:
        av_instance = apk_dataLoader.get_apk_av(av_to_delete)
        av_instance.clean(dev)

    #STEP 99.7: uninstalling BusyBox
    print "#STEP 99.7: uninstalling BusyBox"
    adb.uninstall_busybox(dev)
Exemplo n.º 3
0
def reset_device(dev):
    #prima di tutto disattivo il wifi (questo installa anche il wifi manager)
    wifi('disable', dev)

    #Clean all the things!
    uninstall_agent(dev)
    uninstall('wifi_enabler', dev)
    for av_to_delete in apk_dataLoader.get_av_list():
        uninstall(av_to_delete, dev)
    uninstall('eicar', dev)

    #uninstall BusyBox
    adb.uninstall_busybox(dev)

    superuserutils.uninstall_rilcap_shell(dev)
Exemplo n.º 4
0
def reset_device(dev):
    #prima di tutto disattivo il wifi (questo installa anche il wifi manager)
    wifi('disable', dev)

    #Clean all the things!
    uninstall_agent(dev)
    uninstall('wifi_enabler', dev)
    for av_to_delete in apk_dataLoader.get_av_list():
        uninstall(av_to_delete, dev)
    uninstall('eicar', dev)


    #uninstall BusyBox
    adb.uninstall_busybox(dev)


    superuserutils.uninstall_rilcap_shell(dev)