Install provider

This commit is contained in:
M66B
2023-12-06 21:25:36 +01:00
parent 2fde15a52c
commit 7195603350
11 changed files with 93 additions and 8 deletions

View File

@@ -0,0 +1,26 @@
package eu.faircode.email;
import android.content.Intent;
import com.google.android.gms.security.ProviderInstaller;
public class ApplicationSecure extends ApplicationEx implements ProviderInstaller.ProviderInstallListener {
@Override
public void onCreate() {
super.onCreate();
Log.i("Security provider check");
ProviderInstaller.installIfNeededAsync(this, this);
}
@Override
public void onProviderInstalled() {
Log.i("Security provider installed");
}
@Override
public void onProviderInstallFailed(int errorCode, Intent recoveryIntent) {
Log.i("Security provider install failed" +
" errorCode=" + errorCode +
" recoveryIntent=" + recoveryIntent);
}
}