/system/core/bootstat/ |
D | README.md | 3 The bootstat command records boot events (e.g., `firmware_loaded`, 5 command also aggregates boot event metrics locally and logs the metrics for 12 -p, --print Dump the boot event records to the console 13 -r, --record Record the timestamp of a named boot event 22 ## Recording boot events ## 24 To record the relative time of an event during the boot phase, call `bootstat` 25 with the `-r` option and the name of the boot event. 30 the boot event to be persisted. 32 ## Logging boot events ## 34 To log the persisted boot events, call `bootstat` with the `-l` option. [all …]
|
D | boot_reason_test.sh | 3 # Bootstat boot reason tests 9 # - wait until screen is up, boot has completed, can mean wait for 120 Returns: true if device supports and set boot reason injection" ] 134 adb_su setprop persist.test.boot.reason "'${1}'" 2>/dev/null </dev/null 135 test_reason="`get_property persist.test.boot.reason`" 137 echo "ERROR: can not set persist.test.boot.reason to '${1}'." >&2 230 if [ -n "`get_property sys.boot.reason`" ] 318 if [ 0 != ${local_ret} -a "ro.boot.bootreason" = "${property}" ]; then 345 bootstat: Canonical boot reason: <expected_property_value> 364 bootstat: Canonical boot reason: ${i}" [all …]
|
D | bootstat.rc | 3 # Mirror bootloader boot reason to system boot reason 4 # ro.boot.bootreason should be set by init already 6 on post-fs && property:ro.boot.bootreason=* 7 setprop sys.boot.reason ${ro.boot.bootreason} 45 # the device, /data is decrypted, and the system is entering the main boot phase. 48 # property:init.svc.bootanim=running: The boot animation is running 58 # sys.bootstat.first_boot_completed=0 - first boot completed trigger wasn't processed yet. 59 # sys.bootstat.first_boot_completed=1 - first boot completed trigger was processed and 60 # record_boot_complete was called. Subsequent boot completed 70 # Set boot reason [all …]
|
D | bootstat-debug.rc | 4 # For devices w/o bootloader boot reason reported, mirror test boot reason 5 # to bootloader boot reason to allow test to inject reasons 6 on property:persist.test.boot.reason=* 7 setprop ro.boot.bootreason ${persist.test.boot.reason}
|
D | boot_event_record_store.h | 27 // BootEventRecordStore manages the persistence of boot events to the record 28 // store and the retrieval of all boot event records from the store. 37 // Persists the boot |event| in the record store. 40 // Persists the boot |event| with the associated |value| in the record store. 43 // Queries the named boot |event|. |record| must be non-null. |record| 44 // contains the boot event data on success. Returns true iff the query is 48 // Returns a list of all of the boot events persisted in the record store. 63 // Constructs the full path of the given boot |event|.
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | basic_test.cpp | 29 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F() 72 // Generates a raw boot.img in TEST_F() 75 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F() 82 AddAvbFooter(boot_path, "hash", "boot", partition_size, "SHA256_RSA4096", 10, in TEST_F() 85 // Extracts boot vbmeta from boot.img into boot-vbmeta.img. in TEST_F() 86 ExtractVBMetaImage(boot_path, "boot-vbmeta.img"); in TEST_F() 100 " Partition Name: boot\n" in TEST_F() 105 InfoImage("boot-vbmeta.img")); in TEST_F() 153 // Generates a raw boot.img in TEST_F() 156 base::FilePath boot_path = GenerateImage("boot.img", boot_image_size); in TEST_F() [all …]
|
D | fs_avb_util_test.cpp | 104 // Generates a raw boot.img in TEST_F() 107 base::FilePath boot_path = GenerateImage("boot.img", image_size); in TEST_F() 109 AddAvbFooter(boot_path, "hash", "boot", partition_size, "SHA256_RSA4096", 10, in TEST_F() 112 // Extracts boot vbmeta from boot.img into boot-vbmeta.img. in TEST_F() 113 auto boot_vbmeta = ExtractAndLoadVBMetaData(boot_path, "boot-vbmeta.img"); in TEST_F() 116 GetHashtreeDescriptor("boot" /* avb_partition_name */, std::move(boot_vbmeta)); in TEST_F()
|
D | fs_avb_test.cpp | 64 // Generates a raw boot.img in TEST_F() 67 base::FilePath boot_path = GenerateImage("boot.img", boot_image_size); in TEST_F() 70 AddAvbFooter(boot_path, "hash", "boot", boot_partition_size, "SHA256_RSA2048", 10, in TEST_F() 89 // Makes a vbmeta image includeing 'boot' and 'system' chained descriptors. in TEST_F() 93 {{"boot", 1, rsa2048_public_key}, /* chain_partitions */ in TEST_F() 135 // Generates a raw boot.img in TEST_F() 138 base::FilePath boot_path = GenerateImage("boot.img", boot_image_size); in TEST_F() 141 AddAvbFooter(boot_path, "hash", "boot", boot_partition_size, "SHA256_RSA2048", 10, in TEST_F() 160 // Makes a vbmeta image includeing 'boot' and 'system' chained descriptors. in TEST_F() 164 {{"boot", 1, rsa2048_public_key}, /* chain_partitions */ in TEST_F() [all …]
|
/system/tools/mkbootimg/include/bootimg/ |
D | bootimg.h | 32 /* When a boot header is of version 0, the structure of boot image is as 36 * | boot header | 1 page 76 // Version of the boot image header. 110 * boot image header they need to use. 114 /* When a boot header is of version 1, the structure of boot image is as 118 * | boot header | 1 page 150 uint64_t recovery_dtbo_offset; /* offset to recovery dtbo/acpio in boot image */ 154 /* When the boot image header has a version of 2, the structure of the boot 158 * | boot header | 1 page 197 /* When the boot image header has a version of 3, the structure of the boot [all …]
|
/system/extras/ioblame/ |
D | ioblame-gmail-launch.example | 65 File: /framework/arm/boot-android.hidl.base-V1.0-java.vdex 68 File: /framework/arm/boot.art 71 File: /framework/arm/boot-core-libart.oat 74 File: /framework/arm/boot-core-libart.vdex 77 File: /framework/arm/boot-framework.oat 83 File: /framework/arm/boot-framework.vdex 89 File: /framework/arm/boot.oat 93 File: /framework/arm/boot-okhttp.oat 96 File: /framework/arm/boot-okhttp.vdex 99 File: /framework/arm/boot-org.apache.http.legacy.boot.vdex [all …]
|
/system/update_engine/common/ |
D | hardware_interface.h | 31 // such as the firmware version, hwid, verified boot mode. 43 // Returns true if the boot mode is normal or if it's unable to 44 // determine the boot mode. Returns false if the boot mode is 45 // developer. A dev-mode boot will allow the user to access developer-only 77 // Returns the minimum kernel key version that verified boot on Chrome OS 78 // will allow to boot. This is the value of crossystem tpm_kernver. Returns 82 // Returns the minimum firmware key version that verified boot on Chrome OS 83 // will allow to boot. This is the value of crossystem tpm_fwver. Returns 87 // Returns the maximum firmware key version that verified boot should roll 93 // Sets the maximum firmware key version that verified boot should roll [all …]
|
/system/apex/tests/src/com/android/tests/apex/ |
D | ApexRollbackTests.java | 43 * Test for automatic recovery of apex update that causes boot loop. 80 * Test for automatic recovery of apex update that causes boot loop. 94 // To simulate an apex update that causes a boot loop, we install a in testAutomaticBootLoopRecovery() 96 // script to be run at boot. The trigger_watchdog.sh script checks if in testAutomaticBootLoopRecovery() 100 // boot loop. in testAutomaticBootLoopRecovery() 110 // After we reboot the device, we expect the device to go into boot in testAutomaticBootLoopRecovery() 112 // report the boot loop, causing apexd to roll back to the previous in testAutomaticBootLoopRecovery() 115 // version of the apex and refrain from forcing a boot loop, so the in testAutomaticBootLoopRecovery() 133 * if it reboots during boot. 198 // will kick in, and at the next boot any non-finalized sessions will be reverted. in testCheckpointingRevertsSession() [all …]
|
/system/extras/boot_control_copy/ |
D | boot_control_copy.cpp | 146 fprintf(stderr, "WARNING: Error loading boot-info. Resetting.\n"); in module_setActiveBootSlot() 150 fprintf(stderr, "WARNING: boot-info is invalid. Resetting.\n"); in module_setActiveBootSlot() 162 fprintf(stderr, "Error saving boot-info.\n"); in module_setActiveBootSlot() 166 // Finally copy the contents of boot_X into boot. in module_setActiveBootSlot() 174 dst_fd = boot_info_open_partition("boot", &dst_size, O_RDWR); in module_setActiveBootSlot() 176 fprintf(stderr, "Error opening \"boot\" partition.\n"); in module_setActiveBootSlot() 216 fprintf(stderr, "WARNING: Error loading boot-info. Resetting.\n"); in module_setSlotAsUnbootable() 220 fprintf(stderr, "WARNING: boot-info is invalid. Resetting.\n"); in module_setSlotAsUnbootable() 228 fprintf(stderr, "Error saving boot-info.\n"); in module_setSlotAsUnbootable() 243 fprintf(stderr, "WARNING: Error loading boot-info. Resetting.\n"); in module_isSlotBootable() [all …]
|
/system/core/init/ |
D | init_test.cpp | 78 on boot in TEST() 90 ActionManagerCommand trigger_boot = [](ActionManager& am) { am.QueueEventTrigger("boot"); }; in TEST() 102 on boot: in TEST() 122 on boot in TEST() 125 on boot && property:ro.hardware=* in TEST() 128 on boot in TEST() 153 ActionManagerCommand trigger_boot = [](ActionManager& am) { am.QueueEventTrigger("boot"); }; in TEST() 193 ASSERT_TRUE(android::base::WriteStringToFd("on boot\nexecute 2", first_import.fd)); in TEST() 197 ASSERT_TRUE(android::base::WriteStringToFd("on boot\nexecute 4", dir_a_import.fd)); in TEST() 201 ASSERT_TRUE(android::base::WriteStringToFd("on boot\nexecute 6", last_import.fd)); in TEST() [all …]
|
/system/extras/partition_tools/ |
D | lpdumpd.rc | 23 # On Launch devices, assume "super". On virtual devices, ${ro.boot.super_partition} 25 file /dev/block/by-name/${ro.boot.super_partition:-super} r 26 # On retrofit devices, ${ro.boot.super_partition} is slot-suffixed. 29 …file /dev/block/by-name/${ro.boot.super_partition:-NO_SUCH_DEVICE}${ro.boot.slot_suffix:-_NO_SUCH_…
|
/system/sepolicy/private/ |
D | bootstat.te | 5 # Collect metrics on boot time created by init 8 # Read/Write [persist.]sys.boot.reason and ro.boot.bootreason (write if empty) 24 # ... and refine, as these components should not set the last boot reason
|
/system/extras/bootctl/ |
D | bootctl.cpp | 21 #include <android/hardware/boot/1.1/IBootControl.h> 28 using android::hardware::boot::V1_0::BoolResult; 29 using android::hardware::boot::V1_0::CommandResult; 30 using android::hardware::boot::V1_0::Slot; 31 using android::hardware::boot::V1_1::IBootControl; 32 using android::hardware::boot::V1_1::MergeStatus; 34 namespace V1_0 = android::hardware::boot::V1_0; 35 namespace V1_1 = android::hardware::boot::V1_1; 42 "%s - command-line wrapper for the boot HAL.\n" in usage() 51 " mark-boot-successful - Mark current slot as GOOD.\n" in usage() [all …]
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | property_contexts | 63 dalvik.vm.zygote.max-boot-retry u:object_r:exported_dalvik_prop:s0 exact int 82 pm.dexopt.boot u:object_r:exported_pm_prop:s0 exact string 83 pm.dexopt.first-boot u:object_r:exported_pm_prop:s0 exact string 87 ro.boot.vendor.overlay.theme u:object_r:exported_overlay_prop:s0 exact string 88 ro.boot.wificountrycode u:object_r:exported3_default_prop:s0 exact string 162 ro.boot.avb_version u:object_r:exported2_default_prop:s0 exact string 163 ro.boot.baseband u:object_r:exported2_default_prop:s0 exact string 164 ro.boot.bootdevice u:object_r:exported2_default_prop:s0 exact string 165 ro.boot.bootloader u:object_r:exported2_default_prop:s0 exact string 166 ro.boot.boottime u:object_r:exported2_default_prop:s0 exact string [all …]
|
D | bootstat.te | 11 # Collect metrics on boot time created by init 14 # Read/Write [persist.]sys.boot.reason and ro.boot.bootreason (write if empty) 41 # ... and refine, as these components should not set the last boot reason
|
/system/core/fastboot/device/ |
D | fastboot_device.h | 25 #include <android/hardware/boot/1.0/IBootControl.h> 26 #include <android/hardware/boot/1.1/IBootControl.h> 52 android::sp<android::hardware::boot::V1_0::IBootControl> boot_control_hal() { in boot_control_hal() 55 android::sp<android::hardware::boot::V1_1::IBootControl> boot1_1() { return boot1_1_; } in boot1_1() 67 android::sp<android::hardware::boot::V1_0::IBootControl> boot_control_hal_; 68 android::sp<android::hardware::boot::V1_1::IBootControl> boot1_1_;
|
/system/core/fs_mgr/libsnapshot/ |
D | Android.bp | 63 "android.hardware.boot@1.0", 64 "android.hardware.boot@1.1", 136 "android.hardware.boot@1.1", 140 "android.hardware.boot@1.1", 172 "android.hardware.boot@1.0", 173 "android.hardware.boot@1.1", 216 "android.hardware.boot@1.0", 217 "android.hardware.boot@1.1",
|
/system/extras/boottime_tools/bootio/ |
D | bootio.cpp | 17 // The bootio tool provides options to collect I/O stats for processes during boot. 45 " -p, --print Dump the boot io data to the console\n" in ShowHelp() 50 printf("Boot I/O:\n"); in PrintBootIo() 83 printf("Boot I/O: no profiling requested. Exiting.\n"); in StartDataCollection() 87 LOG(ERROR) << "Boot I/O: failed to parse string:" << start; in StartDataCollection() 88 printf("Boot I/O: failed to parse string: %s\n", start.c_str()); in StartDataCollection() 97 LOG(INFO) << "Boot I/O: collecting data. samples=" << samples << "timeout=" << timeout; in StartDataCollection() 98 printf("Boot I/O: collecting data\ntimeout=%d, samples=%d\n", in StartDataCollection()
|
/system/apex/tests/testdata/ |
D | trigger_watchdog.rc | 2 on boot && property:persist.debug.trigger_watchdog.apex=* 8 on boot && property:debug.trigger_reboot_once_after_activation=1 && property:persist.debug.trigger_… 13 on boot && property:persist.debug.trigger_reboot_twice_after_activation=1 && property:persist.debug… 18 on boot && property:persist.debug.trigger_updatable_crashing_for_testing=1 23 on boot && property:test.apex_revert_test_force_reboot=1
|
/system/sepolicy/prebuilts/api/29.0/public/ |
D | property_contexts | 14 dalvik.vm.boot-dex2oat-cpu-set u:object_r:exported_dalvik_prop:s0 exact string 15 dalvik.vm.boot-dex2oat-threads u:object_r:exported_dalvik_prop:s0 exact int 16 dalvik.vm.boot-image u:object_r:exported_dalvik_prop:s0 exact string 71 dalvik.vm.zygote.max-boot-retry u:object_r:exported_dalvik_prop:s0 exact int 94 pm.dexopt.boot u:object_r:exported_pm_prop:s0 exact string 97 pm.dexopt.first-boot u:object_r:exported_pm_prop:s0 exact string 104 ro.boot.vendor.overlay.theme u:object_r:exported_overlay_prop:s0 exact string 105 ro.boot.wificountrycode u:object_r:exported3_default_prop:s0 exact string 216 ro.boot.avb_version u:object_r:exported2_default_prop:s0 exact string 217 ro.boot.baseband u:object_r:exported2_default_prop:s0 exact string [all …]
|
D | bootstat.te | 11 # Collect metrics on boot time created by init 14 # Read/Write [persist.]sys.boot.reason and ro.boot.bootreason (write if empty) 44 # ... and refine, as these components should not set the last boot reason
|