Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"allowClearUserData" = "false" in the AndroidManifest.xml file

What is the allowClearUserData attribute do in the android manifest file?

like image 578
Ankit Goel Avatar asked Aug 09 '17 00:08

Ankit Goel


People also ask

What is an AndroidManifest file?

The manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play.

Where is AndroidManifest XML located?

When you build an Android app by using Quantum Visualizer, an AndroidManifest. xml file is created in the app's corresponding dist folder. The file is located at WorkspaceName>/temp/<AppName>/build/luaandroid/dist.

What is the use of usesCleartextTraffic in Android?

Similar to the App Transport Security (ATS) feature in iOS (see also best practice 6.5 Implement App Transport Security), Android 6.0 and later makes it easier to prevent an app from using cleartext network traffic (e.g., HTTP and FTP without TLS) by adding the android:usesCleartextTraffic attribute to the Android ...

What is supportsRtl?

android:supportsRtl. Declares whether your application is willing to support right-to-left (RTL) layouts. If set to true and targetSdkVersion is set to 17 or higher, various RTL APIs will be activated and used by the system so your app can display RTL layouts.


1 Answers

The allowClearUserData is an option that let's the application specify if the user's data can/cannot be deleted. By default, this flag is set to true. However it can be changed to false. The attribute can be set for your app. However any other app cannot use this attribute to clear your app's user data.he attribute allows boolean value, that is either "true" or "false". If set to true, the application manager has the right to clear the data.

Example:

<application>
<application android:allowClearUserData=["true" | "false"] 
</application>

This must be placed within the android manifest file.

like image 117
Abhi Avatar answered Sep 27 '22 15:09

Abhi