_Edit: Restructured based on the sharp-eyed research by_ @haffenloher
android.provider.Settings.ACTION_WIRELESS_SETTINGS does not have matching activity in Android FlymeOs and Signal crashes.
According to Android docs the app developer should take it into account that not all Android flavours have this activity:
In some cases, a matching Activity may not exist, so ensure you safeguard against this.
Steps to reproduce
Device: Meizu m2 note,
Android: Flyme OS 4.5.4.2I, Android 5.1
Signal: 3.14.2
https://gist.github.com/dff65ac6cc0972b854c2
FATAL EXCEPTION: main
Process: org.thoughtcrime.securesms, PID: 24169
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.WIRELESS_SETTINGS }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1800)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1518)
at android.app.Activity.startActivityForResult(Activity.java:3852)
[...]
Wait, is this tracked somewhere?
FATAL EXCEPTION: main
Process: org.thoughtcrime.securesms, PID: 24169
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.WIRELESS_SETTINGS }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1800)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1518)
at android.app.Activity.startActivityForResult(Activity.java:3852)
[...]
I don't think this has anything to do with #5308.
Android docs for android.provider.Settings.ACTION_WIRELESS_SETTINGS say:
In some cases, a matching Activity may not exist, so ensure you safeguard against this.
So we should probably do something about the crash.
@2-4601 No, sorry, that wasn't very clear :stuck_out_tongue:
the crash happens when
Edit - just to be clear: I cannot reproduce this myself.
I think it is the case it of Meizu and it's modification of Android flyme os.
GitHub Issue Cleanup:
See #7598 for more information.
Most helpful comment
I think it is the case it of Meizu and it's modification of Android flyme os.