Skip to content

Fix AccessibilityBridge startup crash on vendor-modified Android#184630

Merged
auto-submit[bot] merged 12 commits into
flutter:masterfrom
realmeylisdev:fix/184286-accessibility-bridge-crash
May 26, 2026
Merged

Fix AccessibilityBridge startup crash on vendor-modified Android#184630
auto-submit[bot] merged 12 commits into
flutter:masterfrom
realmeylisdev:fix/184286-accessibility-bridge-crash

Conversation

@realmeylisdev

Copy link
Copy Markdown
Contributor

Summary

  • Some vendor-modified Android runtimes report SDK_INT >= 31 but ship a Configuration class without the fontWeightAdjustment field (added in API 31), causing a NoSuchFieldError crash at app startup in AccessibilityBridge.setBoldTextFlag
  • Wrap the fontWeightAdjustment access in a try/catch for NoSuchFieldError, gracefully defaulting to non-bold text instead of crashing

Changes

  • engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java: Added try/catch around fontWeightAdjustment field access with fallback to shouldBold = false

Fixes #184286

Vendor-modified Android 11 ROMs (e.g., OnePlus) may report SDK_INT >= 31
but lack the Configuration.fontWeightAdjustment field added in AOSP API 31.
The runtime integer guard is insufficient because the JVM resolves field
references at method call time. Wrap the access in try/catch to gracefully
degrade rather than crashing at app startup.

Fixes flutter#184286
@realmeylisdev realmeylisdev requested a review from a team as a code owner April 5, 2026 12:07
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions Bot added platform-android Android applications specifically engine flutter/engine related. See also e: labels. team-android Owned by Android platform team labels Apr 5, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a try-catch block in AccessibilityBridge.java to prevent crashes on vendor-modified Android runtimes where the fontWeightAdjustment field might be missing despite the reported SDK version. Feedback suggests catching the broader LinkageError for improved robustness and initializing the shouldBold variable to false to simplify the logic.

Comment on lines +661 to +673
boolean shouldBold;
try {
int fontWeightAdjustment =
rootAccessibilityView.getResources().getConfiguration().fontWeightAdjustment;
shouldBold =
fontWeightAdjustment != Configuration.FONT_WEIGHT_ADJUSTMENT_UNDEFINED
&& fontWeightAdjustment >= BOLD_TEXT_WEIGHT_ADJUSTMENT;
} catch (NoSuchFieldError e) {
// Some vendor-modified Android runtimes report SDK_INT >= 31 but ship a
// Configuration class without the fontWeightAdjustment field (added in API 31).
// Gracefully degrade rather than crashing at app startup.
shouldBold = false;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While NoSuchFieldError specifically addresses the reported crash, using the broader LinkageError provides better robustness against other potential binary incompatibilities (such as IncompatibleClassChangeError or VerifyError) that might occur on vendor-modified runtimes. Additionally, initializing shouldBold to false by default simplifies the logic and ensures the variable is always in a safe state if an error occurs during the evaluation of the try block.

    boolean shouldBold = false;
    try {
      int fontWeightAdjustment =
          rootAccessibilityView.getResources().getConfiguration().fontWeightAdjustment;
      shouldBold =
          fontWeightAdjustment != Configuration.FONT_WEIGHT_ADJUSTMENT_UNDEFINED
              && fontWeightAdjustment >= BOLD_TEXT_WEIGHT_ADJUSTMENT;
    } catch (LinkageError e) {
      // Some vendor-modified Android runtimes report SDK_INT >= 31 but ship a
      // Configuration class without the fontWeightAdjustment field (added in API 31).
      // Gracefully degrade rather than crashing at app startup.
    }

realmeylisdev and others added 2 commits April 6, 2026 11:10
… false

- Catch broader LinkageError instead of NoSuchFieldError to handle
  other binary incompatibilities on vendor-modified runtimes
- Initialize shouldBold to false so catch block needs no assignment
@jesswrd jesswrd requested review from chunhtai and jesswrd April 7, 2026 20:52
@jesswrd jesswrd added the CICD Run CI/CD label Apr 7, 2026
@jesswrd jesswrd added CICD Run CI/CD and removed CICD Run CI/CD labels Apr 7, 2026

@chunhtai chunhtai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but we should probably be a bit more specific just in case we know why this is here, and can verify whether this is needed in the future

fontWeightAdjustment != Configuration.FONT_WEIGHT_ADJUSTMENT_UNDEFINED
&& fontWeightAdjustment >= BOLD_TEXT_WEIGHT_ADJUSTMENT;
} catch (LinkageError e) {
// Some vendor-modified Android runtimes report SDK_INT >= 31 but ship a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know which venders does this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes — both the Flutter Crashlytics data on #184286 and the AOSP report b/353988277 that AndroidX Compose fixed reference the same two devices on Android 11:

  • OnePlus 8 Pro / Android 11 — 95 fatal events in 90 days, 100% of @lukemmtt's Crashlytics reports (app versions 9.4.2, 9.4.4, 9.4.7, 9.4.13)
  • Google Pixel 4a / Android 11 — explicitly named in AOSP b/353988277, identical stack: NoSuchFieldError: No instance field fontWeightAdjustment of type I in class Landroid/content/res/Configuration ending in AndroidFontResolveInterceptor

Pixel 4a is stock Google, so calling this "vendor-modified" was imprecise on my part. The unifying factor is ART on Android 11, not the OEM: the class verifier eagerly resolves the API-31 Configuration.fontWeightAdjustment field reference when loading AccessibilityBridge, so the runtime SDK_INT >= 31 guard at the call site runs too late to prevent the throw. AndroidX Compose hit the identical symptom on the same two devices and landed the equivalent try { ... } catch (LinkageError) { ... } mitigation in commit f7d312d (AndroidFontResolveInterceptor.android.kt, "Improve fontWeightAdjustment @RequiresApi guards"). The Chromium class_verification_failures.md doc explains the underlying ART behavior in detail — notably that @RequiresApi is lint-only and does not prevent the verifier from resolving the reference.

Just pushed 8ece0b1 which rewrites the comment to name those devices, cite b/353988277, and note that the workaround can be removed when Flutter drops Android 11 support.

If you'd prefer to match the AndroidX pattern more faithfully now rather than rely on the catch, the access could be hoisted into a private static Api31Impl helper class annotated with @RequiresApi(31) so the verifier never encounters the field reference when loading AccessibilityBridge on API 30 builds in the first place. Happy to do that as a follow-up commit if you'd prefer that direction over the defensive catch.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the detailed reply, the updated comment should address my concern

@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 9, 2026
Per review at flutter#184630 (chunhtai), clarify the comment to name the
devices where this crash has been observed (Pixel 4a and OnePlus 8 Pro,
both on Android 11) and cite AndroidX Compose's identical fix (AOSP
b/353988277) so a future reader can assess when the workaround can be
removed. Note that "vendor-modified" was imprecise since the Pixel 4a
is stock Google; the root cause is ART class verification on Android 11
eagerly resolving the API 31 field reference before the SDK_INT >= 31
guard runs.
chunhtai
chunhtai previously approved these changes Apr 9, 2026

@chunhtai chunhtai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but should wait for someone from android team to approve as well

@jesswrd jesswrd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of the try/catch workaround, can you follow the suggested pattern from the issue: #184286?

It's likely the best practice. Better to implement it now than have to do so later.

Per review at flutter#184630 (jesswrd), replace the defensive try/catch
LinkageError with the @RequiresApi(31) helper class pattern from
the issue's proposed direction, mirroring AndroidX Compose's fix
(AOSP b/353988277). Moving the Configuration.fontWeightAdjustment
field access into a private static Api31Impl inner class prevents
ART's class verifier from resolving the API-31 field reference when
loading AccessibilityBridge on older API levels. The @DoNotInline
annotation prevents R8 from inlining the method back into the outer
class, which would defeat the class isolation.

@chunhtai chunhtai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 28, 2026
@jesswrd jesswrd added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App labels Apr 28, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 5, 2026
@auto-submit

auto-submit Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/184630, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR.

@jesswrd jesswrd added the autosubmit Merge PR when tree becomes green via auto submit App label May 6, 2026
@auto-submit

auto-submit Bot commented May 6, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/184630, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR.

@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 6, 2026
@mboetger mboetger added the autosubmit Merge PR when tree becomes green via auto submit App label May 12, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 12, 2026
@auto-submit

auto-submit Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/184630, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR.

@github-actions github-actions Bot removed the CICD Run CI/CD label May 12, 2026
@camsim99 camsim99 added CICD Run CI/CD and removed CICD Run CI/CD labels May 26, 2026
@camsim99 camsim99 added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App labels May 26, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 26, 2026
@auto-submit

auto-submit Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/184630, because - The status or check suite Mac_arm64 build_tests_4_5 has failed. Please fix the issues identified (or deflake) before re-applying this label.

@camsim99 camsim99 added the autosubmit Merge PR when tree becomes green via auto submit App label May 26, 2026
@auto-submit auto-submit Bot added this pull request to the merge queue May 26, 2026
Merged via the queue into flutter:master with commit 8ad7de9 May 26, 2026
209 of 210 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 26, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request May 27, 2026
flutter/flutter@f3a4b98...c8f2f16

2026-05-27 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[Flutter GPU] Add explicit draw counts (#186639)" (flutter/flutter#187170)
2026-05-27 engine-flutter-autoroll@skia.org Roll Dart SDK from 7dcea971af6b to f3db7b7d9801 (2 revisions) (flutter/flutter#187144)
2026-05-27 bdero@google.com [Flutter GPU] Add explicit draw counts (flutter/flutter#186639)
2026-05-27 engine-flutter-autoroll@skia.org Roll Skia from f9db7748563e to fa944af10f91 (1 revision) (flutter/flutter#187139)
2026-05-27 bdero@google.com [Flutter GPU] Flutter GPU ShaderLibrary in-place reload for shader hot reload (flutter/flutter#186793)
2026-05-27 engine-flutter-autoroll@skia.org Roll Skia from a692cbf38952 to f9db7748563e (8 revisions) (flutter/flutter#187135)
2026-05-27 burak.karahan@mail.ru Use local semantics tester in Material button tests (flutter/flutter#186667)
2026-05-27 rmolivares@renzo-olivares.dev Filter out `a: text input` from `team-framework` PR triage  (flutter/flutter#187129)
2026-05-27 bkonyi@google.com [Engine] Fix silent buffer mismatch bug in FML Win32 CommandLineFromPlatform (flutter/flutter#187120)
2026-05-27 srawlins@google.com examples: Remove unused parameters (flutter/flutter#185819)
2026-05-27 116356835+AbdeMohlbi@users.noreply.github.com Remove another `String.valueOf` (flutter/flutter#186628)
2026-05-27 alex.medinsh@gmail.com Print trace when skipping flavor-specific and platform-specific assets (flutter/flutter#187045)
2026-05-26 adilhanney@disroot.org Fix `InteractiveViewer` memory leak from undisposed `CurvedAnimation`s (flutter/flutter#185826)
2026-05-26 meylis@divine.video Fix AccessibilityBridge startup crash on vendor-modified Android (flutter/flutter#184630)
2026-05-26 keertip@users.noreply.github.com Update data driven fixes docs (flutter/flutter#186217)
2026-05-26 ahmedsameha1@gmail.com Add more 0x0 size tests part10 (flutter/flutter#186201)
2026-05-26 46920873+gabrimatic@users.noreply.github.com Disable spell check for obscured text (flutter/flutter#186329)
2026-05-26 chris@bracken.jp [iOS] Migrate VSyncClient and DisplayLinkManager to Swift (flutter/flutter#187001)
2026-05-26 bkonyi@google.com [flutter_tools, devicelab] Add safety filesystem guard to tests (flutter/flutter#186748)
2026-05-26 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from Itd2Jq_ZIABH2rW7B... to k9EizfEGJO4WwQN9-... (flutter/flutter#187115)
2026-05-26 engine-flutter-autoroll@skia.org Roll Dart SDK from 00e625453c43 to 7dcea971af6b (1 revision) (flutter/flutter#187117)
2026-05-26 rmacnak@google.com Remove use of deprecated copy_trees. (flutter/flutter#187091)
2026-05-26 15619084+vashworth@users.noreply.github.com Use resolved implementation plugins with SwiftPM (flutter/flutter#187097)
2026-05-26 engine-flutter-autoroll@skia.org Roll Skia from 27a819894f7c to a692cbf38952 (3 revisions) (flutter/flutter#187109)
2026-05-26 engine-flutter-autoroll@skia.org Roll Packages from 69cf959 to fc795e5 (4 revisions) (flutter/flutter#187114)
2026-05-26 mvincentong@gmail.com Handle simctl process exceptions during discovery (flutter/flutter#186501)
2026-05-26 mvincentong@gmail.com Clarify precache enabled platforms help (flutter/flutter#186878)
2026-05-26 bkonyi@google.com [tool] Refactor artifacts.dart to use enhanced enums and reduce duplication (flutter/flutter#187063)
2026-05-26 jason-simmons@users.noreply.github.com Build script updates for syncing engine sources and building artifacts on linux-arm64 (flutter/flutter#186917)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC boetger@google.com,stuartmorgan@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@Joyatou

Joyatou commented Jun 3, 2026

Copy link
Copy Markdown

Would the release team consider a stable cherry-pick of this fix (#184630, fixes #184286)?

Up front: this isn't a regression from a recent release — the unguarded
Configuration.fontWeightAdjustment read has been there for a while — so I completely
understand if you'd rather let it ride the next beta. Raising it because it's a 100%
startup crash with no app-side workaround on a shipping device family, and the fix is
tiny and self-contained.

Impacted Users
Devices on vendor-modified Android 11 ROMs that report SDK_INT >= 31 but ship a
Configuration class without the API-31 fontWeightAdjustment field. Confirmed in
production on OnePlus 8 Pro (Android 11); the OnePlus/Oppo/Realme ROM family is the
likely blast radius. #184286 cited 95 fatal events, 100% OnePlus 8 Pro / Android 11.

Impact Description
Hard crash at startup. NoSuchFieldError is thrown from
AccessibilityBridge.setBoldTextFlag inside the AccessibilityBridge constructor
during FlutterActivity.onCreate, so the process dies before any Dart runs — the app
never opens on affected devices.

Workaround
None from app code. The field read happens inside the engine's AccessibilityBridge
constructor before the Dart isolate starts, so the embedding app cannot guard or catch it.

Risk
Low. +20/-4 in a single file (AccessibilityBridge.java): it guards the
fontWeightAdjustment read and catches NoSuchFieldError, falling back to
"bold text disabled". It only touches the already-failing path and mirrors the
hardening AndroidX Compose applied to the same access pattern.

Test Coverage
No automated test — the trigger is a device/ROM-specific NoSuchFieldError that isn't
reproducible in CI. The change is defensive and validated against the production crash
signature in #184286.

Validation Steps
Launch the app on an affected device (OnePlus 8 Pro / Android 11). Before: immediate
startup crash. After: app launches normally; bold-text accessibility is simply treated
as unavailable.

creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
…r#11795)

flutter/flutter@f3a4b98...c8f2f16

2026-05-27 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[Flutter GPU] Add explicit draw counts (#186639)" (flutter/flutter#187170)
2026-05-27 engine-flutter-autoroll@skia.org Roll Dart SDK from 7dcea971af6b to f3db7b7d9801 (2 revisions) (flutter/flutter#187144)
2026-05-27 bdero@google.com [Flutter GPU] Add explicit draw counts (flutter/flutter#186639)
2026-05-27 engine-flutter-autoroll@skia.org Roll Skia from f9db7748563e to fa944af10f91 (1 revision) (flutter/flutter#187139)
2026-05-27 bdero@google.com [Flutter GPU] Flutter GPU ShaderLibrary in-place reload for shader hot reload (flutter/flutter#186793)
2026-05-27 engine-flutter-autoroll@skia.org Roll Skia from a692cbf38952 to f9db7748563e (8 revisions) (flutter/flutter#187135)
2026-05-27 burak.karahan@mail.ru Use local semantics tester in Material button tests (flutter/flutter#186667)
2026-05-27 rmolivares@renzo-olivares.dev Filter out `a: text input` from `team-framework` PR triage  (flutter/flutter#187129)
2026-05-27 bkonyi@google.com [Engine] Fix silent buffer mismatch bug in FML Win32 CommandLineFromPlatform (flutter/flutter#187120)
2026-05-27 srawlins@google.com examples: Remove unused parameters (flutter/flutter#185819)
2026-05-27 116356835+AbdeMohlbi@users.noreply.github.com Remove another `String.valueOf` (flutter/flutter#186628)
2026-05-27 alex.medinsh@gmail.com Print trace when skipping flavor-specific and platform-specific assets (flutter/flutter#187045)
2026-05-26 adilhanney@disroot.org Fix `InteractiveViewer` memory leak from undisposed `CurvedAnimation`s (flutter/flutter#185826)
2026-05-26 meylis@divine.video Fix AccessibilityBridge startup crash on vendor-modified Android (flutter/flutter#184630)
2026-05-26 keertip@users.noreply.github.com Update data driven fixes docs (flutter/flutter#186217)
2026-05-26 ahmedsameha1@gmail.com Add more 0x0 size tests part10 (flutter/flutter#186201)
2026-05-26 46920873+gabrimatic@users.noreply.github.com Disable spell check for obscured text (flutter/flutter#186329)
2026-05-26 chris@bracken.jp [iOS] Migrate VSyncClient and DisplayLinkManager to Swift (flutter/flutter#187001)
2026-05-26 bkonyi@google.com [flutter_tools, devicelab] Add safety filesystem guard to tests (flutter/flutter#186748)
2026-05-26 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from Itd2Jq_ZIABH2rW7B... to k9EizfEGJO4WwQN9-... (flutter/flutter#187115)
2026-05-26 engine-flutter-autoroll@skia.org Roll Dart SDK from 00e625453c43 to 7dcea971af6b (1 revision) (flutter/flutter#187117)
2026-05-26 rmacnak@google.com Remove use of deprecated copy_trees. (flutter/flutter#187091)
2026-05-26 15619084+vashworth@users.noreply.github.com Use resolved implementation plugins with SwiftPM (flutter/flutter#187097)
2026-05-26 engine-flutter-autoroll@skia.org Roll Skia from 27a819894f7c to a692cbf38952 (3 revisions) (flutter/flutter#187109)
2026-05-26 engine-flutter-autoroll@skia.org Roll Packages from 69cf959 to fc795e5 (4 revisions) (flutter/flutter#187114)
2026-05-26 mvincentong@gmail.com Handle simctl process exceptions during discovery (flutter/flutter#186501)
2026-05-26 mvincentong@gmail.com Clarify precache enabled platforms help (flutter/flutter#186878)
2026-05-26 bkonyi@google.com [tool] Refactor artifacts.dart to use enhanced enums and reduce duplication (flutter/flutter#187063)
2026-05-26 jason-simmons@users.noreply.github.com Build script updates for syncing engine sources and building artifacts on linux-arm64 (flutter/flutter#186917)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC boetger@google.com,stuartmorgan@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
via-guy pushed a commit to via-guy/flutter that referenced this pull request Jun 26, 2026
…tter#184630)

## Summary
- Some vendor-modified Android runtimes report `SDK_INT >= 31` but ship
a `Configuration` class without the `fontWeightAdjustment` field (added
in API 31), causing a `NoSuchFieldError` crash at app startup in
`AccessibilityBridge.setBoldTextFlag`
- Wrap the `fontWeightAdjustment` access in a try/catch for
`NoSuchFieldError`, gracefully defaulting to non-bold text instead of
crashing

## Changes
-
`engine/src/flutter/shell/platform/android/io/flutter/view/AccessibilityBridge.java`:
Added try/catch around `fontWeightAdjustment` field access with fallback
to `shouldBold = false`

Fixes flutter#184286

---------

Co-authored-by: jesswrd <jesswon@google.com>
Co-authored-by: Matt Boetger <matt.boetger@gmail.com>
Co-authored-by: Camille Simon <43054281+camsim99@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels. platform-android Android applications specifically team-android Owned by Android platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android][Accessibility] Startup crash in AccessibilityBridge when reading Configuration.fontWeightAdjustment

7 participants