1<!-- 2 Copyright (C) 2024 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License 15 --> 16 17# PackageManagerProxyd Test Client 18 19This client can be used to test the IPackageManagerProxy interface from the `/vendor` partition. To do so, build and start the VM: 20 21``` 22lunch sdv_ivi_cf-trunk_staging-userdebug 23m 24cvd start 25``` 26 27After the VM is started, launch a vendor shell: 28 29``` 30abd shell /vendor/bin/sh 31``` 32 33You will not get a shell prompt, so on the blank line that appears run the following command: 34 35``` 36/vendor/bin/packagemanagerproxyd_testclient <package name> 37``` 38 39`<package name>` should be replaced with a valid package name, for example: 40 41``` 42/vendor/bin/packagemanagerproxyd_testclient com.google.android.car.evs 43``` 44 45 46You should receive output similar to the following (the Uid and Version Code may diff from the example given): 47 48``` 49Fetching package info for "com.google.android.car.evs" 50Uid: 10122 51Version Code: 35 52``` 53 54If the output is incomplete, check logcat for selinux denials. 55