modify_resource_file
Update specific resource files in an APKTool project by defining the resource type, file name, and new content. Optionally create backups for safe modifications.
Instructions
Modify the content of a specific resource file.
Args: project_dir: Path to the APKTool project directory resource_type: Resource type (e.g., "layout", "values") resource_name: Name of the resource file new_content: New content for the resource file create_backup: Whether to create a backup of the original file
Returns: Dictionary with operation results
Input Schema
Name | Required | Description | Default |
---|---|---|---|
create_backup | No | ||
new_content | Yes | ||
project_dir | Yes | ||
resource_name | Yes | ||
resource_type | Yes |