def main(): os.system('cls' if os.name == 'nt' else 'clear') ShowBanner() global isJAVAInstalled isJAVAInstalled = CheckJAVA() global tcpPort if(tcpIP): if(not tcpPort): tcpPort = '5555' ADBSerialId = tcpDeviceId.init(tcpIP, tcpPort) else: ADBSerialId = deviceId.init() if(ADBSerialId): sdPath = subprocess.getoutput( adb + ADBSerialId + ' shell "echo $EXTERNAL_STORAGE"') or '/sdcard' else: sdPath = '' ExtractAB(isJAVAInstalled, sdPath=sdPath, ADBSerialId=ADBSerialId, callingFromOtherModule=False, isTarOnly=isTarOnly)
action='store_true', help= 'Get entire WhatsApp\'s data in <username>.tar file instead of just getting few important files.' ) args = parser.parse_args() #args = parser.parse_args('--tcp-ip 192.168.43.130 --scrcpy'.split()) isAllowReboot = args.allow_reboot tcpIP = args.tcp_ip tcpPort = args.tcp_port isScrCpy = args.scrcpy isTarOnly = args.tar_only if (tcpIP): if (not tcpPort): tcpPort = '5555' ADBSerialId = tcpDeviceId.init(tcpIP, tcpPort) else: ADBSerialId = deviceId.init() if (not ADBSerialId): Exit() # Global command line helpers tmp = 'tmp/' helpers = 'helpers/' if (isWindows): adb = 'bin\\adb.exe -s ' + ADBSerialId else: adb = 'adb -s ' + ADBSerialId with concurrent.futures.ThreadPoolExecutor() as executor: f1 = executor.submit(main)