【发布时间】: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