Android tools: Use of lint

Source: Internet
Author: User

1. Execute in cmd: Lint--show allowbackup//Display the explanation of Allowbackup on this topic in lint, the results are as follows:

Allowbackup-----------summary:ensure that Allowbackup was explicitly set in the application ' Smanifestpriority:3/10Sever Ity:WarningCategory:SecurityThe allowbackup attribute determines if a application ' s data can be Baand restored. It is documented athttp://developer.android.com/reference/android/r.attr.html#allowbackupby default, this flag is set to True. When this flag was set to true,application data can be backed up and restored by the user using the ADB baand adb restore. This may has security consequences for an application. ADB backup allousers who has the enabled USB debugging to copy application data off of Thdevice. Once backed up, all application data can is read by the user. Arestore allows creation of application data from a source specified byuser. Following a restore, applications should not assume so the datapermissions, and directory permissions were created by th E applicationitself. Setting allowbackup= "False" opts an application out of both backup Andrestore. To fix thiS warning, decide whether your application should support Bacand explicitly set android:allowbackup= (true|false) "More info" Rmation:http://developer.android.com/reference/android/r.attr.html#allowbackup</span>
2. Execute in cmd: Lint--show//show explanations of all topics in lint (issue);

3. Execute in cmd: Lint--help//display lint use help;


Summary: I understand the android:allowbackup attribute meaning, incidentally found some of the use of lint. Find more gold on your own!

Android tools: Use of lint

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.