# BluePrint for Application Project

#### Here is list of some properties in an android application blueprint:

* **name:** The name of the module. This must be unique across all Android.bp files.
* **srcs:** A list of the source files that make up the module.
* **manifest:** The path to the AndroidManifest.xml file for the module.
* **resource\_dirs:** A list of directories that contain resources for the module.
* **platform\_apis:** A boolean value that indicates whether the module uses platform APIs.
* **required:** A list of other modules that the module depends on.
* **certificate:** The certificate that is used to sign the module.
* **privileged:** A boolean value that indicates whether the module has privileged permissions.
* **overrides:** A list of other modules that the module overrides.
* **static\_libs:** A list of static libraries that the module depends on.
* **libs:** A list of dynamic libraries that the module depends on.
* **optimize:** A property that controls whether the module is optimized.
* **dex\_preopt:** A property that controls whether the module is pre-optimized for dex.
* **product\_variables:** A property that allows you to set product-specific variables for the module.

#### Here is a sample android.bp file

{% code fullWidth="false" %}

```json
android_app {
    name: "CarLauncher",
    
    srcs: [
        "app/src/main/java/**/*.java"
    ],
    
    manifest: "app/src/main/AndroidManifest.xml",

    resource_dirs: [],

    platform_apis: true,

    required: ["allowed_privapp_com.android.car.carlauncher"],

    certificate: "platform",

    privileged: true,

    overrides: [
        "Launcher2",
        "Launcher3",
        "Launcher3QuickStep",
    ],

    static_libs: ["CarLauncher-core"],

    libs: ["android.car"],

    optimize: {
        enabled: false,
    },

    dex_preopt: {
        enabled: false,
    },

    product_variables: {
        pdk: {
            enabled: false,
        },
    },
}
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.tejpratapsingh.com/android-tips/aosp/build/blueprint-for-application-project.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
