Install apk on multiple android devices - android

I need to install an application in about 500 tablets with android.
Is there any way to do this automatically without me having to manually install on each device.

post the apk on a web server..access that page via the tablet and install the app...
i personally don't think there is any other way...there must be some sort of action on the device to install the app

you can do it through adb, put you apk file on a SD card or something or a given url and then through command prompt use
adb install <1>/<2>.apk
where <1> is path of the apk and <2> is the name of apk.
although its manual, but still be fast enough as you send a command and connect another tablet.

If you are going to have to reinstall the app over and over again you could always create another application to handle all this. Sometimes a reinstall will fail so you will have to uninstall first. This app could also check a web server once a day to see if your main application needs to be updated.

Related

Block installing from apk file

Is it possible to block installing apps from apk file directly. How can do this using code, not by using some setting on the phone.
I just need to block installation of apps outside of the play store. That is stop the user from copying a apk file to the phone and install it. But still allow them to install apps through the Play Store.
This isn't possible on AOSP Android.
The Install from unknown sources option is a setting in Settings.Global (previously in Settings.Secure) and cannot be controlled by third party applications.
However, it is possible do achieve this if you're willing to modify and compile Android itself for each and every device you want to use this on, as is done by AT&T on some of their devices.
You can't. This is a system setting you can't handle, because it's a security setting. This won't be editable by any application. Just think about what if, when any application could do: Then the application could download a bad .apk and install it without any warning.
try using code to copy file into directry /data/app/ .
but device is rooted and some app work not correctly

Can't install third-party APK file

I am a new programmer for Android, but I have been using eclipse for a year and a half now. I am developing an Android Application for my school's health department to allow students to track certain health behaviors overtime.
I have completed the coding of the app and have successfully tested it on a virtual device. The applications runs fine on the AVD.
However, the problem arises when I export the project as an Android application through eclipse. I create the apk file using the debug.keystore and the androiddebugkey. I create the apk file (which is about 115 kilobytes). Next, I connect by phone (an LG Thrill) and open it via My Computer. I drag and drop the apk file into the "downloads" folder in the phone.
I use a Market App called ASTRO to access the apk file in the downloads folder. However, when I try to install it, I get the dreaded "There is a problem parsing the package" error. I have had this problem for weeks now.
I have tried all sorts of solutions. I have developed the app for the same Android level as the phone. I have tried making my own keystore and exporting. I have also tried making smaller apps (ie: HelloWorld) and installing them. I keep getting the same error.
One thing that I noticed was that whenever I go to the apk file in the ASTRO Market app and click on the apk file and then "Open App Manager", I see that none of the apk file's settings (ie: Name, Size, details) are shown. All the Marketplace apps I have in the folder have visible settings by my apps don't.
What might I be doing wrong? Is it something with building the apk file? Or am I uploading it onto my phone incorrectly? Whatever it is, please let me know.
Go to: Settings->Security->Device Administration and make sure you have Unknown Sources enabled.
Have you checked your manifest file? What is the required minimum version of Android that you need, and what is the version on the device you are installing it on? Everytime I have run into this problem, it is because the device has less than the minimum required version of the operating system on it.
Home-->Settings-->Application Settings-->Unknown Sources Click Checkbox on
I know it's kinda old topic but it has just happened to me (Android 4.1.1).
Solution: If you have wifi turned on, make sure you have internet access. I dealt with this problem and multiply requests to install application appeared.

Installing apk from within application in android

I need to downloads and install apk from server to devices and i tried to do this task but it ask for user permission like "Insall" , "Cancel" . and if hits "Install" then it works fine and installed but i dont need this permission as i am to install 30 apk from server .
Thanks in advance .
The security model of android won't let you do such things without user interaction. It could be, if the particular phone was rooted, but I think you can't rely on that.
You can not do this on Android as said because it's a security limitation.
It could be possible if you create a system app but based on your question I think that is not what you are after.
However there is a possible workaround:
If those apps that you are installing are made by you and it is possible to modify them to act like plugins/libraries(Don't worry you can keep the activities and stuff) then you could load them dynamically when your apk is run, thus essentially giving you new code to be run on the device (Elements of these apps will run under same user ID but you can start them in a new process if you want with android:process=":YourProcessName".
Check out this tutorial on how to load external libraries at runtime http://xianminx.blogspot.com/2011/12/dynamic-loading-android-custom-library.html

OTA for Android

I developed android application and put .apk on my website which runs on LAMP and I wish to enable somehow OTA (over the air) installation of my application, by simply providing URL to Android device.
How can I do it?
Scenario I wish to produce is (if someone didn't understand me correctly) that user scanns QR code of apk's URL and then install it seemlessly. Right now, user must download the file, then tap on it to install it.
Thanks in advance.
Just have the QR code point to the actual .apk and let the user download it and manually install it. There is no way to have a user read the QR and upon that automatically install the app. Thats not how OTA installations nor updates work. Even when you perform an actual OTA update of Android for example you have to confirm that you'd like the action to be performed.
Even if there is a way to achieve this it won't hinder anyone to just pull the .apk from his phone and take a look at it or reverse engineer it.
You may also see what adb install testapp.apk does and how it works...
Maybe you can initiate it from your app, once you download the new version to the phones (SD Card)

Silent installation on Android devices

I've accepted for a while now that it's impossible to silently install an application on Android - that is, to have a program install an application bundled as an APK without providing the standard OS installation prompt and going through the app installer activity. But now I've picked up a copy of the Appbrain fast web installer, and it does exactly this.
How on earth is this possible? :D
I think the clue is pretty much in this statement I found here in the FAQ.
The fast web install worked for me yesterday, but it doesn't work anymore today. What's wrong?
The permission to install apps directly on your phone needs to be refreshed once every few days. Go back to the "Fast Web Install" app on your phone and click the button to give us the permission again. We are working on a future update that will optionally automatically refresh this setting.
I presume this is very similar to what Google does in the kill switch. I am assuming that the kill switch is an application on my device, just hidden from me. When Google wants to remove an application, it silently uninstalls it without asking for our permission. I am very sure this security hole is of their making. Now we just need to figure that out... =D
You can ( in a very hackish way ) install apps silently using adb. You have to enable USB Debugging, but just push the APK to /data/app. ie:
adb push MyApp.apk /data/app
or -
adb install MyApp.apk (cleaner way)
The second command MAY prompt for an installation, I don't remember off the top of my head.
IF you can work out what the standard installer does when it installs, you can replicate that behaviour in your app, however yours would need quite extensive permissions to do everything properly.
Seriously, don't even try.

Categories

Resources