# Install eSIM

Use the `installProfile` to install an eSIM profile on a user's device. The device operating system will show up an installation wizard for the user.&#x20;

Use the output of the `getProfile` method (see [activate-inventory-item](https://docs.giga.store/android-sdk/activate-inventory-item "mention")) to install a dedicated profile on the device.

```kotlin
val profile = <use getProfile method>
Gigastore.installProfile(CONTEXT_PLACEHOLDER,
                         profile) { profile, error ->
    Log.i("GigastoreSDK", "Profile: $profile")
    Log.i("GigastoreSDK", "Error: $error")
})
```

Make sure to replace `CONTEXT_PLACEHOLDER` with your current Activity or Application context.

This function returns either the installed profile or an error object containing the error.

### Release Mode

To install an eSIM profile directly on an Android app, the app needs to be signed properly, and the SHA1 of the Keystore needs to be registered at Gigastore.

As debug builds often don't sign the app with the production keystore, please make sure to test the installation with the keystore by running a **Release Variant Build**.
