Use 'cmd package list packages' to get the app uid.

Bug: 236278861
Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java#testDataSaverMode_reinstall
Change-Id: Ie68a3a26a5b3e67d4c8224ca53b3b28de6b317e8
Merged-In: Ie68a3a26a5b3e67d4c8224ca53b3b28de6b317e8
1 file changed