[Android Warning] Androidmanifest.xml warning should explicitly set Android:allowbackup to TRUE or false

Source: Internet
Author: User

Androidmanifest.xml Warning in Android

Should explicitly set Android:allowbackup to True or False (it's true by default, and that can has some security implicat Ions for the application ' s data)

Solution:
<application        android:allowbackup= "true"
Or
<application        android:allowbackup= "false"
Note: The android:allowbackup must be the first label key-value pair in the application.

Http://developer.android.com/reference/android/R.attr.html#allowBackup

By default, this flag is set to true.

When this flag is set to TRUE, application data can be backed up and restored by users using ADB backup and restore.

This can have security consequences for an application.

ADB backup allows users to enable USB debug replication application data from the device.

Once backed up, all application data can be read by the user.

ADB recovery allows the creation of application data from the source specified by the user.

After recovery, the application should not specify data, file and directory permissions, and permissions are determined by the application itself.

Set allowbackup = "false" to select two backups and recoveries for an application.

Fix this warning and decide that your application should support backup, set android:allowbackup = (True|false)

Reference:

Http://stackoverflow.com/questions/12648373/what-is-androidallowbackup

http://www.cnblogs.com/amaker/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.