Convert code in PackageUtil from Java to Kotlin

This is the 2nd CL in a 2-part change from Java to Kotlin. This CL
changes java code to kotlin.

Bug: 182205982
Test: builds successfully
Change-Id: Ic41e5f5e121000aba8feffee26b7d2238ffe8f56
1 file changed