android - Android 中的 autofill_compat_mode_allowed_pa​​ckages 如何预填充以及如何将我自己的应用添加到列表中

标签 android adb

通过“adb shell settings get global autofill_compat_mode_allowed_pa​​ckages”,您可以查看所有需要自动填充服务兼容模式的白名单应用。

我想知道该列表是如何预先填充的。

我找不到有关此列表的任何文档。

我有下面提到的两个查询:

  • 如何在不使用“adb shell settings put global autofill_compat_mode_allowed_pa​​ckages pkg1[resId1]:pkg2[resId1,resId2]”的情况下将我自己的应用程序添加到此列表中,因为它需要 root 访问权限?
  • 有没有办法以编程方式做到这一点,即一旦我的应用程序启动,它将被添加到白名单中。这个列表似乎是来自 Android 的预定义列表。我对吗?

  • 期待一些输入。

    最佳答案

    adb shell settings put global autofill_compat_mode_allowed_packages pkg1[resId1]:pkg2[resId1,resId2]
    
    请参阅此处了解更多信息 here .

    关于android - Android 中的 autofill_compat_mode_allowed_pa​​ckages 如何预填充以及如何将我自己的应用添加到列表中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61798133/

    相关文章:

    android - Android 问题中的 Spinner OnItemSelectedListener 方法

    java - broadcastReceiver 无法根据通知工作(pendingIntent)

    Android findViewById 在主 Activity 以外的类中使用时返回 null

    android - 有什么办法可以在不拔掉usb线的情况下重新连接adb连接

    android - RxAndroid 中如何观察网络变化

    android - 在 Android 上开发更大应用程序的最佳实践

    android - 如何通过adb接听电话

    shell - Windows 7下的adb shell自动完成?

    android adb 的 python 绑定(bind)

    android - Google 现在默认提供 64 位 SDK?