• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

products/25-Apr-2025-182

sepolicy/25-Apr-2025-1812

src/25-Apr-2025-9958

Android.bpD25-Apr-2025964 3229

README.mdD25-Apr-20251.5 KiB5526

README.md

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