Android,tools: don't open zip file in binary mode
Zip files are always opened in binary mode and the
ctor doesn't accept "b" in the mode string.
RELNOTES: none
@@ -47,7 +47,7 @@ def ExtractEmbeddedJars(aar, singlejar_param_file, output_dir):
def main():
- with zipfile.ZipFile(FLAGS.input_aar, "rb") as aar:
+ with zipfile.ZipFile(FLAGS.input_aar, "r") as aar:
with open(FLAGS.output_singlejar_param_file, "wb") as singlejar_param_file:
ExtractEmbeddedJars(aar, singlejar_param_file, FLAGS.output_dir)
