【问题标题】:Android Kitkat 4.4.2 - How to set PACKAGE_VERIFIER_ENABLE hidden API attribute?Android Kitkat 4.4.2 - 如何设置 PACKAGE_VERIFIER_ENABLE 隐藏 API 属性?
【发布时间】:2015-02-01 07:23:55
【问题描述】:

我希望通过自定义 APK 或 ADB 终端在我的 Android 设备上的 Settings >> Security 下设置 Verify Apps 属性。

我找到了启用隐藏/内部 API 设置 here 的过程,但是 Eclipse 不允许我编译我的 APK。

我在 MainActivity 中的调用是:

Settings.Secure.putInt(MainActivity.this.getContentResolver(), Settings.Secure.PACKAGE_VERIFIER_ENABLE, 0);

我在this comment 中看到可以通过 adb shell 使用广播接收器。是否可以使用此方法设置隐藏/内部 API 设置?

这两种方法都适合我完成这项任务,但如果它们都存在的话,了解这两种方法会很好。

【问题讨论】:

    标签: android eclipse adb android-4.4-kitkat


    【解决方案1】:

    禁用

    settings put global package_verifier_enable 0 
    

    启用

    settings put global package_verifier_enable 1
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多