From 319883d95136777db7b2a4b1b3c53a23aee7cc84 Mon Sep 17 00:00:00 2001 From: Michael Comella Date: Wed, 24 Feb 2021 15:12:30 -0800 Subject: [PATCH] No issue: when init profiling, remind to enable setting in app. --- tools/setup-startup-profiling.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/setup-startup-profiling.py b/tools/setup-startup-profiling.py index 1619cb75b1..71593a69d7 100755 --- a/tools/setup-startup-profiling.py +++ b/tools/setup-startup-profiling.py @@ -41,7 +41,9 @@ def push(id, filename): print('Pushing {} to device.'.format(filename)) run(['adb', 'push', config.name, os.path.join(PATH_PREFIX, filename)]) run(['adb', 'shell', 'am', 'set-debug-app', '--persistent', id]) - print('Startup profiling enabled on all future start ups, possibly even after reinstall. Call script with `deactivate` to disable it.') + print('\nStartup profiling enabled on all future start ups, possibly even after reinstall.') + print('Call script with `deactivate` to disable it.') + print('DON\'T FORGET TO ENABLE \'Remote debugging via USB\' IN THE APP SETTINGS!') finally: os.remove(config.name)