Unverified Commit fa122f5a authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Disable selection of the Android ARM64 target platform based on the attached device (#14581)

The current ARM64 back end generates code that crashes on some devices,
including Pixel phones.  With this change, the android-arm64 target will
not be used by "flutter run" unless explicitly requested.
This is intended as a workaround until we can roll out an engine with the
required Dart VM fix.

See https://github.com/flutter/flutter/issues/14454
parent 3c9ad811
......@@ -366,15 +366,11 @@ class AndroidDevice extends Device {
return new LaunchResult.failed();
}
BuildInfo buildInfo = debuggingOptions.buildInfo;
if (buildInfo.targetPlatform == null && devicePlatform == TargetPlatform.android_arm64)
buildInfo = buildInfo.withTargetPlatform(TargetPlatform.android_arm64);
if (!prebuiltApplication) {
printTrace('Building APK');
await buildApk(
target: mainPath,
buildInfo: buildInfo,
buildInfo: debuggingOptions.buildInfo,
);
// Package has been built, so we can get the updated application ID and
// activity name from the .apk.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment