# Path: androguard/core/androconf.py
# ANDROGUARD_VERSION = __version__
# CONF = Configuration()
#     R = color[1:3]
#     G = color[3:5]
#     B = color[5:7]
#     R = int(R, 16)
#     G = int(G, 16)
#     B = int(B, 16)
#     R = startcolor[0]
#     G = startcolor[1]
#     B = startcolor[2]
# class InvalidResourceError(Exception):
# class Configuration:
# def is_ascii_problem(s):
#     def __init__(self):
#     def __getattr__(self, item):
#     def __getitem__(self, item):
#     def __setitem__(self, key, value):
#     def __str__(self):
#     def __repr__(self):
# def is_android(filename):
# def is_android_raw(raw):
# def show_logging(level=logging.INFO):
# def set_options(key, value):
# def rrmdir(directory):
# def make_color_tuple(color):
# def interpolate_tuple(startcolor, goalcolor, steps):
# def color_range(startcolor, goalcolor, steps):
# def load_api_specific_resource_module(resource_name, api=None):


import sys, os
import hashlib, urllib, urllib2, json
    import requests
        import traceback
        import traceback
from optparse import OptionParser
from androguard.core import androconf
        print 'You do not have permissions to make that call.\nThat should not have happened, please contact us.\n[Error 403].'
        return 0
    elif code == 204:
        print 'The quota limit has exceeded, please wait and try again soon.\nIf this problem continues, please contact us.\n[Error 204].'
        return 0
    else:
        print self.errmsg + '\n[Error '+str(code)+']'
        return 0
    
def getSelected( options ):
    # -f / --file
    if options.file != None:
        if os.path.isfile(options.file):
            ret_type = androconf.is_android( options.file )
            if ret_type == "APK" or ret_type == "DEX" :
                return ["file/report", options.file]
            else:
                print "input file should be apk/dex..."
                return None
        else:
            print "Could not find file..."
            return None

    # -x / --hash
    elif options.hash != None:
        return ["file/report", options.hash]
    
    # -s / --scan                
    elif options.scan != None:
        if os.path.isfile(options.scan):

# Path: androguard/core/androconf.py
# ANDROGUARD_VERSION = __version__
# CONF = Configuration()
#     R = color[1:3]
#     G = color[3:5]
#     B = color[5:7]
#     R = int(R, 16)
#     G = int(G, 16)
#     B = int(B, 16)
#     R = startcolor[0]
#     G = startcolor[1]
#     B = startcolor[2]
# class InvalidResourceError(Exception):
# class Configuration:
# def is_ascii_problem(s):
#     def __init__(self):
#     def __getattr__(self, item):
#     def __getitem__(self, item):
#     def __setitem__(self, key, value):
#     def __str__(self):
#     def __repr__(self):
# def is_android(filename):
# def is_android_raw(raw):
# def show_logging(level=logging.INFO):
# def set_options(key, value):
# def rrmdir(directory):
# def make_color_tuple(color):
# def interpolate_tuple(startcolor, goalcolor, steps):
# def color_range(startcolor, goalcolor, steps):
# def load_api_specific_resource_module(resource_name, api=None):


# Path: tools/andrototal.py
import sys, os
import hashlib, urllib, urllib2, json
    import requests
        import traceback
        import traceback
from optparse import OptionParser
from androguard.core import androconf

        print 'You do not have permissions to make that call.\nThat should not have happened, please contact us.\n[Error 403].'
        return 0
    elif code == 204:
        print 'The quota limit has exceeded, please wait and try again soon.\nIf this problem continues, please contact us.\n[Error 204].'
        return 0
    else:
        print self.errmsg + '\n[Error '+str(code)+']'
        return 0
    
def getSelected( options ):
    # -f / --file
    if options.file != None:
        if os.path.isfile(options.file):
            ret_type = androconf.is_android( options.file )
            if ret_type == "APK" or ret_type == "DEX" :
                return ["file/report", options.file]
            else:
                print "input file should be apk/dex..."
                return None
        else:
            print "Could not find file..."
            return None

    # -x / --hash
    elif options.hash != None:
        return ["file/report", options.hash]
    
    # -s / --scan                
    elif options.scan != None:
        if os.path.isfile(options.scan):

            ret_type = androconf.is_android( options.scan )