From caab7cc4d6611df85844f6a4a7371f70feb6ed1c Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Mon, 11 Jun 2018 15:55:01 -0500 Subject: [PATCH] Added parcel parser and fixed shell functionality --- adb.py | 55 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/adb.py b/adb.py index c24bead..1ebfc05 100644 --- a/adb.py +++ b/adb.py @@ -14,6 +14,29 @@ with open(os.path.join(path,'defaults.json')) as d,open(os.path.join(path,'keyco exe = defaults['exe'] for key,value in defaults['local'].items(): defaults['local'][key] = os.path.expandvars(value) + +def decode_parcel(s): + bytes_pat = re.compile(r'(?