Security Provider APIs
The Android Framework relies on Security Providers to provide secure network communications. However, you might find intermittent vulnerabilities in the default security provider. To protect against such vulnerabilities, Google Play Services provides a way to automatically update the security provider to enhance device protection. The kony.gms.installSecurityProvider and kony.gms.installSecurityProviderAsync APIs install a new security provider in the application process, GmsCore_OpenSSL, that is set as the default security provider for the app. The security provider must be installed every time you restart an application process. By using the security provider APIs, you can install the security patches anytime during the application life cycle.
The Security Provider APIs use the kony.gms
namespace and contain the following API elements.
Function | Description |
---|---|
kony.gms.getSecurityProvidersList
|
Returns a list of names all the providers that were installed during the life cycle of the app. |
kony.gms.installSecurityProvider
|
Installs the security provider from Google Play Services into the application's process synchronously, and sets the provider as the default security provider |
kony.gms.installSecurityProviderAsync
|
Installs the security provider from Google Play Services into the application's process asynchronously, by replacing the current security provider. |
By using the kony.gms.installSecurityProvider
or kony.gms.installSecurityProviderAsync
APIs, you can ensure that the device has the latest updates that protect against security exploits. The kony.gms.getSecurityProvidersList
API returns a list of all the providers (by name) that were installed during the app life cycle.