Home
last modified time | relevance | path

Searched refs:apex_manifest (Results 1 – 23 of 23) sorted by relevance

/system/apex/apexd/
Dapex_manifest_test.cpp44 auto apex_manifest = ParseManifest(ToString(manifest)); in TEST() local
45 ASSERT_RESULT_OK(apex_manifest); in TEST()
46 EXPECT_EQ("com.android.example.apex", std::string(apex_manifest->name())); in TEST()
47 EXPECT_EQ(1u, apex_manifest->version()); in TEST()
48 EXPECT_FALSE(apex_manifest->nocode()); in TEST()
54 auto apex_manifest = ParseManifest(ToString(manifest)); in TEST() local
55 ASSERT_FALSE(apex_manifest.ok()); in TEST()
56 EXPECT_EQ(apex_manifest.error().message(), in TEST()
58 << apex_manifest.error(); in TEST()
64 auto apex_manifest = ParseManifest(ToString(manifest)); in TEST() local
[all …]
Dapex_manifest.cpp31 ApexManifest apex_manifest; in ParseManifest() local
33 if (!apex_manifest.ParseFromString(content)) { in ParseManifest()
39 if (apex_manifest.name().empty()) { in ParseManifest()
44 if (apex_manifest.version() == 0) { in ParseManifest()
47 return apex_manifest; in ParseManifest()
50 std::string GetPackageId(const ApexManifest& apex_manifest) { in GetPackageId() argument
51 return apex_manifest.name() + "@" + std::to_string(apex_manifest.version()); in GetPackageId()
DAndroid.bp19 // "bugprone-unhandled-self-assignment", // found in apex_manifest.proto
235 "apex_manifest.cpp",
260 "$(location conv_apex_manifest) setprop version 137 $(genDir)/apex_manifest.pb && " +
262 "-s apex_manifest.pb -s apex_payload.img -s apex_pubkey " +
276 "$(location conv_apex_manifest) setprop version 137 $(genDir)/apex_manifest.pb && " +
278 "-s apex_manifest.pb -s apex_payload.img -s apex_pubkey " +
294 "-s apex_manifest.pb -s apex_payload.img -s apex_pubkey " +
310 "-s apex_manifest.pb -s apex_payload.img -s apex_pubkey " +
346 …on conv_apex_manifest) setprop name com.android.apex.test_package $(genDir)/apex_manifest.pb && " +
348 "-s apex_manifest.pb -s apex_payload.img -s apex_pubkey " +
[all …]
Dapex_manifest.h32 std::string GetPackageId(const ::apex::proto::ApexManifest& apex_manifest);
/system/apex/apexer/
Druntests.sh58 manifest_file=${manifest_dir}/apex_manifest.pb
59 echo '{"name": "com.android.example.apex", "version": 1}' > ${manifest_dir}/apex_manifest.json
60 …out/soong/host/linux-x86/bin/conv_apex_manifest proto ${manifest_dir}/apex_manifest.json -o ${mani…
105 unzip ${output_file} apex_manifest.pb -d ${output_dir}
112 sudo diff ${manifest_file} ${output_dir}/mnt/apex_manifest.pb
113 sudo diff ${manifest_file} ${output_dir}/apex_manifest.pb
125 [ `sudo stat -c '%u,%g,%A' ${output_dir}/mnt/apex_manifest.pb` = "1000,1000,-rw-r--r--" ]
132 [ `sudo ls -Z ${output_dir}/mnt/apex_manifest.pb | cut -d ' ' -f 1` = "u:object_r:root_file:s0" ]
DAndroid.bp42 name: "apex_manifest",
44 "apex_manifest.py",
78 "apex_manifest",
152 "apex_manifest",
Dapexer.py35 from apex_manifest import ValidateApexManifest
36 from apex_manifest import ApexManifestError
Dapexer_test.py30 from apex_manifest import ValidateApexManifest
/system/core/init/
Dmount_namespace.cpp130 const auto apex_manifest = GetApexManifest(apex_path); in ActivateFlattenedApexesFrom() local
131 if (!apex_manifest.ok()) { in ActivateFlattenedApexesFrom()
132 LOG(ERROR) << apex_path << " is not an APEX directory: " << apex_manifest.error(); in ActivateFlattenedApexesFrom()
135 const std::string mount_path = to_dir + "/" + apex_manifest->name(); in ActivateFlattenedApexesFrom()
139 on_activate(apex_path, *apex_manifest); in ActivateFlattenedApexesFrom()
159 const apex::proto::ApexManifest& apex_manifest) { in ActivateFlattenedApexesIfPossible() argument
160 apex_infos.emplace_back(apex_manifest.name(), apex_path, apex_path, apex_manifest.version(), in ActivateFlattenedApexesIfPossible()
161 apex_manifest.versionname(), /*isFactory=*/true, /*isActive=*/true, in ActivateFlattenedApexesIfPossible()
/system/apex/proto/
DAndroid.bp28 srcs: ["apex_manifest.proto"],
39 srcs: ["apex_manifest.proto"],
57 "apex_manifest.proto",
89 srcs: ["apex_manifest.proto"],
109 "apex_manifest.proto",
/system/apex/shim/build/
Ddefault_shim_allowed_list.txt1 ./apex_manifest.pb
Dprebuilts_shim_allowed_list.txt1 ./apex_manifest.pb
DAndroid.bp526 cmd: "$(location zip2zip) -i $(in) -x apex_manifest.pb -o $(out)",
/system/linkerconfig/testdata/
Dprepare_root.sh113 conv_apex_manifest proto $dst/apex_manifest.json -o $dst/apex_manifest.pb
DREADME.md17 apex_manifest.json # copied from intermediate apex_manifest_full.json
/system/bt/apex/
DAndroid.bp14 manifest: "apex_manifest.json",
/system/tools/aidl/build/apex/
DAndroid.bp12 manifest: "apex_manifest.json",
/system/apex/apexd/apexd_testdata/
DAndroid.bp86 "$(location conv_apex_manifest) setprop version 1 $(genDir)/apex_manifest.pb && " +
110 …tion conv_apex_manifest) setprop name com.android.apex.compressed $(genDir)/apex_manifest.pb && " +
112 "-s apex_manifest.pb -s apex_payload.img -s apex_pubkey " +
142 "$(location conv_apex_manifest) setprop version 137 $(genDir)/apex_manifest.pb && " +
144 "-s apex_manifest.pb -s apex_payload.img -s apex_pubkey " +
250 min_sdk_version: "29", // add apex_manifest.json as well
258 cmd: "$(location zip2zip) -i $(in) -x apex_manifest.pb -o $(out)", // remove apex_manifest.pb
/system/apex/tools/
DAndroid.bp34 "apex_manifest",
Ddeapexer.py27 import apex_manifest
285 manifest = apex_manifest.fromApex(args.apex)
286 print(apex_manifest.toJsonString(manifest))
/system/apex/docs/
Dhowto.md22 manifest: "apex_manifest.json",
41 `apex_manifest.json` should look like:
61 your apex and the `apex_manifest.pb` file. (Technically, they are labeled as
64 that `apexd` can access the root directory and the `apex_manifest.pb` file. (In
483 /apex_manifest.json 1000 1000 0644
484 /apex_manifest.pb 1000 1000 0644
493 a line for `/`and `/apex_manifest.pb`. (`/apex_manifest.json` line is for
DREADME.md49 - `apex_manifest.json`
54 The `apex_manifest.json` file contains the package name and version, which
62 `apex_manifest.json`. `AndroidManifest.xml` might contain additional targeting
65 `apex_manifest.json` is recommended over `AndroidManifest.xml` for new code and
253 manifest: "apex_manifest.json",
266 `apex_manifest.json` example:
574 * `apex_manifest.pb`: stored only
581 `apex_manifest.pb` `AndroidManifest.xml` `apex_pubkey` are copies of the
604 manifest: "apex_manifest.json",
/system/apex/tests/
DAndroid.bp89 manifest: "testdata/apex_manifest.json",