Repository: flutter
Issue: SIGILL crash on android with arm engine running on x86 emulator
Labels: platform-android,P3,team-android,triaged-android

## Steps to reproduce
1) Build a local version of the engine for arm
1) `flutter create -t plugin -a java --platforms "android" android_plugin`
1) `cd android_plugn/`
1) `flutter <point to arm engine> run` while running an x86 emulator image
1) Notice the crash

## Seen

stacktrace for Thread-28 [DartWorker]:
```
__kernel_vsyscall 0x00000000f5339b39
tgkill 0x00000000f3500a4d
raise 0x00000000f34b6445
ndk_translation::UndefinedInsn(ndk_translation::ProcessState*, char const*) 0x00000000ed0c8af3
ndk_translation::InsnInterpreter::CallInterp(unsigned int, void const*, void const*) 0x00000000ed0db40d
ndk_translation::GenReportInsnNotImplHelper(ndk_translation::ArmSemanticsDecoderHooks*, unsigned int, char const*) 0x00000000ed11ac4a
ndk_translation::SemanticsDecoder::UNDEFINED(ndk_translation::UNDEFINED_Args const&) 0x00000000ed0e46ac
ndk_translation::ArmDecoder::TranslateArmInsn(unsigned int const*) 0x00000000ed12fa39
___lldb_unnamed_symbol391$$libndk_translation.so 0x00000000ed0dcc71
ndk_translation::InterpretTrace(ndk_translation::ProcessState*) 0x00000000ed0dcec8
___lldb_unnamed_symbol311$$libndk_translation.so 0x00000000ed0cb691
ndk_translation::ExecuteGuest(ndk_translation::ProcessState*, unsigned int) 0x00000000ed0cb3f8
ndk_translation::RunGuestCall(unsigned int, int, int, unsigned int*) 0x00000000ed0c2fb5
ndk_translation::GuestCall::RunRes32(unsigned int) 0x00000000ed0c3107
___lldb_unnamed_symbol302$$libndk_translation.so 0x00000000ed0c5940
__pthread_start(void*) 0x00000000f3517066
__start_thread 0x00000000f34ac85c
__bionic_clone 0x00000000f34a7c17
```

## Expected
I expected the ARM application to execute correctly through whodini, not crash.  This used to work.

## Doctor
```
[✓] Flutter (Channel master, 2.6.0-12.0.pre.300, on macOS 11.6 20G165 darwin-x64, locale en-US)
    • Flutter version 2.6.0-12.0.pre.300 at /Users/aaclarke/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 6fcf34b8b0 (3 hours ago), 2021-10-12 13:43:02 -0400
    • Engine revision ad33adfa6b
    • Dart version 2.15.0 (build 2.15.0-188.0.dev)

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/aaclarke/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[!] Xcode - develop for iOS and macOS (Xcode 12.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.0.0.
      Download the latest version or update via the Mac App Store.
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio with Blaze.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.60.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.27.0

[✓] Connected device (3 available)
    • Pixel 4a (mobile) • 11121JEC203798 • android-arm64  • Android 12 (API 31)
    • macOS (desktop)   • macos          • darwin-x64     • macOS 11.6 20G165 darwin-x64
    • Chrome (web)      • chrome         • web-javascript • Google Chrome 94.0.4606.81

! Doctor found issues in 2 categories.
```

cc @blasten