Class DEmuExternalPolicy
java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.ir.DEmuExternalPolicy
The emulation policy for API methods relying or depending on the execution environment, the date
and time, and random number generators.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionCreate a safe execution policy object (all restrictions are enabled).DEmuExternalPolicy
(boolean restrictRandom, boolean restrictTime, boolean restrictEnv) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBlacklisted
(String sig) void
addRestricted
(String sig) void
addWhitelisted
(String sig) boolean
boolean
canExecute
(String msig) boolean
void
setDefaultAllow
(boolean defaultAllow)
-
Field Details
-
RESTRICT_RANDOM
public static final int RESTRICT_RANDOM- See Also:
-
RESTRICT_TIME
public static final int RESTRICT_TIME- See Also:
-
RESTRICT_ENV
public static final int RESTRICT_ENV- See Also:
-
-
Constructor Details
-
DEmuExternalPolicy
public DEmuExternalPolicy()Create a safe execution policy object (all restrictions are enabled). -
DEmuExternalPolicy
public DEmuExternalPolicy(boolean restrictRandom, boolean restrictTime, boolean restrictEnv)
-
-
Method Details
-
setDefaultAllow
public void setDefaultAllow(boolean defaultAllow) -
isDefaultAllow
public boolean isDefaultAllow() -
addRestricted
-
addWhitelisted
-
addBlacklisted
-
canExecute
-
canAccess
-