Solution 2: Ensure that the version code of newer system apps is higher than the existing older version code. This is applicable when developing a new OTA firmware.
I have my own
are stored. Certain apps have been altered. How can I send OTA updates to clients/users so they can be informed of and download new updates?
A month ago, I came across an intriguing solution on HN that involves updating the app on the client without requiring any user interaction. Given that you have your own
, you shouldn’t encounter any of the issues mentioned in the HN thread.
The website provides functioning code snippets as a solution.
Evolve intercepts calls to startActivityForResult, getResources, and other functions, generating a dummy class with its superclass set to the desired activity when attempting to start an activity.
The bytecode for a new class is generated dynamically.
…then alters the purpose to initiate the relevant class.
Since it is still in alpha mode, it would necessitate your effort to integrate.
Solution can be found at this URL – http://blog.vivekpanyam.com/evolve-seamlessly-deploy-android-apps-to-users.
If this meets your expectations, I hope it provides assistance!
Develop a Web Service that your app can periodically check upon launching or according to a designated time limit to determine if a new version is available.
This service should provide the most recent version of the apk file stored on the Server, including the URI of the updated application file.
Once the app receives the response from the Web Service, it will parse the JSON and compare your
with the most recent version available on the server.
If the user’s app version is not the latest, they will be prompted to begin the download process.
The Download Manager handles the download of the new app. Upon completion of the download, the app is notified through a Broadcast Receiver.
After finishing the most recent
version of the app
application file, you can proceed with the installation activity. At this stage, the user should express their agreement by saying “OKAY, let’s do it.” For more information, please refer to the following link: https://code.google.com/p/auto-
In order to utilize your own app store, it is necessary to have a client app functioning on the respective devices, enabling them to download and install applications from said app store.
As a user of this client, you can access a service that scans the device for installed applications and verifies their availability in your store. If updates are found, the user will be prompted to visit the store and update the corresponding apps, or take any other necessary action.
Consider registering this service to receive notifications of network connection events, ensuring that it receives an alert when the internet connection is restored in the event of a temporary outage.