{"action":"created","issue":{"url":"https://api.github.com/repos/google/conscrypt/issues/347","repository_url":"https://api.github.com/repos/google/conscrypt","labels_url":"https://api.github.com/repos/google/conscrypt/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/google/conscrypt/issues/347/comments","events_url":"https://api.github.com/repos/google/conscrypt/issues/347/events","html_url":"https://github.com/google/conscrypt/issues/347","id":262991261,"node_id":"MDU6SXNzdWUyNjI5OTEyNjE=","number":347,"title":"ProviderInstaller silently fails","user":{"login":"FrankSalad","id":2359644,"node_id":"MDQ6VXNlcjIzNTk2NDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2359644?v=4","gravatar_id":"","url":"https://api.github.com/users/FrankSalad","html_url":"https://github.com/FrankSalad","followers_url":"https://api.github.com/users/FrankSalad/followers","following_url":"https://api.github.com/users/FrankSalad/following{/other_user}","gists_url":"https://api.github.com/users/FrankSalad/gists{/gist_id}","starred_url":"https://api.github.com/users/FrankSalad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrankSalad/subscriptions","organizations_url":"https://api.github.com/users/FrankSalad/orgs","repos_url":"https://api.github.com/users/FrankSalad/repos","events_url":"https://api.github.com/users/FrankSalad/events{/privacy}","received_events_url":"https://api.github.com/users/FrankSalad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-05T03:04:05Z","updated_at":"2018-11-15T08:01:08Z","closed_at":"2017-10-06T21:24:50Z","author_association":"NONE","body":"I'm calling `ProviderInstaller.installIfNeeded` on an HTC One Max with Android Version 4.4.2 and it appears to silently fail (it returns without throwing an exception)\r\n\r\nThe debug log seems to provide some detail:\r\n```\r\nD/ProviderInstallerWrapper(28010): Begin Provider Install Request\r\nW/dalvikvm(28010): VFY: unable to resolve virtual method 738: Landroid/content/ContextWrapper;.createCredentialProtectedStorageContext ()Landroid/content/Context;\r\nW/dalvikvm(28010): VFY: unable to resolve virtual method 739: Landroid/content/ContextWrapper;.createDeviceProtectedStorageContext ()Landroid/content/Context;\r\nW/dalvikvm(28010): VFY: unable to resolve static field 313 (SUPPORTED_ABIS) in Landroid/os/Build;\r\nW/dalvikvm(28010): VFY: unable to resolve static field 313 (SUPPORTED_ABIS) in Landroid/os/Build;\r\nW/dalvikvm(28010): VFY: unable to resolve instance field 243\r\nW/dalvikvm(28010): VFY: unable to resolve virtual method 738: Landroid/content/ContextWrapper;.createCredentialProtectedStorageContext ()Landroid/content/Context;\r\nW/dalvikvm(28010): VFY: unable to resolve virtual method 739: Landroid/content/ContextWrapper;.createDeviceProtectedStorageContext ()Landroid/content/Context;\r\nW/dalvikvm(28010): VFY: unable to find class referenced in signature (Laoya;)\r\nW/dalvikvm(28010): VFY: unable to resolve virtual method 720: Landroid/content/Context;.isDeviceProtectedStorage ()Z\r\nW/dalvikvm(28010): VFY: unable to resolve virtual method 1305: Landroid/os/UserHandle;.isOwner ()Z\r\nW/dalvikvm(28010): VFY: unable to resolve virtual method 689: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;\r\nW/dalvikvm(28010): VFY: unable to resolve virtual method 715: Landroid/content/Context;.getSystemService (Ljava/lang/Class;)Ljava/lang/Object;\r\nW/dalvikvm(28010): VFY: unable to resolve virtual method 836: Landroid/content/pm/PackageManager;.isInstantApp (Ljava/lang/String;)Z\r\nV/NativeCrypto(28010): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 259 native methods...\r\nE/dalvikvm(28010): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSniHostnameFromParams\r\nW/dalvikvm(28010): VFY: unable to resolve check-cast 3056 (Ljavax/net/ssl/SNIServerName;) in Lcom/google/android/gms/org/conscrypt/Platform;\r\nE/dalvikvm(28010): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.setParametersSniHostname\r\nW/dalvikvm(28010): VFY: unable to resolve new-instance 3055 (Ljavax/net/ssl/SNIHostName;) in Lcom/google/android/gms/org/conscrypt/Platform;\r\nE/dalvikvm(28010): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.setParametersSniHostname\r\nW/dalvikvm(28010): VFY: unable to resolve new-instance 3055 (Ljavax/net/ssl/SNIHostName;) in Lcom/google/android/gms/org/conscrypt/Platform;\r\nW/dalvikvm(28010): Unable to resolve superclass of Lcom/google/android/gms/org/conscrypt/OpenSSLExtendedSessionImpl; (3046)\r\nW/dalvikvm(28010): Link of class 'Lcom/google/android/gms/org/conscrypt/OpenSSLExtendedSessionImpl;' failed\r\nE/dalvikvm(28010): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.unwrapSSLSession\r\nW/dalvikvm(28010): VFY: unable to resolve instanceof 1717 (Lcom/google/android/gms/org/conscrypt/OpenSSLExtendedSessionImpl;) in Lcom/google/android/gms/org/conscrypt/Platform;\r\nW/dalvikvm(28010): Unable to resolve superclass of Lcom/google/android/gms/org/conscrypt/OpenSSLExtendedSessionImpl; (3046)\r\nW/dalvikvm(28010): Link of class 'Lcom/google/android/gms/org/conscrypt/OpenSSLExtendedSessionImpl;' failed\r\nE/dalvikvm(28010): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession\r\nW/dalvikvm(28010): VFY: unable to resolve new-instance 1717 (Lcom/google/android/gms/org/conscrypt/OpenSSLExtendedSessionImpl;) in Lcom/google/android/gms/org/conscrypt/Platform;\r\nW/dalvikvm(28010): Unable to resolve superclass of Lcom/google/android/gms/org/conscrypt/OpenSSLExtendedSessionImpl; (3046)\r\nW/dalvikvm(28010): Link of class 'Lcom/google/android/gms/org/conscrypt/OpenSSLExtendedSessionImpl;' failed\r\nI/ProviderInstaller(28010): Installed default security provider GmsCore_OpenSSL\r\nD/ProviderInstallerWrapper(28010): Provider Installed in 190ms\r\n```\r\n\r\nBut I am later unable to connect to my servers that require us to support TLS 1.2:\r\n```\r\nHTTP FAILED: java.net.UnknownServiceException: Unable to find acceptable protocols. isFallback=false, modes=[ConnectionSpec(cipherSuites=[TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA, TLS_RSA_WITH_CAMELLIA_256_CBC_SHA, TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA, TLS_RSA_WITH_CAMELLIA_128_CBC_SHA], tlsVersions=[TLS_1_2, TLS_1_1], supportsTlsExtensions=true)], supported protocols=[SSLv3, TLSv1]\r\n```\r\n\r\nIf I disable proguard `minifyEnabled false` and resource shrinking, the problem still occurs. "},"comment":{"url":"https://api.github.com/repos/google/conscrypt/issues/comments/438951014","html_url":"https://github.com/google/conscrypt/issues/347#issuecomment-438951014","issue_url":"https://api.github.com/repos/google/conscrypt/issues/347","id":438951014,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODk1MTAxNA==","user":{"login":"alexnuts","id":3705064,"node_id":"MDQ6VXNlcjM3MDUwNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/3705064?v=4","gravatar_id":"","url":"https://api.github.com/users/alexnuts","html_url":"https://github.com/alexnuts","followers_url":"https://api.github.com/users/alexnuts/followers","following_url":"https://api.github.com/users/alexnuts/following{/other_user}","gists_url":"https://api.github.com/users/alexnuts/gists{/gist_id}","starred_url":"https://api.github.com/users/alexnuts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexnuts/subscriptions","organizations_url":"https://api.github.com/users/alexnuts/orgs","repos_url":"https://api.github.com/users/alexnuts/repos","events_url":"https://api.github.com/users/alexnuts/events{/privacy}","received_events_url":"https://api.github.com/users/alexnuts/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T08:01:08Z","updated_at":"2018-11-15T08:01:08Z","author_association":"NONE","body":"> This occurred because I was applying `ProviderInstaller` to a leaked/stale `Context`. (I was keeping the Application context in a singleton's field and using that.)\r\n\r\nHey, Frank\r\nCould you respond how you have fixed this issue, I got the same on android with api 19?"}}
{"actor":{"display_login":"alexnuts"}}