Sanitize labels in GrantCredentialsPermissionActivity

Sanitize application labels and other displayed strings using
TextUtils.makeSafeForPresentation() to prevent UI obfuscation
attacks via newline injection.

Copied from autogenerated cl from by MendIt (go/androidmendit).

Bug: 472955222
Test: m framework-minus-apex
Flag: EXEMPT BUGFIX
(cherry picked from commit d143444ef510fb4520245a8cd69215278928fec5)
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:43f99d7a38d642b8d9cc42482cfa4e52ec0b483f
Merged-In: Ief6f22746200360e97b3ccbc0b5abca8867139bb
Change-Id: Ief6f22746200360e97b3ccbc0b5abca8867139bb
1 file changed