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

介绍

developer.android.google.cn/distribute/…

  • Android P

    • Blacklist 无论targetVersion如何,使用这些api,系统将会抛出错误
    • Greylist 如果targetVersion == 28 将会跟Blacklist一样,如果不是则可以正常使用
    • Whitelist 可以正常使用
  • Android Q

    • 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-p

  • blacklist 无论targetVersion如何,使用这些api,系统将会抛出错误

  • greylist 本系统标记为不支持调用。但是无限制,可以正常使用

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

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

check工具

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

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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值