Home
last modified time | relevance | path

Searched refs:apex (Results 1 – 25 of 107) sorted by relevance

12345

/system/apex/apexd/apexd_testdata/
DAndroid.bp15 // These apex definitions will generate the prebuilt test data. The modules
19 name: "com.android.apex.test_package.key",
20 public_key: "com.android.apex.test_package.avbpubkey",
21 private_key: "com.android.apex.test_package.pem",
25 apex {
26 name: "apex.apexd_test",
28 file_contexts: "apex.test",
30 key: "com.android.apex.test_package.key",
34 apex {
35 name: "apex.apexd_test_v2",
[all …]
/system/core/liblog/
Dliblog.map.txt22 android_logger_list_alloc; # apex vndk
23 android_logger_list_alloc_time; # apex vndk
24 android_logger_list_free; # apex vndk
26 android_logger_list_read; # apex vndk
27 android_logger_open; # apex vndk
36 __android_log_error_write; # apex vndk
38 create_android_logger; # apex vndk
39 android_log_destroy; # apex vndk
40 android_log_write_list_begin; # apex vndk
41 android_log_write_list_end; # apex vndk
[all …]
/system/apex/shim/
DAndroid.bp19 name: "com.android.apex.cts.shim.v1_prebuilt",
20 src: "com.android.apex.cts.shim.v1.apex",
21 filename: "com.android.apex.cts.shim.apex",
27 name: "com.android.apex.cts.shim.v2_prebuilt",
28 src: "com.android.apex.cts.shim.v2.apex",
29 filename: "com.android.apex.cts.shim.v2.apex",
34 name: "com.android.apex.cts.shim.v2_wrong_sha_prebuilt",
35 src: "com.android.apex.cts.shim.v2_wrong_sha.apex",
36 filename: "com.android.apex.cts.shim.v2_wrong_sha.apex",
41 name: "com.android.apex.cts.shim.v2_additional_file_prebuilt",
[all …]
DREADME.md5 A shim apex is an apex that doesn't provide any functionality as it's sole
8 A cts shim apex has following restrictions:
10 * Its name is equal to `com.android.apex.cts.shim`
12 * First version (i.e. `com.android.apex.cts.shim.apex`) should be
16 apex can be upgraded to.
24 system/apex/shim/build/Android.bp blueprint file.
29 m com.android.apex.cts.shim.v3 \
30 com.android.apex.cts.shim.v2 \
31 com.android.apex.cts.shim.v2_additional_file \
32 com.android.apex.cts.shim.v2_additional_folder \
[all …]
/system/apex/shim/build/
DAndroid.bp18 name: "com.android.apex.cts.shim.pem",
19 out: ["com.android.apex.cts.shim.pem"],
24 name: "com.android.apex.cts.shim.pubkey",
25 srcs: [":com.android.apex.cts.shim.pem"],
26 out: ["com.android.apex.cts.shim.pubkey"],
32 name: "com.android.apex.cts.shim.key",
33 private_key: ":com.android.apex.cts.shim.pem",
34 public_key: ":com.android.apex.cts.shim.pubkey",
51 apex {
52 name: "com.android.apex.cts.shim.v3",
[all …]
/system/apex/apexd/
Dapexd_main.cpp37 return android::apex::RunPreInstall(argv); in HandleSubcommand()
42 return android::apex::RunPostInstall(argv); in HandleSubcommand()
47 return android::apex::onBootstrap(); in HandleSubcommand()
79 android::apex::StatusOr<android::apex::VoldCheckpointInterface> in main()
80 vold_service_st = android::apex::VoldCheckpointInterface::Create(); in main()
81 android::apex::VoldCheckpointInterface* vold_service = nullptr; in main()
89 android::apex::onStart(vold_service); in main()
90 android::apex::binder::CreateAndRegisterService(); in main()
91 android::apex::binder::StartThreadPool(); in main()
97 android::apex::onAllPackagesReady(); in main()
[all …]
DAndroid.bp37 "--header-filter='system/apex/'",
68 "aidl/android/apex/ApexInfo.aidl",
69 "aidl/android/apex/ApexInfoList.aidl",
70 "aidl/android/apex/ApexSessionInfo.aidl",
71 "aidl/android/apex/IApexService.aidl",
134 whole_static_libs: ["com.android.sysprop.apex"],
218 ":apex.apexd_test",
219 ":apex.apexd_test_no_inst_key",
220 "apexd_testdata/com.android.apex.test_package.avbpubkey",
259 // Generates an apex which has a different manifest outside the filesystem
[all …]
Dapexd_prepostinstall.cpp43 namespace apex { namespace
90 for (const ApexFile& apex : apexes) { in StageFnInstall() local
93 apexd_private::GetPackageMountPoint(apex.GetManifest()); in StageFnInstall()
95 if (!apexd_private::IsMounted(apex.GetManifest().name(), apex.GetPath())) { in StageFnInstall()
96 Status mountStatus = apexd_private::MountPackage(apex, mount_point); in StageFnInstall()
100 mounted_apexes.push_back(&apex); in StageFnInstall()
105 apexd_private::GetActiveMountPoint(apex.GetManifest()); in StageFnInstall()
123 for (const ApexFile& apex : apexes) { in StageFnInstall() local
124 if (&apex != hook_file) { in StageFnInstall()
125 args.push_back(apex.GetPath()); in StageFnInstall()
[all …]
Dapexd_session.h28 namespace apex {
39 ::apex::proto::SessionState::State state);
44 ::apex::proto::SessionState::State GetState() const;
49 Status UpdateStateAndCommit(const ::apex::proto::SessionState::State& state);
54 ApexSession(const ::apex::proto::SessionState& state);
55 ::apex::proto::SessionState state_;
Dapex_file.cpp46 namespace apex { namespace
214 StatusOr<std::unique_ptr<AvbFooter>> getAvbFooter(const ApexFile& apex, in getAvbFooter() argument
220 off_t offset = apex.GetImageSize() + apex.GetImageOffset() - AVB_FOOTER_SIZE; in getAvbFooter()
252 StatusOr<std::string> getPublicKeyName(const ApexFile& apex, in getPublicKeyName() argument
260 << apex.GetPath()); in getPublicKeyName()
263 if (keyName != apex.GetManifest().name()) { in getPublicKeyName()
266 << apex.GetManifest().name() << "'" in getPublicKeyName()
272 Status verifyVbMetaSignature(const ApexFile& apex, const uint8_t* data, in verifyVbMetaSignature() argument
286 << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
290 << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
[all …]
Dapexd_private.h27 namespace apex {
44 Status MountPackage(const ApexFile& apex, const std::string& mountPoint);
45 Status UnmountPackage(const ApexFile& apex);
Dapexservice.cpp43 namespace apex { namespace
52 using SessionState = ::apex::proto::SessionState;
124 Status res = ::android::apex::stagePackages(paths); in stagePackages()
140 Status res = ::android::apex::unstagePackages(paths); in unstagePackages()
159 ::android::apex::submitStagedSession(session_id, child_session_ids); in submitStagedSession()
182 Status success = ::android::apex::markStagedSessionReady(session_id); in markStagedSessionReady()
197 Status ret = ::android::apex::markStagedSessionSuccessful(session_id); in markStagedSessionSuccessful()
222 using SessionState = ::apex::proto::SessionState; in convertToApexSessionInfo()
329 Status res = ::android::apex::activatePackage(packagePath); in activatePackage()
351 Status res = ::android::apex::deactivatePackage(packagePath); in deactivatePackage()
[all …]
Dapexd.cpp82 using apex::proto::SessionState;
85 namespace apex { namespace
124 bool isBootstrapApex(const ApexFile& apex) { in isBootstrapApex() argument
126 apex.GetManifest().name()) != kBootstrapApexes.end(); in isBootstrapApex()
384 Status VerifyMountedImage(const ApexFile& apex, in VerifyMountedImage() argument
386 auto status = apex.VerifyManifestMatches(mount_point); in VerifyMountedImage()
390 if (shim::IsShimApex(apex)) { in VerifyMountedImage()
391 return shim::ValidateShimApex(mount_point, apex); in VerifyMountedImage()
396 StatusOr<MountedApexData> mountNonFlattened(const ApexFile& apex, in mountNonFlattened() argument
401 const std::string& full_path = apex.GetPath(); in mountNonFlattened()
[all …]
Dapex_manifest.h25 using ::apex::proto::ApexManifest;
28 namespace apex {
Dapex_shim.cpp35 namespace apex { namespace
56 std::ifstream apex(path, std::ios::binary); in CalculateSha512() local
57 if (apex.bad()) { in CalculateSha512()
61 while (!apex.eof()) { in CalculateSha512()
62 apex.read(buf, kBufSize); in CalculateSha512()
63 if (apex.bad()) { in CalculateSha512()
66 int bytes_read = apex.gcount(); in CalculateSha512()
/system/apex/tests/
DAndroid.bp99 test_config: "apex-targetprep-tests.xml",
110 apex {
111 name: "apex.test",
114 key: "apex.test.key",
115 certificate: ":apex.test.certificate",
121 apex {
123 file_contexts: "apex.test",
134 prebuilts: ["sample_prebuilt_file", "apex.test.ld.config.txt", "apex.test.init.rc"],
136 key: "apex.test.key",
137 certificate: ":apex.test.certificate",
[all …]
/system/apex/tests/testdata/
Dinit.rc1 service apex.test /apex/com.android.apex.test/bin/test
4 service surfaceflinger /apex/com.android.apex.test/bin/surfaceflinger
/system/core/libvndksupport/
Dlibvndksupport.map.txt3 android_is_in_vendor_process; # vndk apex
4 android_load_sphal_library; # vndk apex
5 android_unload_sphal_library; # vndk apex
/system/apex/apexd/aidl/android/apex/
DIApexService.aidl17 package android.apex;
19 import android.apex.ApexInfo;
20 import android.apex.ApexInfoList;
21 import android.apex.ApexSessionInfo;
DApexInfoList.aidl17 package android.apex;
19 import android.apex.ApexInfo;
/system/apex/
DCleanSpec.mk48 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/security/apex)
49 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/security/apex)
50 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/security/apex)
/system/apex/apexd/sysprop/
DAndroid.bp5 name: "apex-properties",
10 name: "com.android.sysprop.apex",
18 name: "com.android.sysprop.apex.apis",
/system/sepolicy/private/
Dotapreopt_chroot.te11 # APEX packages in /postinstall/apex.
18 # /postinstall/system/apex (which are bind-mounted in /postinstall/apex).
26 # Allow otapreopt_chroot to open and read the contents of /postinstall/system/apex.
58 # Allow otapreopt_chroot to mount a tmpfs filesystem in /postinstall/apex.
60 # Allow otapreopt_chroot to restore the security context of /postinstall/apex.
64 # Allow otapreopt_chroot to manipulate directory /postinstall/apex.
66 # Allow otapreopt_chroot to mount APEX packages in /postinstall/apex.
/system/sepolicy/prebuilts/api/29.0/private/
Dotapreopt_chroot.te11 # APEX packages in /postinstall/apex.
18 # /postinstall/system/apex (which are bind-mounted in /postinstall/apex).
26 # Allow otapreopt_chroot to open and read the contents of /postinstall/system/apex.
58 # Allow otapreopt_chroot to mount a tmpfs filesystem in /postinstall/apex.
60 # Allow otapreopt_chroot to restore the security context of /postinstall/apex.
64 # Allow otapreopt_chroot to manipulate directory /postinstall/apex.
66 # Allow otapreopt_chroot to mount APEX packages in /postinstall/apex.
/system/apex/apexer/
Druntests.sh75 output_file=${output_dir}/test.apex
83 --key ${ANDROID_BUILD_TOP}/system/apex/apexer/testdata/com.android.example.apex.pem \
103 --key ${ANDROID_BUILD_TOP}/system/apex/apexer/testdata/com.android.example.apex.pem

12345