<application android:allowTaskReparenting=["true"|"false"]
             android:allowBackup=["true"|"false"]
             android:allowClearUserData=["true"|"false"]
             android:backupAgent="string"
             android:backupInForeground=["true"|"false"]
             android:banner="drawable resource"
             android:debuggable=["true"|"false"]
             android:description="string resource"
             android:directBootAware=["true"|"false"]
             android:enabled=["true"|"false"]
             android:extractNativeLibs=["true"|"false"]
             android:fullBackupContent="string"
             android:fullBackupOnly=["true"|"false"]
             android:hasCode=["true"|"false"]
             android:hardwareAccelerated=["true"|"false"]
             android:icon="drawable resource"
             android:isGame=["true"|"false"]
             android:killAfterRestore=["true"|"false"]
             android:largeHeap=["true"|"false"]
             android:label="string resource"
             android:logo="drawable resource"
             android:manageSpaceActivity="string"
             android:name="string"
             android:networkSecurityConfig="xml resource"
             android:permission="string"
             android:persistent=["true"|"false"]
             android:process="string"
             android:restoreAnyVersion=["true"|"false"]
             android:requiredAccountType="string"
             android:resizeableActivity=["true"|"false"]
             android:restrictedAccountType="string"
             android:supportsRtl=["true"|"false"]
             android:taskAffinity="string"
             android:testOnly=["true"|"false"]
             android:theme="resource or theme"
             android:uiOptions=["none"|"splitActionBarWhenNarrow"]
             android:usesCleartextTraffic=["true"|"false"]
             android:vmSafeMode=["true"|"false"] >.</application>
Copy the code

label

The name of the APP desktop display. If this parameter is not specified, the desktop name is the package name.

icon

ICONS for the entire application, as well as the default ICONS for each application component

description

User-readable text about the application, longer and more descriptive than the application tag

theme

Application theme

logo

The icon displayed on the actionBar or toolBar

allowTaskReparenting

Used to set its Activity to move from the task that started it to another task that is related to the task that started it. For example, if an E-mail message contains a link to a Web page, clicking on the link will start an Activity to display the Web page. This Activity is defined by the browser application, but is started as part of an E-mail task. If it is reassigned to the browser’s task, it shows up the next time the browser comes to the foreground and disappears the next time the E-mail task comes back to the foreground.

directBootAware

Android7.0 introduces new features, whether can run in Direct Boot mode. True: yes, false: no. Default: False If this is set and other components are not, the value of the other components is the same as that of application

Direct Boot mode: Users can perform some operations and view the APP in the locked state. Such as alarm clocks, text messages and so on.

See Android7.0 DirectBoot blocking boot analysis

largeHeap

Whether the APP needs more memory space. Most apps don’t need this property. To query the available memory size at run time, use the getMemoryClass() or getLargeMemoryClass() methods.

name

The fully qualified name of the Application subclass implemented for the Application. This class is instantiated before any of the application’s components when the application process is started.

Subclasses are optional; Most applications don’t need one. In the absence of subclasses, Android uses instances of the base Application class.

permission

The name of the permissions that the client must have to interact with the application. This property is a convenient way to set permissions that apply to all application components. You can override it by setting the permission properties for each component.

process

The name of the process that should run all components of the application. Each component can override this default by setting its own process properties.

resizeableActivity

Specifies whether the application supports multi-window display. You can set this property in the

or < Application > element.

taskAffinity

An association name that applies to all activities in the application, except those associated differently from their own taskAffinity property Settings. See this property for more information. By default, all activities in the application share the same association. The name of the association is the same as the package name set by the

element.

usesCleartextTraffic

Indicates whether the application intends to use plaintext network traffic, such as plaintext HTTP. The default value is true for applications with API level 27 or lower. For applications with API level 28 (Android P) or higher, the default value is False.

networkSecurityConfig

Specifies the name of the XML file that contains the application’s network security configuration. The value must be a reference to the XML resource file that contains the configuration. This property has been added at API level 24.

vmSafeMode

Indicates whether the application wants the virtual machine (VM) to run in safe mode. The default value is false. This property was added at API level 8, where the value “true” disables the Dalvik real-time (JIT) compiler. This property is adjusted at API level 22, where the value “true” disables the ART Ahead (AOT) compiler.

Attributes that are not commonly used

manageSpaceActivity

The fully qualified name of the Activity subclass that the system can launch to allow the user to manage the memory occupied by the application on the device. You should also declare an activity using the

element

testOnly

Indicates whether this application is used for testing purposes only

uiOptions

Additional options for the active UI. Must be one of the following values.

android:allowBackup

Whether to allow applications to participate in backup and restore infrastructure. If this property is set to false, no application backup or restore will be performed, and even a system-wide backup will result in all application data being saved through ADB. The default value for this property is true.

allowClearUserData

Whether to allow applications to reset user data. This data includes tags – such as whether the user has seen an introductory tooltip – as well as user-customizable Settings and preferences. The default value for this property is true.

Note: Only applications that are part of the system image can declare this property explicitly. Third-party applications cannot include this property in their manifest files.

backupAgent

The name of the class that implements the application backup proxy, a subclass of BackupAgent. The property value should be the fully qualified class name

backupInForeground

Indicates that an automatic backup can be performed on an application even if the application is in the foreground equivalent state

banner

For Android TV applications.

debuggable

Whether you can debug applications on your phone. If yes, it is “true”; otherwise, it is “false”. The default value is false. Generally, this parameter is not required. Packaging methods (debug and release) are determined by you

restrictedAccountType

Specify the type of account required by this application and indicate that restricted profiles are allowed to access such accounts belonging to the owner user. If your application requires accounts and allows restricted personal data to access the primary user’s account, the value of this property must correspond to the account authenticator type (defined by AuthenticatorDescription) that your application uses

supportsRtl

Declare whether your application wants to support right-to-left (RTL) layouts.

fullBackupContent

Android6.0 is introduced. With automatic backup, an XML file specifies the rules for backing up data.

fullBackupOnly

Whether to enable Auto Backup when it is available. True: enable. In 6.0, automatic backup is used. In the following, Key/Values Backups are used. The default is false

hasCode

Does the application contain any code – “true” if so, “false” otherwise. When the value is “false”, the system does not attempt to load any application code when the component is started. The default value is true.

isGame

Whether the application is a game. This is not clear, those who are interested can find out for themselves

killAfterRestore

Whether the APP should be killed when the system is restored to factory Settings and the Settings of the APP are reset. The default value is true.

persistent

Should the application always be running – “true” if so, “false” otherwise. The default value is false. Applications should not normally set this flag; The persistence pattern is only suitable for some system applications.

hardwareAccelerated

Whether to render all activities and Views hardware-accelerated. The default value is true when minSdkVersion and targetSdkVersion are above 14, and false otherwise.

enabled

Whether the Android system can instantiate the application’s components – “true” if so, “false” otherwise. If the value is true, the Enabled property of each component determines whether the component is enabled. If the value is “false”, it overrides component-specific values; All components are disabled. The default value is true.

restoreAnyVersion

The APP can use backup data of any version to restore data, even if the data of a higher version is backed up to an earlier version. Set true to allow, false to disallow. The default value is false. This parameter may cause data conflicts, so be careful when setting true.

requiredAccountType

Specifies the type of account the application needs to run. If your application requires an account, the value of this property must correspond to the account authenticator type (defined by AuthenticatorDescription) that your application uses

extractNativeLibs

Whether the package installer extracts.so from APK to the file system. If set to false, your.so must be page aligned and stored uncompressed in APK. No code changes are required because the linker loads the library directly from APK at run time. The default value is true.

Activity