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

相關文章
相關標籤/搜索