Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8963263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:19:14+00:00 2026-06-15T16:19:14+00:00

Since the new ADT preview version (version 21) , they have a new lint

  • 0

Since the new ADT preview version (version 21), they have a new lint warning that tells me the next thing on the manifest file (in the application tag):

Should explicitly set android:allowBackup to true or false (it’s true by default, and that can have some security implications for the application’s data)

In the official website, they’ve written:

A couple of new checks: you must explicitly decide whether your app allows backups, and a label check. There’s a new command line flag for setting the library path. Many improvements to the incremental lint analysis while editing.

What is this warning? What is the backup feature, and how do I use it?

Also, why does the warning tell me it has security implications? What are the disadvantages and advantages of disabling this feature?


There are two concepts of backup for the manifest:

  • “android:allowBackup” allows to backup and restore via adb, as shown here:

Whether to allow the application to participate in the backup and
restore infrastructure. If this attribute is set to false, no backup
or restore of the application will ever be performed, even by a
full-system backup that would otherwise cause all application data to
be saved via adb. The default value of this attribute is true.

This is considered a security issue because people could backup your app via ADB and then get private data of your app into their PC.

However, I think it’s not that of a problem, since most users don’t know what adb is, and if they do, they will also know how to root the device. ADB functions would only work if the device has the debugging feature enabled, and this needs the user to enable it.

So, only users that connect their devices to the PC and enable the debugging feature would be affected. If they have a malicious app on their PC that uses the ADB tools, this could be problematic since the app could read the private storage data.

I think Google should just add a feature that is disabled by default, in the developer category, to allow backup&restore of apps via ADB.

  • “android:backupAgent” allows to use the backup and restore feature of the cloud, as shown here and here:

The name of the class that implement’s the application’s backup agent,
a subclass of BackupAgent. The attribute value should be a fully
qualified class name (such as, “com.example.project.MyBackupAgent”).
However, as a shorthand, if the first character of the name is a
period (for example, “.MyBackupAgent”), it is appended to the package
name specified in the element. There is no default. The
name must be specified.

This isn’t a security issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:19:15+00:00Added an answer on June 15, 2026 at 4:19 pm

    For this lint warning, as for all other lint warnings, note that you can get a fuller explanation than just what is in the one line error message; you don’t have to search the web for more info.

    If you are using lint via Eclipse, either open the lint warnings view, where you can select the lint error and see a longer explanation, or invoke the quick fix (Ctrl-1) on the error line, and one of the suggestions is “Explain this issue”, which will also pop up a fuller explanation. If you are not using Eclipse, you can generate an HTML report from lint (lint --html <filename>) which includes full explanations next to the warnings, or you can ask lint to explain a particular issue. For example, the issue related to allowBackup has the id AllowBackup (shown at the end of the error message), so the fuller explanation is:

    $ ./lint --show AllowBackup
    AllowBackup
    -----------
    Summary: Ensure that allowBackup is explicitly set in the application's
    manifest
    
    Priority: 3 / 10
    Severity: Warning
    Category: Security
    

    The allowBackup attribute determines if an application’s data can be backed up and restored, as documented here.

    By default, this flag is set to true. When this flag is set to true, application data can be backed up and restored by the user using adb backup and adb restore.

    This may have security consequences for an application. adb backup allows users who have enabled USB debugging to copy application data off of the device. Once backed up, all application data can be read by the user. adb restore allows creation of application data from a source specified by the user. Following a restore, applications should not assume that the data, file permissions, and directory permissions were created by the application itself.

    Setting allowBackup="false" opts an application out of both backup and restore.

    To fix this warning, decide whether your application should support backup and explicitly set android:allowBackup=(true|false)

    Click here for More information

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since installing the new version of ADT (14.0) my renderscript stuff does not compile
Ever since I installed emacs on a new machine I have seen an ugly
I am new to Oracle. Since we have rewritten an earlier application , we
I have a mediator that I've registered for a navigation page: facade.registerMediator(new NavPageMediator(viewComponent)); I'm
The new Android ADT for Eclipse seemed awesome and since I am dropping quite
Since moving to ADK14, I have been unable to build new apks for release
I have a project that worked for months, but I updated the ADT Plugin
How do I generate a new list from random numbers that have the same
We have a new git repo that is acrued from a svn repo. The
Since i upgraded to ADT 20, i've been trying to create new Android project,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.