def main():
    P.prepareFilesFromPhone()
    if not os.path.exists(P.EmuListPath):
        print "Please copy emu android manifest running this script! Directory path is:\n" +     P.EmuListPath
        return
    else:
        P.prepareDirsAndDicts()
        _wb = Workbook()
        PB.Output(_wb)

        P.Output(_wb)
        SS.Output(_wb)
        BP.Output(_wb)
        _wb.save(outXls)
        print "Generate xls table successed!! --> %s" % outXls
def main():
	if len(sys.argv) < 2:
		print "The software version can not be empty."
		return

	outXls = P.outdir + "/AndroidSecurity_"+sys.argv[1]+time.strftime('_%Y%m%d%H%M%S')+".xls"

	P.prepareFilesFromPhone()
	if not os.path.exists(P.EmuListPath):
		print "Please copy emu android manifest running this script! Directory path is:\n" +     P.EmuListPath
		return
	else:
		P.prepareDirsAndDicts()
		_wb = Workbook()
		PB.Output(_wb)

        P.Output(_wb)
        SS.Output(_wb)
        BP.Output(_wb)
        _wb.save(outXls)
        print "Generate xls table successed!! --> %s" % outXls