mirror of https://github.com/M66B/FairEmail.git
parent
2fde15a52c
commit
7195603350
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue