简体   繁体   English

使用USB电缆连接两部Android手机

[英]Connect two Android phones with USB cable

I want to connect two phones with USB cable and use ADB command like adb devices , adb shell from one phone, just like between PC and an Android phone. 我想用USB电缆连接两部手机,并在一部手机中使用ADB命令(例如adb devicesadb shell ,就像在PC和Android手机之间一样。 I tried with OTG supported cable which has two micro USB plugin, but it didn't work. 我尝试了OTG支持的电缆,该电缆有两个micro USB插件,但没有用。 Trying with another common cable (not OTG) with two micro USB plugin didn't work too. 尝试使用带有两个微型USB插件的另一根普通电缆(不是OTG)也无法正常工作。 adb devices always fails with message "no device is attached at all" in both Phone A and Phone B. 电话A和电话B中的adb devices始终失败,并显示消息“根本没有连接任何设备”。

Anyone has experience about this? 有人对此有经验吗? What kind of cable is needed? 需要哪种电缆?

It is possible between some phones. 某些手机​​之间可能会出现这种情况。

  1. But at least one of them must have OTG support. 但是至少其中之一必须具有OTG支持。
  2. and you need an OTG connector.(also a USB cable) 并且您需要一个OTG连接器。(还有USB电缆)

Check the following link for detailed explanation: 检查以下链接以获取详细说明:

http://forum.xda-developers.com/showthread.php?t=2640456 http://forum.xda-developers.com/showthread.php?t=2640456


I'll be quoting the detailed explanation just in case the link gets broken: 为了避免链接断开,我将引用详细的解释:

Yes if u need to transfer data between two phones like GBs of data nuu have atleast one phone that supports OTG and u been looking for pc to transfer data or been trying to use wifi share apps trust me this is a solution to npc-less transfers and EVEN U CAN BORTOW YOUR FRIENDS BATTERY CHARGE IF YOU ARE RUNNING LOW ON BATTERY!!!!!! 是的,如果您需要在两部手机之间传输数据,例如GB的数据容量,至少有一部手机支持OTG,并且您一直在寻找PC来传输数据或尝试使用wifi共享应用程序,请相信我,这是无npc传输的解决方案如果您的电池电量不足,甚至可以让您的朋友为电池充电!!!!

With just an OTG na USB cable you CAN transfer data and battery charge between two phones!! 仅需一根OTG na USB电缆,您就可以在两部手机之间传输数据和电池电量!

youl need: 您需要:

A) 2 phones (atleast one with OTG support) A)2部电话(至少一部具有OTG支持)

B)OTG connector B)OTG连接器

C)Usb cable. C)Usb电缆。

D)file explorer like es file explorer D)文件浏览器,如es文件浏览器

Here on il refer the phone that contains data and charge as "host" phone n to phone to be transferred as "second" phone. 在此,将包含数据和收费的电话称为“主机”电话,将要传输的电话称为“第二”电话。

If your second phone is a xperia device then go to settings ->xperia connectivity ->usb connectivity 如果您的第二部手机是xperia设备,请转到设置-> xperia连接-> usb连接

Change the usb connectivity mode from "MTP" to "MSC".. 将USB连接模式从“ MTP”更改为“ MSC”。

Steps: 脚步:

1)Just connect OTG cable to host phone... 1)只需将OTG电缆连接到主机电话...

2)The second phone connect usb cable.. N the pc usb part.. Which u connect to pc...connect it to the OTG 2)第二部电话连接usb电缆。N pc usb部分。u您连接到pc的...将其连接到OTG

REMEMBER 3)In the second phone select ur mass storage option!! 记住 3)在第二部手机中,选择您的大容量存储选项!!

4) use file explorer (I used Es file explorer coz its the best I used) 4)使用文件资源管理器(我使用Es文件资源管理器的原因是我使用的最好的)

BINGO.. On host phone u can see the memory card of second phone as "usbdisk"...plus.. The second phone will charge battery from first phone... BINGO ..在主机电话上,您可以看到第二部手机的存储卡为“ usbdisk” ...加号。.第二部手机将为第一部手机的电池充电...

Worked on 从事

my xperia Z1 as host and micromax a65 as second phone.. 我的xperia Z1作为主机,micromax a65作为第二个电话。

my xperia Z1 as host and micromax a116 as second phone.. 我的xperia Z1作为主机,micromax a116作为第二个电话。

my xperia Z1 as host and xperia M as second phone.. 我的xperia Z1作为主机,xperia M作为第二个电话。

my xperia M as host and xperia z1 as second phone.. 我的xperia M作为主机,xperia z1作为第二个电话。

Well all permutations of these phones.. 这些手机的所有排列都很好。

I never tried this. 我从来没有尝试过。 But after reading the post, i think you have to save settings in your second phone as mass storage. 但是阅读完这篇文章后,我认为您必须将第二个手机中的设置保存为大容量存储。 Then you can access this phone's memory in the host device. 然后,您可以在主机设备中访问此手机的内存。 In the host device have you installed any file explorer like file manager or es explorer. 在主机设备中,您安装了任何文件浏览器,例如文件管理器或es Explorer。 Then i think you should be able to see this phone's memory. 然后,我认为您应该能够看到这部手机的内存。 Thanks shiva 谢谢湿婆

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM