Windows,Android: mobile-install fully works
One of the output files in the incremental apk
(stub_application_data.txt) was using CRLF on
Windows, so the mobile-install'ed app was
crashing on startup.
Fix is to open the output file in binary mode so
line endings are not converted to the
host-platform-native one.
See
+# pylint: disable=g-direct-third-party-import
# Copyright 2015 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -147,7 +148,7 @@ def main():
with file(FLAGS.output_manifest, "w") as output_xml:
output_xml.write(new_manifest)
- with file(FLAGS.output_datafile, "w") as output_file:
+ with file(FLAGS.output_datafile, "wb") as output_file:
output_file.write("\n".join([old_application, app_package]))
elif FLAGS.mode == "instant_run":
