Apply Android manifest configuration
patch_manifest_and_configPatch AndroidManifest.xml in a decoded workspace: inject permissions, set the Application class, and apply rendering or cleartext settings for repackaging.
Instructions
Apply requested Flutter-related component, application, permission, and rendering changes to AndroidManifest.xml in a decoded workspace. Use it only after reviewing the injection surface and generated classes; it mutates the manifest in place, so use analyze_injection_surface instead when only inspection is needed. Review the structured delta before recompilation, especially for application-class, permission, exported-component, or network-security changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| largeHeap | No | Set android:largeHeap='true' in application element to increase RAM heap allocation | |
| workspaceDir | Yes | Path to decompiled APK workspace root directory containing AndroidManifest.xml (modified in-place) | |
| extractNativeLibs | No | Set android:extractNativeLibs in application element for legacy native library extraction | |
| hardwareAccelerated | No | Set android:hardwareAccelerated='true' in application element for GPU hardware rendering | |
| usesCleartextTraffic | No | Set android:usesCleartextTraffic='true' in application tag to allow unencrypted HTTP traffic | |
| additionalPermissions | No | List of additional Android permissions to inject into AndroidManifest.xml (e.g. ['android.permission.INTERNET', 'android.permission.WAKE_LOCK']) | |
| customApplicationClass | No | Fully qualified class name of injected Application subclass (e.g. 'com.example.injected.InjectedApplication') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| validation | Yes | Post-patch manifest validation result. | |
| workspaceDir | Yes | Mutated decoded APK workspace. | |
| addedActivities | Yes | Activity class names added during the patch. | |
| applicationClass | Yes | Application class after the patch. | |
| patchedPermissions | Yes | Permissions added during the patch. | |
| usesCleartextTraffic | Yes | Reported cleartext-traffic configuration request. | |
| addedApplicationMetadata | Yes | Application metadata keys added during the patch. |