fixes 103234 to enable debugging Flutter apps on VR headset (#104135)

This commit is contained in:
Chris Sells 2022-05-20 21:58:09 -07:00 committed by GitHub
parent 1e1f4bcfb5
commit 4c66e304d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -625,7 +625,8 @@ class AndroidDevice extends Device {
final String? traceSkiaAllowlist = debuggingOptions.traceSkiaAllowlist;
final List<String> cmd = <String>[
'shell', 'am', 'start',
'-a', 'android.intent.action.RUN',
'-a', 'android.intent.action.MAIN',
'-c', 'android.intent.category.LAUNCHER',
'-f', '0x20000000', // FLAG_ACTIVITY_SINGLE_TOP
'--ez', 'enable-dart-profiling', 'true',
if (traceStartup)

View File

@ -100,7 +100,9 @@ void main() {
'am',
'start',
'-a',
'android.intent.action.RUN',
'android.intent.action.MAIN',
'-c',
'android.intent.category.LAUNCHER',
'-f',
'0x20000000',
'--ez', 'enable-dart-profiling', 'true',
@ -226,7 +228,9 @@ void main() {
'am',
'start',
'-a',
'android.intent.action.RUN',
'android.intent.action.MAIN',
'-c',
'android.intent.category.LAUNCHER',
'-f',
'0x20000000',
// The DebuggingOptions arguments go here.