mozilla-mobile / focus-android

⚠️ Firefox Focus (Android) moved to a new repository. It is now developed and maintained as part of: https://github.com/mozilla-mobile/firefox-android
https://github.com/mozilla-mobile/firefox-android
Mozilla Public License 2.0
2.11k stars 710 forks source link

[Bug][crash] android.content.ActivityNotFoundException: No Activity found to handle Intent #5841

Closed RandomUser0815 closed 2 years ago

RandomUser0815 commented 2 years ago

Steps to reproduce

  1. Use Android 9 with a Motorola G6 Play
  2. Create a second User profile for example using the Shelter App.
  3. Install the latest "Firefox klar" 94.1.2 beta.
  4. Open Firefox on the second profile
  5. Open a website
  6. Use "oeffnen mit" and choose "Personal profile"
  7. Expect Firefox Klar crashing.

Expected behaviour

No Crash. The website should be opened in the context of the personal profile.

Actual behaviour

The app closes unexpectedly

Device name

Motorola g6 play

Android version

Android 9 - PPPS29 55-35-18-7

Firefox release type

Firefox Beta

Firefox version

94.1.2

Device logs

83a93cd3-19c3-4309-a16d-736c7d100886 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://www.rnz.de/... pkg=android }

Additional information

No response

lobontiumira commented 2 years ago

I have encountered this crash today on Beta 97.0.0-beta.5, and on Focus Nightly 98.0 (build 360260510 GV 98.0a1-20220125100058) with Lenovo tab M10 (Android 10), and LG G7 fit (Android 8.1.0).

The STR are:

  1. From Settings - Advanced - enable "Open links in apps".
  2. Open vimeo.com, and select to watch a video.
  3. Tap on "Cancel" when asked to open in app.
  4. From the three-dot menu, select the "Open in...".
  5. Select the "Instant app" option (Vimeo app is not installed).
  6. Focus crashes.

logcat.txt Screenshot_1

https://user-images.githubusercontent.com/40694158/151132040-813813d3-4e50-4f26-82bc-5b9943b019ba.mp4

delia-pop commented 2 years ago

The behavior in the comment above is reproducible on RC 96.3.0 with Google Pixel 6 (Android 12) as well.

Mugurell commented 2 years ago

There is an important other step: instant apps needs to be enabled in device settings. (it is disabled by default) https://support.google.com/googleplay/answer/7683278

Then indeed it crashes on Focus while on Fenix it works smoothly so there is something to be improved in Focus. Expected behavior:

https://user-images.githubusercontent.com/11428869/151926334-4865a62d-bfbf-42bb-a213-1bebba27065a.mp4

delia-pop commented 2 years ago

Reproducible on RC 97.1.0 with Samsung Galaxy Note10 (Android 11), with Instant apps enabled.

delia-pop commented 2 years ago

Reproducible on Beta 98.0.0-beta.1 with Google Pixel 6 (Android 12).

lobontiumira commented 2 years ago

I was not able to reproduce the crash using the steps from here, on the Focus Nightly 99.0 (build 360520510 with GV 99.0a1-20220220070007) with Oppo Find X3 Lite (Android 11), nor with Lenovo Tab M10 (Android 10).