CTS source code analysis (a) - CTS Overview

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/chenxiaotao22/article/details/75151458

CTS source code analysis (a) --CTS Overview

  

1. What is CTS?
  
   Compatibility Test Suite Compatibility Test Suite

To put it plainly, it is a set of tools. Consisting of a set of software testing tools.

2, where there is this tool?    
      http://source.android.com/compatibility/download s.html

     What? To over the wall? Please themselves on this issue, I am not responsible for the marketing VPN, is not responsible for solving their own problems brush Brush router over the wall, and is not responsible for all the problems related to over the wall, all get their own.

3, how to download?

     What, will not download? I can not help you. But I'll give a hint. After entering the website, you will find a lot of content that can be downloaded. For example, first figure out the Android version you use, from Android 1.6 to Android 6.0, this can clear it.
    After entering the corresponding version of the location and found several to be downloaded,
      A, CDD, this compatibility is defined in the document, if you are a project manager or leader, you need to look at the product before confirming the need to take the Google CTS certification, this is of the basic requirements of the mobile phone of the machine, of course, Android TV, Android watches, Android tablet .... product definition requirements, technical staff and see just fine, no technical content, are defined.
     b, then a problem is the mobile phone chip is ARM or X86, we must find out, download the corresponding version of the corresponding documents on two mobile phone chips, such as downloading the Android 5.1 Arm chip test kit is Android 5.1 R1 Compatibility Test Suite (CTS) -ARM and Android 5.1 R1 CTS Verifier-x86 package two, we are generally referred to as CTS and CTSV.
    c, we also need to pay attention to a problem that is behind the R numbers are very important, because Google constantly changes, so from time to time the numbers will change back R, initially generally only change R1-R4, and later all the increased R7. So how do we choose the version R? The need and Google certification body, what version of the package corresponds to what version of GMS and CTS CTSV testing tools. GMS package we will get to speak.
    d, then we also need to download something, and that is the media file CTS (CTS Media Files), this is a test case required resources file, put it plainly, is a bunch of different formats of video and audio files. The original media file on a CTS, now Google have changed, the media file to the three, what's the difference I found no actual use, it may be later versions of some additional documents, we did not use, if the fear of a problem, anyway, with the latest version of it.

4. What is the GMS package?
   GMS called the Google Mobile Service, namely Google mobile services
   
     Google Mobile Services What is? Implement Google mobile services application set packages. Less bureaucratic, mainly a bunch of Google's APK, what jade white soup, is a bunch of radish.

5. What is Google Authorized?
   Android is open source, Android is free, however, it is important, however, GMS package is to make money.
   Some people say that my own online download and install Google Market APK, not free? Yes, it is free, but for the average person GMS packet confidentiality, the company does not free, confidential except there is also a technical problem, GMS whole package can not be installed in case the machine is not prefabricated, because some code changes, even if some single APK can be installed, but also prone to some problems.

6, CTS and GMS, your concept clear?  
     • CTS package - testing tools, running on the computer
     • GMS package - Google application set to run in the phone flat-panel TVs
 
Google GMS certification and CTS certification that the two statements sometimes mix

7, in fact, all three tools (some of the content we do not talk about, anyway, Google now fourth tool is not used, but you can also take a fourth authentication)
   we have just downloaded the two tools, there is also a after the tool is the GTS tool, this tool is in the factory gave money to Google, Google will download the URL GTS tools to manufacturers
       1, CTS test tool (test system compatibility)
       2, CTS Verifier test tool (automatic test can not be achieved using manual testing tools)
       3, GTS testing tools  Google Mobile Services Test Suite (GTS)


8, CTS testing and certification purposes 
   • Users need a variety of mobile phones, but want to apply compatible
   • Third-party developers need a compatible system
   • Ensure application development in all compatible Android operating properly on the device
   •基本原理就是利用测试APK调用对应的系统接口,保证系统对应接口按照谷歌的要求返回对应的值。
    •其实还有一个目的,谷歌可以收钱啦,凡是通过认证测试的机器都可以打上谷歌安卓的指定LOGO,这样可以忽悠大家,这个机器可是谷歌认证的,好东西啊,呵呵。

9、CTS的基本架构


10、看完了架构,就知道大概的情况了,就是手机和电脑用数据线连接上,CTS工具在电脑上跑,手机中集成对应的GMS包,这就是CTS测试基本情况。

Guess you like

Origin blog.csdn.net/chenxiaotao22/article/details/75151458