mihon icon indicating copy to clipboard operation
mihon copied to clipboard

No File Picker App found

Open tschuehly opened this issue 1 year ago • 21 comments

Steps to reproduce

I have a rooted e-reader that is running android 8.1 without the default Android file picker. I cannot install the default one (tryed to install it for multiple hours). I've installed Amaze File Explorer and Google Files.

I'm trying to setup Mihon, and stuck on the select folder and it throws an error file picker not found. Tachiyomi was just running against the default: /stprage/emulated/0/Tachiyomi/downloads.

PXL_20240212_221801727 MP

When connected to ADB and running logcat it throws this error: No Activity found to handle intent OPEN_DOCUMENT_TREE.

I would really appreciate some help, to get Mihon running. Is there a way to configure to storage location manually?

Expected behavior

Either Google Files or Amaze File Picker will open.

Actual behavior

File Picker not found

Crash logs

No response

Mihon version

0.16.3

Android version

Android 8.1

Device

Tolino Vision 6

Other details

No response

Acknowledgements

  • [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • [X] I have written a short but informative title.
  • [X] I have gone through the FAQ and troubleshooting guide.
  • [X] I have updated the app to version 0.16.3.
  • [X] I have updated all installed extensions.
  • [X] I will fill out all of the requested information in this form.

tschuehly avatar Feb 12 '24 22:02 tschuehly

Having the same issue +1 edit : installing documentsUIGoogle apk file from the /system/app folder fixed it for me here is the apk (although Im running android 14) : https://www.mediafire.com/file/rfj60rujbai8vtu/DocumentsUIGoogle.apk/file

P-rth avatar Feb 14 '24 11:02 P-rth

Did you check in the device's settings whether any of those apps were selected as the default file explorer?

MajorTanya avatar Feb 15 '24 00:02 MajorTanya

This app seems like a default asop file picker and a part of the android system, It was installed on my device by default but I had removed it as I installed Amaze file manager (https://github.com/TeamAmaze/AmazeFileManager) and thought it was not needed anymore.

P-rth avatar Feb 19 '24 17:02 P-rth

Did you check in the device's settings whether any of those apps were selected as the default file explorer?

Sadly I could not select one. It works in other apps when needing to select a single file. I cannot install the apk that is mentioned above.

tschuehly avatar Feb 19 '24 17:02 tschuehly

Did you try pm install-existing --user 0 com.android.documentsui Or adb shell cmd package install-existing com.android.documentsui There is also google version and mixplorer can also be file picker but that depends on the app Mihon prob can't do use it.

airisama019 avatar Feb 22 '24 12:02 airisama019

Did you try pm install-existing --user 0 com.android.documentsui Or adb shell cmd package install-existing com.android.documentsui There is also google version and mixplorer can also be file picker but that depends on the app Mihon prob can't do use it.

Thanks for the tip but I get this error:

./adb.exe shell cmd package install-existing com.android.documentsui android.content.pm.PackageManager$NameNotFoundException: Package com.android.documentsui doesn't exist

tschuehly avatar Feb 23 '24 19:02 tschuehly

is this your device? https://mytolino.com/wp-content/uploads/2021/06/NEW_facesheet_tolino_vision_4_HD_ebook-reader_technical-specifications_FINAL_EN_web.pdf

if yes then maybe you can try this https://github.com/Ryogo-X/tolino_ntx_6sl_twrp

and if you succeed just download this, mount system and make a folder on /system/app/ called documentsui or anything else; All you have to do is place apk file inside it https://www.apkmirror.com/apk/google-inc/files-google/files-6-8-1-0-release/

edit: It may not work and just crash since documentsui appears to be a module not just an app.

edit2: there is also this version https://www.apkmirror.com/apk/lineageos/files-lineageos/files-2-8-1-0-release/

airisama019 avatar Feb 23 '24 19:02 airisama019

@airisama019 Thanks for the fast reply. I actually wrote the wrong device, I have a Vision 6. It seems like I lost root with the latest update so I can't remount the system folder currently. I tried to install the files apk normally but then it just crashes when mihon tries to open it.

I posted in the forum where the author of the rooted image is active. Maybe he can help.

tschuehly avatar Feb 23 '24 21:02 tschuehly

@airisama019 Thanks for the fast reply. I actually wrote the wrong device, I have a Vision 6. It seems like I lost root with the latest update so I can't remount the system folder currently. I tried to install the files apk normally but then it just crashes when mihon tries to open it.

I posted in the forum where the author of the rooted image is active. Maybe he can help.

Older versions of tachiyomi (before mihon) try to create a Tachiyomi folder automatically maybe you can try them instead; if you can download extension apk manually and install it, them it should just work

airisama019 avatar Feb 23 '24 21:02 airisama019

Having the same problem on a Supernote A6X2 Nomad (also an Android-based e-ink device).

Maybe we could make it preselect a default location so that selecting a new directory is optional? I think I'd like that independent of this issue as well, because most non-tech users probably don't really care where app data ends up anyway, so a default is easier.

I'm a software developer but have virtually no Android experience. If others agree to this change and someone can confirm it's not too hard to do, I could try my hand at it.

Fantailed avatar Apr 05 '24 11:04 Fantailed

Having the same problem on a Supernote A6X2 Nomad (also an Android-based e-ink device).

Maybe we could make it preselect a default location so that selecting a new directory is optional? I think I'd like that independent of this issue as well, because most non-tech users probably don't really care where app data ends up anyway, so a default is easier.

I'm a software developer but have virtually no Android experience. If others agree to this change and someone can confirm it's not too hard to do, I could try my hand at it.

I don't know dude they could just use shizuku to do this let's say we grant shizuku permission before we open mihon for the first time then it will try and get a folder on it's on without file picker it shouldn't be hard since shizuku is already implemented for installing extesions

airisama019 avatar Apr 05 '24 11:04 airisama019

I'm having the same issue Samsung Galaxy S20 ultra 5g SM-G988U1 Android 13 I have multiple file chooser apps installed, but it doesn't see them

Inviridial avatar Apr 20 '24 17:04 Inviridial

Having the same problem on a Supernote A6X2 Nomad (also an Android-based e-ink device).

Maybe we could make it preselect a default location so that selecting a new directory is optional? I think I'd like that independent of this issue as well, because most non-tech users probably don't really care where app data ends up anyway, so a default is easier.

I'm a software developer but have virtually no Android experience. If others agree to this change and someone can confirm it's not too hard to do, I could try my hand at it.

I'm having the same issue Samsung Galaxy S20 ultra 5g SM-G988U1 Android 13 I have multiple file chooser apps installed, but it doesn't see them

#318 is probably related, seems there might also be an issue with Samsung One UI and the way it handles the stock Android file picker and the new scoped storage permissions in particular.

It would probably be best to have a default folder already preset in the initial setup screen in order to allow the user to bypass the file picker entirely (while still leaving the option of setting a different path for the folder during setup if so desired). Another solution would be to make the storage path setting step during initial setup completely optional, letting the user skip it entirely.

EDIT: Solved now, check Issue #318

alfieyoko2 avatar Apr 21 '24 00:04 alfieyoko2

Having the same problem on a Supernote A6X2 Nomad (also an Android-based e-ink device). Maybe we could make it preselect a default location so that selecting a new directory is optional? I think I'd like that independent of this issue as well, because most non-tech users probably don't really care where app data ends up anyway, so a default is easier. I'm a software developer but have virtually no Android experience. If others agree to this change and someone can confirm it's not too hard to do, I could try my hand at it.

I'm having the same issue Samsung Galaxy S20 ultra 5g SM-G988U1 Android 13 I have multiple file chooser apps installed, but it doesn't see them

#318 is probably related, seems there might also be an issue with Samsung One UI and the way it handles the stock Android file picker and the new scoped storage permissions in particular.

It would probably be best to have a default folder already preset in the initial setup screen in order to allow the user to bypass the file picker entirely (while still leaving the option of setting a different path for the folder during setup if so desired). Another solution would be to make the storage path setting step during initial setup completely optional, letting the user skip it entirely.

I've seen some open source apps choose MiXplorer as file picker, but the devs prob turned notifications off for this issue. Maybe you could open a new one asking for it.

airisama019 avatar Apr 21 '24 12:04 airisama019

Having the same problem on a Supernote A6X2 Nomad (also an Android-based e-ink device). Maybe we could make it preselect a default location so that selecting a new directory is optional? I think I'd like that independent of this issue as well, because most non-tech users probably don't really care where app data ends up anyway, so a default is easier. I'm a software developer but have virtually no Android experience. If others agree to this change and someone can confirm it's not too hard to do, I could try my hand at it.

I'm having the same issue Samsung Galaxy S20 ultra 5g SM-G988U1 Android 13 I have multiple file chooser apps installed, but it doesn't see them

#318 is probably related, seems there might also be an issue with Samsung One UI and the way it handles the stock Android file picker and the new scoped storage permissions in particular. It would probably be best to have a default folder already preset in the initial setup screen in order to allow the user to bypass the file picker entirely (while still leaving the option of setting a different path for the folder during setup if so desired). Another solution would be to make the storage path setting step during initial setup completely optional, letting the user skip it entirely.

I've seen some open source apps choose MiXplorer as file picker, but the devs prob turned notifications off for this issue. Maybe you could open a new one asking for it.

Solved now, check Issue #318

alfieyoko2 avatar Apr 22 '24 07:04 alfieyoko2

Having the same problem on a Supernote A6X2 Nomad (also an Android-based e-ink device). Maybe we could make it preselect a default location so that selecting a new directory is optional? I think I'd like that independent of this issue as well, because most non-tech users probably don't really care where app data ends up anyway, so a default is easier. I'm a software developer but have virtually no Android experience. If others agree to this change and someone can confirm it's not too hard to do, I could try my hand at it.

I'm having the same issue Samsung Galaxy S20 ultra 5g SM-G988U1 Android 13 I have multiple file chooser apps installed, but it doesn't see them

#318 is probably related, seems there might also be an issue with Samsung One UI and the way it handles the stock Android file picker and the new scoped storage permissions in particular. It would probably be best to have a default folder already preset in the initial setup screen in order to allow the user to bypass the file picker entirely (while still leaving the option of setting a different path for the folder during setup if so desired). Another solution would be to make the storage path setting step during initial setup completely optional, letting the user skip it entirely.

I've seen some open source apps choose MiXplorer as file picker, but the devs prob turned notifications off for this issue. Maybe you could open a new one asking for it.

Solved now, check Issue #318

That only solves the issue for your phone, which seems to ship aosp documents.ui. For the devices mentioned here there is no solution.

airisama019 avatar Apr 22 '24 18:04 airisama019

Having the same problem on a Supernote A6X2 Nomad (also an Android-based e-ink device). Maybe we could make it preselect a default location so that selecting a new directory is optional? I think I'd like that independent of this issue as well, because most non-tech users probably don't really care where app data ends up anyway, so a default is easier. I'm a software developer but have virtually no Android experience. If others agree to this change and someone can confirm it's not too hard to do, I could try my hand at it.

I'm having the same issue Samsung Galaxy S20 ultra 5g SM-G988U1 Android 13 I have multiple file chooser apps installed, but it doesn't see them

#318 is probably related, seems there might also be an issue with Samsung One UI and the way it handles the stock Android file picker and the new scoped storage permissions in particular. It would probably be best to have a default folder already preset in the initial setup screen in order to allow the user to bypass the file picker entirely (while still leaving the option of setting a different path for the folder during setup if so desired). Another solution would be to make the storage path setting step during initial setup completely optional, letting the user skip it entirely.

I've seen some open source apps choose MiXplorer as file picker, but the devs prob turned notifications off for this issue. Maybe you could open a new one asking for it.

Solved now, check Issue #318

That only solves the issue for your phone, which seems to ship aosp documents.ui. For the devices mentioned here there is no solution.

I just got DocumentsUI installed and working for the Supernote A6X2:

  • Enable sideloading (which you have to do anyway to install Mihon on this device)
  • Setup Magisk, which will be used to gain root on the device and install the module that will install DocumentsUI for us. I followed TA1312's guide.
    • Download and sideload Magisk
    • Sideload Total Commander. This is to perform file selection in Magisk and moving files around.
    • Download the latest Nomad firmware here under "Download firmware and update system". This was tested on Chauvet 3.16.27.
    • Extract boot.img from update.zip (the Nomad firmware) and copy it to the Nomad
    • Run Magisk, Install Magisk, "Selcet and Patch a File", use Total Commander to select boot.img, and click "LET'S GO". This will create a patched .img file in /storage/emulated/0/Download.
    • Use Total Commander to copy the patched .img file to a folder your computer can access, and copy the file over to your computer.
    • Run the following commands from your computer
      • adb reboot fastboot
      • fastboot flash boot <patched .img file>
      • fastboot reboot
  • Download the latest release of ph4n70m-404's DocumentsUI-Replacer Magisk module (repository is archived).
    • This module comes with versions of the LineageOS and dotOS DocumentsUI APKs. It also supports a config file to supply your own.
  • Copy DocumentsUI-Replacer.zip to the Nomad.
  • On your computer, open DocumentsUI-Replacer.zip and copy config.txt to the Nomad. Use Total Commander to create the directory /sdcard/documentsui-replacer/ and copy config.txt there. (You may have to manually enter "/sdcard" into the address field to get there.)
    • If you are using your own version of the DocumentsUI APK, rename it to "DocumentsUI.apk", create the directory /sdcard/documentsui-replacer/custom on the Nomad, and copy the renamed APK there. Also update the "theme" value in config.txt to = "custom".
  • In Magisk, select Modules, "Install from storage", and select DocumentsUI-Replacer.zip
  • Reboot
  • Try selecting a folder in Mihon

GoggleChild avatar May 02 '24 02:05 GoggleChild

same problem on Xiaomi Mix2 Android 9(MIUI 12.0.1) mihon version 0.16.5

have com.android.documentsui preinstalled but disabled i try to enable it, but seems hard without root permission

asogii avatar May 13 '24 07:05 asogii

same problem on Xiaomi Mix2 Android 9(MIUI 12.0.1) mihon version 0.16.5

have com.android.documentsui preinstalled but disabled i try to enable it, but seems hard without root permission

if you enable developer options and usb debugging then just install shizuku and ashell from fdroid and type "cmd package install-existing --user 0 com.android.documentsui" or "pm install-existing --user 0 com.android.documentsui"

you need to enable "https://apt.izzysoft.de/fdroid/" repository in order to download shizuku

airisama019 avatar May 13 '24 10:05 airisama019

This happens to me as well in the same device, tolino vision 6, i think it's because there is no documentsui in the rom of the tolino. so far i can't think of a way of solving it. Maybe with a modification to the app so it would create a default storage location instead of using the file picker. Or an older mihon apk? I wouldn't know what to choose. Tolino Vision 6 1.6.2 firmware and rooted.

Nergalkala avatar May 17 '24 13:05 Nergalkala

+1 for @Nergalkala A default storage location would be great.

Many Eink devices would remove documentsui and provided their own simple fileexplorer apps in its rom, because the original documentsui contains a lot of animations and does not adapt to eink refresh mode .

weikano avatar May 24 '24 03:05 weikano

I'm having the same issue Samsung Galaxy S20 ultra 5g SM-G988U1 Android 13 I have multiple file chooser apps installed, but it doesn't see them

Fixed my issue, default files app was disabled and could not be re-enabled. Reset app preferences fixed the issue

Inviridial avatar May 27 '24 16:05 Inviridial

having the same issue device: iqoo z9, android 14, non-root

iqoo limit apps that can be cloned so i install mihon using adb to another user, on the "select a folder" step i was having error "no file picker app found" so i installed google's documentsui, i tried selecting folder again it's open the file manager but the file manager can't show any folder, just blank and some file filter

horacebmagic avatar May 31 '24 11:05 horacebmagic

Closing as this is not a Mihon bug. Your device manufacturer(s) simply decided to not include a core Android component or is somehow interfering with it.

AntsyLich avatar Aug 01 '24 20:08 AntsyLich