Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash - App restarts in a loop #7224

Closed
yostyle opened this issue Sep 23, 2022 · 2 comments · Fixed by #7225
Closed

Crash - App restarts in a loop #7224

yostyle opened this issue Sep 23, 2022 · 2 comments · Fixed by #7225
Assignees
Labels
A-Android Version O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@yostyle
Copy link
Contributor

yostyle commented Sep 23, 2022

Steps to reproduce

  1. Install the app
  2. Launch the app

Outcome

When the dialog to ask if the app can send notifications is displayed, app restarts in a loop on Android 13 after a fresh install. From Android 13, permission is asked on the first run of the app.

I guess this issue is related to Strandhogg detection because we have this log in logcat in debug : im.vector.app.debug E/VectorActivityLifecycleCallbacks$onActivityCreated: Application is potentially corrupted by an unknown activity

The activity com.android.permissioncontroller.permission.ui.GrantPermissionsActivity launched by OS is detected as corrupted because it is not declared in the app manifest.

To avoid this problem we should add exposed activities by PackageInstaller app in activitiesInfo array

Your phone model

Google Pixel 6A

Operating system version

Android 13

Application version and app store

Element version 1.4.36

Homeserver

matrix.org

Will you send logs?

No

Are you willing to provide a PR?

No

@yostyle yostyle added T-Defect Something isn't working: bugs, crashes, hangs and other reported problems S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Occasional Affects or can be seen by some users regularly or most users rarely A-Android Version labels Sep 23, 2022
@yostyle yostyle self-assigned this Sep 23, 2022
@pacanukeha
Copy link

I'm getting the same on a Pixel 4a 5G

@dkasak
Copy link
Member

dkasak commented Sep 30, 2022

Seeing the same on a Pixel 6 Pro with Android 12. Repro steps for me:

  1. Kill all Element activities in the recent apps view.
  2. Start Element normally, via the icon.
  3. Background it by going back to the launcher.
  4. Open Signal (or whatever).
  5. Share something to Element. Notice there are now two Element activities in recent apps.
  6. In the new activity, click + then the paperclip, to open the file manager.
  7. Background this activity by going back to the launcher.
  8. Tap on the Element icon.

Step 8 doesn't trigger it every time for some reason, but if it doesn't, try waiting a bit or switching back to the other activity, backgrounding it, then tapping the Element icon again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Android Version O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants