[PR #3092] [PM-7010] Fix for Android App crashing when launching app with invalid package name #4019

Closed
opened 2025-11-26 23:39:41 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/bitwarden/android/pull/3092

State: closed
Merged: Yes


Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

Android App is currently crashing when launching a package name that is not found on the device.

Code changes

Added specific Exception Try Catch to avoid crashing when the package name is not found.
IntentSender.SendIntentException is the Exception we get in Debug when trying to launch an invalid package name.
Android.Util.AndroidException is an Exception that seems to be reported on AppCenter for the same issue.

  • DeviceActionService: Added the specific TryCatch

Screenshots

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team
**Original Pull Request:** https://github.com/bitwarden/android/pull/3092 **State:** closed **Merged:** Yes --- ## Type of change - [X] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ## Objective Android App is currently crashing when launching a package name that is not found on the device. ## Code changes Added specific Exception Try Catch to avoid crashing when the package name is not found. `IntentSender.SendIntentException` is the Exception we get in Debug when trying to launch an invalid package name. `Android.Util.AndroidException` is an Exception that seems to be reported on AppCenter for the same issue. * **DeviceActionService:** Added the specific TryCatch ## Screenshots <!--Required for any UI changes. Delete if not applicable--> ## Before you submit - Please check for formatting errors (`dotnet format --verify-no-changes`) (required) - Please add **unit tests** where it makes sense to do so (encouraged but not required) - If this change requires a **documentation update** - notify the documentation team - If this change has particular **deployment requirements** - notify the DevOps team
GiteaMirror added the pull-request label 2025-11-26 23:39:42 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#4019