When I try to publish my app in the Google Play Developer Console I get an error that the used version of libpng is vulnerable.
The vulnerabilities were fixed in libpng v1.0.66, v.1.2.56, v.1.4.19, v1.5.26 or higher. You can find more information about how resolve the issue in this Google Help Center article https://support.google.com/faqs/answer/7011127.
However, I do not need libpng at all so I do not want to upgrade but instead remove it. My app uses OpenCV 2.4.11 and Tesseract (which again comes with leptonica). I recompiled OpenCV and Tesseract after setting the HAVE_LIBPNG flag to false using ndk-build.
When inspecting my apk file there is no libpng in the libraries folder.
Why does Google keep rejecting the app? What else can I do to get the app accepted?
Any ideas are appreciated.
Edit: I have read Android: Removing OpenCV older version will resolve Libpng Vulnerability warning?. I do not want to update to OpenCV 3.1 but simply remove libpng from my App. I am not using it, so a smaller apk would also be a benefit from a simple removal.
HAVE_PNG
rather than defining it to have the value 0/false? (for OpenCV that is. Tessercat might expect you to defineHAVE_LIBPNG
as 0). – Michaelcvconfig.h
. Where/whether that file exists might differ between different OpenCV versions. – Michael