gpt4 book ai didi

android - 是否有 ADB 命令可以更改已安装应用程序的高级设置?

转载 作者:行者123 更新时间:2023-12-04 17:13:27 24 4
gpt4 key购买 nike

我一直试图找出一个使用 ADB 命令行的命令来更改我通过 ADB 安装的应用程序的高级设置。
安装后,我希望使用 ADB 命令将以下设置更改为“允许”:
enter image description here
这可能吗?
我想可能是:found here
adb shell pm grant com.mycompany.mypackage INSTALL_NON_MARKET_APPS 1

最佳答案

安装未知应用程序的命令是:

adb shell pm grant com.company.testapp  android.permission.REQUEST_INSTALL_PACKAGES
这将失败,因为 android.permission.REQUEST_INSTALL_PACKAGES不是可更改的权限类型:
Operation not allowed: java.lang.SecurityException: Permission android.permission.REQUEST_INSTALL_PACKAGES is not a changeable permission type
也许有一种方法可以解决这个问题,我不知道。

关于android - 是否有 ADB 命令可以更改已安装应用程序的高级设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69064305/

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