Truncate long device admin descriptions

Limit the length of the description loaded from a device admin's
manifest to a maximum of 1024 characters. This prevents potential issues
with excessively long descriptions.

Bug: 492093013
Test: manual
Flag: EXEMPT BUGFIX

Limit the length of the description loaded from a device admin's manifest to a maximum of 8192 characters. This prevents potential issues with excessively long descriptions.

Bug: 492093013
Test: manual
Flag: EXEMPT BUGFIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:f1ed046d2c48a38b9a800ef6a86cc14d3ab312a3
Security vulnerability cherry pick for https://b.corp.google.com/issues/492093013
Topic: https://googleplex-android-review.git.corp.google.com/q/topic:%22b492093013%22
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:8096808a53e8e4282917d0c5d13cfade92ea0435
Merged-In: I06b621e37d97fd8554172c2446e2838dfaccc104
Change-Id: I06b621e37d97fd8554172c2446e2838dfaccc104
2 files changed