public void OnPostGenerateGradleAndroidProject(string basePath)
    {
        // If needed, add condition checks on whether you need to run the modification routine.
        // For example, specific configuration/app options enabled
        string manifestPath    = GetManifestPath(basePath);
        var    androidManifest = new AndroidManifest(manifestPath);

        androidManifest.SetUSBHostFeature();
        androidManifest.SetUSBIntents();
        androidManifest.SetUSBMetadata();
        androidManifest.SetExtStoragePermission();
        androidManifest.SetMGDPermission();
        MergeResources(basePath);

        // Add your XML manipulation routines

        androidManifest.Save();
    }