MiX Nugget: Troubleshooting SD card & USB OTG access, accessing /android/data, creating Document Providers, accessing folders on Andriod TV or Google TV, accessing folders in Android 13 and up, other things.
--------------------
Questions about accessing certain folders on a non-rooted devices and about accessing USB OTG drives, and about the need to create document providers have become more frequent. There is a group of relatively noninvasive troubleshooting steps for those scenarios, in particular not being able to see a drive and write files to it. Here is what I’ve got so far. Other suggestions for steps that would fit into this troubleshooting workflow are welcome.
--------------------
Use newest MiX version: XDA beta, XDA stable or Playstore Silver version of MiX.
- Report bugs from Beta
- Do not use versions packaged as Magisk module.
- Make sure that native OS file manager is not disabled (required in many cases).
--------------------
External SD (in-device) Confirm Drive is Mounted
When troubleshooting access to an SD card this is an easy and relatively safe step: confirm that the drive is mounted. Also, check the basic mount details, and that the OS can see it. In some cases it may need to be mounted manually or it may be helpful to un-mount it then and remount it or even remove then reinsert the card. Note: If you are using External SD as "adopted" storage then it may not be advisable to fiddle with mounting and removing the card. There are safer steps for that below.
--------------------
Confirm that MiX has required Android permissions.
This can typically be done through the properties of the app or tin the Android permissions manager (varies by android version).
--------------------
Issues with SD as adopted storage, and possibly other cases, sch as after an OS update there may be the need to redo some permissions. Depending on the OS and ROM variant, the specific permission or its label may vary but it should be something like one of these:
- OS Settings > Apps > MiXplorer > Permissions > Storage > toggle on
- OS Settings > Apps > MiXplorer > Permissions > Files and Media > All (not media or none)
- OS Settings > Apps > MiXplorer > Permissions > Files and Media > Allow all the time.
In general this is a good troubleshooting step. (Thanks
@binglejellsx2) and
@Retrial
--------------------
Reset Storage and Cache: (thanks
@storm119):
- Long press the MiXplorer and tap info
- Tap the "Storage and cache"
- Tap the "Clear access"
- Close (clear recent) and relaunch MiXplorer
- Internal storage --> Android --> Data --> choose which dir/folder (app)
- Once you tap dir/folder (ie: telegram)...it will redirect to OS file manager and choose "Use This Folder" = this will allow MiXplorer to "grant access" to this folder
- Repeat this process (no.6) to other folder/dir in "/Android/Data" if you want to have access to other folder/dir
--------------------
Manually add document providers:
This can be done as needed but for some folders it may help to add document providers right away as part of MiX's initial installation: Those folders are /android/data and /android/media and /android/obb on both internal and external SD. There are 2 ways to do this, through the tool bar or the bookmarks drawer:
- Add (+ plus sign in tool bar) > storage > document provider > navigate to the folders (not the root of the drive but rather the specific folders) > allow access.
or
- Open bookmark drawer > overflow menu (hamburger) > Add storage > document provider > navigate to the folders (not the root of the drive but rather the specific folders) > allow access.
--------------------
Review existing document providers:
If you've created document provider but think something else may be preventing access you can see what document providers have been configured in this section of a MiX log
[EXAMPLE]
[LINE #] D/Storage> --- Documents -----------------------------
[LINE #] D/Storage> /storage/emulated/0/Android/obb
[LINE #]D/Storage> -------------------------------------------
--------------------
Alternate Paths
If you have trouble accessing SD cards or internal storage locally or through FTP, or problem after an OS update on Android TV you can try different paths. Note: The availability and effectiveness of these paths may vary by ROM and nature of permissions. These are just some possibilities.
/storage/[name of internal storage]
/storage/[name of external storage]
/storage/emulated/0
/mnt/shell/emulated/0
/mnt/media_rw/[name of external storage]
/data/media/0/
Similarly if you are having trouble accessing USB drives you can look in
/storage/
/mnt/media_rw/
--------------------
Reset Root in MiX:
If MiX loses root in spite of device being rooted and MiX having root enabled. Tanks
@Nimueh).
Uncheck "Allow root", exit MiX + clear it from Recents, start it again and select "allow root".
--------------------
Other info related to document providers and OTG:
https://forum.xda-developers.com/t/mixplorer-q-a-and-faq-user-manual.3308582/post-85878051