Auto config API
- Config Syntax – Understand the syntax before learning the available commands
File additions
Exclude
Usage:
exclude <target> [targets ...]
Excludes the given file from the respective stage.
Note
The behavior of this command is dependant on the stage it's used in. When used within the assets
stage, it will exclude entries inside valid asset archive files, not the archive files themselves.
Example
exclude "/smali/com/somecompany/LoggerUtil/" ; This will exclude the directory from being renamed.
Include
Usage:
include <target> [targets ...]
Includes the given file in the respective stage.
Note
The behavior of this command is dependant on the stage it's used in. When used within the assets
stage, it will include entries inside valid asset archive files, not the archive files themselves.
Example
exclude "/smali/com/somecompany/LoggerUtil/" ; This will include the directory to be renamed.
File commands
Create directory
Usage:
mkdir <target>
Creates the respective target directory. If the directory already exists, no action is taken.
Example
mkdir "/smali/newdir/"
Move entry
Usage:
mv <source> <target>
Moves a file or directory to a new location, renaming it if specified.
Example
Moving a directory (recursive by nature).
mv '/assets/cool-image.svg' '/smali/com/coolsvile/lorax/cool-image.svg'
Moving a file.
mv '/assets/bin/Data/Managed/Metadata/global-metadata.dat' '/assets/global-metadata.dat'
Copy entry
Usage:
cp <source> <target>
Copies a file or directory to a new location, renaming it if specified.
Example
Copying a directory (recursive by nature).
cp "/assets/bin/Objects/" "/assets/bin/Managed/"
Copying a file.
cp "/assets/bin/Data/Managed/Metadata/global-metadata.dat" "/assets/global-metadata.dat"
Remove entry
Usage:
rm <target> [targets ...]
Removes a file or directory. This should be used sparingly.
Example
Removing files and directories (recursive by nature).
rm "/assets/bin/" "/smali/com/something/Logger/" "/assets/images/activity-logo.svg"