How to determine which dependency causes Google Play OpenSSL warning?
Is there any option to pinpoint actual dependency from there?
Yes, but you need to know the offending OpenSSL version and you need grep
. Windows find
won't do.
First, take note of the offending OpenSSL version. For sake of argument, say its due to OpenSSL 1.0.1h
.
Next, gather a list of your dependencies and their top level folders. For sake of argument, say its $HOME/Desktop/aosp-app
, $HOME/sdk-a
, /usr/local/sdk-b
and /opt/local/sdk-c
.
Finally, for the top level directories:
grep -R '1.0.1h' "$HOME/Desktop/aosp-app"
grep -R '1.0.1h' "$HOME/sdk-a"
grep -R '1.0.1h' /usr/local/sdk-b
grep -R '1.0.1h' /opt/local/sdk-c
You don't need grep -iR
, which is a case insensitive (-i
) recursive (-R
) search. You also don't need grep -IR
, which is a recursive (-R
) search that skips binary files (-I
).
All of this works because OpenSSL library embeds its version in the data section as a string. Eventually, you will hit on the culprit, which is probably an SDK that comes pre-built as a shared object but includes OpenSSL as a static library. One SDK seems to be identified frequently, and it uses cURL which is built against a static OpenSSL library.
If you have JAR files and suspect them, then you can perform the following as a quick test:
find <dir> -name '*.jar' -exec grep -R '1.0.1h' {} \;
The command will look in the directory <dir>
and its subdirectories. It will search for files with the *.jar
extension. When it finds one, it will run grep
on it looking for the string. find
will do it for every *.jar
it finds.
Google Mandatory update to latest OpenSSL
Finally got the answer for this
1. Update Android Studio to 2.1.1 i.e. latest
2. Update build tools wrapper etc all kinds of tools.
3. Update all your libraries in my case major issue was from this side
4. Clean build after this and you are good to go.
5. Check again for OpenSSL version and now you are up-to-date.
Related Topics
"Failure Delivering Result " - Onactivityforresult
How to Click or Tap on a Textview Text
Disabling User Dragging on Bottomsheet
Super.Oncreate(Savedinstancestate);
Viewpager in a Nestedscrollview
How to Use Autocompletetextview and Populate It with Data from a Web API
Ssl Proxy/Charles and Android Trouble
Cannot Resolve Symbol 'Appcompatactivity'
How to Receive Serial Data Using Android Bluetooth
How to Check Edittext's Text Is Email Address or Not
Slide a Layout Up from Bottom of Screen
Android Volley + JSONobjectrequest Caching
How to Use View Pager with Views (Not with Fragments)
Design Layout for Multiple Screens
How to Get Unique Device Hardware Id in Android
Publish an Android Library to Maven with Aar and Sources Jar