Skip to content

AppControl: Fix crash when trying to export app and the phone's files picker is unavailable - #1185

Merged
d4rken merged 1 commit into
mainfrom
appcontrol-app-launch-crash
May 27, 2024
Merged

AppControl: Fix crash when trying to export app and the phone's files picker is unavailable#1185
d4rken merged 1 commit into
mainfrom
appcontrol-app-launch-crash

Conversation

@d4rken

@d4rken d4rken commented May 27, 2024

Copy link
Copy Markdown
Member

From a

samsung a05m (Galaxy A05)
Android 14 (SDK 34)

e.g.

Exception android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE }
  at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:2252)
  at android.app.Instrumentation.execStartActivity (Instrumentation.java:1878)
  at android.app.Activity.startActivityForResult (Activity.java:5743)
  at androidx.activity.ComponentActivity.startActivityForResult (ComponentActivity.java:2)
  at androidx.core.app.ActivityCompat$Api16Impl.startActivityForResult
  at androidx.activity.ComponentActivity$1.onLaunch (ComponentActivity.java)
  at androidx.activity.result.ActivityResultLauncher.launch (ActivityResultLauncher.java:132)
  at eu.darken.sdmse.appcontrol.ui.list.actions.AppActionDialog$onViewCreated$$inlined$observe2$2.invoke (AppActionDialog.java:132)
  at eu.darken.sdmse.appcontrol.ui.list.actions.AppActionDialog$onViewCreated$$inlined$observe2$2.invoke (AppActionDialog.java:29)
  at androidx.lifecycle.LiveData.considerNotify (LiveData.java)
  at androidx.lifecycle.LiveData.dispatchingValue (LiveData.java)
  at androidx.lifecycle.MutableLiveData.setValue (MutableLiveData.java)
  at eu.darken.sdmse.common.SingleLiveEvent.setValue (SingleLiveEvent.java)
  at androidx.lifecycle.LiveData$1.run
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:8900)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:608)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)

… picker is unavailable

from a

>  samsung a05m (Galaxy A05)
>  Android 14 (SDK 34)

e.g.

```
Exception android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE }
  at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:2252)
  at android.app.Instrumentation.execStartActivity (Instrumentation.java:1878)
  at android.app.Activity.startActivityForResult (Activity.java:5743)
  at androidx.activity.ComponentActivity.startActivityForResult (ComponentActivity.java:2)
  at androidx.core.app.ActivityCompat$Api16Impl.startActivityForResult
  at androidx.activity.ComponentActivity$1.onLaunch (ComponentActivity.java)
  at androidx.activity.result.ActivityResultLauncher.launch (ActivityResultLauncher.java:132)
  at eu.darken.sdmse.appcontrol.ui.list.actions.AppActionDialog$onViewCreated$$inlined$observe2$2.invoke (AppActionDialog.java:132)
  at eu.darken.sdmse.appcontrol.ui.list.actions.AppActionDialog$onViewCreated$$inlined$observe2$2.invoke (AppActionDialog.java:29)
  at androidx.lifecycle.LiveData.considerNotify (LiveData.java)
  at androidx.lifecycle.LiveData.dispatchingValue (LiveData.java)
  at androidx.lifecycle.MutableLiveData.setValue (MutableLiveData.java)
  at eu.darken.sdmse.common.SingleLiveEvent.setValue (SingleLiveEvent.java)
  at androidx.lifecycle.LiveData$1.run
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:8900)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:608)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)
  ```
@d4rken d4rken added bug Something isn't working as expected c: AppControl labels May 27, 2024
@d4rken
d4rken merged commit 06f1ded into main May 27, 2024
@d4rken
d4rken deleted the appcontrol-app-launch-crash branch May 27, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected c: AppControl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant