Index: build/android/adb_reverse_forwarder.py |
diff --git a/build/android/adb_reverse_forwarder.py b/build/android/adb_reverse_forwarder.py |
index e465ea77156795e39f951af21022c3ea9adfd6b7..ee38332b3c20b85b945c582fdf2d04ce6ff08a4a 100755 |
--- a/build/android/adb_reverse_forwarder.py |
+++ b/build/android/adb_reverse_forwarder.py |
@@ -17,7 +17,6 @@ import time |
from pylib import android_commands, forwarder |
from pylib.utils import run_tests_helper |
-from pylib.valgrind_tools import CreateTool |
def main(argv): |
@@ -51,17 +50,14 @@ def main(argv): |
sys.exit(1) |
adb = android_commands.AndroidCommands(options.device) |
- tool = CreateTool(None, adb) |
- forwarder_instance = forwarder.Forwarder(adb, options.build_type) |
try: |
- forwarder_instance.Run(port_pairs, tool) |
+ forwarder.Forwarder.Map(port_pairs, adb, options.build_type) |
while True: |
time.sleep(60) |
except KeyboardInterrupt: |
sys.exit(0) |
finally: |
- forwarder_instance.Close() |
- |
+ forwarder.Forwarder.UnmapAllDevicePorts(adb) |
if __name__ == '__main__': |
main(sys.argv) |