Lookup: fix unencrypted HTTP requests by allowing cleartext traffic
Starting with Android 6 cleartext traffic may be disabled per app Manifest by setting "usesCleartextTraffic" explicitly to false which breaks all of the lookup calls that are not using SSL/TLS like e.g. "Whitepages". They simply fail with the "CLEARTEXT communication not supported" exception which is coming from okhttp.Connection.connect. This changes sets the respective Manifest value explicitly to false. Alternatively it could also be ommited completely which makes the HTTP requests behave exactly like before. More info see Android developer guide regarding the Manifest or https://koz.io/android-m-and-the-war-on-cleartext-traffic/ Change-Id: I242dc9575aed8b182f5cae8e3c4becd672e25517
Loading
Please register or sign in to comment