如何将设备通过一个应用程序上更新的Andr​​oid OS如何将、应用程序、设备、OS

2023-09-04 06:50:13 作者:浪漫的收藏家

有没有办法检查后更新通过应用程序的Andr​​oid操作系统(采用Android API或任何其他API /)如果有新的Andr​​oid版本可以在市场上/ Playstore 所需的用例在这里支持如下:

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:

应用程序启动并检查安装Android操作系统的版本

The App starts and checks the version of the installed Android OS

然后,它发现在现有的Andr​​oid操作系统的版本     Playstore /其他存储库该设备

It then finds the version of available Android OS in the Playstore/other repository for that 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 ....

推荐答案

有关更新Android版本,你需要

For updating your android version you would need

在自定义你的Andr​​oid设备上。(一些更多的信息) 植根设备。为什么要生根? Custom Android on you device.(Some more info) Rooted device.why need rooting?

现在安装我们需要flash ROM 。你还需要有检查版本的操作系统,这取决于你的逻辑。一般三星,索尼,他们使用定制的Andr​​oid和更新推到应用中心(或类似的东西,没有太多知识),在你的情况下,它可以是任何的云服务或服务器来检查版本为您定制的Andr​​oid。

Now for installing we would need to flash 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.

当我们有一个新的版本,用户接受升级后,一个新的img文件将被下载到您的装置将被用于升级OS.Please请注意,您还需要一个恢复备份方法 too.There一些的命令,可用于提取并通过您的code下载操作系统。

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 recovery backup method too.There are some Commands 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.

更新

我有关于我们如何能够通过发起code更新一些新的信息。在链接并有这个的 另一个链路可以是很大的帮助。 在这两种实施例中,他们使用 SystemRcovery类与intallerPackage API。

I have got some new information about how can we initiate the update through code. the Link and there's this another link that can be great help. In both the examples they are using SystemRcovery class with intallerPackage API.