testBlockCertificates

 

Test package: android.securityandroid.security.cts.CertificateTest#testBlockCertificates....(fail)junit.framework.AssertionFailedError: Blocked certificates: [C0:60:ED:44:CB:D8:81:BD:0E:F8:6C:0B:A2:87:DD:CF:81:67:47:8C] at android.security.cts.CertificateTest.testBlockCertificates(CertificateTest.java:51) 

 

Steps to remove block certificate :

1] Find out the block certificate. That we will get from CTS test case mention above. Search in project : $cd gingerbread/libcore/luni/src/main/files/cacerts

2] $grep C0:60:ED:44:CB:D8:81:BD:0E:F8:6C:0B:A2:87:DD:CF:81:67:47:8C *It return name certificate file name given below$c0cafbd2.0:SHA1 Fingerprint=C0:60:ED:44:CB:D8:81:BD:0E:F8:6C:0B:A2:87:DD:CF:81:67:47:8C

3] $ rm c0cafbd2.0

4] cd ..

/5] $cd gingerbread/libcore/luni/src/main/files/

6] Run the libcore/luni/src/main/files/certimport.sh to regenerate the libcore/luni/src/main/files/cacerts.bks? and update shows it is included in that version.Make new build and test same case it will get passed this time.

你可能感兴趣的:(c,File,search,Build)