Android Q适配(非SDK接口管控)

介绍

developer.android.google.cn/distribute/…linux

  • Android Pandroid

    • Blacklist 不管targetVersion如何,使用这些api,系统将会抛出错误
    • Greylist 若是targetVersion == 28 将会跟Blacklist同样,若是不是则能够正常使用
    • Whitelist 能够正常使用
  • Android Qapi

    • greylist 本系统标记为不支持调用。可是无限制,能够正常使用
    • Blacklist 不管targetVersion如何,使用这些api,系统将会抛出错误
    • greylist-max-o 受限制的灰名单。targetVersion <= 27 能够正常访问
    • greylist-max-p 受限制的灰名单。targetVersion <= 28 能够正常访问

变动

Android Q 更新了黑名单、黑灰名单的接口,增长了一些新的名字。 如在 Android P 中被限制的黑灰色名单:darkgrey list 如今叫作 greylist-max-o, 在 Android Q 中被限制的非SDK接口应该称为 greylist-max-papp

  • blacklist 不管targetVersion如何,使用这些api,系统将会抛出错误ide

  • greylist 本系统标记为不支持调用。可是无限制,能够正常使用工具

  • greylist-max-o 受限制的灰名单,targetVersion <= 27 能够正常访问,targetVersion > 27(Android P,9,Q)不能使用ui

  • greylist-max-p 受限制的灰名单,targetVersion <= 28 能够正常访问,targetVersion > 28(Android Q)不能使用google

check工具

把veridex-mac.zip下载下来进行下面操做进行check检查rest

developer.android.google.cn/distribute/… android.googlesource.com/platform/pr…orm

Linux x64

Download veridex-linux.zip, unzip the file and run with:

./appcompat.sh --dex-file=test.apk

macOS

Download veridex-mac.zip, unzip the file and run with:

./appcompat.sh --dex-file=test.apk

相关文章
相关标签/搜索