关闭

关于CTS的testPackageSignatures()

标签: androidstringnull
3046人阅读 评论(5) 收藏 举报

07-19 16:13:32.729 I/TestRunner(  720):
junit.framework.AssertionFailedError: These packages should not be
signed with a well known key: [com.android.soundrecorder,
com.android.voicedialer, com.android.defcontainer,
com.android.launcher, com.android.quicksearchbox,
com.android.contacts, com.android.inputmethod.latin,
com.android.phone, com.qualcomm.wiper, com.android.calculator2,
com.android.htmlviewer, com.android.globaltime,
com.android.MultiplePdpTest, com.android.bluetooth,
com.android.providers.calendar, com.android.calendar,
com.android.browser, com.android.music, com.cooliris.media,
com.android.stk, com.android.qualcomm,
com.android.providers.downloads.ui, com.android.globaltimetests,
com.android.providers.userdictionary, android.tts, com.android.mms,
com.android.provision, com.android.providers.media,
com.android.certinstaller, com.qualcomm.location.qvtester,
com.qualcomm.permission.locapi, com.quicinc.CrashLogger,
touchscreen.test, android, com.quicinc.fmradio, com.android.settings,
com.android.providers.contacts, com.qualcomm.qx.neocore,
com.android.protips, com.qualcomm.alerter,
com.android.providers.applications, com.qualcomm.wifi.softap,
com.android.providers.drm, com.android.musicvis, com.android.term,
com.android.systemui, com.android.wallpaper.livepicker,
com.android.speechrecorder, com.android.development,
com.android.packageinstaller, com.android.wallpaper,
com.android.providers.telephony,
com.android.providers.subscribedfeeds, com.svox.pico,
com.android.camera, com.android.email, com.qualcomm.cabl,
com.android.spare_parts, com.android.deskclock,
com.android.magicsmoke, com.android.providers.settings,
com.android.preflight.media, com.android.providers.downloads,
com.qualcomm.privinit, com.android.server.vpn]

 

See code snippet under ./tests/tests/
security/src/android/security/cts/PackageSignatureTest.java

        for (PackageInfo packageInfo : allPackageInfos) {
            String packageName = packageInfo.packageName;
            if (packageName != null && !
isWhitelistedPackage(packageName)) {
                for (Signature signature : packageInfo.signatures) {
                    if (wellKnownSignatures.contains(signature)) {

badPackages.add(packageInfo.packageName);                    }
                }
            }
        }

        assertTrue("These packages should not be signed with a well
known key: " + badPackages,
                badPackages.isEmpty());

0
0

猜你在找
【视频】C语言及程序设计(讲师:贺利坚)
【视频】Python爬虫工程师培养课程全套(讲师:韦玮)
【视频】Python全栈开发入门与实战(讲师:李杰)
【视频】2017软考网络规划设计师套餐(讲师:任铄)
【视频】2017软考软件设计师套餐(讲师:任铄)
【视频】2017软考信息系统项目管理师套餐(讲师:任铄)
【视频】软考(高级)项目经理实战营(讲师:张传波)
【视频】微信公众平台开发套餐(讲师:刘运强)
深度学习原理+实战+算法+主流框架套餐(讲师:唐宇迪)
2017系统集成项目管理工程师通关套餐(讲师:徐朋)
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:140989次
    • 积分:1721
    • 等级:
    • 排名:千里之外
    • 原创:16篇
    • 转载:61篇
    • 译文:1篇
    • 评论:74条
    文章分类
    最新评论