Skip to content

feat(open-in): add Android Studio support#1437

Merged
arnestrickmann merged 2 commits intogeneralaction:mainfrom
ubuntudroid:sven/feat-android-studio-37k
Mar 12, 2026
Merged

feat(open-in): add Android Studio support#1437
arnestrickmann merged 2 commits intogeneralaction:mainfrom
ubuntudroid:sven/feat-android-studio-37k

Conversation

@ubuntudroid
Copy link
Contributor

@ubuntudroid ubuntudroid commented Mar 12, 2026

Summary

  • Adds Android Studio to the "Open In" app list in Settings → Interface, alongside PyCharm, RustRover, and WebStorm
  • Uses the official Android Studio icon from developer.android.com
  • Supports macOS (studio CLI + open -a "Android Studio"), Windows (studio64/studio), and Linux (studio)

Closes #1435

Test plan

  • Android Studio appears in Settings → Interface under "Open In" apps
  • On a machine with Android Studio installed, the app is detected and shown
  • On a machine without Android Studio, it is hidden (hideIfUnavailable: true) - I couldn't test this as I don't have a machine without studio installed. Maybe someone else can help out here?
  • Clicking "Open" on a worktree launches Android Studio at the correct path

Adds Android Studio to the list of supported "Open In" apps in Settings → Interface, alongside PyCharm, RustRover, and WebStorm. Uses the official icon from developer.android.com.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 12, 2026

@ubuntudroid is attempting to deploy a commit to the General Action Team on Vercel.

A member of the Team first needs to authorize it.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Mar 12, 2026

Greptile Summary

This PR adds Android Studio to the "Open In" app list by registering its icon and platform-specific launch commands alongside the existing JetBrains IDE entries (IntelliJ IDEA, WebStorm, PyCharm, RustRover). The implementation is largely consistent with the existing pattern, with one notable deviation in the macOS config.

  • SVG icon added at src/assets/images/android-studio.svg — correctly included and registered in ICON_PATHS.
  • OPEN_IN_APPS entry correctly sets hideIfUnavailable: true, the right bundle ID (com.google.android.studio), and appropriate commands for all three platforms.
  • darwin checkCommands includes studio64, which is a Windows-only binary. All peer entries (intellij-idea, webstorm, pycharm, rustrover) omit checkCommands on macOS entirely and rely on bundleIds/appNames for detection — this entry should follow the same convention.
  • Win32 and Linux configs look correct and consistent with the rest of the file.

Confidence Score: 4/5

  • Safe to merge after removing studio64 from darwin's checkCommands.
  • The change is small, well-scoped, and follows the established pattern for adding IDEs. The only issue is the spurious studio64 in the macOS checkCommands array, which is a Windows-only binary. Depending on how checkCommands interacts with bundleIds/appNames in the detection logic, this could affect macOS availability detection, but the fallback mechanisms (bundleIds, appNames) should still allow the app to be detected correctly in most scenarios.
  • src/shared/openInApps.ts — darwin checkCommands includes studio64 which only exists on Windows.

Important Files Changed

Filename Overview
src/shared/openInApps.ts Adds Android Studio to ICON_PATHS and OPEN_IN_APPS with correct darwin/win32/linux configs, but darwin's checkCommands incorrectly includes studio64 (a Windows-only binary).
src/assets/images/android-studio.svg New SVG icon for Android Studio; appears to be a correct, self-contained vector representation of the official Android Studio logo.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Platform Detection] --> B{Platform?}
    B -->|darwin| C[Check bundleIds / appNames]
    B -->|win32| D[checkCommands: studio64, studio]
    B -->|linux| E[checkCommands: studio]
    C --> F{Android Studio found?}
    C --> G[checkCommands: studio64❌, studio]
    G --> F
    F -->|Yes| H[Show in Open In list]
    F -->|No| I[hideIfUnavailable → hidden]
    H --> J{Open command}
    J -->|darwin| K["studio path → open -a 'Android Studio' path"]
    J -->|win32| L["studio64 path → studio path"]
    J -->|linux| M["studio path"]
Loading

Last reviewed commit: e5ee20f

@arnestrickmann
Copy link
Contributor

Thanks for flagging and for fixing, @ubuntudroid!
Great addition.

Merging.

@arnestrickmann arnestrickmann merged commit c35c68b into generalaction:main Mar 12, 2026
2 of 3 checks passed
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.

[feat]: Open in Android Studio

2 participants