Thursday, May 4, 2017

Android 7 Nougat onwards: hides USB OTG sticks from third-party file managers?


Third party file managers such as ES File Manager and RhythmSoft File Manager HD (others will be tested) do not show an USB OTG device.


It does not even get listed. Only Android's pre-installed file manager does.


Is USB OTG deliberately hidden in Android ≥7?



Answer



As explained here How app can access files on USB OTG storages in Android 6.0 (API level 23) without root?, the accepted answer says about the change introduced from Marshamllow




In Android 6.0, any device that is not adopted is considered portable. […] Third-party apps must go through the Storage Access Framework to interact with files on portable storage; direct access is explicitly blocked for privacy and security reasons.



(Emphasis added)


Which means that the File explorer needs to use Storage Access Framework (requires root as indicated in the question on SO). This XDA post Files by Google adds support for browsing files on USB OTG drives says Files by Google has been updated with this capability (not tested by me).


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...