패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.2.1

installed_apps

기기의 설치된 앱과 관련된 유틸리티 메서드를 제공하는 플러터 플러그인입니다.

Android
30일 다운로드
2.1만
좋아요
152
Pub 점수
160

패키지 설치

flutter pub add installed_apps

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

installed_apps 패키지는 안드로이드 기기에서 설치된 애플리케이션에 대한 정보를 검색하는 유틸리티 메서드를 제공하는 플러터 플러그인입니다. 개발자가 설치된 앱 목록을 가져오고, 패키지 이름, 레이블 및 기타 메타데이터에 접근할 수 있게 하여 플러터 앱 내에서 앱 관리 기능을 구현할 수 있도록 합니다. 안드로이드 전용으로 설계되어 플랫폼의 패키지 매니저와 원활하게 통합됩니다. 가볍고 앱 탐색 또는 디바이스 수준의 앱 분석이 필요한 사용 사례에 적합합니다.

사용 사례

  • Android에서 설치된 앱 목록 보기
  • 앱 패키지 이름 검색
  • 앱 아이콘과 레이블 표시
  • 앱 관리 도구 구축
  • 장치 앱 재고 분석

주요 기능

  • Android 전용 지원
  • 앱 목록을 위한 간단한 API
  • 패키지 메타데이터에 대한 액세스
  • 경량이고 효율적
  • 추가 권한이 필요하지 않습니다

적합한 대상

  • 안드로이드 앱 개발자
  • 앱 탐색 기능
  • 장치 분석 도구
  • 사용자 지정 앱 런처
  • 시스템 수준 앱 유틸리티

고려 사항

  • 안드로이드 플랫폼에 한정
  • iOS를 지원하지 않습니다
  • Android SDK 21 이상 필요
  • 실시간 앱 설치 모니터링 없음
  • 메타데이터는 기기 제조업체에 따라 달라질 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Installed Apps

Installed Apps is a Flutter plugin that provides utilities to interact with installed apps on a device. You can list installed apps, get app info, launch apps, open settings, and more.

⚠️ Currently, only Android is supported. iOS methods return default/fallback values.


Version 2.0.0 Breaking Changes

Version 2.0.0 has some breaking changes, for example, getInstalledApps now uses **named arguments ** instead of positional arguments as before. Additionally, some other argument names have been updated.

Features

  • List installed apps with optional filters:
    • Exclude system apps
    • Exclude non-launchable apps
    • Filter by package name prefix
    • Filter by platform type
  • Get detailed app info
  • Launch apps by package name
  • Open app settings
  • Check if an app is system or installed
  • Uninstall apps
  • Show toast messages

Installation

flutter pub add installed_apps

Or check the Installation Guide.

Example project: GitHub


Usage

Get Installed Apps
List<AppInfo> apps = await InstalledApps.getInstalledApps(
  // Optional: whether to exclude system apps from the list. Default is true.
  excludeSystemApps: true,

  // Optional: whether to exclude apps that cannot be launched (no launch intent). Default is true.
  excludeNonLaunchableApps: true,

  // Optional: whether to include app icons in the result. Default is false.
  withIcon: false,

  // Optional: filter apps whose package names start with this prefix. Default is null (no filtering).
  packageNamePrefix: "com.example",

  // Optional: filter apps by platform type (Flutter, React Native, etc.). Default is null (no filtering).
  platformType: PlatformType.flutter,
);
Get App Info
AppInfo? app = await InstalledApps.getAppInfo("com.example.myapp");
AppInfo Model
class AppInfo {
  String name;
  Uint8List? icon; // nullable
  String packageName;
  String versionName;
  int versionCode;
  PlatformType platformType;
  int installedTimestamp;
  bool isSystemApp;
  bool isLaunchableApp;
  AppCategory category;
}
Launch App
await InstalledApps.startApp("com.example.myapp");
Open App Settings
InstalledApps.openSettings("com.example.myapp");
Check System App
bool? isSystem = await InstalledApps.isSystemApp("com.example.myapp");
Uninstall App
bool? success = await InstalledApps.uninstallApp("com.example.myapp");
Check if Installed
bool? installed = await InstalledApps.isAppInstalled("com.example.myapp");

AppCategory enum

⚠️ Only available on Android API 28+. On lower SDK versions, all apps will have undefined.

enum AppCategory {
  game(0, "Game"),
  audio(1, "Audio"),
  video(2, "Video"),
  image(3, "Image"),
  social(4, "Social"),
  news(5, "News"),
  maps(6, "Maps"),
  productivity(7, "Productivity"),
  accessibility(8, "Accessibility"),
  undefined(-1, "Undefined");
}

PlatformType enum

enum PlatformType {
  flutter('flutter', 'Flutter'),
  reactNative('react_native', 'React Native'),
  xamarin('xamarin', 'Xamarin'),
  ionic('ionic', 'Ionic'),
  nativeOrOthers('native_or_others', 'Native or Others');
}

QUERY_ALL_PACKAGES Permission and Play Store Review

The QUERY_ALL_PACKAGES permission is required for some functionality of this package, but including it can cause Play Store rejections if your app doesn’t justify it. To handle this, either declare its necessity in the Play Store listing or use tools:node="remove" in your manifest to exclude it while still using the package (note this will limit visibility to all apps). For multi-flavor setups, you can include the permission in src/dev/AndroidManifest.xml for internal/dev builds and remove it in src/playstore/AndroidManifest.xml for Play Store builds, ensuring each flavor has the correct manifest without affecting core functionality.

Notes

  • Android requires QUERY_ALL_PACKAGES permission for full app visibility. Ensure compliance with Play Store policies.
  • All methods catch exceptions and return default/fallback values to prevent crashes.
  • Platform type detection is heuristic and may misclassify some apps. Improvements are ongoing.

Support

If you encounter any issues or have suggestions, please open an issue on GitHub. Contributions and feedback are welcome!

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트