Android Manifest Inspector 1.0.0 · changelog

Android Manifest Inspector changelog

All notable changes to this package are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.0.0] - 2026-10-20

Added

  • Reads the merged AndroidManifest.xml, the manifest merger blame report and the merger log that an Android build made through Gradle leaves under Library/Bee/Android/Prj/<IL2CPP or Mono2x>/Gradle, or in a Gradle project folder you point to. Every permission, permission declaration, feature, query, activity, activity alias, service, receiver, provider, meta-data entry, application attribute and SDK level (minSdkVersion, targetSdkVersion, maxSdkVersion, compileSdk) becomes an entry.
  • Source attribution: each entry has a source (ManifestSource) of kind Unity, custom manifest (main or launcher), Android library (.androidlib), AAR file, Maven artifact, Gradle module, build system (Gradle build or Manifest merger) or Unknown, and a merge trail (MergeStep) that follows the entry through the module manifests with file and line. A table of the seven permissions that Unity is known to add, with its evidence, explains Unity sources.
  • Badges (ManifestBadges): Runtime, Play-sensitive, Exported, Implied and Insecure, each with a one-sentence note.
  • Editor window (Tools > luanrobs > Android Manifest Inspector > Open Inspector, ManifestInspectorWindow), built with UI Toolkit in the Editor's own style for the light and dark skin: Entries, Changes and Rules tabs, search, badge and source-kind filters, a details pane with raw XML and merge trail, a Source menu (newest build, every build found, an exported Gradle project, a snapshot), warnings about custom manifests that are newer than the build.
  • Snapshots (ManifestSnapshots): a JSON file per build, saved after each inspected build, by Refresh and by batch mode with -manifestSnapshot; at most 20 kept per variant (MaxSnapshots). The Changes view and ManifestComparison.Compare list entries that were added, removed or changed since the previous build of the same package and variant.
  • Rules asset (ManifestRules, Assets > Create > luanrobs > Android Manifest Inspector > Manifest Rules): forbidden, expected and allowed lists for permissions and features, with * wildcards and ${applicationId}. Evaluate returns the violations with messages.
  • Build-time check: with Fail Build On Violation and an active rules asset, an Android build that breaks a rule, or whose manifest cannot be read, ends with BuildFailedException and Build Finished, Result: Failure. Exported projects are skipped with a warning. A rules asset that went missing logs a warning instead of failing the build.
  • Batch mode (ManifestInspectorBatch.Run, Execute): -manifestGradleProject, -manifestVariant, -manifestBackend, -manifestRules, -manifestForbid, -manifestExport, -manifestSnapshot; exit codes 0, 10 (rule broken), 11 (no build) and 12 (bad arguments).
  • Exports (ManifestReportExporter): Markdown, JSON (the snapshot format) and CSV, from the window, from code and from batch mode. They contain no absolute path of the machine that made the build.
  • How to remove (ManifestRemoval): the tools:node="remove" or tools:remove snippet for an entry, Copy Snippet, and Preview and Write..., which shows the resulting custom main manifest and writes it only when you click Write. Write keeps the file's encoding (UTF-8, UTF-16, ISO-8859-1, US-ASCII) and refuses other encodings and a file that changed after the preview.
  • Settings (ManifestInspectorSettings): ActiveRules, InspectAfterBuild, FailBuildOnViolation, SnapshotFolder, MaxSnapshots, stored in ProjectSettings/Luanrobs.ManifestInspector.asset.
  • Public API: AndroidManifestInspector (FindBuilds, InspectLatestBuild, Inspect, LastReport, BuildInspected) and the report, entry, source, rules, comparison, removal and exporter types, all Editor only.
  • Works with Domain Reload disabled; opens no window, shows no dialog and logs nothing on its own when the Editor loads.
  • Demo sample: an example rules asset, an example report, an example custom main manifest with remove markers, and a short Editor script that runs the rules check. No scenes.
  • Manual with API reference, limitations and troubleshooting.
  • EditMode tests, with seven stored real builds as test data.

Tested

All runs were on Windows 11, on 2026-10-20.

  • New clean projects, with the package installed from a .tgz archive and the Demo sample imported, final code: 358 of 358 EditMode tests passed on Unity 6000.3.12f1 and 358 of 358 on Unity 6000.0.84f1; the sample imported with no errors. Earlier code: 323 of 323 on each.
  • Final code, clean projects: a plain Mono Android build and Editor smoke run passed on both versions; a development build with all triggers on 6000.0.84f1.
  • Android builds read by the package (scripted check passed): Unity 6000.3.12f1, development project, Mono builds (plain, development with Unity API triggers and Force Internet and Force SD card, and an .androidlib with remove markers); Unity 6000.3.12f1, clean project, Mono and IL2CPP plain builds; Unity 6000.0.84f1, clean project, Mono plain, development with all triggers, and .androidlib with remove markers. The final-code runs are the ones listed above.
  • Batch mode on Unity 6000.0.84f1 (final code) and earlier on 6000.3.12f1: -manifestForbid RECORD_AUDIO exited with 10; -manifestForbid BLUETOOTH_SCAN exited with 0.
  • Build-time check, earlier code, on Unity 6000.3.12f1 and 6000.0.84f1: the build failed with "The Android manifest breaks 1 rule(s)"; in an exported-project build the log had "Exported projects are not checked".
  • Play mode with Domain Reload disabled, Unity 6000.3.12f1: three Play sessions in a row passed (final code).
  • The window was opened and captured in the light and dark skins on Unity 6000.3.12f1 (first code). Its menus, file dialogs and the Write dialog were not driven through the interface.
  • Not run: macOS and Linux Editors, App Bundle builds, exported Gradle projects built in Android Studio, real third-party SDKs, Unity 6000.1 and 6000.2, Unity 6000.0 patches before 84f1, an IL2CPP build on Unity 6000.0.84f1, a custom launcher manifest with remove markers.

Known limitations

  • Android builds made through Gradle only. No iOS files, no builds from another machine, no Native Libraries view.
  • "Unity" as a source means the manifest Unity generated; the tool does not name the script that uses an API. A Maven artifact is named by its coordinates, not by the plugin that pulled it in. Only seven permissions have a specific explanation.
  • The lists of runtime and Google Play restricted permissions are fixed in this version; the Play list was read on 2026-10-08. They are flags, not policy advice.
  • No removal markers for queries, SDK levels, implied entries, the glEsVersion feature or entries from Unity's launcher manifest.
  • A build that failed the build-time check leaves its APK or AAB at the output path.
  • The build time of a report is the write time of the merged manifest, so an unchanged rebuild keeps the time of the last build that changed it. Without the record of the post-build step, the newest build is the one whose manifest changed last; pass -manifestVariant and -manifestBackend to batch mode on a machine that builds several variants or backends.
  • Snapshot file names have no backend and no package name: builds of the same variant whose manifests were written in the same second, or two apps sharing one snapshot folder, share one file.
  • After every domain reload an open window with the source Newest Build inspects the build again, and the first lookup walks Assets/, Packages/ and Library/PackageCache/.
  • Custom-manifest attribution reads your custom manifests as they are when the build is read.
  • When a custom main manifest binds the Android namespace to a prefix other than android, Preview adds a second, equivalent marker with the standard prefixes.