Why is Volley calling https://safebrowsing.google.com? - android

Every once in a while, typically when I do a new install of my App, I will attempt to authenticate with our HTTPS Auth endpoint, the request takes a very long time (around 20-40 seconds) and then fails with an unknown error. I turned on Verbose Volley tracing and I see this nonsense about safebrowsing.google.com. What the heck is happening and how do I make it stop? I am using a Nexus 5 with 4.4 KitKat over wifi.
2662 qtaguid I Failed write_ctrl(u 71) res=-1 errno=22
2662 qtaguid I Untagging socket 71 failed errno=-22
2662 NetworkManagementS.. W untagSocket(71) failed with errno -22
2662 Finsky D [1] 3.onErrorResponse: Verification id=7 error response com.android.volley.NoConnectionError: java.net.UnknownHostException: Unable to resolve host "safebrowsing.google.com"
: No address associated with hostname
2662 Volley D [1] Request.finish: 40045 ms: [ ] https://safebrowsing.google.com/safebrowsing/clientreport/download 0xc9395b26 NORMAL 11

I search inside Volley's code and can't find the URL "safebrowsing.google.com"
I think that maybe your Auth endpoint doesn't accept your request params and redirects you to this domain.

It is Google feature to detect potentially harmful app:
https://support.google.com/accounts/answer/2812853?hl=en
Android calc hash of your app and send to Google for check on this address:
https://safebrowsing.google.com/safebrowsing/clientreport/download
If apk unknown it can upload it to Google for check.

Related

Http failure response for xxx 0 Unknown Error

PostGraphile v4.9.2 server listening on port 5001
‣ GraphQL API: http://0.0.0.0:5001/graphql
how can i change http to https. i mean, i want https://0.0.0.0:5001/graphql
because, i am getting error while debugging my ionic capacitor app for android
E/Capacitor/Console: File: http://localhost/vendor-es2018.js - Line 41539 -
Msg: ERROR Error: Http failure response for http:// mydomain .com:5001/graphql: 0 Unknown Error
i think it is about http problem but as you see it is unknown error. Thanks in advance
i found the solution here: How to allow all Network connection types HTTP and HTTPS in Android (9) Pie?
i allowed http requests in manifest.xml and i added networkSecurityConfig.xml
Thank you all

Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'

I've recently tried implementing Pusher's Chatkit into my android app along with some Kotlin plugins and am now running into this error that I cannot resolve.
E/Drawable: Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
the error I'm getting right below it is:
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
Which is through throwing me for a loop because my internet is working fine although a couple lines further down, I get:
W/Firestore: (21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Process 15216 terminated.
Note: I've started to get this error above about not having a good connection ever since I started working more at cafes instead of at home since I needed to get out. In order to work offline, firebase asked me to opt into an offline mode I've been getting this notification of not being able to connect ever since.
I am following along to the getting started page here and have completed up to the end of the "Displaying Messages" section however when I go to the activity, it just stalls and blanks out. I have been searching StackO and the rest of the web for the past 2 days to try to resolve the conflict to no avail. All of the similar posts I have looked at dont seem to resolve the issue.
similarPost#1 but I'm not trying to save to a bitmap
Here is the entire stack trace:
E/Drawable: Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/DynamiteModule: Local module descriptor class for providerinstaller not found.
I/DynamiteModule: Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller: Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
I/ghborsbookshel: The ClassLoaderContext is a special shared library.
I/chatty: uid=10086(com.example.android_myneighborsbookshelf) AsyncTask #2 identical 1 line
I/ghborsbookshel: The ClassLoaderContext is a special shared library.
V/NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
W/ghborsbookshel: Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (light greylist, reflection)
I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL
W/Firestore: (21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Process 15216 terminated.
It seems to have fixed itself except for the unable to decode stream error however it doesn't crash, it just shows up in the log.
I checked for updates, cleaned, rebuild, invalidated caches and restarted, and shut down my emulator. I also restarted my computer completely 2x and that seems to have fixed it.

Firebase Firestore Backend Failure in SSL library, usually a protocol error error:140740B5:SSL routines:SSL23_CLIENT_HELLO:no ciphers

I am getting this error while running Firestore data fetch in android 4.4.2
I have tried adding the TSL 1.2 support for the app but it is still not fixing the issue with Firestore.
1-26 18:50:40.901 16934-17082/package I/Firestore: (0.6.6-dev) [ExponentialBackoff]: Backing off for 33087 ms (base delay: 25624 ms, delay with jitter: 36533 ms, last attempt: 3446 ms ago)
11-26 18:50:44.421 16934-17082/net.insi8.word I/Firestore: (0.6.6-dev) [WriteStream]: (42386850) Stream closed with status: Status{code=UNAVAILABLE, description=null, cause=javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x642b6078: Failure in SSL library, usually a protocol error
error:140740B5:SSL routines:SSL23_CLIENT_HELLO:no ciphers available (external/openssl/ssl/s23_clnt.c:486 0x5eceb6fd:0x00000000)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:448)
at io.grpc.okhttp.OkHttpProtocolNegotiator.negotiate(OkHttpProtocolNegotiator.java:92)
at io.grpc.okhttp.OkHttpProtocolNegotiator$AndroidNegotiator.negotiate(OkHttpProtocolNegotiator.java:147)
at io.grpc.okhttp.OkHttpTlsUpgrader.upgrade(OkHttpTlsUpgrader.java:63)
at io.grpc.okhttp.OkHttpClientTransport$2.run(OkHttpClientTransport.java:466)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x642b6078: Failure in SSL library, usually a protocol error
error:140740B5:SSL routines:SSL23_CLIENT_HELLO:no ciphers available (external/openssl/ssl/s23_clnt.c:486 0x5eceb6fd:0x00000000)
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:405)
... 8 more
}.
11-26 18:50:44.422 16934-17082/package I/Firestore: (0.6.6-dev) [ExponentialBackoff]: Backing off for 81781 ms (base delay: 60000 ms, delay with jitter: 81785 ms, last attempt: 4 ms ago)
11-26 18:50:44.423 16934-17082/package I/Firestore: (0.6.6-dev) [WriteStream]: stream callback skipped by CloseGuardedRunner.
11-26 18:50:50.902 16934-17082/package I/Firestore: (0.6.6-dev) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds
I was running into the exact same problem in Android 4.4.
For me, it was Google Play Service being out of date. I found in my logs:
Google Play services out of date. Requires 12451000 but found 4325036
You can solve this by going into the Google Play Store, and installing the update for Google Play services.
I had the Failure in SSL library, usually a protocol error when my wifi was down and I had a bad mobile internet connection. When I noticed that my wifi was off and I turned it on again and I had a good internet connection, the error was gone.

Handshake failed with Volley or Retrofit Android

I'm making an app for Android 4.4 and above, and I'm trying to do an https request, I first tried with Retrofit and it gives me this:
V/error: javax.net.ssl.SSLHandshakeException: Handshake failed
I thoug it was something about the Retrofit API, but later I tried with Volley and it gives me this:
SSL handshake aborted: ssl=0xf311e9c8: Failure in SSL library, usually a protocol error
error:10000410:SSL routines:OPENSSL_internal:SSLV3_ALERT_HANDSHAKE_FAILURE (third_party/openssl/boringssl/src/ssl/tls_record.cc:562 0xd4fba9c8:0x00000001)
error:1000009a:SSL routines:OPENSSL_internal:HANDSHAKE_FAILURE_ON_CLIENT_HELLO (third_party/openssl/boringssl/src/ssl/handshake.cc:464 0xd7936bd8:0x00000000)
12-29 16:37:53.551 13763-14823/xxx.xxx.xx I/qtaguid: Untagging socket 47
12-29 16:37:53.571 13763-13763/xxx.xx.xx V/error: javax.net.ssl.SSLHandshakeException: Handshake failed
In fact, is the same issue, I don't know if I need add something to my app, due this request works perfectly with postman.
The weird thing is, before we migrate the services to the new server, I was working with a server with HTTP and it works perfectly. I don't know what I must add about security to my app.

Is this a normal SSL error?

I am seeing lots of SSL handshake issues in my android App
E/AndroidRuntime(8853): Caused by: javax.net.ssl.SSLHandshakeException: Handshake failed
E/AndroidRuntime(8853): at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:390)
This is what I am seeing on the server side
SSL_do_handshake: -1
SSL_get_error: 2
reusable connection: 0
post event 00000000013DA7A0
delete posted event 00000000013DA7A0
SSL handshake handler: 0
SSL_do_handshake: 1
SSL: TLSv1.2, cipher: "ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(128) Mac=AEAD"
reusable connection: 1
http wait request handler
malloc: 000000000132A8E0:1024
SSL_read: -1
SSL_get_error: 2
free: 000000000132A8E0
post event 00000000013DA7A0
delete posted event 00000000013DA7A0
http wait request handler
malloc: 000000000132A8E0:1024
I am wondering if these issues are related and if someone went through this can give me some headstart on where to debug in Android and/or Nginx

Categories

Resources