Content-Length: 297518 | pFad | https://github.com/robolectric/robolectric/pull/8635

76 Don't use isUserKeyUnlocked() after Android 14 by ebiggers · Pull Request #8635 · robolectric/robolectric · GitHub
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

Don't use isUserKeyUnlocked() after Android 14 #8635

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

ebiggers
Copy link
Contributor

The TestApi StorageManager#isUserKeyUnlocked() is being superseded by StorageManager#isCeStorageUnlocked(). Since isUserKeyUnlocked() will soon have no callers other than robolectric, the plan is to remove it. This commit unblocks that plan by making robolectric stop depending on this method at build time.

The TestApi StorageManager#isUserKeyUnlocked() is being superseded by
StorageManager#isCeStorageUnlocked().  Since isUserKeyUnlocked() will
soon have no callers other than robolectric, the plan is to remove it.
This commit unblocks that plan by making robolectric stop depending on
this method at build time.
@utzcoz
Copy link
Member

utzcoz commented Nov 22, 2023

@ebiggers Thanks.

// Use reflection, as this method is planned to be removed from StorageManager in V.
assertThat(
(boolean)
ReflectionHelpers.callStaticMethod(
Copy link
Member

Choose a reason for hiding this comment

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

@hoisie I remember that we can use reflector here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Eh it's okay to use ReflectionHelpers for now, reflector is more of an optimization, but it won't matter too much here.

Copy link
Member

Choose a reason for hiding this comment

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

Only converting to reflector when we find issues?

@hoisie hoisie merged commit b6d755e into robolectric:master Nov 22, 2023
18 checks passed
@ebiggers ebiggers deleted the is-user-key-unlocked branch November 22, 2023 05:52
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.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/robolectric/robolectric/pull/8635

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy