Skip to content

Commit

Permalink
Remove extract flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rubnogueira committed Jun 11, 2020
1 parent 00987ac commit 2f0f079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def __init__(self):

#Dump internal data https://android.stackexchange.com/questions/85564/need-one-line-adb-shell-su-push-pull-to-access-data-from-windows-batch-file
self.check_root_command = """{} -s {} shell "su -c 'echo HASROOT'"""
self.magic_root_command = """{} -s {} shell "su -c 'cd {} && tar czf - ./ --exclude='./files'| base64' 2>/dev/null" | {} -d"""
self.magic_noroot_command = """{} -s {} shell "cd {} && tar czf - ./ --exclude='./files'| base64 2>/dev/null" | {} -d"""
self.magic_root_command = """{} -s {} shell "su -c 'cd {} && tar czf - ./ | base64' 2>/dev/null" | {} -d"""
self.magic_noroot_command = """{} -s {} shell "cd {} && tar czf - ./ | base64 2>/dev/null" | {} -d"""

if not (Utils.get_platform().startswith("windows") or Utils.get_platform().startswith("darwin")): #some linux versions doesn't output if contains errors, so we ignore it. but base64 for windows doesn't have this attribute
self.magic_root_command += "i" #add -i flag to base64 decode to avoid some encoding issues
Expand Down

0 comments on commit 2f0f079

Please sign in to comment.