line-sdk-android icon indicating copy to clipboard operation
line-sdk-android copied to clipboard

Remove allowBackup in application tag

Open giangpham96 opened this issue 2 years ago • 0 comments

Is it a security issue?

no

What did you do?

Consume Line SDK 5.4.1 to 5.8.0. They declare allowBackup as false in AndroidManifest.

What did you expect?

I believe the consumer should declare this, not the library. If an application have allow backup set to true, they need to use tools:replace tag to override the value from this library.

This is somehow acceptable.

However, if there is another library which set the flag to true, the overriding of the consumer result in an error during lint. For example, here is my stacktrace

Attribute application@allowBackup value=(false) from [com.linecorp.linesdk:linesdk:5.8.0] AndroidManifest.xml:22:9-36
        is also present at <...> AndroidManifest.xml:20:9-35 value=(true).

What happened actually?

The library has allowBackup declaration

giangpham96 avatar Oct 31 '22 12:10 giangpham96