@Override
    public void run() throws Exception {
        
        if ( currentProgram != null ) {
            processProgram(currentProgram);
            return;
        }
        
        PluginTool tool = state.getTool();
        Project project = tool.getProject();
        ProjectData projectData = project.getProjectData();
        DomainFolder rootFolder = projectData.getRootFolder();
        recurseProjectFolder( rootFolder );
    }
There was a major rearrangement of registers in the Dalvik.slaspec from 7.0 -> 7.1 which invalidates function prototypes
laid down by "Android DEX Header Format" analyzer.  This script repairs the prototypes to match the new register layout
If run with a Program already up, the script will make all the changes, letting the user decide if they want to
save (or undo) the changes.  If the script is run from an empty code browser, it will search for all Dalvik programs
in the current project and automatically upgrade and save the function prototypes.
Ghidra/Features/FileFormats/ghidra_scripts/UpgradeDexToGhidra71Script.java