Name Date Size #Lines LOC

..--

Android.bpH A D25-Apr-20255.2 KiB191152

README.mdH A D25-Apr-20251.4 KiB4230

build.bazel.examples.apex.minimal.avbpubkeyHD25-Apr-20251 KiB

build.bazel.examples.apex.minimal.pemH A D25-Apr-20253.2 KiB5251

build.bazel.examples.apex.minimal.pk8HD25-Apr-20252.3 KiB

build.bazel.examples.apex.minimal.x509.pemH A D25-Apr-20252.1 KiB3534

dummy_cc_lib.ccH A D25-Apr-2025744 194

dummy_cc_lib_2.ccH A D25-Apr-2025748 194

dummy_cc_lib_3.ccH A D25-Apr-2025748 194

dummy_prebuilt_etc_data_1HD25-Apr-20252

dummy_prebuilt_etc_data_2HD25-Apr-20252

dummy_prebuilt_etc_data_3HD25-Apr-20252

file_contextsH A D25-Apr-2025333 65

main.ccH A D25-Apr-2025267 127

manifest.jsonH A D25-Apr-202566 54

README.md

1Instructions for building/running the minimal apex
2
3You need an android device/emulator to run it on, an easy option is:
4
5```
6lunch sdk_phone_x86_64-userdebug
7m
8emulator
9```
10
11To build and install with soong:
12```
13m build.bazel.examples.apex.minimal && adb install out/target/product/emulator_x86_64/product/apex/build.bazel.examples.apex.minimal.apex && adb reboot
14```
15
16To build and install with bazel:
17```
18b build --config=android_x86_64 //build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal && adb install bazel-bin/build/bazel/examples/apex/minimal/build.bazel.examples.apex.minimal.apex && adb reboot
19```
20
21The first time you try to install the apex, you will probably get this error:
22
23```
24adb: failed to install out/target/product/emulator_x86_64/product/apex/build.bazel.examples.apex.minimal.apex: Error [1] [apexd verification failed : No preinstalled apex found for package build.bazel.examples.apex.minimal]
25```
26
27There's probably better ways to resolve it, but one easy way is to take advantage of a bug (b/205632228) in soong and force it to be preinstalled by running:
28
29```
30m installclean
31m build.bazel.examples.apex.minimal
32m
33```
34
35and then restarting the emulator. After you've done this once you can use the regular install commands above from then on.
36
37To run the binary that the apex installs:
38
39```
40adb shell /apex/build.bazel.examples.apex.minimal/bin/build.bazel.examples.apex.cc_binary
41```
42