mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-23 15:29:15 +00:00
parent
714459c528
commit
80624f844c
2 changed files with 14 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
package com.beemdevelopment.aegis.importers;
|
package com.beemdevelopment.aegis.importers;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.content.pm.PackageInfo;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
|
|
||||||
import com.beemdevelopment.aegis.encoding.Base64;
|
import com.beemdevelopment.aegis.encoding.Base64;
|
||||||
|
@ -39,6 +40,18 @@ public class SteamImporter extends DatabaseImporter {
|
||||||
return files[0];
|
return files[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isInstalledAppVersionSupported() {
|
||||||
|
PackageInfo info;
|
||||||
|
try {
|
||||||
|
info = requireContext().getPackageManager().getPackageInfo(_pkgName, 0);
|
||||||
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return info.versionCode < 7460894;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public State read(InputStream stream, boolean isInternal) throws DatabaseImporterException {
|
public State read(InputStream stream, boolean isInternal) throws DatabaseImporterException {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -425,7 +425,7 @@
|
||||||
<string name="importer_help_google_authenticator"><b>Only database files from Google Authenticator v5.10 and prior are supported</b>.\n\nSupply a copy of <b>/data/data/com.google.android.apps.authenticator2/databases/databases</b>, located in the internal storage directory of Google Authenticator.</string>
|
<string name="importer_help_google_authenticator"><b>Only database files from Google Authenticator v5.10 and prior are supported</b>.\n\nSupply a copy of <b>/data/data/com.google.android.apps.authenticator2/databases/databases</b>, located in the internal storage directory of Google Authenticator.</string>
|
||||||
<string name="importer_help_microsoft_authenticator">Supply a copy of <b>/data/data/com.azure.authenticator/databases/PhoneFactor</b>, located in the internal storage directory of Microsoft Authenticator.</string>
|
<string name="importer_help_microsoft_authenticator">Supply a copy of <b>/data/data/com.azure.authenticator/databases/PhoneFactor</b>, located in the internal storage directory of Microsoft Authenticator.</string>
|
||||||
<string name="importer_help_plain_text">Supply a plain text file with a Google Authenticator URI on each line.</string>
|
<string name="importer_help_plain_text">Supply a plain text file with a Google Authenticator URI on each line.</string>
|
||||||
<string name="importer_help_steam">Supply a copy of <b>/data/data/com.valvesoftware.android.steam.community/files/Steamguard-*.json</b>, located in the internal storage directory of Steam.</string>
|
<string name="importer_help_steam"><b>Steam v3.0 and newer are not supported</b>. Supply a copy of <b>/data/data/com.valvesoftware.android.steam.community/files/Steamguard-*.json</b>, located in the internal storage directory of Steam.</string>
|
||||||
<string name="importer_help_totp_authenticator">Supply a TOTP Authenticator export file.</string>
|
<string name="importer_help_totp_authenticator">Supply a TOTP Authenticator export file.</string>
|
||||||
<string name="importer_help_winauth">Supply a WinAuth export file.</string>
|
<string name="importer_help_winauth">Supply a WinAuth export file.</string>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue