@Retention(value=CLASS)
@Target(value={CONSTRUCTOR,METHOD})
public @interface RootResponse
RootCheck
,
Specifying Sources and
ActionsModifier and Type | Required Element and Description |
---|---|
java.lang.String |
source
The source that indicates the device running this application has been rooted.
|
Modifier and Type | Optional Element and Description |
---|---|
float |
probability
The probability that the response (exit, hang, etc) will take place.
|
ResponseType |
response
The response to be taken when the check is triggered.
|
InjectionPoint |
where
The location in the method where injection will take place.
|
public abstract java.lang.String source
boolean
, with true
indicating a rooted device.public abstract ResponseType response
ResponseType.None
,
ResponseType.Exit
,
ResponseType.Hang
,
ResponseType.Error
,
ResponseType.Exception
public abstract float probability
true
. Expecting a decimal percentage between 0.0 and 1.0.public abstract InjectionPoint where
Copyright 2024 PreEmptive Solutions, LLC. All Rights Reserved.