app request: usb otg shortcut? kinda like stickmount. - Nexus 6P Q&A, Help & Troubleshooting

hello, i have an interesting app request.
from what i am reading using the otg api of marshmallow,
it could be possible to make an app that create a usb shortcut,when we plug a thumbdrive,but inside the internal memory of the phone.
just like stick mount does,but by using the marshmallow api it should be possible to do it without root.
i am not a good dev so i am asking if someone could do it?
it will be very usefull for emulators or other kind of app with internal file browser,it will make them able to load files from an external device directly.
thanks you

Related

[REQUEST] Add legacy mount option

Would it be possible to patch a USB mass storage option back into Honeycomb? The new MTP method doesn't work right now for Ubuntu users and has been a pain for some Mac users.
Read and search firstly... Other user can,mount as mass storage after disabling usb debugging option in settings
Sent from my GT-P7500 using XDA Premium App
Search and read firstly, that is Windows only.
Sent from my GT-P7510 using XDA Premium App
Live2Follow said:
Search and read firstly, that is Windows only.
Sent from my GT-P7510 using XDA Premium App
Click to expand...
Click to collapse
Pershoot is going to be working on this when he gets back from vacation I believe. Device will should be seen as USB mass storage in USB debugging mode
Please do not ask Questions or place Problem Threads in the Development Area
Development is for Development
Moving to General
used2hvatreo said:
Pershoot is going to be working on this when he gets back from vacation I believe. Device will should be seen as USB mass storage in USB debugging mode
Click to expand...
Click to collapse
Ahh that's good. Just hoping that someone was working on it.
BlackOtaku said:
Would it be possible to patch a USB mass storage option back into Honeycomb? The new MTP method doesn't work right now for Ubuntu users and has been a pain for some Mac users.
Click to expand...
Click to collapse
It isn't possible without a massive rearchitecture. The Tab has a single internal memory store formatted as ext4, so it can't be easily exported as USBMS for two reasons:
1) The filesystem is only easily readable by Linux boxes (USB mass storage exports the raw disk partition, not files)
2) Since it's one unified filesystem, it's difficult if not possible to unmount the filesystem so it can be accessed by a remote host
I believe Pershoot's solution uses adb push/pull to emulate mass storage. FYI Windows people can look at Droid Explorer, which, as I understand it, uses adb to browse the device filesystem.
The Windows solution linked above is just integration of an MTP client into the Windows Explorer shell - it isn't USB mass storage.
Edit: FYI, any platform that has ADB support (Linux, Windows, fairly certain MacOS) can send/receive files to/from our device using ADB push/pull. This is how I've been loading media into my device so far, although it could get annoying/slow for lots of small files like a music collection.

[Q] Just Rooted my 4.2 N7...some questions

Hi guys, i know that you problably answered these questions several times already, but i couldn´t find a exact match for what i want to do.
I have an OTG cable and a 4 port USB hub that i´m using for tests. I´m using stock 4.2 and stock kernel.
1- I´d like to add a flash drive or a external usb hard disk as a default storage device, is there any way to do this without external apps? like the N7 had microSD support? I saw a topic where some user was able to do this, but i can´t find it. Can i install games and everything if i do this? None of my FAT32 cflash drives were recognized. NTFS drives paragon NTFS mounted but it was not recognized by system in storage options.
2- Overclock using SET CPU will work as usual even using stock kernel? Which settings do you recommend me to use?
3- As you can see, i´m a noob considering the rooting possibilities, which more do you recommend me to do to fully use the potential of my Nexus 7, i use it mainly for playing games and emulators, surfing internet and watching movies. The only thing i did was modifying the script to run XBOX360 wireless controller perfectly. Any recommendations to rooting i will be very grateful, thanks!

[Q] USB OTG

Hi, I'm trying to access a USB storage on my nexus 7, got a few different apps but nothing. Does the nexus have to be strictly rooted in order for it to work? Or can i do it on stock? Im stock btw.
Thanks.
There's a Nexus Media Importer app that will let you read from USB storage through your OTG. But if you want read and write capability, you'll need to root your device and use a root level app like Stickmount.

[Q] USB Thumb Drive NTFS and Read Only?

Google Nexus 10
Android version 5.0.1
Build Number LRX22C
CWM 6.0.4.7
Rooted
I have just installed the Android 5.0.1 update AND purchased a 64Gb Sandisk USB/MicroUSB memory stick.
My Nexus 10 can mount the USB stick without any problem and I can see and use all the files on it but because I had to format the USB stick as NTFS all these files are now read only so I cannot delete any files from it nor can I move files from my Nexus 10 to the USB stick.
Does anyone know if there is a way to coax my Nexus 10 to be able to read AND write to my NTFS USB stick/drive?
Thanks
Hi,
AFAIK the kernel has to support NTFS writing. There are some on development section, you may want to search for it.
Good luck,
~Lord
matrixmainframe said:
...
Does anyone know if there is a way to coax my Nexus 10 to be able to read AND write to my NTFS USB stick/drive?
Thanks
Click to expand...
Click to collapse
I use the playstore app USB OTG Helper but you will also need to install SELinux Mode Switcher and set that to permissive mode. Despite the USB OTG Helper app displaying an error (-9) when an OTG SD reader is attached it provides the full RW access your looking for. It also provides multiple formats support beyond NTFS. I personally use Linux ext4 on all my SD cards which is also supported. It has an experimental exrFAT support but I've never used it.
There is also Stickmount but I prefer the way USB OTG Helper added the external storage to the device. It seemed to integrate with my music player better, that may be personally choice though.
Sent from my Nexus 10 using XDA Premium HD app
3DSammy said:
I use the playstore app USB OTG Helper but you will also need to install SELinux Mode Switcher and set that to permissive mode. Despite the USB OTG Helper app displaying an error (-9) when an OTG SD reader is attached it provides the full RW access your looking for. It also provides multiple formats support beyond NTFS. I personally use Linux ext4 on all my SD cards which is also supported. It has an experimental exrFAT support but I've never used it.
There is also Stickmount but I prefer the way USB OTG Helper added the external storage to the device. It seemed to integrate with my music player better, that may be personally choice though.
Sent from my Nexus 10 using XDA Premium HD app
Click to expand...
Click to collapse
Thanks for that. I will give both a try and see which is best for me.
Thanks again
Well I have tried both and whilst both seem to mount my USB drive and both seem to acknowledge it is mounted, when I try to delete a file which is on the USB drive using ES File Explorer I get the error message of "unsupported operation"!?
If either of the pro versions have something that the free version does not, that will get USB read/write working I will happily buy pro version but no point if not working

[Q] foldermount broken in 5.1.1?

I was trying to move some apps to usb using foldermount and once I get to the part where I choose the new path I can't continue. I think it is a ui problem since the app wasn't designed for android tv but I've heard other people use it successfully so I don't know.
for me foldermount doesn't work too.
read this post if you want to install on external usb drive:
http://forum.xda-developers.com/showpost.php?p=61584727&postcount=158

Categories

Resources