public class PCSDK
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PCSDK.PCQRType
QR-code types to process by PCSDK
|
| Modifier and Type | Field and Description |
|---|---|
static int |
PC_LOG_DEBUG
Log level - debug logs to logcat
|
static int |
PC_LOG_KEY_VALUES
Log level - log key values to logcat.
|
static int |
PC_LOG_VERBOSE
Log level - log key values to logcat.
|
static int |
PC_NO_LOGGING
Log level - no logging
|
| Constructor and Description |
|---|
PCSDK() |
| Modifier and Type | Method and Description |
|---|---|
static PCSDK.PCQRType |
analyzeQRValue(java.lang.String qrValue)
Function to analyze data from scanned QR-code
Should be used to detect if PCSDK can process QR-code data |
boolean |
checkRoot()
Function to check if device is rooted
Returns true if root detected Does not checks if BusyBox presents |
void |
destroy()
Destructor
|
long |
getRealTime()
Returns real rime provided by google server
|
java.util.HashMap<java.lang.String,java.lang.String> |
getSpyAppsList()
Function to build list of potentially dangerous installed apps which include:
(1) Apps with PACKAGE_USAGE_STATS and SYSTEM_ALERT_WINDOW privileges excluding system apps
(2) Apps from predefined blacklist which might be dangerous Apps with privileges PACKAGE_USAGE_STATS and SYSTEM_ALERT_WINDOW can track active app name in any time and show it's own content over the top This ability is required to make overlay-attack Function excludes following apps: com.sec.android.easyMover com.google.android.apps.nbu.files |
java.lang.String |
getVersion()
Returns PCSDK SDK version
|
void |
init(Context context)
Lib initialization.
|
void |
pause()
Deprecated.
|
void |
resume()
Deprecated.
|
void |
setHandlesBackgroundTimeout(int timeout)
Defines maximum period (in milliseconds), during which handles for private keys will be kept
while the app in the background.
|
void |
setLogLevel(int logLevel)
Set PCSDK SDK log level
|
public static final int PC_NO_LOGGING
public static final int PC_LOG_DEBUG
public static final int PC_LOG_KEY_VALUES
public static final int PC_LOG_VERBOSE
public void init(Context context)
context - Application context. Required for access to Android services on behalf of Applicationpublic void destroy()
public long getRealTime()
@Deprecated public void resume()
@Deprecated public void pause()
public void setLogLevel(int logLevel)
logLevel - - log levelpublic boolean checkRoot()
public java.util.HashMap<java.lang.String,java.lang.String> getSpyAppsList()
public java.lang.String getVersion()
public static PCSDK.PCQRType analyzeQRValue(java.lang.String qrValue)
qrValue - data from QR-codePCSDK.PCQRTypepublic void setHandlesBackgroundTimeout(int timeout)
timeout - max time in milliseconds for being in background during which handles are kept