Fix IllegalArgumentException under PackageSetPolicySerializer Using Set.of on the array split from device_policy_state.xml can throw IllegalArgumentException if an admin set a policy containing the separator character (;) multiple times. This crashes system_server and causes a bootloop. Use HashSet to silently deduplicate elements. Test: manual Bug: 515039631 Flag: EXEMPT BUGFIX Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:7f342a57b386d249847c9ec4928ec81f1a759981 Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:395d631fd017a3f64756981939282910a8994287 Merged-In: I65259a1b54da30091ddb3c689ef4fb0e01a52c39 Change-Id: I65259a1b54da30091ddb3c689ef4fb0e01a52c39