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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionCreate a safe execution policy object (all restrictions are enabled).DEmuExternalPolicy(boolean restrictRandom, boolean restrictTime, boolean restrictEnv) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlacklisted(String sig) voidaddRestricted(String sig) voidaddWhitelisted(String sig) booleanbooleancanExecute(String msig) booleanvoidsetDefaultAllow(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
-