switching from ro.secure to ro.debuggable for relaxing ssl cert check.

Conflicts:

	core/java/android/net/SSLCertificateSocketFactory.java
This commit is contained in:
Debajit Ghosh
2010-03-04 15:25:48 -08:00
parent f3e7f5dce3
commit 0dc59b00f2

View File

@@ -158,7 +158,7 @@ public class SSLCertificateSocketFactory extends SSLSocketFactory {
private synchronized SSLSocketFactory getDelegate() {
// Relax the SSL check if instructed (for this factory, or systemwide)
if (!mSecure || ("0".equals(SystemProperties.get("ro.secure")) &&
if (!mSecure || ("1".equals(SystemProperties.get("ro.debuggable")) &&
"yes".equals(SystemProperties.get("socket.relaxsslcheck")))) {
if (mInsecureFactory == null) {
if (mSecure) {