Android 14 总览
https://developer.android.google.cn/about/versions/14?hl=zh-cn
文章基于官方资料上提取
Android 14 功能和变更列表
https://developer.android.google.cn/about/versions/14/summary?hl=zh-cn
行为变更:所有应用
核心功能
- 默认拒绝设定精确的闹钟 (https://developer.android.google.cn/about/versions/14/behavior-changes-all?hl=zh-cn#core)
- 当应用进入缓存时,上下文注册的广播将加入队列
- 应用只能终止自己的后台进程
安全
- 最低可安装的目标 API 级别
targetSdkVersion 低于 23 的应用无法安装 - 媒体所有者软件包名称可能会隐去
用户体验
- 关于不可关闭通知用户体验方式的变更
- 授予对照片和视频的部分访问权限
READ_MEDIA_IMAGES 或 READ_MEDIA_VIDEO
(https://developer.android.google.cn/about/versions/14/changes/partial-photo-video-access?hl=zh-cn)
无障碍
- 非线性字体放大至 200%
行为变更:以 Android 14 或更高版本为目标平台的应用
核心功能
- 前台服务类型是必填项 (https://developer.android.google.cn/about/versions/14/changes/fgs-types-required?hl=zh-cn)
- OpenJDK 17 更新
安全
-
对隐式 intent 和待处理 intent 的限制 (https://developer.android.google.cn/about/versions/14/behavior-changes-14?hl=zh-cn#safer-intents)
-
在运行时注册的广播接收器必须指定导出行为 (https://developer.android.google.cn/about/versions/14/behavior-changes-14?hl=zh-cn#runtime-receivers-exported)
-
更安全的动态代码加载
-
针对从后台启动 activity 的其他限制 (https://developer.android.google.cn/about/versions/14/behavior-changes-14?hl=zh-cn#background-activity-restrictions)
功能和 API 概览
国际化
(https://developer.android.google.cn/about/versions/14/features?hl=zh-cn#i18n)
- 使用语法性别对应用界面进行个性化设置
https://developer.android.google.cn/about/versions/14/features/grammatical-inflection?hl=zh-cn
无障碍
(https://developer.android.google.cn/about/versions/14/features?hl=zh-cn#accessibility)
用户体验
(https://developer.android.google.cn/about/versions/14/features?hl=zh-cn#ux)
- 检测用户何时截取设备屏幕截图
https://developer.android.google.cn/about/versions/14/features?hl=zh-cn#screenshot-detection
https://developer.android.google.cn/about/versions/14/features/screenshot-detection?hl=zh-cn
图形
https://developer.android.google.cn/about/versions/14/features?hl=zh-cn#graphics
- 路径现在可查询和插值
核心功能
- OpenJDK 17 更新