ProviderInstaller | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Nested Classes | Constants | Ctors | Methods | Inherited Methods | [Expand All]
public class

# ProviderInstaller

extends Object

java.lang.Object
↳ | com.google.android.gms.security.ProviderInstaller

## Class Overview

A utility class for installing a dynamically updatable `Provider` to replace the platform default provider.

## Summary

Nested Classes
interface | ProviderInstaller.ProviderInstallListener | Callback for notification of the result of provider installation.

Constants
String | PROVIDER_NAME |

Public Constructors
| ProviderInstaller()

Public Methods
static void | installIfNeeded(Context context) Installs the dynamically updatable security provider, if it's not already installed.
static void | installIfNeededAsync(Context context, ProviderInstaller.ProviderInstallListener listener) Asynchronously installs the dynamically updatable security provider, if it's not already installed.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Constants

#### public static final String PROVIDER_NAME

Constant Value: "GmsCore_OpenSSL"

## Public Constructors

#### public ProviderInstaller ()

## Public Methods

#### public static void installIfNeeded (Context context)

Installs the dynamically updatable security provider, if it's not already installed.

##### Throws

GooglePlayServicesRepairableException |
GooglePlayServicesNotAvailableException |

#### public static void installIfNeededAsync (Context context, ProviderInstaller.ProviderInstallListener listener)

Asynchronously installs the dynamically updatable security provider, if it's not already installed. This method must be called on the UI thread.

##### Parameters

listener | called when the installation completes