StoreRules

规则 · 满足 Google Play 目标 API 级别要求 · 从低于 Android 11(API 级别 30)迁移

Migrate from Android 9 (API level 28) to Android 10 (API level 29)

通俗解读

将目标 API 级别从 Android 9 迁移至 Android 10(API 29)时,应用必须处理全屏 intent、折叠屏及大屏行为的变化,以及若干隐私限制。

  • 带有全屏 intent 的通知需要普通权限 USE_FULL_SCREEN_INTENT(非运行时权限)。
  • 多个 activity 可以同时处于“已恢复”(resumed)状态,但只有一个具有焦点,这会影响 onResume()/onPause();使用 onTopResumedActivityChanged() 检测“最顶层已恢复”的 activity。
  • 当 resizeableActivity 为 false 时,应用可以指定 minAspectRatio,在宽高比更窄的屏幕上会自动为应用添加黑边(letterbox)。
  • 分区存储(scoped storage)将外部存储访问限制为应用专属目录和该应用创建的媒体类型。
  • 后台位置需要 ACCESS_BACKGROUND_LOCATION;步数等身体活动数据需要 ACTIVITY_RECOGNITION;某些电话、蓝牙和 Wi-Fi API 需要 ACCESS_FINE_LOCATION。
  • 对 IMEI 和序列号等不可重置标识符的访问受到限制。应用无法再直接启用或停用 Wi-Fi,必须使用设置面板;连接网络需要 WifiNetworkSpecifier 或 WifiNetworkSuggestion。

摘要由 StoreRules 撰写,并与官方原文核对。

官方原文摘录

- Notifications with a full-screen intent - Need to request the normal permission USEFULLSCREENINTENT (not runtime permission). - Support for foldables and large screen devices - Multiple activities can now be in the "resumed" state at the same time, but only one actually has focus. - This change affects onResume()) …

阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规

开发者关于此条款的案例

暂无案例。

分享你的案例