def ____recompile(opts): source = "" versionCode = "" versionName = "" for op, value in opts: if op == "-s": source = value elif op == "-c": versionCode = value elif op == "-n": versionName = value if len(source) == 0: ____help(helpRecomplie) ApkTool.shellDecompile(source,versionCode,versionName) ApkTool.compile(source[0:len(source) - 4], "recompile") ApkTool.clean(source[0:len(source) - 4]) return
def ____channel(opts): source = "" channelist = "" for op, value in opts: if op == "-s": source = value elif op == "-c": channelist = value if (len(channelist) == 0 or len(source) == 0): ____help(helpChannel) ApkTool.installFrameworkRes() ApkTool.decompile(source) channelist = channelist.split(",") for channel in channelist: ApkTool.modify(source[0:len(source) - 4], channel) ApkTool.compile(source[0:len(source) - 4], channel) ApkTool.clean(source[0:len(source) - 4]) return
def ____recompile(opts): source = "" versionCode = "" versionName = "" for op, value in opts: if op == "-s": source = value elif op == "-c": versionCode = value elif op == "-n": versionName = value if len(source) == 0: ____help(helpRecomplie) ApkTool.installFrameworkRes() ApkTool.decompile(source) if len(versionCode) == 0 or len(versionName) == 0: ApkTool.modify(source[0:len(source) - 4]) else: ApkTool.modify(source[0:len(source) - 4], None, versionCode, versionName) ApkTool.compile(source[0:len(source) - 4], "recompile") ApkTool.clean(source[0:len(source) - 4]) return