# flutter_app_install
**Repository Path**: tianle/flutter_app_install
## Basic Information
- **Project Name**: flutter_app_install
- **Description**: Android apk 安装
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2023-03-01
- **Last Updated**: 2024-03-22
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Flutter App Install
A Flutter plugin for installing app on Android.
The plugin supports both install with Android intent and silently install.
## Getting Started
Add this to your package's pubspec.yaml file:
```yaml
dependencies:
flutter_app_install: ^0.0.1
```
### Android
**Install with Android Intent**
You need to add the provider inside your `AndroidManifest.xml` application section.
```
```
You need to create one `android/app/src/main/res/xml/file_paths.xml` with the following content.
Please replace the packageName with your app package's name.
```
```
If your application API level is above 25, please remember to add the permission in `AndroidManifest.xml` file.
```
```
**Install silently**
In order to install the APK silently, your app must be a system application or has root permission on your emulator.
You need to add permissions in `AndroidManifest.xml` file.
```
```
## Usage
Import the package with
```dart
import 'package:flutter_app_installer/flutter_app_installer.dart';
```
Install your apk with Android Intent.
```dart
FlutterAppInstall.installApk(
filePath: apk_file_full_path_here,
);
```
Install your apk silently.
```dart
FlutterAppInstall.installApk(
filePath: apk_file_full_path_here,
silently: true,
);
```