Android开发经验谈首页投稿(暂停使用,暂停投稿)Android技术知识

【译】Android 6.0接口变化(二)(Android 6.

2016-08-15  本文已影响567人  小强子同学

原文:https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-runtime-permissions

一、关键点

9、浏览器书签:Browser Bookmark Changes
10、APP签名:Android Keystore Changes
11、WIFI和网络:Wi-Fi and Networking Changes
12、相机服务:Camera Service Changes
13、运行时:Runtime
14、APK校验:APK Validation
15、USB连接:USB Connection
16、Android企业版变化:Android for Work Changes

二、详述:

9、浏览器书签

This release removes support for global bookmarks. The android.provider.Browser.getAllBookmarks()
andandroid.provider.Browser.saveBookmark()
methods are now removed. Likewise, the READ_HISTORY_BOOKMARKS
and WRITE_HISTORY_BOOKMARKS
permissions are removed. If your app targets Android 6.0 (API level 23) or higher, don't access bookmarks from the global provider or use the bookmark permissions. Instead, your app should store bookmarks data internally.

这个发布版移除了对全局标签的支持。android.provider.Browser.getAllBookmarks()
和 android.provider.Browser.saveBookmark()方法现在已经移除了。同样的,READ_HISTORY_BOOKMARKS
和WRITE_HISTORY_BOOKMARKS权限也被移除了。如果你的APP使用了6.0或更高版本,不要通过标签提供者访问全局标签,也不要使用标签权限。你应该将标签数据缓存到你自己的程序内部。

10、APP签名

With this release, the Android Keystore provider no longer supports DSA. ECDSA is still supported.
Keys which do not require encryption at rest will no longer be deleted when secure lock screen is disabled or reset (for example, by the user or a Device Administrator). Keys which require encryption at rest will be deleted during these events.

这个发布版本 Android Keystore provider已经不再支持DSA了,但ECDSA还被支持。
当锁屏被禁用或重置(例如:用户自己或管理员),不需要加密的Key现在不会被删除,需要加密的会被删除。

11、Wi-Fi and Networking Changes

This release introduces the following behavior changes to the Wi-Fi and networking APIs.
发布版介绍了WiFi和网络API的如下变化

10、Camera Service Changes

In This release, the model for accessing shared resources in the camera service has been changed from the previous “first come, first serve” access model to an access model where high-priority processes are favored. Changes to the service behavior include:
这个发布版,以前的“先到先服务”的访问相机共享资源的模式已经被改为高优先级进程优先。改变的服务行为包括:

上一篇 下一篇

猜你喜欢

热点阅读