Is it possible to upgrade a device owner app through Google Play? - android

I've created a device owner app, which I install through a QR code when I factory reset my devices. Everything's fine until here.
Now I have a new version of the same device owner app, and I want to update the devices which have the previous version to this new version.
Is it possible to achieve this using Google Play?
I don't want to use custom methods like uploading the APK somewhere and downloading it with some Java code, because I want to centralize the releases in Google Play.
So far I have uploaded the new version (version code is 5, old one is 2) of the app to Google Play and tried to upgrade from there, but it does not work: in Google Play I just see the app as installed, and the "Disable" and "Open" button, but not the button to upgrade it.
Any thoughts? I've found some posts like the ones below, but they're 5 years old, maybe something has changed and this is not longer possible.
Install updates for a Device-Owner App
Install a GooglePlay located App from NFC
I haven't been able to find any specific information on updates with device owner apps. The documentation is extensive about how to create and install a device owner app, but not on how to upgrade it.
Thanks a lot in advance!

You didn't install it from play store , I THINK you can't update Device-Owner apps which were not installed from play store , except for the way you mentioned.

Related

Google Play not automatically updated

I prepared my own I published in android apps on Google Play. Downloading app. However, I publish every new device is installed after the application version is not automatically updated. I tried on all devices. I activated the automatic update option from the Google Play app.
Unfortunately, I get the same results. Is there that might help?
Solution.
Add validation code inside your own app to check application version and open Google Play if newer is released. You can store version somewhere in your own server.
Automatic application updates are not popular in Android devices. Sad but true.
Do not forget whether your enabled this option in your device https://support.google.com/googleplay/answer/113412?hl=en

How to keep Android App updated for test users?

I have a question concerning Android app development. I'm about to develop an app that I want to give to test users. Testing the app on my own phone means plugging it in my laptop and updating it manually. Do you know any solution that provides automatic updating for in-progress-apps without plugging each phone in on each update?
Maybe there is a google play store function I don't know about yet that lets you "hide" you app before publication and you can share the link with designated people?
Thank you a lot!
The Play Store offers alpha and beta testing, which allows you to upload and distribute test builds via the Play Store.
If you use this feature, you control which version of your application testers will receive on their devices, and they will automatically get updates.
You do not need your application to be publicly available to use this feature.

Android app deployment on over 100 devices

We have a fleet tracking Android app which is isntalled on around 100 mobiles.
Problem is to update each mobile whenever there is a patch release. And unfotunately we have not set auto-update.
Now we need to call each driver and follow the process of update from google play.
This is becoming very tedious as they have to go to google play, search the application and install/update it.
And the mobiles are located all over the country.
Before it was easy as Goolge play was giving an option to know the apps installed on each mobile.
Need your advice on how do we manage/automate this update issue.
Build an in-app push notification that there's a new version and have an easy link to Google Play from it. However, this does have a bootstrapping problem, and you will have to make everyone install the new version manually (as in you call them and ask them to do it) at least once. Still, this is your only viable option, as Google Play developer agreement prohibits pushing app updates through other channels.
If you have email or IM contact with the drivers, you can also send them a message there's a new version with the direct link to the Google Play. They will have to open it on their device, of course.
The link format should be market://details?id=com.mycompany.myapp, https://play.google.com/store/apps/details?id=com.mycompany.myapp, or http://market.android.com/details?id=id=com.mycompany.myapp. Either of these three in general should work, though some OEMs have messed up their devices configuration and prevent Google Play app from intercepting the http/https form properly.
You could check a text file located on a server or something like that and then lookup if the current instaleld version is the same as the server version. If not you could download the new apk and open it. As far as I know this is not allowed by Google Play so you must remove the app from google play

Android, sideloading applications and keep them up to date via Google Play

My company would like to give an Android device to a group of our selected customers.
Doing that, we would like to provide users with our mobile app. The app is already on Google Play, but we would like to avoid users downloading and installing by themselves. We prefer to give the device ready, with the app already installed.
We found several ways to manually install an APK on the phone without having to login to the market. But it seems that doing that, the user will not be able to update the app via Google Play, as the app would not be recognized as installed.
Any idea?
As per January 2015, this appears to be impossible. Here is the response I got from Google Play Developer support:
Side-loaded apps do not update via the Play Store. If you would like the app to update, you will need to uninstall the app on your phone and reinstall the app via the Play Store.
I wonder if anyone found a way around this?
To summarize the answer from #Android-Developer and OP's comment discussion:
Google Play recognizes the app signature of APKs regardless of the installation source. As long as you use the same package name and keystore when generating your APK, Google Play will be able to detect newer versions and trigger an update.
To install the app without logging in to a Google account, enable the "Install from unknown sources" option in Settings. You can disable it once the installation is complete.
You may install Titanium Backup if your phone is rooted, then long press on your side loaded app package and select "Attach to market" option. Now you may receive updates via Google Play.
I don't recommend this, I mean never install cracked or patched apps because of copyright or security risks, but installing a Modded version of Google Play can make patched side loaded apps to be upgraded after attaching them to market via Titanium Backup. This is not needed for purchased apps because they are registered in your Google account, so attaching to market will be enough.
To get a MANUALLY INSTALLED APK to show up in the Google Play Store in the UPDATES or INSTALLED section, do either of the following:
1.) Manually install the APK with the SAME APK filename that Google knows the app as (i.e. from the APK download site like APKMirror.com).
2.) If you CHANGED the APK name when you saved it, it will NOT show up in Google Play Store as an installed app.
However, IF there is an update to the app, you will have to do a ONE-TIME search for that app in the store and update it. It will give you the UPDATE option on the app's store page. Once updated via the store, it will show up in the store's Installed / Updates section from now on.
Why does this work? Because the UPDATE will be done thru the store and the APK name it's using during the update process is what Google knows the app as.
If there is NO update, do option #1.
I always add the App name and version info to the front of the filename so I know what it is for later use (because if I'm manually installing, I'll probably be saving it for multiple / future devices).
I also keep the original name at the end, so I can rename it back to the original name if needed. Android is the only O/S I've seen where the filename matters during the install process.

Update default app automaticall from market

I have a lower version App installed in device using adb install command. I have a higher version of App in Android Market. I would make update the app in device automatically from Android Market. I saw the similar post below:
Prompt Android App User to Update App if current version <> market version
Is there a way to automatically update application on Android?
but Neither of those posts answer this question.
They mush have some solution. just like Goole Maps and Gmail does. I don't know how Google Maps does it?
someone suggest uses
http://code.google.com/p/android-market-api/
But it failed for me on code below: (android 3.2)
session.login("mymail#gmail.com",password);
Thank you in advance.
this is not really possible since your app wasn't first installed from the Android Market, so the market doesn't know about this "purchase", doesn't track updates so it won't prompt the user to update, or auto-update the app.
The only way to do it is to install the app from the market, keeping the "auto-update" checkbox on.

Categories

Resources