Rules API

The Rules API, which is available for users with the Red package, allows sending broadcasts via the following ADB commands to enable or disable the cloned app’s Modify views and Auto-press buttons rules programmatically (also without restarting the cloned app).

adb shell am broadcast -p <packageName> -a com.applisto.appcloner.api.action.ENABLE_RULE --es name <ruleName>

adb shell am broadcast -p <packageName> -a com.applisto.appcloner.api.action.DISABLE_RULE --es name <ruleName>

The -p parameter specifies the package name of the cloned app, which you can see when opening the app info dialog of the cloned app under Clones. The --es name parameter specifies the rule’s name and must be provided.

By default, all rules are enabled. Please note this doesn’t work for unnamed rules. Enabling / disabling rules of the Modify views option will not immediately update any on-screen views.

This feature is available since App Cloner 3.0.12.