FORUMS
Remove All Ads from XDA

Enable apps to read OTG USB contents in Marshmallow/Nougat

171 posts
Thanks Meter: 54
 
By blackmatrix64, Senior Member on 16th January 2017, 08:59 PM
Post Reply Email Thread
If you are trying to use your OTG USB as music or video library in Marmshallow or Nougat, but your media player doesn't recognize the content of your usb, then follow these instructions.

Download the terminal from store in case you don't have one. Root is required. You only have to do this once:

Simply open terminal and type:

Code:
su
sm set-force-adoptable true
Now just insert OTG USB and it will be immediately recognized by music players and all other apps.

Additional info:
Do not safely eject the usb, in my case doing this I noticed some bugs, just directly unplug the otg.
My phone is LG G2 d802 and the rom is CM13 snapshot 20161220.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170116-213027.png
Views:	484
Size:	211.6 KB
ID:	4005807   Click image for larger version

Name:	Screenshot_20170116-213011.jpg
Views:	476
Size:	73.4 KB
ID:	4005808   Click image for larger version

Name:	Screenshot_20170116-213135.jpg
Views:	470
Size:	168.0 KB
ID:	4005809  
The Following 5 Users Say Thank You to blackmatrix64 For This Useful Post: [ View ] Gift blackmatrix64 Ad-Free
 
 
1st March 2017, 08:42 PM |#2  
Member
Thanks Meter: 7
 
More
It Works, than you!
I tested in Lineage OS 14.
25th March 2017, 05:06 PM |#3  
Senior Member
Flag Cavite
Thanks Meter: 11
 
More
I want to try this, but I am using Nougat now. So, just in case it didn't work, how should I revert the code above? I am new to this thing actually. Thanks!
11th May 2017, 01:05 PM |#4  
Hugo9191's Avatar
Senior Member
Thanks Meter: 45
 
More
Quote:
Originally Posted by geraldalcos

I want to try this, but I am using Nougat now. So, just in case it didn't work, how should I revert the code above? I am new to this thing actually. Thanks!

Change "true" to "false".

I'm using jetAudio plus, everything works great, thanks!

(Nexus 5, 7.1.2)
The Following User Says Thank You to Hugo9191 For This Useful Post: [ View ] Gift Hugo9191 Ad-Free
8th February 2018, 04:54 PM |#5  
Member
Thanks Meter: 3
 
More
I am not sure what happened or why, but this has suddenly stopped working for me. 😢

Edit: Appears I might have been a bit hasty, looks to be working just fine now. Only thing is, there's no notification for the connected drive. It's a tiny little inconvenience, I know, but I prefer it was there. Any help would be much appreciated.
Post Reply Subscribe to Thread

Tags
usb otg media music player mount marshmallow

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes