gpt4 book ai didi

android - 7天后自动卸载Android App

转载 作者:行者123 更新时间:2023-11-29 14:52:01 28 4
gpt4 key购买 nike

我只想在特定时间后卸载我的应用程序。这是为了让应用程序在特定时间范围内可用。

我该怎么做。

谢谢

最佳答案

那是不可能的,我引用:

Uninstalling without user confirmation is not allowed to 3rd party applications.

As xDragonZ points out, a root process can crudely do this by literally removing the directory and leaving the package manager to deal with the loss, but that's not a very widely deployable solution, since AFAIK no devices ship with that capability for apps to run their own root helper process - that's a risky aftermarket modification.

引自 SO Delete my application programmatically

进一步阅读 install / uninstall APKs programmatically (PackageManager vs Intents)

关于android - 7天后自动卸载Android App,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15086859/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com