简体   繁体   English

三星Galaxy S3的Linux开发/部署

[英]Linux Development/Deployment for Samsung Galaxy S3

I'm using a Linux system (Xubuntu) to develop an Android app. 我正在使用Linux系统(Xubuntu)来开发Android应用程序。 I am using Eclipse to develop this app. 我正在使用Eclipse来开发这个应用程序。 I would like to be able to test on my Samsung Galaxy S3, but Eclipse cannot seem to find my device. 我希望能够在我的三星Galaxy S3上进行测试,但Eclipse似乎无法找到我的设备。 There is nothing listed under the "Choose a running Android device" section. “选择正在运行的Android设备”部分下没有列出任何内容。

I searched Samsung's website for USB drivers to the Galaxy S3, but I found none for Linux - only Windows and Mac. 我在三星的网站上搜索了Galaxy S3的USB驱动程序,但是我找不到Linux - 只有Windows和Mac。 Where's the love for us Linux users? Linux用户对我们的爱好在哪里? It seems absurd that there would be no USB driver for a Linux system to communicate with a Linux-based device. 似乎很荒谬的是Linux系统没有USB驱动程序可以与基于Linux的设备通信。 Is there a driver that I can use? 我有可以使用的驱动程序吗?

Did you try 你试过了吗

adb kill-server adb kill-server

adb start-server adb start-server

It is required to do the above in Linux. 需要在Linux中执行上述操作。 And also you should be logged in as root user, 而且你应该以root用户身份登录,

https://stackoverflow.com/a/3129903/603744 https://stackoverflow.com/a/3129903/603744

Or if by any chance you haven't seen this question , 或者,如果你有任何机会你没有看到这个问题,

Samsung Galaxy 7" (GT-P6210) not detecting for USB debugging? 三星Galaxy 7“(GT-P6210)没有检测到USB调试?

You do not need usb driver for linux, Follow instruction from here . 您不需要Linux的USB驱动程序,请按照此处的说明操作。 You need to add a file to rules.d 您需要将文件添加到rules.d

USB Drivers aren't required for Linux, which is why you can't find them. Linux不需要USB驱动程序,这就是您无法找到它们的原因。

To be able to deploy your application to your S3, you need to enable USB Debugging mode. 为了能够将应用程序部署到S3,您需要启用USB调试模式。

Home Screen -> Apps -> Settings -> Choose Developer options -> USB debugging 主屏幕 - >应用程序 - >设置 - >选择开发人员选项 - > USB调试

Home Screen -> Apps -> Settings -> Security -> Disable debug mode (turn this off) 主屏幕 - >应用程序 - >设置 - >安全 - >禁用调试模式(关闭此功能)

Now connect your phone, and then run this command: 现在连接手机,然后运行此命令:

adb devices

It should list your device. 它应列出您的设备。 Also, your Android notification area should show that debugging mode is enabled. 此外,您的Android通知区域应显示已启用调试模式。

You'll now be able to deploy applications to it. 您现在可以将应用程序部署到它。

I also work on Ubuntu. 我也在Ubuntu上工作。 You will have to set the USB Vendor IDs. 您必须设置USB供应商ID。 Take a look on this link 看看这个链接

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

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