summaryrefslogtreecommitdiff
path: root/bootctl
AgeCommit message (Collapse)Author
2022-07-13Move bootctl CLI tool to new BootControlClientKelvin Zhang
Bug 227536004 Test: th Change-Id: I5d43c3f89a0f92bf673f410645d813ffa81b77c3
2021-02-19[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: alloc-stress/Android.bp app-launcher/Android.bp boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp brillo_config/Android.mk checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioblame/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp partition_tools/aidl/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp pssbench/Android.mk puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp zram-perf/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ia559848af903a7b6746d9b12b7de8b83bc57f99d
2021-02-16Revert "[LSC] Add LOCAL_LICENSE_KINDS to system/extras"Bob Badour
This reverts commit 044d055c842a5750359ed71dfe50a6a4bf5f4cc3. Reason for revert: Needs to run as multiple roots. Change-Id: I8e06e7eb19e0f634f52fbd8a1c6662f43e347dd5
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Added legacy_notice to: alloc-stress/Android.bp app-launcher/Android.bp brillo_config/Android.mk ioblame/Android.bp partition_tools/aidl/Android.bp pssbench/Android.mk zram-perf/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ie7c022a4d7f828a89d0cda663684a497af37006e
2020-11-25Add command to get active slotTianjie
Bug: 173808057 Test: bootctl get-active-boot-slot Change-Id: Iada4a608d3976adb0284cf517c376cfe9c4f8aa3
2020-10-26bootctl: format filesThiébaud Weksteen
Format *.cpp according to the new .clang-format. The following command was used to generate this change: $ find . \( -name \*.cpp -o -name \*.h \) -exec clang-format \ --style=file -i {} \; Test: mm Bug: 171699326 Change-Id: I8b69f896c2e1aa4bce3da203341cdcb3504625e0
2020-07-15Make bootctl work on devices that does not have v1.1 APIHåkan Kvist
Execute the commands with the API version where the command was introduced. This makes it possible to run the v1.0 HAL commands on a device where v1.1 HAL implementation is not available. Without this patch, on devices that only support bootcontrol v1.0 API, bootctl would just fail with error message. Bug: 160405575 Test: Execute command on device that only implements v1.0 API adb shell bootctl hal-info Change-Id: I56e9a81bcae49b6859b04394d571b5151a235675 Merged-In: I56e9a81bcae49b6859b04394d571b5151a235675 Signed-off-by: Håkan Kvist <hakan.kvist@sony.com> Signed-off-by: Alessio Balsini <balsini@google.com>
2020-01-02Extend bootctl with IBootControl1.1 APIAlessio Balsini
Extend bootctl to use the new API methods introduced in IBootControl1.1: setSnapshotMergeStatus() and getSnapshotMergeStatus(). Test: adb shell Bug: b/144783382 Change-Id: Id7acc927561aa17b37be65fa54faa55702d73958 Signed-off-by: Alessio Balsini <balsini@google.com>
2019-09-05Remove libhwbinder/libhidltransport depsSteven Moreland
Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: Iea42841e537a16a302b6d425faf2c6bd511c6bad
2018-05-04Convert to SoongDan Willemsen
See build/soong/README.md for more information. This effectively moves some of these targets from /system/xbin to /system/bin, as Soong is not supporting xbin. I've attempted to fix and find any external dependencies to these paths. Test: m anrd app-launcher bootctrl.default bootctl cpustats crypto iotop Change-Id: I3eb58d8a260884652b5ee827ac88ece429d76448
2017-10-20Use -Werror in system/extrasChih-Hung Hsieh
* Remove unused variables. * Fix redefined macro warnings. * Fix sign-compare warnings. * Fix 'return false' in main(). * Keep existing warnings to fix later. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib92ef5297693595fb84ed4f8e61665bda4cee312
2017-02-22Use interfaceDescriptor instead of interfaceChainYifan Hong
wherever suits. Sementically, interfaceDescriptor returns the first element of interfaceChain; use interfaceDescriptor when the rest of the elements aren't used. Bug: 34136228 Test: pass Change-Id: Icc78e7e9b17b7c51c705c20d51c2fbac5b1c5dd7
2017-02-17bootctl: Return<T> is non-copyable.Yifan Hong
By copying the Return<T> in handl_return, the original Return<T> object is left status unchecked when it is destroyed. Test: compiles Change-Id: I7bf21370e8323374deb9a8d3f252e9742357f000
2017-01-20bootctrl HAL uses "default" service nameChris Phoenix
The getService() and registerAsService() methods of interface objects now have default parameters of "default" for the service name. HALs will not have to use any service name unless they want to register more than one service. Test: builds; verify HAL still works In support of b/33844934 Change-Id: Iba190c717cf02d2dfe90b470f82b6ca4a82b6c07 Merged-In: Idc2c5ba09f2486ff9cc9815d72a7e5a0af323b22
2017-01-04boot control: remove getInterfaceVersionSteven Moreland
getInterfaceVersion doesn't provide any information and is being removed. I've replaced the call with interfaceChain here so that a better description can be obtained. Bug: 34041669 Test: compiles Change-Id: I00e5154e92edf2dd17b3e899b094589642ba3b3e
2016-12-20Update for hiding Status from Return<T> object.Yifan Hong
Bug: 31348667 Test: compiles Change-Id: I31eb72e4e18dca68255a36915fcc980c928936d7
2016-11-29Rewrite bootctl utility to use new HAL interfaceConnor O'Brien
Test: Ran and compared output to old version Change-Id: I8889794a5c7953b066a1a7fecd0154c912f4d60d Signed-off-by: Connor O'Brien <connoro@google.com>
2015-12-10bootctl: add is-slot-marked-successful command.David Zeuthen
This makes it easy to call the newly added isSlotMarkedSuccessful() boot_control HAL method added in the CL at https://android-review.googlesource.com/#/c/185841/ This is useful for e.g. test suites. Also improve error reporting for is-slot-bootable command. Change-Id: I603e07d8310fc1de88114dadbaa1622a76289afb Test: tested on edison (Brillo).
2015-11-19bootctl: Fix the error checking for strtol result.Tao Bao
system/extras/bootctl/bootctl.c:136:13: warning: comparison is always false due to limited range of data type [-Wtype-limits] if (ret == LONG_MIN || ret == LONG_MAX) { Change-Id: Id4816716e4c6d304c2ca531aadbcc62117ad7376
2015-10-02Add NOTICE filesSami Tolvanen
Bug: 24571219 Change-Id: Ib7a4374974c2d0d9225caa1e43d0b78251a36bd2
2015-09-17Check command line arguments first.Gilad Arnold
This allows users to see the usage text before attempting to do actual work. Particularly useful when bootctrl module consistently fails to load. Bug: 24157039 Change-Id: Id0f3fa048f4c88ef87156b79f4fff249a77270b4
2015-08-31bootctl: Command-line wrapper for boot_control HAL.David Zeuthen
Change-Id: Icd7bfee8fcc04ca113c2e6dc8bcefd614e804bb6