Skip to content

feat(apps): report version and versionCode for installed apps on all platforms - #347

Merged
gmegidish merged 1 commit into
mainfrom
feat/apps-list-versions
Aug 23, 2026
Merged

feat(apps): report version and versionCode for installed apps on all platforms#347
gmegidish merged 1 commit into
mainfrom
feat/apps-list-versions

Conversation

@gmegidish

@gmegidish gmegidish commented Aug 23, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • App listings now include version codes on Android and iOS devices and simulators.
    • Android app discovery provides package names, display names, versions, and version codes.
    • Launcher-only filtering is supported while retaining complete app metadata.
  • Bug Fixes

    • Improved handling of Android app-listing errors and malformed responses.
    • Added safer conversion of iOS version metadata.

…platforms

Android previously returned package names only. A new PackageLister class
(port of devicekit-android's PackageLister.kt) is compiled into the embedded
mobilecli.dex and run via app_process, returning name, versionName and
versionCode for every package in one call. Works on API 26+ (int/long flags
fallback for getInstalledPackages, getLongVersionCode fallback).

iOS real devices and simulators now also return CFBundleVersion as
versionCode, matching the existing utils.AppMetadata shape.

Claude-Session: https://claude.ai/code/session_01VWnPxWoAPSFQTuYqB2ZT3L
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 436cf7cc-3d7b-4d7f-b308-b8a98e53d760

📥 Commits

Reviewing files that changed from the base of the PR and between 15e5bb7 and 53460a3.

📒 Files selected for processing (6)
  • agents/android/java/PackageLister.java
  • devices/android.go
  • devices/android_apps_test.go
  • devices/common.go
  • devices/ios.go
  • devices/simulator.go

Included review availability: 2 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.


📝 Walkthrough

Walkthrough

Installed app listings now expose VersionCode across Android, iOS, and simulators. Android uses an embedded PackageLister DEX to retrieve package metadata, parse JSON records, and filter launchable applications.

Changes

Installed app metadata

Layer / File(s) Summary
Version code contract and platform mapping
devices/common.go, devices/ios.go, devices/simulator.go
InstalledAppInfo now includes VersionCode. iOS and simulator listings populate it from CFBundleVersion.
Android package metadata listing
agents/android/java/PackageLister.java, devices/android.go, devices/android_apps_test.go
Android executes PackageLister through app_process, retrieves package metadata, parses JSON records, converts version codes to strings, filters launchable packages, and tests valid and invalid output.

Estimated code review effort: 4 (Complex) | ~45 minutes

Merge Risk: ⚪ Minimal · up to 53460

This change is merge-ready after normal checks and review; no actionable merge-blocking risk remains.

Sequence Diagram(s)

sequenceDiagram
  participant AndroidDevice
  participant PackageLister
  participant PackageManager
  participant AndroidListApps

  AndroidDevice->>PackageLister: Execute embedded DEX with app_process
  PackageLister->>PackageManager: Query installed packages
  PackageManager-->>PackageLister: Return package metadata
  PackageLister-->>AndroidDevice: Return JSON records
  AndroidDevice->>AndroidListApps: Parse records and filter launchable packages
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed Docstring check was indeterminate for this PR — some files could not be analyzed in time. Not blocking.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main change: reporting version and versionCode for installed apps across Android and iOS platforms.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/apps-list-versions

Comment @coderabbitai help to get the list of available commands.

@gmegidish
gmegidish merged commit 6b096fe into main Aug 23, 2026
17 checks passed
@gmegidish
gmegidish deleted the feat/apps-list-versions branch August 23, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant