Is there any way (e.g. with the command-line) I can upload an APK to an android phone wirelessly (wifi or Bluetooth) and launch it on the phone from a desktop machine?
I can do this things with abd from the command line when a USB cable is attached but I'd like to know if I can do this without having to mess around with cables.
The short answer is "no"... you have this nice new Bluetooth-enabled "smart"phone that doesn't do as much as the Nokia 3650 I had 8 years ago did (can you tell how annoyed by Android's lack of functioning Bluetooth in Android?).
The long answer is that the only way you could do anything like this right now would be to email yourself the APK then using something like APKatcher to install it. Note that this will not let you do any debugging, auto-install/launching, etc. It's a hack, at best.
I did this with dropbox, had my .apk installed within minutes on my phone.
Just add the apk to you dropbox folder, install a dropbox app from the market and open the apk-file on you phone.
You can connect to your phone by wifi with
adb connect PhoneIp
and then you can try
adb install yourapp.apk
Related
I am trying to find a fast way to see if an android phone is rooted or not. I know you can use root checker app but due to numbers of phones it is far too slow to install and use.
I am looking for a way that I use. I know I have to turn ADB on, on the phone and plug it into my pc.
Is there a way to check this using command a line I can run in CMD?
I have android studio install so is there a way of running a script from this that will check to see if a phone has been rooted?
I know what due to number of way a phone can be rooted it not always 100% but I can live with that.
I know two ways you can check if you android is rooted.
Installing an "Root Checker" app from the Play Store.
Installing a Rooting software that check the android when is conected, try Kingo Root.
I read many articles on how we can launch an Android emulator faster.
I found this SO post where user286101 said that he "can load the app over wifi onto the real device in a fraction of the time".
My question is : how can I load an application, from Eclipse, to my real device through wifi ?
Regards.
I believe you must connect adb to your device using the command line: adb connect <host>[:<port>]. Then Eclipse will adb your device over WiFi.
Check out the adb docs.
This is adb wireless : http://www.appbrain.com/app/siir.es.adbWireless
butt your phone has to be rooted
I do it all the time via dropbox.com takes just a matter of seconds.
Just move the .apk to your dropbox folder and then open it from your device. This will work for both wifi and 3G.
In addition to bytebender's suggestion, you can transfer your apk with kies air as well, and run it by locating it with your Android's file browser. It's not exactly launching from eclipse, but this is what I had to do because I didn't have an OEM usb connector and the 3rd party (cheap) ones I had weren't connecting to my PC. I couldn't get the adb method to work. My phone does not have ROOT access.
We want to install our application on to (thousands of)phones and these phones will be later delivered to clients. Do we have to do this manually? Is there a faster way to do this?
For example, in Windows Mobile, if you put your installation files in a certain folder on SD card and when you insert that SD card to the phone the app is installed automatically to the device. Any similar mechanism on Android?
Thanks in advance.
You can create an update.zip file on an sdcard that will install an application, but you have to boot the phone into recovery mode to run it. I haven't used update.zip this way, but I saw it here: http://www.londatiga.net/it/how-to-create-android-update-zip-package/
Unfortunately it's much more complicated and slow than the old 2577\Autorun.exe method from WindowsMobile.
Other ideas...
ADB + USB hubs: Hook up a bunch of the phones at the same time using USB hubs, run a script to find the device ids with adb devices and execute adb install your_app.apk for each one.
(Requires taking the time to enable USB debugging on each device)
Install from the web: Host the .apk publicly or locally. Now you have to pull up the URL on the phone.
(Requires taking the time to checking that checkbox for installing from unknown sources on each device)
TinyUrl: host the .apk anywhere, shrink the URL, type it into the browser.
QR Code: If the devices happen to have a QR Code Reader like Google Goggles pre-installed, you could save yourself the typing of the URL.
SMS: If all of these phones have service and you have the numbers handy, you could broadcast an SMS to all of them.
Best of luck!
Basically, yeah. See this question for details. You essentially need an army of button-pressers.
I found this:
http://www.harmonyhollow.net/android_injector.shtml
So far it is the best solution I found. I guess it uses adb behind scenes.
I want to install an app/idea i have developed int a demo on my phone (HTC Hero). I have read several posts some from as far back as '08 on different options. I was hoping I could install this using the debug bridge and eclipse, but can't seem to find a way.
Is there an easy way for me to get this on my phone?
Thanks in advance,
Pat
Yea it's easy, provided you don't have AT&T. If you don't, just go to Settings->Applications->Development and check USB debugging.
From there, you plug your phone into your computer using the USB cord, and when you launch your app like you normally would with the virtual console, it ought to detect your device. Specify that you want to launch on your device, and it will install it no problem.
If you are on an AT&T phone, you will have to root it to allow non-market apks to be installed.
Other way of installing application on your device is that you can upload your apk file on the web server and download it by opening the link in your web browser. But insure that you must have enabled the option Unknown Sources in your Settings>>Application on your device.
I understand the Android OS is based on Linux. Does that mean the G1 phone has a terminal emulator and you can open a console and use commands like cd, ls, etc? Or failing that, would it be possible to write a terminal emulator for it?
On a related note, would it be possible to run a ssh server on the G1 and log into it over a wifi connection?
Actually, until recently everything you typed on the keyboard got echoed to a root shell. Nasty bug.
That said, you want PTerminal, from the Android Market.
As for SSH, yep. You can even install Debian on the phone.
Currently there are a few terminal emulators in the market and elseware on the web (quick google search and you'll see), but if you are running the latest OS patch level (RC30) you will no longer be able to get root at all. The shell's are still somewhat useful to poke around the file system and see the results of ps and top for example.
In case you don't know, it's worth pointing out that android has a fairly secure application sandbox. Each installed app runs as it's own user. Not many binaries on the phone are world-executable, and a lot of files aren't even world-readable.
However, I don't think anything is preventing you from copying executables to the phone and running them as a non-privileged user.
The android SDK comes with a tool that lets you run a shell from your development machine over USB. The su command does not work on the TMobile phone but does work on the unlocked phone that comes direct from google.
Very easy to flash back to RC29 and get root, I did and have Terminal Emulator running good. I just don't know many commands.