[FIX] USB Host Mode - Xiaomi Redmi 2 Themes, Apps, and Mods

Hey guys!
Now before we begin!
IMPORTANT NOTICE!
This modification comes with ABSOLUTELY NO WARRANTY! MUHAHAHAHA!
Joking aside, this may or may not break your device. I can't even guarantee it will work on devices I haven't tested it on yet.
----------------------------------------------------------
Requirements
Compatible Rooted Android Device [TESTED ON REDMI 2 8018 Resurrection Remix ]
The permission XML file available below
Root Explorer or compatible fully-featured file manager
Procedure
Transfer .xml file to your device.
Open Root Explorer and navigate to .xml file you transferred earlier.
Move .xml file to /system/etc/permissions.
Set permissions to rw -r -r
Reboot!
There you go! HOST mode enabled on your device!
Frequently Asked Questions!
What is USB Host Mode?
When your Android-powered device is in USB host mode, it acts as the USB host, powers the bus, and enumerates connected USB devices. USB host mode is supported in Android 3.1 and higher
Is it different from OTG?
No. It is part of what constitutes OTG.
Why do I need this Fix then?
Custom ROMs compiled for our device DO NOT contain permissions for USB Host Mode. However they do contain permissions for USB Accessory Mode (Crudely devices which not have an independent power source like flash drives and mice). OTG works with Accessory mode but your device will fail to identify Host mode devices.
This fix will enable Host mode and your device will be able to communicate with Host Mode devices (Devices with independent power source like External Hard Disk, DSLR Cameras in my case ).
Can I include this in my ROM?
Yes you can, provided that you mention it later.

Can't Download The Xml
Pls Upload It On Gdrive I Can't Download The XML File.

mihirshah+1 said:
Pls Upload It On Gdrive I Can't Download The XML File.
Click to expand...
Click to collapse
https://drive.google.com/open?id=0B4krewmnOxTic3NrYUd2akxzT2s

taalojarvi said:
https://drive.google.com/open?id=0B4krewmnOxTic3NrYUd2akxzT2s
Click to expand...
Click to collapse
Thanks Hope It will Work

Thanks

Reviving an old thread,
Can i connect powered usb hub through this way, also how do i change that permission

Related

[Q] enable USB Host Mode?

Figured I would ask this since I can not find anything anywhere for the X2 and the usb host mode. I found a really cool app in the market to control my canon t3i from the phone but I have to be able to turn on USB Host Mode. I can't find anything about it on the phone at all.
I am rooted using - http://forum.xda-developers.com/showthread.php?t=1315711 - that thread but I am still using the stock ROM.
Do I need to put a different ROM on in order to do the USB Host Mode?
Is it even possible to turn it on?
KnightRid said:
Figured I would ask this since I can not find anything anywhere for the X2 and the usb host mode. I found a really cool app in the market to control my canon t3i from the phone but I have to be able to turn on USB Host Mode. I can't find anything about it on the phone at all.
I am rooted using - http://forum.xda-developers.com/showthread.php?t=1315711 - that thread but I am still using the stock ROM.
Do I need to put a different ROM on in order to do the USB Host Mode?
Is it even possible to turn it on?
Click to expand...
Click to collapse
PC mode possibly? could be debugginf mode? try all the modes we have if one works then there you go. I have never heard of USB host mode
Here is the link - http://forum.xda-developers.com/showthread.php?t=1202082 to the DSLR program I am talking about. Something about some phones can enable the USB host for communication between the phone and external devices while others cant.
I'm assuming you aren't sure how to enable USB Host mode? If that is correct, here is how to ensure it's enabled. This will work if you are on stock or a custom ROM (unless the custom ROM removed it which I doubt):
Click the Menu button and select Settings
Scroll down until you see Applications and select it
Select the Developer menu item in the Application settings menu you are currently in.
Ensure USB Debugging is checked. This is necessary and important.
After that, you can pull down the notification bar and you should see a "USB connection" option. You can select that and you'll get a new window with radio button choices. Mine has the following (running Eclipse 1.3):
PC Mode
USB Mass Storage
Phone as Modem
Charge Only
PC Mode allows you to access the SD Care from Windows and within ADB shell. In this mode, it allows access to what is on your internal and external SD card in the same window.
USB Mass Storage mode means that it will mount the internal and external SD cards as separate drives on your windows machine and your phone won't have access to them until you either disconnect the phone from the PC or else, go to a different USB mode.
Phone as Modem - I never use this but it allows you to use your phone as a modem for your PC. Ahh, the old days of modems. I remember running 300 baud. When I went to 1200 baud, I thought I was styling!
Charge Only - In this mode, it's only using the USB connection as a charger. You won't have access to the sd cards from within Windows, but they will be accessible from your phone.
It sounds like you want the "USB Mass Storage" mode from what you've stated.
Hopefully this helps.
KnightRid said:
Figured I would ask this since I can not find anything anywhere for the X2 and the usb host mode. I found a really cool app in the market to control my canon t3i from the phone but I have to be able to turn on USB Host Mode. I can't find anything about it on the phone at all.
I am rooted using - http://forum.xda-developers.com/showthread.php?t=1315711 - that thread but I am still using the stock ROM.
Do I need to put a different ROM on in order to do the USB Host Mode?
Is it even possible to turn it on?
Click to expand...
Click to collapse
First of all you need a kernel which has usb host mode enabled and a terminal.
You can check out this for information on USB OTG cables:http://tech2.in.com/how-to/accessor...sb-otg-cable-for-an-android-smartphone/319982
As, Levprez has pointed out you will need a kernel (not a ROM!) with USB OTG support.
Once, you have USB OTG support (and it is enabled) you can plug a device into the normal usb connector on the USB OTG cable...if it works at all...it should detect and setup the device like normal.
I recently test OTG support on my DX2, and it appears to be working. (firmware is 4.5.1A-DTN-150-30, kernel is 2.6.32.9-00005-g2440aba)
To verify status of USB OTG support, check if /proc/config.gz (compessed configuration file used for building kernel that currently installed in device) has 'CONFIG_USB_TEGRA_OTG=y' in it. If so, your kernel supports otg mode.
However, in order to connect usb device to phone you need a special otg cable with support of external +5V power. Phone itself doesn't provide required power for connected devices, which may be bad - you need additional power source for usb devices - or good - while connecting other devices you can also charge phone from external source.
Initially supported various HIDs (keyboards, mice and some gamepads) and mass storage devices (flash drives, external hdds and such), though flash drives require manual mounting within scripts or terminal emulator and, obviously, require root. Alternatively, you can add other drivers (because it's linux and source code of kernel available) to support any device you need, for example drivers for other android device xD
Droid x2 to control camera
Levprez said:
First of all you need a kernel which has usb host mode enabled and a terminal.
Click to expand...
Click to collapse
hi please let me know if you figure this out? because i also have a droid x2 and a rebel t3i and have the same idea in mind! it works on my transformer prime, but that is too big to be useful on the go. I don't think too many devices support the usb host mode except very new ones?

[Q] Help about attaching a webcam to android devic

Hello friends and happy new year for all.
I have a question about using webcams in an android device,
can anyone help me
I mean , I want to attach my webcam to my android device (Xperia mini pro) but I don't know how to do it.
please help me.
You don't.
I find a way
I allso found a way in youtube but I don't know how to us it
I hope masters in here can help me
but I cant send the link here so I write the search words
Usage of USB webcam with customized Galaxy Nexus (android 4.0.3)
search in youtube
Why nobody don't help me ???
lovelysunset said:
Why nobody don't help me ???
Click to expand...
Click to collapse
Read the description of the video.
Sent from my Galaxy Nexus using xda premium
Attaching any USB peripheral requires the device to have USB On-The-Go (OTG) support. A lot of the newer (and high-end) devices have this, but yours does not. So it's not possible. It's not just a simple software mod. USB OTG requires the device to have a USB port that's capable of delivering power output to power low power USB peripherals like keyboards, mice, flash drives. For that same reason, in the video it is mentioned that only low power webcams work. It's at the hardware level, so no it won't be possible with your phone at all.
Sent from my Desire HD using xda premium
sashank said:
Attaching any USB peripheral requires the device to have USB On-The-Go (OTG) support. A lot of the newer (and high-end) devices have this, but yours does not. So it's not possible. It's not just a simple software mod. USB OTG requires the device to have a USB port that's capable of delivering power output to power low power USB peripherals like keyboards, mice, flash drives. For that same reason, in the video it is mentioned that only low power webcams work. It's at the hardware level, so no it won't be possible with your phone at all.
Click to expand...
Click to collapse
Thanks for your answer but I can use usb devices like Flash memory , usb mouse & keyboard , game pad and my 500 GB hard drive and also I can use usb power for my usb speaker .
is this not enough to being a device to support USB ?
can you help me in this way.
Thanks man!
lovelysunset said:
Thanks for your answer but I can use usb devices like Flash memory , usb mouse & keyboard , game pad and my 500 GB hard drive and also I can use usb power for my usb speaker .
is this not enough to being a device to support USB ?
can you help me in this way.
Click to expand...
Click to collapse
Yes you're right, your device does indeed have full OTG support. Sony never mentioned it in the official specifications, but I did a search in your device's forum and found info about it. In that case, I guess the procedure to getting the webcam to work is more hardware specific, so can't say whether it can or cannot work with your device. Your best bet is to ask a dev for your device about it, and see if they're interested to look into it. Also, the guy in the video said only low power webcams work. This is because the USB port can't deliver that much power output.
Having USB Host mode and even a powered USB hub is not enough to use a USB webcam.
You need kernel support and a custom app that accesses video4linux interface (/dev/videoX) OR a patched android framework that routes video4linux interface to android's standard camera API.
In other words, you must be able to modify and compile your own kernel and custom ROM for your particular device.
sashank said:
Yes you're right, your device does indeed have full OTG support. Sony never mentioned it in the official specifications, but I did a search in your device's forum and found info about it. In that case, I guess the procedure to getting the webcam to work is more hardware specific, so can't say whether it can or cannot work with your device. Your best bet is to ask a dev for your device about it, and see if they're interested to look into it. Also, the guy in the video said only low power webcams work. This is because the USB port can't deliver that much power output.
Click to expand...
Click to collapse
thanks a lot for your answer
brugobo said:
Having USB Host mode and even a powered USB hub is not enough to use a USB webcam.
You need kernel support and a custom app that accesses video4linux interface (/dev/videoX) OR a patched android framework that routes video4linux interface to android's standard camera API.
In other words, you must be able to modify and compile your own kernel and custom ROM for your particular device.
Click to expand...
Click to collapse
thanks
but can you help me about edit my kernel (boot.img) and which app I can use ??
lovelysunset said:
thanks
but can you help me about edit my kernel (boot.img) and which app I can use ??
Click to expand...
Click to collapse
You can't just edit the boot.img, you have to edit the source and then compile it. Either learn how to program etc. Or ask a developer for your device to have a look.
Sent from my Galaxy Nexus using xda premium
NIMBAH said:
You can't just edit the boot.img, you have to edit the source and then compile it. Either learn how to program etc. Or ask a developer for your device to have a look.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
thanks a lot man!
I have a Sony Ericsson Xperia Neo V running Lupus kernel and FXP152 (CM10) ROM. My phone's specification says it supports USB OTG. How can I get this feature?
Also, I am unable to use USB Mass storage mode. Its disabled for some reason. Can anyone explain?
answer
feeroz123 said:
I have a Sony Ericsson Xperia Neo V running Lupus kernel and FXP152 (CM10) ROM. My phone's specification says it supports USB OTG. How can I get this feature?
Also, I am unable to use USB Mass storage mode. Its disabled for some reason. Can anyone explain?
Click to expand...
Click to collapse
hi dear
for your broblem
first of all you must buy a cable that mach your phone port
second your phone must be unlock and root
third you must use modules that is with kernel (flash with CMW) and then install ModuleLoader.apk and select the modules you installed
then you must install a app (like stickmount.apk) to mount the usb you attached
you can found apps in apknew site
may this help you
sashank said:
Yes you're right, your device does indeed have full OTG support. Sony never mentioned it in the official specifications, but I did a search in your device's forum and found info about it. In that case, I guess the procedure to getting the webcam to work is more hardware specific, so can't say whether it can or cannot work with your device. Your best bet is to ask a dev for your device about it, and see if they're interested to look into it. Also, the guy in the video said only low power webcams work. This is because the USB port can't deliver that much power output.
Click to expand...
Click to collapse
Totally agree with Sashank
lovelysunset said:
hi dear
for your broblem
first of all you must buy a cable that mach your phone port
second your phone must be unlock and root
third you must use modules that is with kernel (flash with CMW) and then install ModuleLoader.apk and select the modules you installed
then you must install a app (like stickmount.apk) to mount the usb you attached
you can found apps in apknew site
may this help you
Click to expand...
Click to collapse
Thanks.
How do i get my device identified in my PC as a Disk Drive? I have tried flashing the following UMS zip, but no help on FXP152:
forum.xda-developers.com/showpost.php?p=34956370&postcount=4174
answer
feeroz123 said:
Thanks.
How do i get my device identified in my PC as a Disk Drive? I have tried flashing the following UMS zip, but no help on FXP152:
forum.xda-developers.com/showpost.php?p=34956370&postcount=4174
Click to expand...
Click to collapse
hello dear
I sow that page but I've no idea why you cant see the drive in your computer
first of all you must ENABLE your USB debuging from your device
and make sure you have installed your phones driver in your computer
maybe your phone is in MTA mode so you can see your drive under your phones name in camputer
and make sure your cable is working fine.
may this helpfull
lovelysunset said:
hello dear
I sow that page but I've no idea why you cant see the drive in your computer
first of all you must ENABLE your USB debuging from your device
and make sure you have installed your phones driver in your computer
maybe your phone is in MTA mode so you can see your drive under your phones name in camputer
and make sure your cable is working fine.
may this helpfull
Click to expand...
Click to collapse
Yes, I had enable mass_storage in buil.prop file before flashing that zip. Actually it used to work in FXP 148. But now am on FXp 152 ROm, and now that patch is not working.
I have USB device drivers for my phone from some other path. But thats not getting identified by driver update.
Currently, my phone gets identified in MTP mode in Device Manger, but no drivers installed (shows as yellow question mark).

[Q] how to enable usb host mode if deviceis not rooted or if rooted

[/Bhi i have a very common but strange problem i am mentioning below plz any good solution will be appritiated
1) i have chinese phablet mtk8389 hd89 dual sim, 1gb ram, gps,quadcore, wifi,bluetooth,and microusb port
problem is that if i connect it to any otg or usb cable to connect with computer it dont show any response but just start charging
then i find oht a solution that i need to fix a file insode android system/etc/permissions name of file android usb host .xml
i go to file and add the file but actually file not get added even i cannot edit any system file because i dont have permission
then i find out that for doing that i need to root the device
but how stupid is that if i dont have usb host mode active how i can onnect my device with computer for root?
it does not connect even dont show in computer that some usb device ger connected its very complicated can any one give splution
how i can enable usb host mode with out root device and if i have to root the device how i can root with out usb mode not working because with out usb host me the device will not be connected .
any suggestion will be appericiated
i think my device is not rooted but i have acces to android all system files but i am unable to edit any file like it have write
protected .
click on usb debugging!
or install moborobo pc suite for chiness android
problemmmmmmmmmmq
anabhi said:
click on usb debugging!
or install moborobo pc suite for chiness android
Click to expand...
Click to collapse
hello please understand my problem i click onusb debug is very simple answer
i know what i need to click and i click on every posible option but the problem is that
microusb port is not connecting with any thing if i connect with usb stick or with card reader by otg cable
or even if i connect with computer computer dont give any sound i know u will say install mobo robo suit
but my problem is that even if software is not install computer should tell that a usb device get inserted but could not be recognized
but no nothing is showing also i am not able to edit my android filesystem files
i listen if device is rooted it should not show the system files but i can see all files so its quite confusing plz give me a good solution
that how i can active the capacity to use micro usb port because right now its just charging nothing else
use z4root,frameroot android for root
gsm forum will give u better soultion ,search on google
try other usb cable !
anabhi said:
use z4root,frameroot android for root
gsm forum will give u better soultion ,search on google
try other usb cable !
Click to expand...
Click to collapse
i just wantto know thatif usb is showing no connection with otg or computer then how i can root with any software i try
some root softwares but it says no device connected
second i change many cables and with other devices same cables are working but not wi this one
third i just want that ,y microusb port start functioning for that i need that i cam edit android file system files
is there any way that i can edit the files like i get permission to edit system filez?
or is there any idea how i can enable super user because it is not enable any suggetion will be apperiaciated

[Q] Usb Host Mode in Samsung Tab 3 SM-T110

Hi there!
I am used to install USB host mode in some 2nd line tablets with no major problem.
However I got this Tab3 from Samsung and do not find the required files to change. (I have it rooted)
I wonder if someone here knows:
- Is this tablet capable to USB host? (i need to use an external usb-serial cable)
- Do you know how to configure that?
What I do in a rooted device is:
Add the <feature name="android.hardware.usb.host" /> to the Tablet_Core_Hardware.xml in /system/etc/permissions
Upload android.hardware.usb.host.xml to /system/etc/permissions when it is missing
and reboot
However I do not find this Table_core_hardware.xml
Thank you!

[Q] motorola's mfastboot compiled for ARM?

Hi all, I have a rooted S5 so I can use ADB&Fastboot via OTG for debugging/flashing another phone, and I use this as I have no PC/laptop.
Recently, I bought an Moto E which needs to be flashed in order to work correctly. The trouble is that I need an ARM compiled version of the mfastboot (the one used with most Motorola phones, which allows bigger file size) but I can't find it on the Internet, so looks like I need to compile it.
Did anyone compile that before? If not, can I compile it using my Android phone?
After some research, I'd find out that the mfastboot binary is closed-source and Motorola proprietary, so an ARM port for it doesn't exist.
Luckily, seems like the ARM/Linux fastboot binary works nicely with Motorola phones, so mfastboot is only needed on Windows.
You can get the ARM-compiled adb/fastboot binaries by looking for "adb on ARM ChromeOS".
Sent from my Galaxy S5 using XDA Labs
Hi! So, im in the same situation here:
MLX said:
use ADB&Fastboot via OTG for debugging/flashing another phone
Click to expand...
Click to collapse
I downloded arm adb, so should i place the files in any $PATH folder?
And how my phone knows which is the USB host and which the client? (Is there any way of switch the roles)
Many thanks!!
Sorry for my english...
Nawelsa said:
Hi! So, im in the same situation here:
I downloded arm adb, so should i place the files in any $PATH folder?
And how my phone knows which is the USB host and which the client? (Is there any way of switch the roles)
Many thanks!!
Sorry for my english...
Click to expand...
Click to collapse
1) You can put adb binary in /system/bin, /system/xbin or any other place available in the $PATH environment variable (I just put it at /system/bin), don't forget to set it as executable (chmod 0755 /system/bin/adb)!
2) The phone knows how to switch between host and client mode because of a pin in the MicroUSB port, commonly named ID or pin 4. Just look for "microusb pinout" and see the pin between data+ and gnd, it's the 4th pin. If that pin is connected to the GND one (yes, ID and GND connected) the phone puts in host mode, else it puts in client mode.

Categories

Resources