-
public class AppCloneDetectorAppCloneDetector is a utility class that helps detect if an application is cloned. It provides methods to determine if the app is running in a cloned environment and allows for custom actions to be triggered upon detecting cloning.
-
-
Method Summary
Modifier and Type Method Description static AppCloneDetectorcreate(Context context)Static factory method to create an instance of AppCloneDetector. AppCloneDetectoronCloningDetect(Runnable action)Sets a custom action to be executed when cloning is detected. booleanisAppCloned()Checks if the application is cloned by analyzing the file path. booleanisRunningInClonedEnvironment()Determines if the app is running in a cloned environment and logs the result. StringgetAppPath()Returns the file path of the application. -
-
Method Detail
-
create
static AppCloneDetector create(Context context)
Static factory method to create an instance of AppCloneDetector.
- Parameters:
context- The application context.
-
onCloningDetect
AppCloneDetector onCloningDetect(Runnable action)
Sets a custom action to be executed when cloning is detected.
- Parameters:
action- The Runnable action to be executed.
-
isAppCloned
boolean isAppCloned()
Checks if the application is cloned by analyzing the file path.
-
isRunningInClonedEnvironment
boolean isRunningInClonedEnvironment()
Determines if the app is running in a cloned environment and logs the result.
-
getAppPath
String getAppPath()
Returns the file path of the application.
-
-
-
-