Connect Android Studio with android via AirDroid - android

My computer seems to be too slow to run the android studio emulator (it wanted me to install some hardware acceleration), so I can't test apps there. Also my USB Cord doesn't work, I am wondering if it is possible to test apps in Android Studio via airdroid(http://web.airdroid.com/). I'm not sure how to set this up, however, since I don't really know how to configure android Studio to get this to work: as android studio only seems to work via a USB connection (which is not working for me). To sum it all up: I want to test apps on my phone via airdroid from android studio, and I need to know how to configure this.
Thanks.

As i know, AirDroid doesn't support ADB. But if really don't have a USB, you can use some Apps like WiFi ADB to get ADB work over WiFi
But if you are accidently using CyanogenMod or any other Mods which have ADB over Network, it could be natively supported

Download e.g. Shell Terminal Emulator (on Google Play). Open it and run
adb tcpip 5555
Open the terminal in Android Studio and write
adb connect ip_to_android_phone:5555
OBS!
Some devices require root access, while others don't.

Related

How to access Chromebook Android via ADB in local Linux VM?

Backstory: I'm developing an app on a Chromebook using the Linux (Beta) feature whereby I have VS Code, GIT and everything else installed. Plugging my phone into the Chromebook pops up a "Connect to Linux" dialog which then makes it accessible via adb running in the Linux VM. From there I can install and run my test application as part of a build script. Parallel to this I have Android enabled on the Chromebook and set it into developer mode which lets me access adb via CROSH. From this shell I can install and run APK's directly on the Chromebook itself through its Android emulation layer.
What I would like to do (if it's even possible) is to access the Chromebook's Android layer via adb in the local Linux (Beta) VM. Thus I would be able to run my build script to run, install and launch on the Chromebook Android layer itself.
My idea: the Chromebook would need to provide an emulated USB device to the Linux VM or I could somehow setup the Chromebook Android stuff so that I could connect over a local port (TCP/IP) with adb.
Thoughts, insight, resources?
The answer is to run adb connect arc and then the Chromebook shows up in the ADB devices list!
Thanks to Morrison Chang who provided the link to https://chromeos.dev/ which led me to https://chromeos.dev/en/android-environment/deploying-apps#deploy-with-terminal .
It seems that if your Chromebook is in developer mode then the convenient UI "Develop Android apps" is not available.

Unrecognizable device on Android

I want to run my code on the phone. But Android does not recognize my device. I also did the connection assistant.
But the following error is given. please guide me.
Needed informations
Is ADB installed with Android Studio, or have you got external tool?
Is there a generic Android USB Device driver installed? It's provided with Android Studio, and should be obtained with SDK Tools.
Possible solution
If even AVD cannot be recognized, it could be fault of built-in ADB server. I would recommend installing ADB as an external program, e.g. from here (ClockworkMod page).
After installation, reboot PC and plug your phone in. If phone is visible, check for availability via adb devices command from CMD/terminal. Don't launch Android Studio yet, as it has its own instance of ADB server and you wouldn't be able to launch second one from console.
If phone is visible, use adb kill-server command to finish the console instance, and launch Android Studio. Everything should be detected, if not - you really should submit that bug...
If phone is not visible all the time after issuing adb devices, there is a chance that not all drivers are installed. Check ASUS for drivers, if they were installed automatically - install them manually.
Hope it will help!
Have a look at PdaNet+
Install both the desktop client and the corresponding android application from the google play store. Once you plug in your device it will prompt you that your device has been connected and adb should recognise it.

How is my Android phone automatically recognized by adb on Ubuntu?

I am moving from Windows over to Ubuntu 14.04 for my Android application development. By biggest worry was to figure out how to make Android devices work with adb on Ubuntu. Various articles on the Internet talk about creating /etc/udev/rules.d/51-android.rules file and adding specific information for each Android device.
However, I didn't do any of that. I just plugged in my Android phone to the USB port and typed "adb devices." There was a question on my phone about trusting the attached computer. After I said yes, adb listed that device as usable.
I tried plugging in another phone. Once again, adb just recognized the device.
I don't see any rules for USB under /etc/udev/rules.d directory and I certainly didn't create one. I am just curious on how adb automatically recognized my devices.

MK802 - Android 4.0 Mini PC - not listed with 'adb devices' command - how to install my app

I recently purchased the MK802; Android 4.0 Mini PC. However, I am unable to install the apps I developed. I have tried using the 'adb devices' command but the device does not appear on the list. I have also downloaded the Andorid 4.0 SDK (the version used in th MK802) on my computer but still no luck. I also made sure to enable 'USB Debugging' and 'Unknown Sources' in the device settings.
I realize I can load my app from an SD card (but I would have to buy one); or that I can download my app onto the device by making it available on a server or the android marketplace but these options seem like too much effort just to install an app.
Any suggestions or recommendations would be greatly appreciated.
Simply adb over USB doesn't work (for now)
The only thing that you can do is: USE WIRELESS ADB!
This widget can help you on enabling it.
Once you got everything up and running do an
adb connect xxx.xxx.xxx.xxx
using as IP the ip address of the MK802. Once connected run an
adb shell
as usual to access the remote shell. Still the system is in heavy development (at least allwinner told so)
EDIT: Using a shorter USB cable could solve the issue!
I managed to connect mine to ADB, even using the included USB cable.
Connect you computer to the dongle's OTG port (it's marked on the dongle).
Go into settings and enabled ADB debugging.
And finally (here's the trick) enable the special Connect to PC setting.
Google for the drivers. Installing the Android SDK will not ensure that your device gets detected.
Connect device
Install drivers downloaded from internet
Disconnect & reconnect
ADB !
In all likelihood, this will solve things for you.

Android Download And Install Non-Marketplace App

Android 2.1 Downloaded APK from server. Now I want to programaticllly install this on the phone/tablet without starting it up. Just install it. How do I do this on Android 2.1?
Installing an app doesnt necessarily cause the app to start running, unless the app is meant to run as a service, in which case I dont know of any way to install the app and prevent it from hooking into your system and running behind the scenes.
As far as programatic installatation, a quick google search turned this up as the successor to PackageManager.installPackage:
http://www.mailinglistarchive.com/html/android-developers#googlegroups.com/2010-01/msg03943.html
After downloading the app, download the Android SDK and adb, enable USB debugging, connect the device to your machine via a USB cable and do an adb install of the APK. If you're using Windows to deploy the app, you'll have to download the USB drivers as well. My recommendation is to use either Linux or a Mac for easier deployment.
From the command line, you'll do something like this:
$ adb install yourdownloadedpackage.apk
If you've connected your device appropriately you should see your application if the install completed successfully.

Categories

Resources