How do I install file 'android.hardware.usb.accessory.xml'? USB - Android Q&A, Help & Troubleshooting

This week I was confronted with the possibility to replace a photo from the gallery to an external Sd card, via OTG. Now it turns to be impossible. Checked somethings out via googling: no USB seen by android, found a video of Tech Jak: says: if file (above: "https://android.googlesource.com/platform/frameworks/native/+/master/data/etc/android.hardware.usb.accessory.xml")script is available on the internet) is missing you need to reïstall it. He does not tell how.
So, I am a dummy on this and have to ask the community here.

Related

[Q] How to recover Lost Files from internal memory?

What I lost:
The first TKD-sparringsmatches (ever) of the 7yo son of a friend of mine were succesfully filmed with my SGT 10.1v. The boy performed phenomenally: Despite being a debutant, he won 3 matches in a row and won the golden cup, abroad!
How It happened:
At home, I eagerly connected the SGT with the USB-cable to a Windows XP PC, selected the recorded media files in the DCIM/camera folder and choosed "MOVE". The transfer started, with placing the files in the "My Documents" folder on the PC. Because that wasn't my preferred destination, I canceled the transfer...
Then the disaster occured: The files disappeared !!! They no longer existed on the Tab.
Futile rescue:
I immediately started an obsessive search in Google, determined to find a solution to recover these lost files. In the meanwhile, I made sure to put nothing new in the tab's internal 16GB memory.
Now:
That happened a week ago, and I'm devastated. The only way, as far as I know now, to make a beginning in recovering the files would be to ROOT the device and install special software e.g. Hexamob, but that hasn't even been developed for Android Honeycomb.
Help:
Therefore, I can only hope to get an answer here, to help me in my moment of total desolation...
isent it possible to use a recovery tool on your pc and connect the tab with the usb cable and select the drive that way?
dalhoff said:
isent it possible to use a recovery tool on your pc and connect the tab with the usb cable and select the drive that way?
Click to expand...
Click to collapse
That would work if the internal memory would be recognized as an SD-card. But none of the appropriate 'undelete' programs that run on windows find the external flash drive
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums and Read THIS
Moving to General
I've successfully used software to recover missing data from a damaged sdcard. I don't remember the name of it as I'm at work and the software is on my home computer, but once I get home tonight I'll be sure to look and let you know.
EDIT: Found it! It's called PhotoRec: http://www.cgsecurity.org/wiki/PhotoRec I was able to use it and it recognized my sdcard when my computer wouldn't. Hope it works for you, good luck.
varelawarfare said:
I've successfully used software to recover missing data from a damaged sdcard. I don't remember the name of it as I'm at work and the software is on my home computer, but once I get home tonight I'll be sure to look and let you know.
EDIT: Found it! It's called PhotoRec: (url)censored due to beginners status(/url) I was able to use it and it recognized my sdcard when my computer wouldn't. Hope it works for you, good luck.
Click to expand...
Click to collapse
Thanks varelawarfare but PhotoRec is just another example of software that rus under Windows and therefore doesn't recognize the internal memory of het SGT, it doesn't find the drive.
So it looks like the only way to recover the mediafiles would be an application that runs on the SGT 10.1v, inside or outside Android...
Were you ever able to find a solution?
I just did the same thing. Accidentally dragged my DCIM folder to another folder when in Windows, and it seemed to drop all of the photos/videos. I verified this by running an adb shell after.
The only 'recovery' apps don't seem to work on Honeycomb still, and none of the Windows or Linux file recovery programs will see the filesystem.
Just looking for ideas to get them back if possible at all.
Stock Honeycomb 3.1 on rooted 10.1
I was having similar issue last time, you may follow the step by step guide that helped me last time
recover lost files from internal memory
hope this helps.

[Q] Transfer files??

Morning all
Just got my tab 10.1 yesterday, rooted and installed overcomes ROM this morning. For the life of me I cannot copy over any MKV files as i want to put my files on the damned thing. I've had a quick search through and it seems most people can do it somehow its just no one has given a fool proof way of doing it as far as i can see (i know i will be wrong there)
I have tried to use recovery usb mount but that just doesn't work and every time i use the mtp is just crashes windows explorer.
Please can someone tell me there is a way i can get my files onto my tablet?
any help is greatly received
Smith2001 said:
Morning all
Just got my tab 10.1 yesterday, rooted and installed overcomes ROM this morning. For the life of me I cannot copy over any MKV files as i want to put my files on the damned thing. I've had a quick search through and it seems most people can do it somehow its just no one has given a fool proof way of doing it as far as i can see (i know i will be wrong there)
I have tried to use recovery usb mount but that just doesn't work and every time i use the mtp is just crashes windows explorer.
Please can someone tell me there is a way i can get my files onto my tablet?
any help is greatly received
Click to expand...
Click to collapse
MTP crashes Explorer.exe? Thats really weird. Sounds like you have bad drivers. Uninstall and reinstall your Samsung drivers and try again.
Another option is to get the USB connector piece that allows you to connect and view the contents of a USB drive with a file manager app straight from the tablet.
One more option is Dropbox. Its a personal file sharing software that lets you see your files from any device with internet. Just drop the files from your computer into your dropbox folder and they will automatically upload online. You can then go to www.dropbox.com and sign in to see these files. Android devices have a Dropbox app, so you don't even have to open the browser, all your files are right there in a folder on your homescreen for you.
If you don't have a dropbox account, Click Here to Sign Up You get 2gigs of free storage space.
rename the extension .mkv to something else like .abc and it should work.
Smith2001 said:
Morning all
Just got my tab 10.1 yesterday, rooted and installed overcomes ROM this morning. For the life of me I cannot copy over any MKV files as i want to put my files on the damned thing. I've had a quick search through and it seems most people can do it somehow its just no one has given a fool proof way of doing it as far as i can see (i know i will be wrong there)
I have tried to use recovery usb mount but that just doesn't work and every time i use the mtp is just crashes windows explorer.
Please can someone tell me there is a way i can get my files onto my tablet?
any help is greatly received
Click to expand...
Click to collapse
I should have said I renamed. The mkv in question was only 850mb and it crashes. However an mp4 of 1.4gb works fine. All be it it asks me to convert it first.
I'll try and remove the drivers and reinstall and see if that works when I finish work.

Tried everything... Still some files missing via USB

Hello everyone!
Here is yet another post about missing files and folders when trying to access the internal SDcard via a PC. Some of the files that are there, pictures for instance (which I can see from my gallery) don't appear, so I cannot copy them to my PC.
I have rebooted, run SD Rescan app from the market... Nothing works...
It's been a while since I first had that problem but I have not been able to find a solution, none of the threads that I've found with similar problems yield me to a solution.
Any ideas?
Thank you!

[Q] Issue with [ROM][JB][UNOFFICIAL] CM10 BETA1 based port for Legend

Since i cant post in the development section,so i decided to post my issue in here.
I have this problem which i cant access my SD card content through the music and gallery stock apps.I tried using third party apps and it still gave the same result.The apps show no content at all.Anyone have went through the same problem?Any idea how to solve this issue? :fingers-crossed:
maybe you should try it with another microSD-Card, I also had some problems with the installation, so I had to install it many times until it really worked fine...
Issue with [ROM][JB][UNOFFICIAL] CM10 BETA1, to enable USB Media device,phone storage
Neither I (noob) can post new thread with new issue discovered... So I post this here.
This is my first post on XDA forum. I have been using the ROM now for 1 week. Gracias Zeubea!!! Neither any problems with battery drain, it lasts for 2-3 days.
Here is my issue:
THe idea was to review and put some new ringtones in /system/media/audio/ folder on phone's storage.
I shut down the phone, took out the SD card and boot it.
Then I connected it via USB to WinXP PC. Windows explorer does see Removable Disk letter, but it doesn't show its contents (folders, files...).
While there is SD card on, notification in status bar appears and you can choose to turn-on USB memory storage. When there is no card in, there is no notification and you cannot choose to view folders in phone's memory, while I could do that when I had official Froyo from HTC.
I googled a bit and found some kind solution on another type of phone (i have link, but i cannot post it, since I am noob!)
via Settings/Wireless&Networks/Storage and then choose Menu button and under additional options you can find "Connect as Media Device (MTP), which is turned off by default , and when you try to turn it on, menu hangs and it forces to close. There is 3rd option in that menu which doesn't appear on that page is, Turn on USB Mas Storage which is on.
I did further some search on XDA forum and even tried code in Terminal Emulator under su rights
persist.sys.usb.config=mass_storage,adb
and nothing happened
Is this some bug that one can expect maybe will be adressed in the future?
povejmi said:
Neither I (noob) can post new thread with new issue discovered... So I post this here.
This is my first post on XDA forum. I have been using the ROM now for 1 week. Gracias Zeubea!!! Neither any problems with battery drain, it lasts for 2-3 days.
Here is my issue:
THe idea was to review and put some new ringtones in /system/media/audio/ folder on phone's storage.
I shut down the phone, took out the SD card and boot it.
Then I connected it via USB to WinXP PC. Windows explorer does see Removable Disk letter, but it doesn't show its contents (folders, files...).
While there is SD card on, notification in status bar appears and you can choose to turn-on USB memory storage. When there is no card in, there is no notification and you cannot choose to view folders in phone's memory, while I could do that when I had official Froyo from HTC.
I googled a bit and found some kind solution on another type of phone (i have link, but i cannot post it, since I am noob!)
via Settings/Wireless&Networks/Storage and then choose Menu button and under additional options you can find "Connect as Media Device (MTP), which is turned off by default , and when you try to turn it on, menu hangs and it forces to close. There is 3rd option in that menu which doesn't appear on that page is, Turn on USB Mas Storage which is on.
I did further some search on XDA forum and even tried code in Terminal Emulator under su rights
persist.sys.usb.config=mass_storage,adb
and nothing happened
Is this some bug that one can expect maybe will be adressed in the future?
Click to expand...
Click to collapse
Your funny, if you take out sdcard then try to access sdcard via USB its not going to work :banghead: because sdcard is gone, there is nothing wrong with zeubeas rom in regards to USB storage.
Oh and btw, you can't access system folder using USB mass storage mode, you can use adb on your computer to access the phones storage bits n pieces like system, data and sdcard.
For the sake of safety for your phone I think that you need to get a better understanding of how android system works before messing with your system folders!
Sent from my Legend using xda app-developers app
ranger4740 said:
Your funny, if you take out sdcard then try to access sdcard via USB its not going to work :banghead: because sdcard is gone, there is nothing wrong with zeubeas rom in regards to USB storage.
Oh and btw, you can't access system folder using USB mass storage mode, you can use adb on your computer to access the phones storage bits n pieces like system, data and sdcard.
For the sake of safety for your phone I think that you need to get a better understanding of how android system works before messing with your system folders!
Sent from my Legend using xda app-developers app
Click to expand...
Click to collapse
dear ranger; first of all, thank you for very prompt answer. Iam glad this is very live community, where you can post any question and you get answer. With all respect, in stock ROM, both HTC and some other LG model my wife owns, when you connect via USB the phone without SD card, there is notification and dialog what sort of connection to choose (you know: charge/USB storage/...). Even CM 7.2.0 final for HTC legend has it. You can access contents of phone storage (without SD card). Haven't you tried yourself before?
Maybe you are other type of person, but my goal is not to be every day clung infront of PC passing adb commands to comunicate the phone with PC. I thought there is some simplier way to do the same. I will be glad if you can inform me where I can read more about adb commands regarding accessing and passing files across system folders.
And I don't even intend to mess with sys folders, I know for this we have zeubea type people. Simply I wanted to add few ogg files, that's it. And I know I can put same named folders /media/audio/ringtones/ on SD card and it should funcion with some minimal lag but I was curious if it is very simply to that other way. I will not even intend to mess system folders.
Have a good day. =)
I'm not sure what you want - the Legend has limited onboard flash, so you really should use your SDcard as much as you possibly can. Use Link2SD to store non-system apps on an extra partition on your card, so apps won't die when SD card's primary partition is mounted via USB.
To transfer music, connect Legend to your computer using USB, enable USB storage on phone, and copy music files to SDcard's 'music' folder. Works for me using mp3, haven't tried ogg.
---------- Post added at 11:37 AM ---------- Previous post was at 10:48 AM ----------
I'm also considered a noob, so I can't post in the rom dev thread yet, so here we go
I've been running this ROM for about a week, and I've had some issues that I haven't seen reported elsewhere:
Contacts: When searching for a contact, it appears that some filtering is applied, and oftentimes the contact I'm looking for is not found, although it's there when I scroll through contacts. Depending on language settings (english vs danish) the search also seems to be case sensitive, so e.g. entering 'fra', 'Frank' doesn't show up.
Also, contacts are not consistently transferred to my Parrot Bluetooth car kit. Could be bluetooth glitches
WLAN: Using Wifi Analyzer and similar apps, channels are not identified properly, but instead marked as all 0, 1 or ?. I suppose it hangs on a slightly unsuitable WLAN driver, because I haven't seen it in other JellyBean or CM10 ROMs (HTC HD2)
More issues
I just found a few threads mentioning the WLAN channel issue on select HTC handsets since CM6: http://forum.xda-developers.com/showthread.php?t=1022379 and http://forum.xda-developers.com/showthread.php?t=891563. Unfortunately, there's no clear solution in those threads.

Enable OTG Features

Hello!I am new user in xda and i dont know its right place or not:silly:and also sorry for my bad englishHow can i enable/add otg support to my device?My device is an unknown device that uses in just Turkish schools named VP10.I get rid of the the restrictions.They gave us the tablet with a keyboard,we can use it and i think that its possible to use otg features on this device, i bought an otg cable but i cant connect my flash disk neither my external hard disk.i can not gave the hardware info because of this
To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!
its android version is İCS and uses ARMv7.İt rooted.
PS:İf you want , i'll give you the boot.img file.
Edit:When i used Usb host diagnostics it had said everything yes but when when i tried to open my usb from a file manager it says empty

Categories

Resources