如何选择正确的android CTS版本
我为一家手机供应商工作,我们的手机基于 Android 2.3.4_r1 GRJ22 ,但是当我运行 CTS 时,OsVersionTest 由于测试用例中不支持 2.3.4 而失败。
如何选择CTS的版本?
i work for a phone vendor, our phone was based on Android 2.3.4_r1 GRJ22 , but when i ran the CTS , the OsVersionTest fails for the reason of not supporting 2.3.4 in test case.
how to choose the version of CTS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能对于你需要的东西来说太晚了(我最近才真正开始认真使用 CTS),但我想我无论如何都会给出一点答案。
据我了解(我可能是错的),您可以在以下位置下载适用于一系列 Android 版本的 CTS:
http://source.android.com/compatibility/downloads.html
我认为 2.3 版本应该适合你,因为我不认为次要版本会阻止它运行(在我的测试中似乎是这样)。
从 4.0 开始,CTS 位于 Android 开源代码中,因此您可以自己构建它,尽管我在那里遇到了问题(请参阅 https://stackoverflow.com/questions/10400938/building-working-cts-for-user-build 例如),因为您使用的是 2.3,所以您无论如何都无法构建它。
Probably way too late for what you need (I only really started serious use of CTS recently), but figured I give what bit of an answer I had anyway.
As I understand it (and I could be wrong), you can download CTS for a bunch of versions of Android at
http://source.android.com/compatibility/downloads.html
I would think that the 2.3 build should work for you as I don't think minor versions prevent it from running (and that seems true in my tests).
From 4.0 on, CTS is in the Android Open Source code so you can build it yourself although I've had issues there (see https://stackoverflow.com/questions/10400938/building-working-cts-for-user-build for example) and since you are on 2.3 you can't build it anyway.