Package 

Class AppCloneDetector


  • 
    public class AppCloneDetector
    
                        

    AppCloneDetector 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 AppCloneDetector create(Context context) Static factory method to create an instance of AppCloneDetector.
      AppCloneDetector onCloningDetect(Runnable action) Sets a custom action to be executed when cloning is detected.
      boolean isAppCloned() Checks if the application is cloned by analyzing the file path.
      boolean isRunningInClonedEnvironment() Determines if the app is running in a cloned environment and logs the result.
      String getAppPath() Returns the file path of the application.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

         static AppCloneDetector create(Context context)

        Static factory method to create an instance of AppCloneDetector.

        Parameters:
        context - The application context.
      • 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.