How to update Android OS on the device through an App
-
Is there any way to update the Android OS through an App(Using Android API or any other API/) after checking if a newer Android version is available in the market/Playstore The Use Case required to be supported here is as follows: The App starts and checks the version of the installed Android OS It then finds the version of available Android OS in the Playstore/other repository for that device Then it compares the two version and if the available version is newer, then it installs the new Android version on the device How can it be implemented , especially the third point ? I do not want to root the device for that, so if there is any way to achieve this, please help ....
-
Answer:
For updating your android version you would need Custom Android on you device.http://www.phonearena.com/news/How-to-flash-a-custom-recovery-like-CWM-or-TWRP-on-Android_id53914 Rooted device.http://www.talkandroid.com/guides/misc/what-is-rooting-and-why-should-i-do-it-the-pros-and-cons-of-android-rooting/ Now for installing we would need to http://android.stackexchange.com/questions/6028/what-is-the-meaning-of-flashing-a-custom-rom.You would also need to have check for version of the OS available, which depend upon your logic .Generally Samsung ,Sony they use custom android and the updates are pushed over app center( or something like that,not much knowledge) in your case it may be any cloud service or server to check version for your custom android. When we have a new version, after user accepts to upgrade, a new img file would be downloaded to your device which would be used to upgrade the OS.Please note you would also need a http://www.android.gs/update-xperia-s-android-4-4-2-kitkat-os-with-pure-aosp-custom-rom-firmware/ too.There are some http://schnouki.net/posts/2014/08/13/flashing-a-stock-android-image-without-wiping-user-data/ that can be used to extract and download the OS through your code. I haven't implemented it yet but this is the procedure i could find. I hope this would help others. UPDATE I have got some new information about how can we initiate the update through code. the http://shriduttkothari.blogspot.in/2013/08/fota-in-android-mechanism.html and there's this http://jhshi.me/2013/12/13/how-to-apply-downloaded-ota-package/ that can be great help. In both the examples they are using http://developer.android.com/reference/android/os/RecoverySystem.html#installPackage%28android.content.Context,%20java.io.File%29 with intallerPackage API.
user3207655 at Stack Overflow Visit the source
Other answers
There is no API. If your device has an update feature built in (most do), you can decompile the update service and see how it works. If your device does not have an update feature, then you can look at custom ROMs for your device. Once you get ahold of a ROM or an update.zip you want to use, the process cannot be done automatically. The updating takes place in the system recovery mode where the user will have to select the .zip to update. However, if you can decompile and figure out how your manufacturer's update service works, maybe you can pull off an automated process. There aren't any tutorials or documentation for this, as it is 100% dependent on phone model/OS. You can probably find a flashable ROM for your device, however, but the process is rarely automated. Actually, take a look at https://play.google.com/store/apps/details?id=com.koushikdutta.rommanager&hl=en in this case, it is a somewhat automated upgrade app. I tried it before and it bricked my phone. Good luck
Aaron Gillion
You would need to know where to ask if there is a newer version. And then is there an upgrade available for that particular device. At that point you could broadcast a request to update. Does not the device know when an update is available?
Byron Coughlin
Related Q & A:
- How To Install Android Os On Mobile?Best solution by Stack Overflow
- How To Install Linux OS?Best solution by Yahoo! Answers
- How to update my IOS app?Best solution by Meta Stack Overflow
- How to connect Android app to App engine?Best solution by groups.google.com
- What's better: Android OS or Blackberry OS?Best solution by techradar.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.