1. 程式人生 > >android 7.0新特性,新功能,GMS4.0新特性

android 7.0新特性,新功能,GMS4.0新特性

基本概念

1:  Google Duo

    Google Duo:Google Duo是一款視訊通話工具應用APPGoogle DuoAllo視訊輔助技術,即使網速不快也能流暢通話

2:  GMS

    GMS:全稱為GoogleMobile Service,即谷歌移動服務。GMSGoogle開發並推動Android的動力,也是Android系統的靈魂所在。

(1):基本介紹

GMS目前提供有SearchSearch by VoiceGmailContact SyncCalendar SyncTalkMapsStreet ViewYouTubeAndroid Market(ICS

上更改為Play store)服務。當用戶使用谷歌服務的時候,谷歌可以把廣告嵌入各種谷歌的服務中,比如:使用者在使用谷歌地圖的時候,就能發現搜尋地名關鍵字的廣告。在使用谷歌移動搜尋的時候,不用說,當然也是有廣告的。谷歌其實是拿使用者的注意力來換取廣告主的金錢。而且Android智慧手機作業系統其實也就是谷歌把自己的服務主動放到了手機上,進一步鞏固自己的市場地位。

      (2):級別

依據GMS,谷歌對android手機給予不同程度的授權,把搭載Android系統的手機廠商分為三個級別,

1.免費使用Android作業系統,但不內嵌GMS

2.內嵌部分GMS服務,但手機不能打上谷歌的商標;

3.內嵌所有的GMS服務,也可以使用谷歌商標。。如果在android手機中內建有谷歌GMS服務的話,是等同被谷歌官方認證過的產品。

目前在市面上,只有少數的手機廠商通過了GMS認證,比如:

Samsung Electronics三星電子韓國

Motorola Mobility(摩托羅拉移動技術)美國

Sony Ericsson索尼愛立信英國

LG ElectronicsLG電子)韓國

ARCHOS愛可視法國

TOSHIBA東芝日本

而在大陸地區,目前所有行貨手機都不能通過GMS認證。GMS認證並不是想象的那麼容易,谷歌要根據廠商的實力和地區因素來考慮是否認證。對於廠商來說,

GMS除了獲得更多的谷歌服務許可權之外,還是拉開品牌區隔度的有效手段,也就是身份證明。由此可見從一個廠商是否通過GMS認證,來簡單的判斷這個廠商的綜合能力。

     7.0變更部分

     37.0變更的部分:

1):全新下拉快捷開關頁

在安卓7.0中,下拉開啟通知欄頂部即可顯示5個使用者常用的快捷開關,支援單擊開關以及長按進入對應設定。如果繼續下拉通知欄即可顯示全部快捷開關,此外在快捷開關頁右下角也會顯示一個編輯按鈕,點選之後即可自定義新增/刪除快捷開關,或拖動進行排序。

2):通知訊息快捷回覆

安卓7.0加入了全新的API,支援第三方應用通知的快捷操作和回覆,例如來電會以橫幅方式在螢幕頂部出現,提供接聽/結束通話兩個按鈕;資訊/社交類應用通知,還可以直接開啟鍵盤,在輸入欄裡進行快捷回覆。

3):通知訊息歸攏

安卓7.0會將同一應用的多條通知提示訊息歸攏為一項,點選該項即可展開此前的全部通知,允許使用者對每個通知執行單獨操作。

4):夜間模式

安卓7.0中重新加入了夜間深色主題模式,該功能依然需要在系統調諧器中開啟,從頂部下劃開啟快捷設定頁,然後長按其中的設定圖示,齒輪旋轉10秒鐘左右即可提示已開啟系統調諧器,之後使用者在設定中即可找到系統調諧器設定項。點開其中的色彩和外觀,即可找到夜間模式,開啟後即可使用全域性的深色主題模式,同時亮度和色彩也會進行一定的調整,該功能可以基於時間或地理位置自動開啟。另外,系統調諧器中也提供了RGB紅綠藍三色調節滑動條,允許使用者手動精細調節,例如減少藍色或增加紅色以提供類似護眼模式的效果。

5):流量保護模式

安卓7.0新增的流量保護模式不僅可以禁止應用在後臺使用流量,還會進一步減少該應用在前臺時的流量使用。其具體實現原理目前尚不清楚,推測其有可能使用了類似Chrome瀏覽器的資料壓縮技術。此外,谷歌還擴充套件了ConnectivityManager API的能力,使得應用可以檢測系統是否開啟了流量保護模式,或者檢測自己是否在白名單中。安卓7.0允許使用者單獨針對每個應用,選擇是否開啟資料保護模式。

6):全新設定樣式

安卓7.0啟用了全新的設定樣式,首先每個分類下各個子項之間的分割線消失了,只保留分類之間的分割線。全新的設定選單還提供了一個綠色的頂欄,允許使用者通過後方的下拉箭頭,快速設定勿擾模式等。除了勿擾模式外,頂欄選單還可以顯示諸多其他的設定狀態,例如資料流量的使用情況,自動亮度是否開啟等。谷歌也在安卓7.0的設定中加入了漢堡選單,在二級設定介面中的左上角,你就會看到這個漢堡選單,點選後即可看到所有設定項,方便使用者快速跳轉。

7):改進的Doze休眠機制

谷歌在安卓7.0中對Doze休眠機制做了進一步的優化,在此前的安卓6.0中,Doze深度休眠機制對於改善安卓的續航提供了巨大的作用。而在安卓7.0中,谷歌對Doze進行了更多的優化,休眠機制的使用規則和場景有所擴充套件,例如只要手動在後臺刪掉應用卡片,關屏後該應用就會被很快深度休眠。

8):選單鍵快速應用切換

雙擊選單鍵,就能自動切換到上一個應用。此外,如果你不停地點選選單鍵的話,就會在所有應用中不間斷地輪換,應用視窗會自動放大,頂部還會出現倒計時條,停止點選且倒計時結束後,當前應用會自動放大並返回到前臺。

Android N重點在三個方面做了改進

4Android N重點在三個方面做了改進,分別是效能、安全、生產力。當然這裡介紹的都是一些大面上的關鍵變化,細節改進會非常之多

(1):首先,Android N正式支援Vulkan API,包括其全部特性,尤其是能夠大大降低CPU系統開銷,提升描繪指令(Draw Call),當然也支援預編譯著色器,這對於應用、遊戲開發無疑是個大好訊息。

      Vulkan:一個跨平臺的圖形和計算API。它來自Khronos Group,面向現代GPUVulkan不只適用於智慧手機,還適用於PC、控制器,甚至是嵌入  式裝置。Vulkan 1.0規範是今年早些時候釋出的。

2):應用編譯與安裝方面,Android N不會一股腦地全部進行AOT預先編譯,而是結合JIT實時編譯、混合編譯,都針對每個應用進行優化,可大大提升應用安裝速度、效能、儲存和能效,號稱安裝速度比現在快最多75%。

3):安全方面,Android N將會支援基於檔案的加密、媒體框架硬化、無縫升級,特別是最後一點,Android N會使用兩個系統映象來確保OTA更新順利、安全。

Google發現,在多工列表裡,99%的人只會關注最近七個,所以Android N會自動移除更老的任務,同時增加了一個清除所有按鈕(記憶體釋放控可以滿足了),而雙擊最近按鈕會自動將最後一個使用的應用調到前臺。

同時,分屏多工也會正式加入進來。
通知同樣得到了大幅改進,可以直接回復訊息,長按通知可將其靜音或者攔截。

文件部分摘要

5:變化摘要

(1):Core apps (subject to geo-availability)

● Google Play Store

● Google Search

● Chrome Browser

● Google Drive

● Gmail

● Google Duo1

● Maps

● Google Play Music

● Google Photos

● Google Play Movies

● YouTube

(2):Core apps for 512MB RAM devices

On devices with 512MB RAM2, the following apps constitute the Core GMS apps:

● Google Play Store

● Google Search

● Chrome Browser

● Gmail

● Google Duo 1

● Maps

● Google Photos

● YouTube

Google is actively optimizing Core GMS apps for devices with 512MB RAM devices. The improvements will

(3):Google Settings

一級選單之間有橫線,二級選單沒有分割的橫線,如下圖

 

4):Unknown sources

   未知的來源必須設定成禁止狀態,以此保護使用者

5):Developer Options Settings

● USB debugging MUST be off by default.

● Android 7.0 or later devices MUST provide a menu in the Settings app which allows users to switch

between available WebView providers on the device. Its user experience MUST align with the AOSP

Implementation.

       (6):  Doze Extended for Android 7.0

谷歌在安卓7.0中對Doze休眠機制做了進一步的優化,在此前的安卓6.0中,Doze深度休眠機制對於改善安卓的續航提供了巨大的作用。而在安卓7.0中,谷歌對Doze進行了更多的優化,休眠機制的使用規則和場景有所擴充套件,例如只要手動在後臺刪掉應用卡片,關屏後該應用就會被很快深度休眠。

2016.10.17 補充GMS4.0的新的變更:

 GMS變更部分

1Google Legal Settings

If device preloads GMS. Tapping the Google legal menu item brings up a pop-up activity which shows the

Google legal terms page. This mechanism is implemented by querying an activity which resolves

android.settings.TERMS intent. Currently, the GoogleServicesFramework app in GMS implements this

activity. GMS device implementations MUST preserve this mechanism, so that Google legal’ items can be

made available to the user.

2Location Settings

GMS devices are required to use the location provider implemented by Google Play services. As the Locationsettings menu in the AOSP Settings app heavily depend on the items injected withandroid.location.SettingInjectorService API, GMS device implementations MUST preserve thismechanism and the location settings item layouts in the Settings app.

Location Settings佈局如下圖所示:

                   

Location Settings佈局

3:Developer Options Settings

Android 7.0 or later devices MUST provide a menu in the Settings app which allows users to switch between available WebView providers on the device. Its user experience MUST align with the AOSP implementation.

4:Doze Extended for Android 7.0

    睡眠有新的擴充套件要求:

  Android 7.0 introduces the extended Doze mode which inherits all features of Android 6.0, and improves the battery saving performance by limiting further what an app can do in the background. All Android 7.0 or later handheld devices MUST support Doze Extended feature.

5:Runtime Permission

   要滿足以下要求:

   (1):All preloaded applications that use a dangerous permission MUST be compiled against the Android

6.0 or later SDK regardless of whether the device is upgraded from Android 5.x or has a fresh install

of Android 6.0.

   (2):Android 6.0 GMS includes GooglePackageInstaller app, which is a Google-signed, prebuilt version of AOSP PackageInstaller. Every GMS device has to preload GooglePackageInstaller in place of AOSP PackageInstaller. Note that it has to be preloaded as a privileged app, since AOSP PackageInstaller becomes a privileged app in Android 6.0.If a device is updated from previous version of Android to 6.0, then the PackageInstaller.apk in the

  (3):pre-6.0 system image must be replaced by GooglePackageInstaller.apk during OTA update process.

6:Combined Chrome/WebView

Chrome/WebView現在放到一起

7:Contacts Metadata Backup

   為避免客戶更換手機導致聯絡人丟失,新增儲存聯絡人的要求,具體如下:

Android 7.0 allows users to backup such contacts metadata in addition to contacts data so that they can getthe same exact contacts experience as they did on their old Android device, including usage stats, favorites,speed dial, custom merges, default photos, primary number + email settings, and more, when users get anew Android device.

Android 7.0 GMS includes necessary framework overlay files to set Google Play services as the sync

adapter for the information.

products/gms_overlay/packages/providers/ContactsProvider/res/values/config.xml ) This

feature MUST be supported by all Android 7.0 handheld devices.

8:Daydream

   VRCore is a new optional GMS app for the Google VR Services, which is supported by Android 7.0 or later devices.

要求和相關認證如下:

(1):The device MAY preload VRCore app according to the geo-availability.For GMS devices that declare android.hardware.vr.high_performance feature flag:

(2):The partner MUST sign VR MADA addendum. Please contact your TAM/BD for this.

(3):The device MUST preload VRCore app according to the geo-availability and successfully complete Daydream-ready certification.

9 Google將在201610月中旬釋出一個新的feature,在setting選單中將可以查詢到Device Certification status,將可以顯示對應此軟體版本是否已經通過Google CTS認證

具體如下文:

Device Certification status in Play 

A new feature is coming to the Google Play Store app in the upcoming release aimed for mid October that will enable end users, retailers, carriers, and OEMs to find the Device Certification status within the Settings menu. This shows whether the device build fingerprint was Google certified or not. This also indicates whether the device itself has a proper license for Google apps and has passed Google and Android compatibility testing. We encourage you to train your sales representatives to highlight this feature to end users at the point of sale.