Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SecureStorage.android.cs #20293

Conversation

AnthonyNjuguna
Copy link

@AnthonyNjuguna AnthonyNjuguna commented Feb 1, 2024

Description of Change

On PlatformRemoveAll we reset the _prefs to null. So that the encrypted_prefs_key and encrypted_prefs_value are created again on next value insert so that GetAsync can decrypt said value
Reasons:

Issues Fixed

Fixes #19983

Issues with Android SecureStorage.GetAsync returning null

@AnthonyNjuguna AnthonyNjuguna requested a review from a team as a code owner February 1, 2024 16:27
@ghost ghost added the community ✨ Community Contribution label Feb 1, 2024
@ghost
Copy link

ghost commented Feb 1, 2024

Hey there @AnthonyNjuguna! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@samhouts samhouts added platform/android 🤖 area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info labels Feb 1, 2024
@jfversluis
Copy link
Member

Hey @AnthonyNjuguna thanks for the report and immediate fix too! Is there any way we could add a test for this so we're sure this is a good fix and more importantly: it won't regress again?

@phillippschmedt
Copy link

Might also fix the issue I reported her: #19983 (my issue contains an example repository)

@PureWeen
Copy link
Member

PureWeen commented Feb 4, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz jsuarezruiz self-requested a review February 5, 2024 16:20
Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts? We're not able to reproduce the initial issue.

#19983 (comment)

@jsuarezruiz jsuarezruiz requested review from jsuarezruiz and removed request for jsuarezruiz February 7, 2024 11:40
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@mattleibow
Copy link
Member

I think @Redth found something, so we probably need to see what he found.

@AnthonyNjuguna
Copy link
Author

Superseded by #20445

@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info community ✨ Community Contribution platform/android 🤖
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android: SecureStorage Adding a value after calling RemoveAll() will not persist the value
8 participants