Bug 458659

Summary: Crashes attempting to open file selector UI on Android TV
Product: [Applications] kdeconnect Reporter: Rishi <duttrishi72>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Android   
OS: Android 9.x   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Stack Trace as recorded by Scoop

Description Rishi 2022-09-03 13:36:11 UTC
Created attachment 151798 [details]
Stack Trace as recorded by Scoop

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

I am trying to give full filesystem access to KDE connect on my Mi Box 4K Android TV, and I am getting stuck trying to give filesystem access as KDE connect uses Android's default file picker UI, and the Android TV I am using doesn't have that activity.

A possible alternative is to use 

STEPS TO REPRODUCE
1. Pair the Android TV to a Linux PC
2. Open the sharing intent for the particular pair
3. Attempt to give "filesystem expose" permission
4. Click on "Add storage location" on the next screen
5. Click on "Storage location" selector

OBSERVED RESULT
The app crashes and connection to the PC is lost

EXPECTED RESULT
File selector UI should be opened, if an android intent is not available, the file selector should be native inside the app

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.25.4 
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION

The Android TV is Mi Box 4K (Sold in India) with Android 9.0 as the latest OS update