Android 4.2 兼容性定义

修订版 2
上次更新日期:2013 年 2 月 17 日

版权所有 © 2012,Google Inc。保留所有权利。
[email protected]

目录

1. 简介
2. 资源
3. 软件
4. 应用打包兼容性
5. 多媒体兼容性
6. 开发者工具和选项兼容性
7. 硬件兼容性
7.1. 显示和图形
7.2. 输入设备
7.3. 传感器
7.4. 数据连接
7.5. 摄像头
7.6. 内存和存储空间
7.7. USB
8. 性能兼容性
9. 安全模型兼容性
10. 软件兼容性测试
11. 可更新软件
12. 与我们联系
附录 A - 蓝牙测试程序

1. 简介

本文档列出了设备必须满足哪些要求,才能与 Android 4.2 兼容。

本文档按照 RFC2119 [资源 1] 中定义的 IETF 标准使用“必须”“不得”“必需”“会”“不会”“应”“不应”“建议”“可以”和“非强制”字样。

在本文档中,“设备实现者”或“实现者”指的是运行 Android 4.2 的硬件/软件解决方案的开发人员或组织。“设备实现”或“实现”指的是所开发的硬件/软件解决方案。

设备实现必须满足本兼容性定义文档(包括以参考资料的形式纳入的任何文档)中列出的要求,才会被视为与 Android 4.2 兼容。

本定义或第 10 节中所述的软件测试如有未提及、含糊不清或不完整之处,设备实现者需负责确保与现有实现兼容。

因此,Android 开源项目 [资源 3] 既是参考 Android 实现,也是首选 Android 实现。强烈建议设备实现者尽可能使其实现基于 Android 开源项目提供的“上游”源代码。虽然从理论上来说某些组件可以替换为替代实现,但强烈建议不要这样做,否则通过软件测试的难度会大大增加。实现者需负责确保行为与标准 Android 实现(包括兼容性测试套件及其他内容)完全兼容。最后请注意,本文档明确禁止替换和修改某些组件。

2. 资源

  1. IETF RFC2119 要求级别:http://www.ietf.org/rfc/rfc2119.txt
  2. Android 兼容性计划概述:http://source.android.com/docs/compatibility/index.html
  3. Android 开源项目:http://source.android.com/
  4. API 定义和文档:http://developer.android.com/reference/packages.html
  5. Android 权限参考:http://developer.android.com/reference/android/Manifest.permission.html
  6. android.os.Build 参考文档:http://developer.android.com/reference/android/os/Build.html
  7. 允许的 Android 4.2 版本字符串:http://source.android.com/docs/compatibility/4.2/versions.html
  8. RenderScript:http://developer.android.com/guide/topics/graphics/renderscript.html
  9. 硬件加速:http://developer.android.com/guide/topics/graphics/hardware-accel.html
  10. android.webkit.WebView 类:http://developer.android.com/reference/android/webkit/WebView.html
  11. HTML5:http://www.whatwg.org/specs/web-apps/current-work/multipage/
  12. HTML5 离线功能:http://dev.w3.org/html5/spec/Overview.html#offline
  13. HTML5 视频标记:http://dev.w3.org/html5/spec/Overview.html#video
  14. HTML5/W3C Geolocation API:http://www.w3.org/TR/geolocation-API/
  15. HTML5/W3C Webdatabase API:http://www.w3.org/TR/webdatabase/
  16. HTML5/W3C IndexedDB API:http://www.w3.org/TR/IndexedDB/
  17. Dalvik 虚拟机规范:可在 Android 源代码中的 dalvik/docs 下找到
  18. AppWidget:http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
  19. 通知:http://developer.android.com/guide/topics/ui/notifiers/notifications.html
  20. 应用资源:http://code.google.com/android/reference/available-resources.html
  21. 状态栏图标样式指南:http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html
  22. 搜索管理器:http://developer.android.com/reference/android/app/SearchManager.html
  23. 消息框:http://developer.android.com/reference/android/widget/Toast.html
  24. 主题:http://developer.android.com/guide/topics/ui/themes.html
  25. R.style 类:http://developer.android.com/reference/android/R.style.html
  26. 动态壁纸:https://android-developers.googleblog.com/2010/02/live-wallpapers.html
  27. Android 设备管理:http://developer.android.com/guide/topics/admin/device-admin.html
  28. DevicePolicyManager 参考:http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html
  29. Android 无障碍服务 API:http://developer.android.com/reference/android/accessibilityservice/package-summary.html
  30. Android 无障碍功能 API:http://developer.android.com/reference/android/view/accessibility/package-summary.html
  31. Eyes Free 项目:http://code.google.com/p/eyes-free
  32. 文字转语音 API:http://developer.android.com/reference/android/speech/tts/package-summary.html
  33. 参考工具文档(适用于 adb、aapt、ddms 和 systrace):http://developer.android.com/guide/developing/tools/index.html
  34. Android APK 文件说明:http://developer.android.com/guide/topics/fundamentals.html
  35. 清单文件:http://developer.android.com/guide/topics/manifest/manifest-intro.html
  36. Monkey 测试工具:https://developer.android.com/studio/test/other-testing-tools/monkey
  37. Android android.content.pm.PackageManager 类和硬件功能列表:http://developer.android.com/reference/android/content/pm/PackageManager.html
  38. 支持多种屏幕:http://developer.android.com/guide/practices/screens_support.html
  39. android.util.DisplayMetrics:http://developer.android.com/reference/android/util/DisplayMetrics.html
  40. android.content.res.Configuration:http://developer.android.com/reference/android/content/res/Configuration.html
  41. android.hardware.SensorEvent:http://developer.android.com/reference/android/hardware/SensorEvent.html
  42. 蓝牙 API:http://developer.android.com/reference/android/bluetooth/package-summary.html
  43. NDEF 推送协议:http://source.android.com/docs/compatibility/ndef-push-protocol.pdf
  44. MIFARE MF1S503X:http://www.nxp.com/documents/data_sheet/MF1S503x.pdf
  45. MIFARE MF1S703X:http://www.nxp.com/documents/data_sheet/MF1S703x.pdf
  46. MIFARE MF0ICU1:http://www.nxp.com/documents/data_sheet/MF0ICU1.pdf
  47. MIFARE MF0ICU2:http://www.nxp.com/documents/short_data_sheet/MF0ICU2_SDS.pdf
  48. MIFARE AN130511: