Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,20 @@ You can build the project using Gradle:

### Prerequisites

As of [android-16.0.0_r2](https://source.android.com/docs/setup/reference/build-numbers#source-code-tags-and-builds), **App Functions** is an experimental feature and may be disabled by default in your system.
**App Functions** is enabled by default starting with [android-16.0.0_r4](https://source.android.com/docs/setup/reference/build-numbers#source-code-tags-and-builds). However, on earlier versions of Android 16, this is considered an experimental feature and may be disabled by default in your system.

You can check whether the essential feature flags are enabled on your device or emulator using the following command
You can check whether the essential feature flags are enabled on your device or emulator using the following command:

```
adb shell aflags list | grep "enable_app_functions_schema_parser"
```

If this flag is not enabled, you need to enable them in your AOSP build. For detailed instructions, refer to the official guide on [Set feature launch flag values](https://source.android.com/docs/setup/build/feature-flagging/set-values).

> [!NOTE]
> [!TIP]
>
> You will likely need to enable both `enable_app_functions` and `enable_app_functions_schema_parser`. For example:
> You can manually backport the necessary configuration by referencing the [textproto](https://android.googlesource.com/platform/build/release/+/refs/tags/android-16.0.0_r4/aconfig/bp4a/com.android.appsearch.flags/enable_app_functions_schema_parser_flag_values.textproto) values from the `android-16.0.0_r4` tag.
>
> ```
> flag_value {
> package: "com.android.appsearch.flags"
> name: "enable_app_functions_schema_parser"
> state: ENABLED
> permission: READ_ONLY
> }
>
> flag_value {
> package: "com.android.appsearch.flags"
> name: "enable_app_functions"
> state: ENABLED
> permission: READ_ONLY
> }
> ```

### System Pre-installation

Expand Down