tree: 2ef967cb246620769701fdcdcf0c08c58619c6cb
  1. products/
  2. sepolicy/
  3. src/
  4. Android.bp
  5. README.md
cpp/packagemanagerproxy/testclient/README.md

PackageManagerProxyd Test Client

This client can be used to test the IPackageManagerProxy interface from the /vendor partition. To do so, build and start the VM:

lunch sdv_ivi_cf-trunk_staging-userdebug
m
cvd start

After the VM is started, launch a vendor shell:

abd shell /vendor/bin/sh

You will not get a shell prompt, so on the blank line that appears run the following command:

/vendor/bin/packagemanagerproxyd_testclient <package name>

<package name> should be replaced with a valid package name, for example:

/vendor/bin/packagemanagerproxyd_testclient com.google.android.car.evs

You should receive output similar to the following (the Uid and Version Code may diff from the example given):

Fetching package info for "com.google.android.car.evs"
Uid: 10122
Version Code: 35

If the output is incomplete, check logcat for selinux denials.