Skip to content

fix(ShellCommand): app restrictions key-value parser was failing to parse values containing the "=" character - #281

Open
NST-NK wants to merge 1 commit into
googlesamples:masterfrom
NST-NK:fix-app-restrictions-key-value-split
Open

fix(ShellCommand): app restrictions key-value parser was failing to parse values containing the "=" character#281
NST-NK wants to merge 1 commit into
googlesamples:masterfrom
NST-NK:fix-app-restrictions-key-value-split

Conversation

@NST-NK

@NST-NK NST-NK commented Sep 10, 2026

Copy link
Copy Markdown

When using the testDPC GUI, the "=" character is perfectly fine in a managed config value

However, when setting a managed config value though adb, it will not work: for example when running
adb shell dumpsys activity --user 0 service com.afwsamples.testdpc set-app-restrictions <targetAppHere> myKey=myValueContainingAn=Character, the value will be set to myValueContainingAn instead of myValueContainingAn=Character.

In practice this is typically a problem when attempting to load PEM strings.

This pull request should fix the issue.

@google-cla

google-cla Bot commented Sep 10, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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