FORUMS

Enable apps to read OTG USB contents in Marshmallow/Nougat

176 posts
Thanks Meter: 57
 
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:	586
Size:	211.6 KB
ID:	4005807   Click image for larger version

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

Name:	Screenshot_20170116-213135.jpg
Views:	572
Size:	168.0 KB
ID:	4005809  
The Following 6 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: 12
 
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: 46
 
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  
Mr_Cyrus's Avatar
Member
Thanks Meter: 6
 
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.
22nd December 2019, 09:58 PM |#6  
pogs24ever's Avatar
Senior Member
Thanks Meter: 67
 
More
It's been a while since I thank you someone from Xda and all I can you are a genius!

I have been looking for a solution for days now for my nexus tablet car project. I bought a Tpms from China (I am about to return it actually) and it is not working due to some stock Rom external restrictions for Android 6.1 even I am rooted.

Again! Thanks to you Buddy!
13th January 2020, 10:57 PM |#7  
Junior Member
Thanks Meter: 0
 
More
Does the "sm set-force-adoptable true" setting change how sdcards are managed?
Do SD cards and USB sticks become readable only from the Android device?
Are SD cards and USB sticks formatted / deleted when connected to Android?
Sorry for the perhaps stupid questions, but until now I was sure that an adoptable memory was not readable by other devices.
19th January 2020, 11:55 AM |#8  
Junior Member
Thanks Meter: 0
 
More
Does this trick still work in Android 9?
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