> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/framework-plugins/extras/android.md).

# Android

Make sure to declare the required permissions in your `AndroidManifest.xml` in the client application:

```xml
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
```

### Dependency declaration <a href="#id-2-lanzamiento-simplificado" id="id-2-lanzamiento-simplificado"></a>

#### Set up the repository and base dependency <a href="#id-21-configurar-el-repositorio-y-la-dependencia-base" id="id-21-configurar-el-repositorio-y-la-dependencia-base"></a>

For security and maintenance reasons, the new components of the ***SDKMobile*** are stored in private repositories that require specific credentials to access them. You must obtain those credentials through the *support team* from **Facephi**.

Once the credentials have been obtained, the following code fragment must be included in the file **settings.gradle**:

```kts
mavenCentral()
maven {
    Properties props = new Properties()
    def propsFile = new File('local.properties')
    if(propsFile.exists()){
        props.load(new FileInputStream(propsFile))
    }
    name="external"
    url = uri("https://facephicorp.jfrog.io/artifactory/maven-pro-fphi")
    credentials {
        username = props["artifactory.user"] ?: System.getenv("USERNAME_ARTIFACTORY")
        password = props["artifactory.token"] ?: System.getenv("TOKEN_ARTIFACTORY")
    }
}
```

The credentials will be included in the file *local.properties* with the following structure:

```bash
artifactory.user=YOUR_CREDENTIALS_USERNAME
artifactory.token=YOUR_CREDENTIALS_TOKEN
```

The other option is to set the environment variables and retrieve them with the command **System.getenv()** as shown in the code.
