GithubHelp home page GithubHelp logo

pedrovgs / androidwifiadb Goto Github PK

View Code? Open in Web Editor NEW
4.1K 128.0 480.0 3.04 MB

IntelliJ/AndroidStudio plugin which provides a button to connect your Android device over WiFi to install, run and debug your applications without a USB connected.

License: Apache License 2.0

Java 100.00%

androidwifiadb's Introduction

Android WiFi ADB - IntelliJ/Android Studio Plugin Android Arsenal

Android WiFi ADB

IntelliJ and Android Studio plugin created to quickly connect your Android device over WiFi to install, run and debug your applications without a USB connected. Press one button and forget about your USB cable.

Android WiFI ADB plugin adds a button Android WiFi ADB Button to your IntelliJ/Android Studio Toolbar to connect your device to your computer over WiFi.

To use this plugin the project opened in your IntelliJ/Android Studio has to be an Android project configured with the Android SDK.

Archived repository: Maintaining this project up to date for all the different Android devices without having access to the physical devices is not possible at all right now. Most of the bugs reported ar related to the adb installation and not to the plugin code so this repository will keep archived for now.

Screenshots

Connect all devices button:

Android WiFi ADB Usage

Devices dashboard:

Android Devices Window

Usage

Connect your device to your computer using a USB cable. Then press the button, and a notification will pop up saying that the phone has been connected. Disconnect your USB once the plugin shows your device is connected. Open the Android WiFi ADB tab at the right side to see all the devices and manage your connections. Your device will be connected over WiFi now. You can now deploy, run and debug your device using your WiFi connection. Remember that your device and your computer have to be in the same WiFi connection. Also, you have to first connect your device with a USB every time you open Android Studio, for setting up the connection over WiFi.

If you want to handle your devices connection individually, open the Android WiFi ADB dashboard you will find at the right of your IDE.

Installation

Download and install Android WiFi ADB directly from Intellij / Android Studio: Preferences/Settings->Plugins->Browse Repositories

Alternatively, you can download the plugin from the JetBrains plugin site and install it manually in: Preferences/Settings->Plugins->Install plugin from disk.

Build the project

If you need some information about how to build this project review IntelliJ Idea's Gradle Plugin documentation.

Do you want to contribute?

Please, do it! If you have any improvement or you've found any bug, send a pull request with the code or open an issue :)

Libraries used on the sample project

Developed By

Follow me on Twitter Add me to Linkedin

License

Copyright 2015 Pedro Vicente Gómez Sánchez

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

androidwifiadb's People

Contributors

jcminarro avatar pedrovgs avatar sebastianmarschall avatar sreeram-venkitesh avatar vgaidarji avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidwifiadb's Issues

ADB parsing error when ADB is not initialized.

Here there is a log trace which reflects this issue:

6:45:19 Android WiFi ADB: There are no devices connected with a USB cable.
오후 6:45:21 Android WiFi ADB: Unable to connect device 'mon not running. starting it now on port 5037 *'. Review your WiFi connection.
오후 6:45:21 Android WiFi ADB: Unable to connect device 'mon started successfully *'. Review your WiFi connection.
오후 6:45:21 Android WiFi ADB: There are no devices connected with a USB cable.
USB cable.
오후 6:45:45 StringIndexOutOfBoundsException: String index out of range: -5

Exception is thrown in intellij 15

Hello,

as soon as I click the wifi button I get this exception thrown:

String index out of range: -4
java.lang.StringIndexOutOfBoundsException: String index out of range: -4
    at java.lang.String.substring(String.java:1955)
    at com.github.pedrovgs.androidwifiadb.adb.ADBParser.parseGetDeviceIp(ADBParser.java:71)
    at com.github.pedrovgs.androidwifiadb.adb.ADB.getDeviceIp(ADB.java:68)
    at com.github.pedrovgs.androidwifiadb.adb.ADB.connectDeviceByIp(ADB.java:56)
    at com.github.pedrovgs.androidwifiadb.adb.ADB.connectDevices(ADB.java:49)
    at com.github.pedrovgs.androidwifiadb.AndroidWiFiADB.connectDevices(AndroidWiFiADB.java:45)
    at com.github.pedrovgs.androidwifiadb.action.AndroidWiFiADBAction$1.run(AndroidWiFiADBAction.java:52)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:365)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)

Seeing this in Intellij 15 EAP, v 143.379.11

Can't connect after reconnecting to Wifi

This is not a bug, but a feature request. When I turned off Wifi then connected to it again, the adb wouldn't recognize since the IP might change.

Is there any way we can adjust the IP and continue using without reconnecting via USB?

can't connect android studio 2.3

can't connect android studio 2.3
always give the error please connect with the same network.
I already connected with the same network

Cannot connect device when a Genymotion instance is running

Hi, I've found out that I cannot connect my phone when there is a Genymotion instance running. If I close the emulator, the device is instantly recognized.

My computer is 192.168.1.4, my phone 192.168.1.2, the Genymotion instance is 192.168.56.101.
Maybe the plugin confuses network masks?

String index out of range: -5

String index out of range: -5
java.lang.StringIndexOutOfBoundsException: String index out of range: -5
at java.lang.String.substring(String.java:1937)
at com.github.pedrovgs.androidwifiadb.adb.ADBParser.parseGetDeviceIp(ADBParser.java:71)
at com.github.pedrovgs.androidwifiadb.adb.ADB.getDeviceIp(ADB.java:68)
at com.github.pedrovgs.androidwifiadb.adb.ADB.connectDeviceByIp(ADB.java:56)
at com.github.pedrovgs.androidwifiadb.adb.ADB.connectDevices(ADB.java:49)
at com.github.pedrovgs.androidwifiadb.AndroidWiFiADB.connectDevices(AndroidWiFiADB.java:45)
at com.github.pedrovgs.androidwifiadb.action.AndroidWiFiADBAction$1.run(AndroidWiFiADBAction.java:52)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)

IOException is thrown when you click on the toolbar button to establish connection.

Broken pipe java.io.IOException: Broken pipe at sun.nio.ch.FileDispatcherImpl.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) at sun.nio.ch.IOUtil.write(IOUtil.java:65) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:470) at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213) at com.android.ddmlib.Client.sendAndConsume(Client.java:684) at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:349) at com.android.ddmlib.Client.requestAllocationStatus(Client.java:523) at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:569) at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:544) at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:506) at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:402) at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:64) at com.android.ddmlib.DeviceMonitor$1.run(DeviceMonitor.java:325)

Moto G3 connects fine but removing cable disconnects the device

When I connect my Moto G3 to the Android Studio and click on the plugin icon I see that phone gets connected properly but at the same time when I remove the usb cable it is gone. No device is connected as soon as I remove the cable.

I am able to connect fine by adb tcpip 5555, remove cable, and adb connect ip-address.

Cann't connect to my device

When I'm trying to connect to my device, I get this "10060" error. I wanna know how to fix it anxiously.

`D:\Space\ASSpace\android>adb tcpip 5555
restarting in TCP mode port: 5555

D:\Space\ASSpace\android>adb connect 10.2.5.29
unable to connect to 10.2.5.29:5555: cannot connect to 10.2.5.29:5555: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
(10060)
`

it can not work

I has download all the plugin you released,and it looks like work well,and can connect successfully. and i can find my device in the select dialog.I used the intellij, please help me! thanks

Slow speed when installing large apk.

My project is pretty large so it takes me too much time to build or install, besides, sometimes it can't be installed to my phone with the ERROR INSTALL_FAILED_INVALID_APK;
Is there any ways of improving the speed of installing large apk to my phone?
p.s Computer Info: 8GB RAM, 5400HDD, x86 64 Windows 7,
phone: nexus 5 android 5.1.1; HUAWEI MATE 7;

how can I promote the speed!

My device can connect to the intellij, but after click the run button when the net is well, and I have to wait a long time util the device run the app.Please help me and tell me how can I promote the speed!

String index out of range: -5

From a Windows environment I get this Exception:

String index out of range: -5
java.lang.StringIndexOutOfBoundsException: String index out of range: -5
    at java.lang.String.substring(String.java:1954)
    at com.github.pedrovgs.androidwifiadb.adb.ADBParser.parseGetDeviceIp(ADBParser.java:69)
    at com.github.pedrovgs.androidwifiadb.adb.ADB.getDeviceIp(ADB.java:68)
    at com.github.pedrovgs.androidwifiadb.adb.ADB.connectDeviceByIp(ADB.java:56)
    at com.github.pedrovgs.androidwifiadb.adb.ADB.connectDevices(ADB.java:49)
    at com.github.pedrovgs.androidwifiadb.AndroidWiFiADB.connectDevices(AndroidWiFiADB.java:43)
    at com.github.pedrovgs.androidwifiadb.action.AndroidWiFiADBAction$1.run(AndroidWiFiADBAction.java:51)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)

EDIT:
FYI it is a Windows 10

No icon

I installed this plugin today but the icon wasn't added to the toolbar

edit: added screenshot

screen shot 2015-10-19 at 12 24 22

Do not depend on the ANDROID_HOME environment variable.

I had tried to declare system variable ANDROID_HOME with values 'D:\Users\Administrator\AppData\Local\Android', 'D:\Users\Administrator\AppData\Local\Android\sdk', 'D:\Users\Administrator\AppData\Local\Android\sdk\platform-tools', 'D:\Users\Administrator\AppData\Local\Android\sdk\platform-tools\adb.exe', but none of them work. The plugin kept saying that 'adb commond not found. Review your Android SDK installation'. I also had declared user variable 'ANDROID_HOME', it's not work too. My PC is WIN7.

adb command not found..

2015-10-26 10 22 03

but i have already setting ANDROID_HOME environmental variable,adb command can found in terminal.

Can't disconnect device

I can connect my device but how can i disconnect my device ? I try click disconnect button on Devices dashboard and it is not used , the device is connecting . Then i click 'connect button' and Devices dashboard become 'No device connected' when my device just connected by WiFi

Exception thrown when running USB to WIFI

I have installed the plugin from the repository inside the Android Studio.
Version installed is 1.0.1
I am running AS 1.4
ANDROID_HOME is created and added to my path
I have restarted AS and adb several times and I get the same exception when trying to do USB to WIFI
screen shot 2015-10-23 at 10 26 46 am

can't useable

In intellij Event Log window shows error like that:
StringIndexOutOfBoundsException: String index out of range: -4

Manual adding feature

Hi, I am not able to connect devices via usb to my computer. So, I need to add devices with an add button manually. After I type the device IP and add to the window, with connect button it should be connect over wifi without usb connection. Is this possible?

Thank you.

There are no devices connected. Review your USB connection and try again.

I'm getting this error over and over.

08:35:15 Android WiFi ADB: There are no devices connected. Review your USB connection and try again. 
08:35:27 Adb connection Error:Se ha forzado la interrupción de una conexión existente por el host remoto
08:35:28 Connection attempts: 1

Using Windows 10, AS 1.4 and One plus One device.

About Intellij Plugin

Hi,I try to write a plugin to use adb push ,But I can not get the adb command.
I read your code , find you use the AndroidSdkUtils.getAndroidSdkPathsFromExistingPlatforms(),but I can not import AndroidSdkUtils
Could you tell me why? Please.
(sorry for my English)

It is not working for MOTO E2 but for other device it is working fine

Hello,

I have some different devices with me to test. Many of them are getting connected with this plugin. But somehow, it is not working for Motorola E2. I have try a lot but every time when i connect device with USB cable and then click on Connect button to get it connected by the WIFI, and then When i remove the cable, it get disconnected from the ADB.

Can you please check for this issue and let me know if anything to update from my side.

Sincerely,
Shreyash

It's can't connect to Nexus 6p

It's can't connect to Nexus 6p (Android 6.0)
AndroidWifiADB 1.2
AndroidStudio 1.4
It's nothing to show when I click the AndroidWifiADB button.

Exception thrown in Intellij 13.1.3

NoSuchMethodError: org.jetbrains.android.sdk.AndroidSdkUtils.getAdb(Lcom/intellij/openapi/project/Project;)Ljava/io/File;: org.jetbrains.android.sdk.AndroidSdkUtils.getAdb(Lcom/intellij/openapi/project/Project;)Ljava/io/File;

Unable to connect with desktop PC

The plugin works fine when the usb cable still connected, and I can see my divice in the right panel.
But the moment I disconnect ths usb cable, the adb consule stopped, and the plugin doesn't work anymore.

I' sure my divice and the desktop pc (connect the rounter with net cable, no wifi reciever) in the same net.

I found this appears on Wifi ADB too..
Is that means desktop pc cann't benifit form these plugins ..?

Android Studio-v2.3 with plugin-v2.4

Unable to connect to device

Unable to connect to device 'erver version (32) doesn't match this client (36); killing...'. Make sure that your computer and your device are connected to the same WiFi network.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.