阅读:7429回复:3

google play store无法下载APP显示Download pending...

楼主#
更多 发布于:2019-09-12 16:44
google play store无法下载APP显示Download pending...


========================================
造成此问题的原因可能有很多,这里提供一种情况会造成无法下载APP:

当系统属性:device_provisioned 为0时,说明系统还没有准备好,此时google play store会挂起下载请求,不会进行下载。
解决方案:在开机向导APP(如有)里面设置device_provisioned = 1即可,或者Launcher里面设置也可以。

   /*in AOSP version, we have no user setup APK, so force skip it
    or we can't use home key */
    private void skipUserSetup() {
        if (Settings.Secure.getInt(getContentResolver(), Settings.Secure.TV_USER_SETUP_COMPLETE, 0) == 0) {
            Log.d(TAG, "force skip user setup, or we can't use home key");
            Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1);
            Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
            Settings.Secure.putInt(getContentResolver(), Settings.Secure.TV_USER_SETUP_COMPLETE, 1);
        }
    }

命令行下可以如下来测试:
settings put global device_provisioned 1
settings get global device_provisioned

最新喜欢:

zhaoyf13zhaoyf...
If you have nothing to lose, then you can do anything.
沙发#
发布于:2019-09-12 17:47
这个不错,兜兜转转不容易啊,终于搞定了
[url]http://190.lsal.cn/195/1329.gif?0728100424873[/url]
板凳#
发布于:2019-09-12 18:08
zhaoyf13:这个不错,兜兜转转不容易啊,终于搞定了回到原帖
是的啊,不容易哦
If you have nothing to lose, then you can do anything.
地板#
发布于:2023-07-13 01:32
今天遇到pending的情况,查了settings get global device_provisioned是1 ☹️
游客

返回顶部