Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clearing package data also revokes development permissions on API < 23 #2181

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

Draft
consp1racy wants to merge 1 commit into android:main
base: main
Choose a base branch
Loading
from consp1racy:ep/revokePermissionsCompat

Conversation

@consp1racy
Copy link

@consp1racy consp1racy commented Mar 22, 2024

This matches the behavior on API 23 and newer.

Background

We have a custom androidTestUtil APK that backports UiConnection.executeShellCommand to Kitkat. It's AOSP-signed so it works in AVD, which has to be enough.
We use it to grant a library under test android.permission.WRITE_SECURE_SETTINGS. We also need to clean that up in the test.
Given that the instrumentation package and target package are the same, removing permission kills our instrumentation process. The solution is to revoke permissions from the orchestrator when testInstrumentationRunnerArguments["clearPackageData"] = "true".

@consp1racy consp1racy force-pushed the ep/revokePermissionsCompat branch from 61d02c9 to 9f88505 Compare March 22, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /