addPlatformTrustedCertificates
Add all of the host platform's trusted root certificates. This set varies by platform (Android vs. Java), by platform release (Android 4.4 vs. Android 9), and with user customizations.
Most TLS clients that connect to hosts on the public Internet should call this method. Otherwise it is necessary to manually prepare a comprehensive set of trusted roots.
If the host platform is compromised or misconfigured this may contain untrustworthy root certificates. Applications that connect to a known set of servers may be able to mitigate this problem with certificate pinning.