[Q] USB OTG works on Nexus 5? - Nexus 5 Q&A, Help & Troubleshooting

What app can I use to read/write pendrive via USB OTG?

maxwarp79 said:
What app can I use to read/write pendrive via USB OTG?
Click to expand...
Click to collapse
I reply me: OTG works on Nexus % but is needed a third party app like OTG Disk Explorer (read only, no root) or StickMount (read and write but need root).

So I am trying OTG and found this thread. Can't get it to work. Used stickroot to mount my flash drive. Says its mounted at sdcard/usbstorage/sda1 but when I use gallery or even root explorer, nothing is in there. Dam

chugger93 said:
So I am trying OTG and found this thread. Can't get it to work. Used stickroot to mount my flash drive. Says its mounted at sdcard/usbstorage/sda1 but when I use gallery or even root explorer, nothing is in there. Dam
Click to expand...
Click to collapse
Had the same problem... The phone doesn't have native exfat support so if your flash drive is formatted exfat it'll silently fail. It's vfat or nothing right now.

There are exfat nexus 5 kernels
Sent from my Nexus 5 using Tapatalk

Get exFAT and NTFS drivers....
gtj0 said:
Had the same problem... The phone doesn't have native exfat support so if your flash drive is formatted exfat it'll silently fail. It's vfat or nothing right now.
Click to expand...
Click to collapse
For StickMount on the Google Play page there are instructions for adding exFAT and NTFS drivers. Basically, download a file to the internal emulated sdcard partition....
https://play.google.com/store/apps/details?id=eu.chainfire.stickmount
----- Filesystem support -----
The filesystems supported depends on your device firmware. On most devices, at least vfat/fat/fat32 and ext2/3/4 are supported. On the latest Android versions, ntfs is also supported in read-only mode. Some devices also support exfat out the box, but most do not.
StickMount can utilize the "ntfs-3g" and "mount.exfat-fuse" binaries to add support for ntfs (untested) and exfat, but these are not included. If you place the "ntfs-3g" or "mount.exfat-fuse" files in the root of your internal storage ( /sdcard ), StickMount will automatically use them.
You can find the needed files here:
ntfs-3g: http://forum.xda-developers.com/attachment.php?attachmentid=1145436&stc=1&d=1340293802
mount.exfat-fuse: http://forum.xda-developers.com/attachment.php?attachmentid=806200&d=1323109372

Thanks david i got it to work!

mount.exfat-fuse seems to be read-only. Is there any better solution than this? Like a custom kernal?

xknobi said:
mount.exfat-fuse seems to be read-only. Is there any better solution than this? Like a custom kernal?
Click to expand...
Click to collapse
SELinux is preventing the writes. You can either find a custom kernel that has SELinux set to permissive or disabled instead of enforcing or from a root command line do a "setenforce 0".

gtj0 said:
SELinux is preventing the writes. You can either find a custom kernel that has SELinux set to permissive or disabled instead of enforcing or from a root command line do a "setenforce 0".
Click to expand...
Click to collapse
Great, tried the second method, it works like a charm.

maxwarp79 said:
I reply me: OTG works on Nexus % but is needed a third party app like OTG Disk Explorer (read only, no root) or StickMount (read and write but need root).
Click to expand...
Click to collapse
Recently bought a Nexus 5 and 7 to replace my previous phone and tablet, and the lack of a USB-OTG mount option in the GUI had me stumped for a while. I googled and found your post. I installed StickMount and it's working perfectly on both devices. Both are running stock 4.4.2 (KOT49H) rooted with Superuser 1.0.3.0. Just wanted to say thanks, and say it works great with these versions. :good:

Incompatible flash drives
I've bought 2 pens in the last 2 days that afterall weren't compatible with my Nexus 5. And I can't understand why... The light doesn't even turn on! (of the pen drive).
Can anybody help me? Does the flash drive need to support USB 1.1?

bixorastexante said:
I've bought 2 pens in the last 2 days that afterall weren't compatible with my Nexus 5. And I can't understand why... The light doesn't even turn on! (of the pen drive).
Can anybody help me? Does the flash drive need to support USB 1.1?
Click to expand...
Click to collapse
All USB 2 drives are backwards compatible. That's not it.
Maybe your cable is faulty / wrong.
Sent from my Nexus 5 using Tapatalk

rootSU said:
All USB 2 drives are backwards compatible. That's not it.
Maybe your cable is faulty / wrong.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
That's not the problem, I think. I've already used 2 (bought in Ebay tho).
And besides I can't read any flash drive, I can still connect my mouse to it and the phone recognizes perfectly.
I've no idea what is going on here :/
(Already tried USB OTG Helper. The Recovery doesn't recognize any flash drive aswell).
But I've some cheap flash drives that the phone actually recognizes.

bixorastexante said:
I've bought 2 pens in the last 2 days that afterall weren't compatible with my Nexus 5. And I can't understand why... The light doesn't even turn on! (of the pen drive).
Can anybody help me? Does the flash drive need to support USB 1.1?
Click to expand...
Click to collapse
I've not yet got a N5 (in the post) but you remind of an issue with my existing N4 which is if I got USB Debugging mode or (on my N7) certain custom kernel settings like OTG host+charging mode, it interferes with what you're trying to make work.
Or in less words, N5, stock settings, it should "just work" (theoretically, I don't have N5 in my hands), it could be your N5 has a dud hardware (socket,etc) ? As as been said, could be your cable.
I got a OTG USB flashdrive to not carry the cable, works in my N7, N10 just fine and expecting it to also on N5.

On the N5, you need a 3rd party app like stick mount or otg helper, unless you have a special rom or kernel. If they don't work in recovery, that rules out software and settings and if others work, that rules out hardware so it must be the sticks. I've never heard of one being incompatible though
Sent from my Nexus 5 using Tapatalk

bixorastexante said:
That's not the problem, I think. I've already used 2 (bought in Ebay tho).
And besides I can't read any flash drive, I can still connect my mouse to it and the phone recognizes perfectly.
I've no idea what is going on here :/
(Already tried USB OTG Helper. The Recovery doesn't recognize any flash drive aswell).
But I've some cheap flash drives that the phone actually recognizes.
Click to expand...
Click to collapse
nigelhealy said:
I've not yet got a N5 (in the post) but you remind of an issue with my existing N4 which is if I got USB Debugging mode or (on my N7) certain custom kernel settings like OTG host+charging mode, it interferes with what you're trying to make work.
Or in less words, N5, stock settings, it should "just work" (theoretically, I don't have N5 in my hands), it could be your N5 has a dud hardware (socket,etc) ? As as been said, could be your cable.
I got a OTG USB flashdrive to not carry the cable, works in my N7, N10 just fine and expecting it to also on N5.
Click to expand...
Click to collapse
Damn guys, you're being awesome. Many thanks
So, I'll just keep you updated. I've just tried with another cable to go into the recovery to see if that pen I bought is recognized (once again, but with another cable).
Ends up that the phone actually recognized and I'm really happy. I'll try to see what's causing the issue inside of the Android.
I'm using this: C-Rom + Elemental 0.38 (with FastCharge and ExFat support).
I'll try to find what's interfering after the ROM boots. Anyway, many thanks, you were really helpful. What's weird is that the cable I had worked perfectly with the mouse, afterall. Idk why...

bixorastexante said:
I'm using this: C-Rom + Elemental 0.38 (with FastCharge and ExFat support).
.
Click to expand...
Click to collapse
Suspect found - you're using fastcharge, disable that and try again. ISTR when playing with Franco Kernel Fastcharge it warned it would interfere with OTG data.

The above is correct
From the wonders of mobile telephony.

nigelhealy said:
Suspect found - you're using fastcharge, disable that and try again. ISTR when playing with Franco Kernel Fastcharge it warned it would interfere with OTG data.
Click to expand...
Click to collapse
The kernel is not running in recovery. Recovery has it's own kernel, so if this kernel fastcharge was the culprit, there would be no interference in recovery, yet there is.
Also I have elementalx and fastcharge working perfectly with OTG

Related

Usb otg

Has anybody seen this???
http://forum.xda-developers.com/showthread.php?p=29479707
All credits to the original developer.m just sharing....
Press thanks if i helped...
Sent from my GT-I9003 using xda app-developers app
loneagl said:
Has anybody seen this???
http://forum.xda-developers.com/showthread.php?p=29479707
All credits to the original developer.m just sharing....
Press thanks if i helped...
Sent from my GT-I9003 using xda app-developers app
Click to expand...
Click to collapse
that was super ****ing awsome...! Unfortunately I am currently busy in some work outside home. I will test it after few hours. Can anybody provide loading modules for rom ddlf2 urgently???
Edit : I am suspicious whether it will work or not because of this information provided in that thread
I am adding this here as this should work on any android device with support in the kernel for USB OTG and mass storage
Click to expand...
Click to collapse
vishal24387 said:
I am using galaxy i9003 with 2.3.6 stock rom rooted with cf root kernel. My installed kernel dont support for usb otg. Then will it be possible to use this app to enable usb otg in my phone with help by loading modules???
Edit : where are modules???
Click to expand...
Click to collapse
Any phone with either in-built mass storage support, or custom kernels or having required modules (for stock kernel).
I think you need to find and load the modules yourself before using the application.
Skander1998 said:
Any phone with either in-built mass storage support, or custom kernels or having required modules (for stock kernel).
I think you need to find and load the modules yourself before using the application.
Click to expand...
Click to collapse
Ya I read that. Can anybody provide me necessary modules for DDLF2 rom??
can we use these modules??
forum.xda-developers.com/showthread.php?t=1244744
vishal24387 said:
Ya I read that. Can anybody provide me necessary modules for DDLF2 rom??
Click to expand...
Click to collapse
or xwlf2
Vishal, I gave u the ddlf2 modules by facebook, but I pase it here... http://www.mediafire.com/?laky21qc651oo3g
luiseteyo said:
Vishal, I gave u the ddlf2 modules by facebook, but I pase it here... http://www.mediafire.com/?laky21qc651oo3g
Click to expand...
Click to collapse
oh wow...thanx buddy. Just a quick question that I am using XDA_BAM v14fix cf root kernel. Do I need to install a saperate busybox OR its already included in kernel???
Edit:- It does not contain necessary modules of usb otg. Amit once provided me all modules necessary for usb otg but they are for xxkph. You can find those old modules in the thread whose link I have posted in above post.
vishal24387 said:
oh wow...thanx buddy. Just a quick question that I am using XDA_BAM v14fix cf root kernel. Do I need to install a saperate busybox OR its already included in kernel???
Edit:- It does not contain necessary modules of usb otg. Amit once provided me all modules necessary for usb otg but they are for xxkph. You can find those old modules in the thread whose link I have posted in above post.
Click to expand...
Click to collapse
Argg i thought u needed modules folder under system. If i can do anything more just tell me please
Sent from my GT-I9003 using xda app-developers app
luiseteyo said:
Argg i thought u needed modules folder under system. If i can do anything more just tell me please
Sent from my GT-I9003 using xda app-developers app
Click to expand...
Click to collapse
Oh surely buddy. I am always thankful to u Do u have usb otg cable???
I don't think that building the modules is enough, that's what amit and DooMLoRD tried to do.
Anyway, if you really want to try it, I built the modules (they should work with every universal kernel, but I didn't try them).
link: otg.zip
CF-root kernels provide a minimal busybox, but sometimes it's not powerful enough. For example Droidwall doesn't work so well with it.
I usually use this installer, a reboot is required after the installation of busybox (not the app).
I can't do more than this.
EDIT:
I can see that the app uses fuse.ko and ntfs.ko too: otg-2.zip
EDIT 2:
I forgot to strip them to make them smaller: otg-stripped.zip. These are just smaller and this zip contains all the modules. This is not a flashable zip.
loSconosciuto said:
I don't think that building the modules is enough, that's what amit and DooMLoRD tried to do.
Anyway, if you really want to try it, I built the modules (they should work with every universal kernel, but I didn't try them).
link: otg.zip
CF-root kernels provide a minimal busybox, but sometimes it's not powerful enough. For example Droidwall doesn't work so well with it.
I usually use this installer, a reboot is required after the installation of busybox (not the app).
I can't do more than this.
EDIT:
I can see that the app uses fuse.ko and ntfs.ko too: otg-2.zip
EDIT 2:
I forgot to strip them to make them smaller: otg-stripped.zip. These are just smaller and this zip contains all the modules. This is not a flashable zip.
Click to expand...
Click to collapse
Like always thanx buddy Your modules loaded successfully But as expected that usb otg app is not working May be our phone does not deliver any voltage to external device. Cant we change anything in kernel to give power by phone to external usb device???
Edit:- A little OT info I from u. I have installed busybox that u have suggested. When I open busybox then it shows lots of files need to install. But I purpisefully didnt installed it. Last time when I tried to install those files my phone was bootlooping Why it happens??? If I want to install busybox from busybox installer then which stable version of busybox should I install from busybox installer??
I guess the latest one:thumbup:
Inform us about the results, good luck
Sent from my GT-I9003 using xda app-developers app
vishal24387 said:
Like always thanx buddy Your modules loaded successfully But as expected that usb otg app is not working May be our phone does not deliver any voltage to external device. Cant we change anything in kernel to give power by phone to external usb device???
Click to expand...
Click to collapse
You should know it:
http://forum.xda-developers.com/showpost.php?p=26821044&postcount=279
http://forum.xda-developers.com/showpost.php?p=27082149&postcount=284
Maybe it's possible to make it work with every kind of USB device, but you need to wait for someone experienced.
Anyway I tried the app just to see if the modules are automatically loaded. It loaded only fuse.ko and it showed "NTFS support" even if I didn't add the module. When I did it, it showed "read-write" even if I added only "read" capabilities. Maybe it loads them in the wrong order.
If someone is interested, I found this: http://talk.maemo.org/showthread.php?t=65232
I don't know if it works, but a female to female USB adapter is cheaper than a USB OTG cable and these Nokia cables (CA-101D) are quite common. Don't blame me if it won't work as USB OTG cable.
vishal24387 said:
Edit:- A little OT info I from u. I have installed busybox that u have suggested. When I open busybox then it shows lots of files need to install. But I purpisefully didnt installed it. Last time when I tried to install those files my phone was bootlooping Why it happens??? If I want to install busybox from busybox installer then which stable version of busybox should I install from busybox installer??
Click to expand...
Click to collapse
The list of files are actually symlinks (they use no space). If you don't add them when you want to use a busybox tool, instead of typing only the name of the tool, you need to type "busybox" too. For example, if you want to use "cat", you have to type "busybox cat". It shouldn't be a problem if you don't add them, but I install busybox because I use some of its tools, so I had always added them. Maybe apps need them.
Anyway, read this (taken from here):
Chainfire said:
Installing busybox over the included version on GINGERBREAD ( CF-Root versions >= 3.0 )
It is possible to install a custom busybox over CF-Root v3.0 and newer. However, this is not without risk. CF-Root makes heavy use of scripting, and many CF-Root scripts rely on the internal busybox version. If you do install a seperate busybox version (always use "stericson" installer!), install it to /system/xbin. Installing it to /system/bin will mess things up for sure. Even if you do that part right, it may still break CF-Root, so make sure to make a backup before trying.
Click to expand...
Click to collapse
Maybe the problem was that you didn't have enough space in /system and busybox was not completely copied.
I can't remember which version I used, but all the versions provided by stericson's installer should be ok.
loSconosciuto said:
You should know it:
http://forum.xda-developers.com/showpost.php?p=26821044&postcount=279
http://forum.xda-developers.com/showpost.php?p=27082149&postcount=284
Maybe it's possible to make it work with every kind of USB device, but you need to wait for someone experienced.
Anyway I tried the app just to see if the modules are automatically loaded. It loaded only fuse.ko and it showed "NTFS support" even if I didn't add the module. When I did it, it showed "read-write" even if I added only "read" capabilities. Maybe it loads them in the wrong order.
If someone is interested, I found this: http://talk.maemo.org/showthread.php?t=65232
I don't know if it works, but a female to female USB adapter is cheaper than a USB OTG cable and these Nokia cables (CA-101D) are quite common. Don't blame me if it won't work as USB OTG cable.
The list of files are actually symlinks (they use no space). If you don't add them when you want to use a busybox tool, instead of typing only the name of the tool, you need to type "busybox" too. For example, if you want to use "cat", you have to type "busybox cat". It shouldn't be a problem if you don't add them, but I install busybox because I use some of its tools, so I had always added them. Maybe apps need them.
Anyway, read this (taken from here):
Maybe the problem was that you didn't have enough space in /system and busybox was not completely copied.
I can't remember which version I used, but all the versions provided by stericson's installer should be ok.
Click to expand...
Click to collapse
Really thanks for such detailed information I think usb otg feature is not simple as it looks It needs heavy coding, modding & dedicated talented developer. But still I will try with a usb power hub.
Can anybody tell me at what price a cheapest usb power hub I will get in indian local market? Or at what price I will get a cheapest usb y cable in indian local market??
vishal24387 said:
Like always thanx buddy Your modules loaded successfully But as expected that usb otg app is not working May be our phone does not deliver any voltage to external device. Cant we change anything in kernel to give power by phone to external usb device???
Click to expand...
Click to collapse
If our phone is not delivering any voltage to external device can we use device with external power source? I have an external hard drive with power source but dont have USB OTG cable to try out.
vibhorrr said:
If our phone is not delivering any voltage to external device can we use device with external power source? I have an external hard drive with power source but dont have USB OTG cable to try out.
Click to expand...
Click to collapse
hummm...good. But I think external hard disk will be too heavy to connect to a small phone. I wil suggest u to connect a small pen drive using usb power hub. But still u can try ur expernal hard disk just for a try.
For otg wire take a look here
http://forum.xda-developers.com/showpost.php?p=28611969&postcount=266
I have attached my modded usb otg cable.
@ loSconosciuto
Can u take a look at this log file of otg helper app??forum.xda-developers.com/showpost.php?p=29545801&postcount=10
vishal24387 said:
@ loSconosciuto
Can u take a look at this log file of otg helper app??forum.xda-developers.com/showpost.php?p=29545801&postcount=10
Click to expand...
Click to collapse
There's nothing interesting there, I can only see the modules are loaded.
To see if USB devices are connected I'd use a busybox tool: lsubs
Code:
insmod /system/lib/modules/usbcore.ko
# after that connect your USB device and type
lsusb
If there's no output from lsusb, there's nothing detected. Maybe other modules are needed.
Maybe building a kernel with this config could do something, I don't know.
All our custom kernels are built with this one instead. But after that probably we need a way to swtich mode etc... I'm not good enough for this, I don't even care about USB OTG :silly:, it's something I would never use.
dhiru already said that he will look into it, you have to wait.
loSconosciuto said:
There's nothing interesting there, I can only see the modules are loaded.
To see if USB devices are connected I'd use a busybox tool: lsubs
Code:
insmod /system/lib/modules/usbcore.ko
# after that connect your USB device and type
lsusb
If there's no output from lsusb, there's nothing detected. Maybe other modules are needed.
Maybe building a kernel with this config could do something, I don't know.
All our custom kernels are built with this one instead. But after that probably we need a way to swtich mode etc... I'm not good enough for this, I don't even care about USB OTG :silly:, it's something I would never use.
dhiru already said that he will look into it, you have to wait.
Click to expand...
Click to collapse
Thanks buddy. You have great knowledge. As compared to u I am totally a noob :silly:
Anyway I think I should wait for dhiru to wotk on usb otg

TWRP 2.7 Issues

Hi,
I am unable to mount the SD card in TWRP 2.7.0 on my Evita.
Anyone else is having this issue?
+1
doesn't work for me too
only way is to use usb-otg or adb push to push a rom, or be back to an older version .
You can use Recovery switcher
Could someone tell me or post a link to twrp 2.7.0 and how do i install. Thanks
openrecovery-twrp-2.7.0.0-evita.img
Size: 8.9 MB
MD5: 0eb7f3d14d75a019b19757836a1ec805
but better to use recovery switcher (flash in recovery like a rom and choose the recovery you want to install)...
Why are you claiming it's better to use recovery switcher? What's wrong with flashing it the normal way with fastboot?
Code:
fastboot flash recovery openrecovery-twrp-2.7.0.0-evita.img
Simple. This is the standard method for flashing a recovery to an Android device, it always has been and always will be.
Sent from my Evita
With the switcher you don't need a Pc to switch the recovery and no drivers problems.
Of course for me (and you ) fastboot commands are not a problem...
but for the one who did all the wipes before transferring the zip of the rom and is on TWRP 2.7 and without an usb otg cable ...
Well you'd have to be stupid to perform a wipe before having the ROM zip on your phone, lol. I wasn't trying to diss the recovery switcher, it's great work by Flashalot. I just firmly believe that anyone who is modifying their Android device should be comfortable with using adb & fastboot.
Sent from my Evita
Should be, but in reality
I always had problems with 2.7, I've stuck with 2.6.3 for a while.
sathish804 said:
Hi,
I am unable to mount the SD card in TWRP 2.7.0 on my Evita.
Anyone else is having this issue?
Click to expand...
Click to collapse
bzhmobile said:
+1
doesn't work for me too
only way is to use usb-otg or adb push to push a rom, or be back to an older version .
You can use Recovery switcher
Click to expand...
Click to collapse
Are you guys trying to mount in windows or linux or mac? Also you are hitting "mount > mount Usb storage" correct?
Sent from my SCH-i705 using Tapatalk
hitting "mount > mount Usb storage" with a Pc Win7 32 or 64 bits does'nt work for 2.7 version
Works with your version 4.4 compatible ...
bzhmobile said:
hitting "mount > mount Usb storage" with a Pc Win7 32 or 64 bits does'nt work for 2.7 version
Works with your version 4.4 compatible ...
Click to expand...
Click to collapse
OK...I'll play with it tonight if I can, I only confirmed on Linux.
Sent from my One X using Tapatalk
bzhmobile said:
hitting "mount > mount Usb storage" with a Pc Win7 32 or 64 bits does'nt work for 2.7 version
Works with your version 4.4 compatible ...
Click to expand...
Click to collapse
Same problem on XP x64 and x86. It seems to also affect the new version of CWM and Philz touch. All of them work fine on linux for me though. Good thing I hate windows.
Yep. Confirmed. Pretty glitchy too. I have windows 8 installed on my computer. I noticed when I entered recovery (2.7.0.0) the tray icons in the lower right of my computer screen started "jumping" left and right when I chose to mount the internal storage. The tray icons continued this until I put the phone into bootloader. I flashed 2.6.3.0 and everything was back to normal and working fine. Looks like there are a few kinks to work out.
When trying to wipe USB-OTG, it wouldn't work. So I'm pretty sure it's a general implementation problem
Sent from my HTC One XL using Tapatalk
pandasa123 said:
When trying to wipe USB-OTG, it wouldn't work. So I'm pretty sure it's a general implementation problem
Sent from my HTC One XL using Tapatalk
Click to expand...
Click to collapse
You actually had a OTG drive or device attached ? If so that may be by design but i can test and talk it over with the twrp folks if needed
Sent from my One X using Tapatalk
jrior001 said:
You actually had a OTG drive or device attached ? If so that may be by design but i can test and talk it over with the twrp folks if needed
Sent from my One X using Tapatalk
Click to expand...
Click to collapse
Yup. I just bought it to see how it is. Total waste of money in retrospect because I can't really see myself using it.
Sent from my HTC One XL using Tapatalk
OK folks, i can confirm i had issues in both win 7 and win 8.1, but removing the device via device manager, and letting it re-install it self on the next plug in i was able to mount with out any more issues.
On the topic of OTG, I was able to Mount OTG and then both flash a ROM from it and wipe it once it was mounted. The big thing with OTG is that you have to manually mount it if you want to utilize it.
Edit: fwiw I was using a 2GB thumb drive formated to NTFS
@jrior001 : is the recovery kernel compiled by you? Could you tell me if it is possible to use the sources of the 3.4.10 kernel that HTC has released, enable SElinux and produce a custom image of the recovery?
AlxMAX said:
@jrior001 : is the recovery kernel compiled by you? Could you tell me if it is possible to use the sources of the 3.4.10 kernel that HTC has released, enable SElinux and produce a custom image of the recovery?
Click to expand...
Click to collapse
For the official 2.7 all device work was done mainly by mdmower ( CM guy for the VZW HTC devices). The kernel is just the base cm11 kernel and the trees are hosted on his github. I only helped with a few things and testing for this.
What you are talking about is twrp based off the last HTC source release...which is exactly what I did on the 4.4 comparable version I posted previously. Stock HTC kernel source modified for selinux built with TWRP 2.6 sources at that time. My thread has the links for kernel source and trees if you want to play with it
Sent from my One X using Tapatalk

[Q] Droid MAXX TWRP Recovery and using USB OTG

I'm currently using TWRP 2.6.x on my XT1080MDEV and have a question specific to the device.
First, my use case: I like backup images... They are wonderful... BUT, they occupy space. To help alleviate this I've started offloading them to a USB OTG device via manually copying them in a file manager after mounting the device in StickMount. I would like to be able to restore from this device directly in recovery, just in case the world burns down.
My issue: attempting to mount in TWRP never finds anything and thus no restore from the USB OTG device works for me. As I understand it, TWRP recovery does support USB OTG.
How do I accomplish mounting a USB OTG device in TWRP on the Droid MAXX?
Thanks in advance for any help anyone can provide.... Its greatly appreciated!!
Sent from my XT1080DEV using Tapatalk
CarnivoreMatt said:
I'm currently using TWRP 2.6.x on my XT1080MDEV and have a question specific to the device.
First, my use case: I like backup images... They are wonderful... BUT, they occupy space. To help alleviate this I've started offloading them to a USB OTG device via manually copying them in a file manager after mounting the device in StickMount. I would like to be able to restore from this device directly in recovery, just in case the world burns down.
My issue: attempting to mount in TWRP never finds anything and thus no restore from the USB OTG device works for me. As I understand it, TWRP recovery does support USB OTG.
How do I accomplish mounting a USB OTG device in TWRP on the Droid MAXX?
Thanks in advance for any help anyone can provide.... Its greatly appreciated!!
Sent from my XT1080DEV using Tapatalk
Click to expand...
Click to collapse
The latest versions of twrp and cwm support USB otg. I would check out dhacker29's versions
Sent from my XT1080 using Tapatalk
BladeRunner said:
The latest versions of twrp and cwm support USB otg. I would check out dhacker29's versions
Sent from my XT1080 using Tapatalk
Click to expand...
Click to collapse
The TWRP I originally installed was from Hashcode here http://forum.xda-developers.com/moto-x/development/recovery-unlocked-twrp-2-6-3-1-android-t2534850 and is version 2.6.3.1 which I believe supports USB OTG (But, obviously, its not working for me )
I looked around for dhacker29's version and all I can find is his thread in which someone asked about compatibility with Droid MAXX here: http://forum.xda-developers.com/showpost.php?p=49475029&postcount=110 in which a reply has not yet been submitted. The thread includes a broken link to a TWRP img however I think they are housed here http://androidhosting.org/Devs/Dhacker29/MotoX/ even so I cannot validate compatibility and would not know which one to pick... I'm not bold enough to potentially brick either.
Any other ideas or more information anyone can provide?
Is anyone else trying to do images from an off device storage source? I would think this might be a common thing to do, given internal storage and get botched too.
Thanks to anyone who can help in advance!
CarnivoreMatt said:
The TWRP I originally installed was from Hashcode here http://forum.xda-developers.com/moto-x/development/recovery-unlocked-twrp-2-6-3-1-android-t2534850 and is version 2.6.3.1 which I believe supports USB OTG (But, obviously, its not working for me )
I looked around for dhacker29's version and all I can find is his thread in which someone asked about compatibility with Droid MAXX here: http://forum.xda-developers.com/showpost.php?p=49475029&postcount=110 in which a reply has not yet been submitted. The thread includes a broken link to a TWRP img however I think they are housed here http://androidhosting.org/Devs/Dhacker29/MotoX/ even so I cannot validate compatibility and would not know which one to pick... I'm not bold enough to potentially brick either.
Any other ideas or more information anyone can provide?
Is anyone else trying to do images from an off device storage source? I would think this might be a common thing to do, given internal storage and get botched too.
Thanks to anyone who can help in advance!
Click to expand...
Click to collapse
http://androidhosting.org/Devs/Dhacker29/ look in the MotoX folder
---------- Post added at 12:53 PM ---------- Previous post was at 12:52 PM ----------
CarnivoreMatt said:
The TWRP I originally installed was from Hashcode here http://forum.xda-developers.com/moto-x/development/recovery-unlocked-twrp-2-6-3-1-android-t2534850 and is version 2.6.3.1 which I believe supports USB OTG (But, obviously, its not working for me )
I looked around for dhacker29's version and all I can find is his thread in which someone asked about compatibility with Droid MAXX here: http://forum.xda-developers.com/showpost.php?p=49475029&postcount=110 in which a reply has not yet been submitted. The thread includes a broken link to a TWRP img however I think they are housed here http://androidhosting.org/Devs/Dhacker29/MotoX/ even so I cannot validate compatibility and would not know which one to pick... I'm not bold enough to potentially brick either.
Any other ideas or more information anyone can provide?
Is anyone else trying to do images from an off device storage source? I would think this might be a common thing to do, given internal storage and get botched too.
Thanks to anyone who can help in advance!
Click to expand...
Click to collapse
the moto X ones work for our phones. I like CWM, personally
CarnivoreMatt said:
The TWRP I originally installed was from Hashcode here http://forum.xda-developers.com/moto-x/development/recovery-unlocked-twrp-2-6-3-1-android-t2534850 and is version 2.6.3.1 which I believe supports USB OTG (But, obviously, its not working for me )
I looked around for dhacker29's version and all I can find is his thread in which someone asked about compatibility with Droid MAXX here: http://forum.xda-developers.com/showpost.php?p=49475029&postcount=110 in which a reply has not yet been submitted. The thread includes a broken link to a TWRP img however I think they are housed here http://androidhosting.org/Devs/Dhacker29/MotoX/ even so I cannot validate compatibility and would not know which one to pick... I'm not bold enough to potentially brick either.
Any other ideas or more information anyone can provide?
Is anyone else trying to do images from an off device storage source? I would think this might be a common thing to do, given internal storage and get botched too.
Thanks to anyone who can help in advance!
Click to expand...
Click to collapse
I don't know if this will help but this is what I do. After unlocking I set up a bone stock ROM and then to nandroid back up. While its quite large, I keep this backup on my SD in its original location. As I move forward with customization, tweaks, ROMs, ect I'll do a nand of that and move the file from the phone to PC. If anything should happen like bootloop or otherwise borking something I have the stock nand immediately available to restore and bail me out. If I want I can then hook up to PC and load the backup I want and restore through TWRP.
Sent from my Dev Ed. Ultra
BladeRunner said:
http://androidhosting.org/Devs/Dhacker29/ look in the MotoX folder
---------- Post added at 12:53 PM ---------- Previous post was at 12:52 PM ----------
the moto X ones work for our phones. I like CWM, personally
Click to expand...
Click to collapse
OK... I installed the 2.7 image to no avail.
Do I need to manually mount the drive in a terminal or something ?
I ass/u/me/d it would mount on boot of recovery as external memory or something however perhaps that's not the case and I'm simply missing steps?
Sent from my XT1080DEV using Tapatalk
CarnivoreMatt said:
OK... I installed the 2.7 image to no avail.
Do I need to manually mount the drive in a terminal or something ?
I ass/u/me/d it would mount on boot of recovery as external memory or something however perhaps that's not the case and I'm simply missing steps?
Sent from my XT1080DEV using Tapatalk
Click to expand...
Click to collapse
I'm not sure about TWRP. I'm using CWM 6.4.0.7 and it mounts automatically
BladeRunner said:
I'm not sure about TWRP. I'm using CWM 6.4.0.7 and it mounts automatically
Click to expand...
Click to collapse
Yes, I've now tested CWM 6.4.0.7 and it does automatically mount the drive. I'll use this as a workaround for now and thank you.
Still looking to get TWRP to mount external storage - anyone?
CarnivoreMatt said:
Yes, I've now tested CWM 6.4.0.7 and it does automatically mount the drive. I'll use this as a workaround for now and thank you.
Still looking to get TWRP to mount external storage - anyone?
Click to expand...
Click to collapse
I can't get TWRP to work either

[Q] Any way to achieve selinux permissive on AT&T sm p907a?

Question is in the title is there any way to get the selinux status to permissive on the AT&T note pro12.22 using stock rom?
I have already tried the sm P905 method for Qualcomm on here without success. I do have root but it is not enough as most of my root apps such as usb bt joycenter gold need the permissive state to function properly. I was just wondering if anybody knew if this is possible or if AT&T customers have been brickwalled again as with the note 3 and the bootloader locked
Xenoghost42 said:
Question is in the title is there any way to get the selinux status to permissive on the AT&T note pro12.22 using stock rom?
I have already tried the sm P905 method for Qualcomm on here without success. I do have root but it is not enough as most of my root apps such as usb bt joycenter gold need the permissive state to function properly. I was just wondering if anybody knew if this is possible or if AT&T customers have been brickwalled again as with the note 3 and the bootloader locked
Click to expand...
Click to collapse
Someone needs to build a permissive kernel for the p907a.
Xenoghost42 said:
Question is in the title is there any way to get the selinux status to permissive on the AT&T note pro12.22 using stock rom?
I have already tried the sm P905 method for Qualcomm on here without success. I do have root but it is not enough as most of my root apps such as usb bt joycenter gold need the permissive state to function properly. I was just wondering if anybody knew if this is possible or if AT&T customers have been brickwalled again as with the note 3 and the bootloader locked
Click to expand...
Click to collapse
I wanted to know the same thing when I first bought my note pro as it couldn't read my external drive formatted NTFS. I was never able to set the kernel to permissive (needed for apps that mount ntfs drives) so I ended up reformatting my hard drive to exFat. The only bad thing is now I can't store a disc image for my windows laptop as it wants the file system to be NTFS to begin the backup! I'm not sure whether to sell my tablet now as the locked bootloader is a real pain. If its a laptop replacement then it has to read my hard drive and I need it formatted NTFS.
jordant2 said:
I wanted to know the same thing when I first bought my note pro as it couldn't read my external drive formatted NTFS. I was never able to set the kernel to permissive (needed for apps that mount ntfs drives) so I ended up reformatting my hard drive to exFat. The only bad thing is now I can't store a disc image for my windows laptop as it wants the file system to be NTFS to begin the backup! I'm not sure whether to sell my tablet now as the locked bootloader is a real pain. If its a laptop replacement then it has to read my hard drive and I need it formatted NTFS.
Click to expand...
Click to collapse
Yes sir this tablet is entirely too tied down too be any sort of laptop replacement. It's essentially a tablified sm n900a (AT&T note 3) with the bootloader being locked and all. If it's any indicator given how robust the development community is for that device and how minute the one for this one is......I doubt we will see an unlocked bootloader at all seeing as how the n900a's remains yet to be unlocked and it has been out for nearly a full year now. All well price you pay for lte I guess. I really wish AT&T would stop alienating their customers though
I also have the p907a and am trying to disable the selinux or set it to permissive. I have completely deleted the files related to knox, and I am fully rooted. Mine also doesn't print an error for setenforce 0, it just doesn't work. I have also tried wanam xposed which claims to be able to set permissive, it also didn't work.
I have been spending time looking for the bootloader partition in hopes that like desktop linux, I can edit the kernel params sent before booting and just add selinux=0. If anyone has any clue which /dev/block device it is hiding under please let me know
I have also found and tried setprop ro.build.selinux.enforce 0. This also is ignored by the system. The 2 /dev/block devices that seem promissing are:
/dev/block/mmcblk0p6 alias aboot and /dev/block/mmcblk0p14 alias boot. Now I don't know if these are generated on install and therefore different for each system but I am attaching the image files of these block devices. aboot is identified as "Hitachi SH big-endian COFF object, not stripped" the other one as data. Anyway Maybe someone else on here can help figure out next steps. As they are binary that is out of my skill level.
ok looking around on the forums boot.img is a packed kernel and ramdisk. Hopefully the settings are in the ramdisk or something. Does anyone have the tools to unpack the boot.img and internal zimage and ramdisk for OSX? I see there are tools for windows and linux, but I couldn't find any for mac
Thanks
Most forums frown on making new threads when the subject is already covered. The op may have given up but I haven't... Do I open my own thread????

[Q&A] NATIVE OTG Fix For Micromax Unite 2 Kitkat (NO NEED OTG HELPER)

Q&A for NATIVE OTG Fix For Micromax Unite 2 Kitkat (NO NEED OTG HELPER)
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer. Thanks for understanding and for helping to keep XDA neat and tidy! :smile:
Needs some work
Thanks for this AWESOME tweak but it is very BUGGY!
It only works only once per reboot and if I remove and reconnect the USB drive, it says "Unfortunately External Storage has stopped" and then "Unfortunately Settings has stopped".
Please fix this asap
It is a MUCH NEEDED tweak for the Unite 2!
EDIT : I can still access the flash drive via ES, but I can't unmount the drive as Settings force closes
Will you mind trying another usb flash drive? As i can mount/unmount as many times as i want. And also no force close.
Edit: ok i can mount/unmount it as many times as i want till the drive is connected through otg cable, once removed, can't mount again till reboot.
Thanx for telling, will look into it.
Edit 2: you can still mount/unmount drives but there will be no notification and no listing in stock file manager, but you can do normal operations using es file explorer.
Anything else, just comment.
Force closing!
Sudeep Duhoon said:
Will you mind trying another usb flash drive? As i can mount/unmount as many times as i want. And also no force close.
Edit: ok i can mount/unmount it as many times as i want till the drive is connected through otg cable, once removed, can't mount again till reboot.
Thanx for telling, will look into it.
Edit 2: you can still mount/unmount drives but there will be no notification and no listing in stock file manager, but you can do normal operations using es file explorer.
Anything else, just comment.
Click to expand...
Click to collapse
I can't unmount as clicking the Storage menu in Settings while the drive is connected, force closes Settings.
Also, File Manager too fc
Galactiko said:
I can't unmount as clicking the Storage menu in Settings while the drive is connected, force closes Settings.
Also, File Manager too fc
Click to expand...
Click to collapse
Which rom you are using and do you have es file explorer?
Updating the patch, download and try this one.
???????
do we need to restart after every use to reuse again??????????
farukhwap said:
do we need to restart after every use to reuse again??????????
Click to expand...
Click to collapse
Nope. Watch the video.
Work only once's
It work's for the first time and after than, when I remove my USB drive and again try to connect to mobile then it doesn't mount. I need to restart if i want to connect it please fix it soon and good work man thanks I appreciate ur work
[email protected] said:
It work's for the first time and after than, when I remove my USB drive and again try to connect to mobile then it doesn't mount. I need to restart if i want to connect it please fix it soon and good work man thanks I appreciate ur work
Click to expand...
Click to collapse
Watch the video.
USB Otg Not Working
Dude I have completed the process as said by you step by step but still usb otg is not working
My unite 2 ( 8 gb version) is rooted and custom recovery is installed ( ctr 2.2)
I flashed the zip u provided but still otg is not working. Why ? can u tell me
Thanks, :good:
I just logged in to thanks you for solving the otg problem., it works great.., though i had a question in mind.., in your video your theme is like android L., how you did that., by using xposed.,? or any other way., coz themer through xposed in not working in mine., and i don't know why., please share it :good:
USB Otg Not Working
Sudeep Duhoon said:
Watch the video.
Click to expand...
Click to collapse
USB Otg is not working in my unite 2 ( 8 GB rom).
I completed the method step by step as you said but still otg is not working.
You asked for logcat output. I am attaching logcat output file.
Plzzz take a look & tell me if it is possible to use otg in my phone & how?
chetan91 said:
Dude I have completed the process as said by you step by step but still usb otg is not working
My unite 2 ( 8 gb version) is rooted and custom recovery is installed ( ctr 2.2)
I flashed the zip u provided but still otg is not working. Why ? can u tell me
Click to expand...
Click to collapse
got the logcat.
sorry for late reply, it's my last semester so i have to concentrate a bit on studies.
anyway, there is no issue that i can see in the log you attached.
when you attach pen drive, can you see any notification? or anything in settings-storage?
Got no notification
Exams ya I can understand
Thats the problem I got no notifications when connecting pen-drive through otg.
Nothing in storage settings, nothing in es file explorer.
Though I saw some videos on youtube in which when user connects pendrive through otg, notification shows but why its not working in mine. My phone is rooted,custom recovery installed, flashed the patch but still nothing.Plzz help me. Yes I am on stock (kitkat) rom.
OTG showing only one time in storage?
@Sudeep Thanks(and also pressed the Thanks button ) for providing the OTG fix. Used your patch v2. successfully fixed the otg. One thing is bugging me. Why does not the system detects the OTG drive second time? Is it the android system? or some bugs in your patch or IT COULD A NEW FEATURE(Like "Hide OTG pendrive from System when you use it Second time").
If we remove the drive without un-mounting will it harm our flash Drives? I normally use the "Safely remove the USB" option.
One more thing, I used TWRP with Materialized theme, when i installed it it was showing error in red lines. There was some lines about the font. and after installing the patch when i press reboot system, the recovery turned 180 and hanged. So had to remove the battery and re-insert it.
Hope you have some free time to fix those error.
Thanks man!!!!!.... Its working on 8gb version
Say Hello
Hello
v2 is it permanent fix
As when i diconected my otg once i had to restart my mobile for again detect it in file manager.did u fix that .
Thanks., much appreciated...
Sent from my GT-N7105 using XDA Free mobile app
hi i have a different device(lenovo a6000).Can you tell me what code to add to vold file.i would like to test it with my device.

Categories

Resources