Skip to content

Fix code scanning alert no. 1: Application backup allowed#168

Merged
Nandan-18 merged 1 commit intomainfrom
alert-autofix-1
Dec 25, 2024
Merged

Fix code scanning alert no. 1: Application backup allowed#168
Nandan-18 merged 1 commit intomainfrom
alert-autofix-1

Conversation

@Nandan-18
Copy link
Copy Markdown
Contributor

Fixes https://github.com/CMPUT301W24T30/ScanPal/security/code-scanning/1

To fix the problem, we need to set the android:allowBackup attribute to false in the application element of the Android manifest file. This change will prevent the application from being automatically backed up, thereby reducing the risk of sensitive data being exposed.

  • Open the app/src/main/AndroidManifest.xml file.
  • Locate the application element.
  • Change the value of the android:allowBackup attribute from true to false.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@Nandan-18 Nandan-18 marked this pull request as ready for review December 25, 2024 20:49
@Nandan-18 Nandan-18 merged commit d5026a8 into main Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant