beemdevelopment / Aegis

A free, secure and open source app for Android to manage your 2-step verification tokens.
https://getaegis.app
GNU General Public License v3.0
9.09k stars 382 forks source link

crash when trying to export #622

Closed jotsar closed 3 years ago

jotsar commented 3 years ago
Info
Steps to reproduce

A detailed list of reproduction steps.

  1. Decrypt the database.
  2. Go to settings.
  3. Try to export.
    What do you expect to happen?

    The app should let me export the database. ...

What happens instead?

The app crashes. ...

Log
If applicable, paste the debug log here.

time: 1606695071608 msg: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CREATE_DOCUMENT cat=[android.intent.category.OPENABLE] typ=application/json (has extras) } stacktrace: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CREATE_DOCUMENT cat=[android.intent.category.OPENABLE] typ=application/json (has extras) } at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2064) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1718) at android.app.Activity.startActivityForResult(Activity.java:5210) at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:6) at androidx.core.app.ActivityCompat.startActivityForResult(ActivityCompat.java:1) at androidx.fragment.app.Fragment.startActivityForResult(Fragment.java:8) at com.beemdevelopment.aegis.ui.PreferencesFragment.lambda$startExport$16$PreferencesFragment(PreferencesFragment.java:7) at com.beemdevelopment.aegis.ui.-$$Lambda$PreferencesFragment$VzIxvx-hInpaG7EtVsaWHnxcy7A.onClick(Unknown Source:4) at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(AlertController.java:3) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:925)

alexbakker commented 3 years ago

Please check the existing tickets about this issue: https://github.com/beemdevelopment/Aegis/search?q=ActivityNotFoundException&type=issues. DocumentsUI is somehow missing from your device and you need to find a way to get it back.

jotsar commented 3 years ago

Please check the existing tickets about this issue: https://github.com/beemdevelopment/Aegis/search?q=ActivityNotFoundException&type=issues. DocumentsUI is somehow missing from your device and you need to find a way to get it back.

Thank you, I removed DocumentsUI when debloating my phone because I didn't know it's something important. I reinstalled it and it works.

alexbakker commented 3 years ago

Glad it works now! Could you let the author of the debloating guide you followed know that he's telling people to remove an essential system component from their phone?

jotsar commented 3 years ago

Glad it works now! Could you let the author of the debloating guide you followed know that he's telling people to remove an essential system component from their phone?

I just used a magisk module (Debloater) to remove system apps I didn't need.