rmad: Remove deprecated pre-stop script for battery cutoff

We have moved the logic of requesting battery cutoff to executor APIs.
This CL is to clean up the deprecated logics of doing this.

BUG=b:260529950
TEST=FEATURES=test emerge-octopus rmad

Change-Id: Ic147400641b1548a862e6d55573af610a0b5b577
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/4075427
Auto-Submit: Jeff Lin <jeffulin@google.com>
Tested-by: Jeff Lin <jeffulin@google.com>
Commit-Queue: Cheng-Han Yang <chenghan@chromium.org>
Reviewed-by: Cheng-Han Yang <chenghan@chromium.org>
5 files changed
tree: 6b22ce71d1784a6cd554c7ad846626cdad29d482
  1. arc/
  2. attestation/
  3. authpolicy/
  4. avtest_label_detect/
  5. biod/
  6. bootid-logger/
  7. bootlockbox/
  8. bootstat/
  9. camera/
  10. cfm-dfu-notification/
  11. chaps/
  12. chargesplash/
  13. chromeos-common-script/
  14. chromeos-config/
  15. chromeos-dbus-bindings/
  16. chromeos-nvt-tcon-updater/
  17. codelab/
  18. common-mk/
  19. crash-reporter/
  20. cronista/
  21. cros-disks/
  22. crosdns/
  23. crosh/
  24. croslog/
  25. cryptohome/
  26. cups_proxy/
  27. debugd/
  28. dev-install/
  29. diagnostics/
  30. discod/
  31. disk_updater/
  32. dlcservice/
  33. dlp/
  34. dns-proxy/
  35. easy-unlock/
  36. faced/
  37. feature_usage/
  38. featured/
  39. federated/
  40. feedback/
  41. fitpicker/
  42. flex_id/
  43. foomatic_shell/
  44. fusebox/
  45. glib-bridge/
  46. goldfishd/
  47. hammerd/
  48. hardware_verifier/
  49. hermes/
  50. hiberman/
  51. hps/
  52. hwsec-host-utils/
  53. hwsec-optee-plugin/
  54. hwsec-test-utils/
  55. hwsec-utils/
  56. iioservice/
  57. image-burner/
  58. imageloader/
  59. init/
  60. installer/
  61. ippusb_bridge/
  62. kerberos/
  63. libbrillo/
  64. libchromeos-rs/
  65. libchromeos-ui/
  66. libcontainer/
  67. libcrossystem/
  68. libec/
  69. libhwsec/
  70. libhwsec-foundation/
  71. libipp/
  72. libmems/
  73. libpasswordprovider/
  74. libtpmcrypto/
  75. login_manager/
  76. lorgnette/
  77. lvmd/
  78. media_capabilities/
  79. media_perception/
  80. mems_setup/
  81. metrics/
  82. midis/
  83. minios/
  84. missive/
  85. mist/
  86. ml/
  87. ml_benchmark/
  88. ml_core/
  89. modem-utilities/
  90. modemfwd/
  91. mojo_service_manager/
  92. mtpd/
  93. nnapi/
  94. ocr/
  95. oobe_config/
  96. os_install_service/
  97. p2p/
  98. parallax/
  99. patchpanel/
  100. pciguard/
  101. perfetto_simple_producer/
  102. permission_broker/
  103. policy_proto/
  104. policy_utils/
  105. power_manager/
  106. print_tools/
  107. private_computing/
  108. regions/
  109. resourced/
  110. rgbkbd/
  111. rmad/
  112. run_oci/
  113. runtime_probe/
  114. screen-capture-utils/
  115. sealed_storage/
  116. secagentd/
  117. secanomalyd/
  118. secure-wipe/
  119. secure_erase_file/
  120. sepolicy/
  121. shadercached/
  122. shill/
  123. sirenia/
  124. smbfs/
  125. smbprovider/
  126. smogcheck/
  127. spaced/
  128. st_flash/
  129. storage_info/
  130. syslog-cat/
  131. system-proxy/
  132. system_api/
  133. timberslide/
  134. touch_firmware_calibration/
  135. tpm2-simulator/
  136. tpm_manager/
  137. tpm_softclear_utils/
  138. trim/
  139. trunks/
  140. typecd/
  141. u2fd/
  142. ureadahead-diff/
  143. usb_bouncer/
  144. userfeedback/
  145. uwbd/
  146. verity/
  147. virtual_file_provider/
  148. vm_tools/
  149. vtpm/
  150. wifi-testbed/
  151. .clang-format
  152. .clang-tidy
  153. .git-blame-ignore-revs
  154. .gitignore
  155. .gn
  156. CPPLINT.cfg
  157. LICENSE
  158. navbar.md
  159. OWNERS
  160. PRESUBMIT.cfg
  161. PRESUBMIT.py
  162. pylintrc
  163. README.md
  164. unblocked_terms.txt
README.md

The ChromiumOS Platform

This repo holds (most) of the custom code that makes up the ChromiumOS platform. That largely covers daemons, programs, and libraries that were written specifically for ChromiumOS.

We moved from multiple separate repos in platform/ to a single repo in platform2/ for a number of reasons:

  • Make it easier to work across multiple projects simultaneously
  • Increase code re-use (via common libs) rather than duplicate utility functions multiple items over
  • Share the same build system

While most projects were merged, not all of them were. Some projects were standalone already (such as vboot), or never got around to being folded in (such as imageloader). Some day those extra projects might get merged in.

Similarly, some projects that were merged in, were then merged back out. This was due to the evolution of the Brillo project and collaboration with Android. That means the AOSP repos are the upstream and ChromiumOS carries copies.

Local Project Directory

ProjectDescription
arcTools/deamons/init-scripts to run ARC
attestationDaemon and client for managing remote attestation
authpolicyDaemon for integrating with Microsoft Active Directory (AD) domains
avtest_label_detectTest tool for OCRing device labels
biodBiometrics daemon
bootid-loggerSimple command to record the current boot id to the log.
bootlockboxDaemon and client for boot lockbox service.
bootstatTools for tracking points in the overall boot process (for metrics)
cameraChromeOS Camera daemon
cfm-dfu-notificationCFM specific library for DFU notifications
chapsPKCS #11 implementation for TPM 1 devices
chargesplashFrecon-based charging indicator
chromeos-common-scriptShared scripts for partitions and basic disk information
chromeos-configCrOS unified build runtime config manager
chromeos-dbus-bindingsSimplifies the implementation of D-Bus daemons and proxies
chromeos-nvt-tcon-updaterLibrary for integrating the Novatek TCON firmware updater into a CrOS device
codelabCodelab exercise
common-mkCommon build & test logic for platform2 projects
crash-reporterThe system crash handler & reporter
cronistaTamper evident storage daemon
cros-disksDaemon for mounting removable media (e.g. USB sticks and SD cards)
crosdnsHostname resolution service for ChromeOS
croshThe ChromiumOS shell
croslogThe log manipulation command
cryptohomeDaemon and tools for managing encrypted /home and /var directories
cups_proxyDaemon for proxying CUPS printing request
debugdCentralized debug daemon for random tools
dev-installTools & settings for managing the developer environment on the device
diagnosticsDevice telemetry and diagnostics daemons
discodControl Loop for behavioural storage devices features (e.g. UFS Write Booster)
disk_updaterUtility for updating root disk firmware (e.g. SSDs and eMMC)
dlcserviceDownloadable Content (DLC) Service daemon
dlpDate Leak Prevention (DLP) daemon
dns-proxyDNS Proxy daemon
easy-unlockDaemon for handling Easy Unlock requests (e.g. unlocking Chromebooks with an Android device)
facedFace Authentication Daemon
feature_usageLibrary to provide a unified approach to report feature usage events
featuredFeature daemon for enabling and managing platform features
federatedFederated computation service (Federated Analytics & Federated Learning)
feedbackDaemon for headless systems that want to gather feedback (normally Chrome manages it)
fitpicker
flex_idUtility for generating flex_id, a machine identifier for devices without VPD info
foomatic_shellSimple shell used by the foomatic-rip package
fuseboxFuseBox service
glib-bridgelibrary for libchrome-glib message loop interoperation
goldfishdAndroid Emulator Daemon
hammerdFirmware updater utility for hammer hardware
hardware_verifierHardware verifier tool
hermesChromeOS LPA implementation for eSIM hardware support
hibermanChromeOS Hibernation Manager
hpsChromeOS HPS daemon and utilities
hwsec-host-utilsHwsec-related host-only utilities
hwsec-optee-pluginHwsec-related optee plugin
hwsec-test-utilsHwsec-related test-only features
hwsec-utilsHwsec-related features
iioserviceDaemon and libraries that provide sensor data to all processes
image-burnerDaemon for writing disk images (e.g. recovery) to USB sticks & SD cards
imageloaderDaemon for mounting signed disk images
initCrOS common startup init scripts and boot time helpers
installerCrOS installer utility (for AU/recovery/etc...)
ippusb_bridgeHTTP proxy to IPP-enabled printers
kerberosDaemon for managing Kerberos tickets
libbrilloCommon platform utility library
libchromeos-rsCommon platform utility library for Rust
libchromeos-ui
libcontainer
libcrossystemLibrary for getting ChromeOS system properties
libecLibrary for interacting with EC
libhwsecLibrary for the utility functions of all TPM related daemons except for trunks and trousers
libhwsec-foundationLibrary for the utility functions of all TPM related daemons and libraries
libippLibrary for building and parsing IPP (Internet Printing Protocol) frames
libmemsUtility library to configure, manage and retrieve events from IIO sensors
libpasswordproviderPassword Provider library for securely managing credentials with system services
libtpmcryptoLibrary for AES256-GCM encryption with TPM sealed keys
login_managerSession manager for handling the life cycle of the main session (e.g. Chrome)
lorgnetteDaemon for managing attached USB scanners via SANE
lvmdChromeOS LVM daemon
media_capabilitiesCommand line tool to show video and camera capabilities
media_perceptionMedia perception service for select platforms
memdDaemon that logs memory-related data and events
mems_setupBoot-time initializer tool for sensors
metricsClient side user metrics collection
midisMIDI service
miniosA minimal OS used during recovery
missiveDaemon for the storage of encrypted records for managed devices.
mistModem USB Interface Switching Tool
mlMachine learning service
ml_benchmarkML performance benchmark for ChromeOS
ml_coreMachine learning feature library
modem-utilities
modemfwdDaemon for managing modem firmware updaters
mojo_service_managerDaemon for managing mojo services
mtpdDaemon for handling Media Transfer Protocol (MTP) with devices (e.g. phones)
nnapiImplementation of the Android Neural Networks API
ocrOptical Character Recognition (OCR) service for ChromeOS
oobe_configUtilities for saving and restoring OOBE config state
os_install_serviceService that can be triggered by the UI to install CrOS to disk from a USB device
p2pService for sharing files between CrOS devices (e.g. updates)
parallaxVisual Analysis Framework
patchpanelPlatform networking daemons
pciguardDaemon to secure external PCI devices (thunderbolt etc)
perfetto_simple_producerA simple producer of perfetto: An example demonstrating how to produce Perfetto performance trace data
permission_broker
policy_protoBuild file to compile policy proto file
policy_utilsTools and related library to set or override device policies
power_managerUserspace power management daemon and associated tools
print_toolsVarious tools related to the native printing system
private_computingDaemon to save and retrieve device active date status into and from preserved file.
regions
resourcedResource Management Daemon
rgbkbdChromeOS RGB Keyboard Daemon
rmadChromeOS RMA Daemon
run_ociMinimalistic container runtime
runtime_probeRuntime probe tool for ChromeOS
screen-capture-utilsUtilities for screen capturing (screenshot)
sealed_storageLibrary for sealing data to device identity and state
secagentdDaemon for detecting and reporting security related events
secanomalydDaemon for detecting and reporting security anomalies
secure-wipeSecure disk wipe
secure_erase_fileHelper tools for securely erasing files from storage (e.g. keys and PII data)
sepolicySELinux policy for ChromeOS
shadercachedShader cache management daemon
shillChromeOS Connection Manager
sireniaMinimalistic init written in Rust
smbfsFUSE-based filesystem for accessing Samba / Windows networking shares
smbproviderDaemon for connecting Samba / Windows networking shares to the Files.app
smogcheckDeveloper library for working with raw I2C devices
spacedDisk space information daemon
st_flash
storage_infoHelper shell functions for retrieving disk information)
syslog-catHelper command to forward stdout/stderr from process to syslog
system-proxyDaemon for web proxy authentication support on ChromeOS
system_apiHeaders and .proto files etc. to be shared with chromium
timberslideTool for working with EC crashes for reporting purposes
touch_firmware_calibration
tpm2-simulatorA software TPM 2.0 implementation (for testing/debugging)
tpm_managerDaemon and client for managing TPM setup and operations
tpm_softclear_utilsUtilities that soft-clear TPM (for testing only)
trimService to manage filesystem trim operations in the background
trunksMiddleware and resource manager for interfacing with TPM 2.0 hardware
typecdSystem daemon to keep track of USB Type C state
u2fdU2FHID emulation daemon for systems with secure elements (not TPMs)
ureadahead-diffTool to calculate difference between 2 ureadahead packs
usb_bouncerTools for managing USBGuard white-lists and configuration on ChromeOS
userfeedbackVarious utilities to gather extended data for user feedback reports
uwbdDaemon for the UWB on ChromeOS
verityUserspace tools for working dm-verity (verified disk images)
virtual_file_provider
vm_toolsUtilities for Virtual Machine (VM) orchestration
vtpmChromeOS virtual TPM Daemon
wifi-testbedTools for creating a WiFi testbed image

AOSP Project Directory

These projects can be found here: https://chromium.googlesource.com/aosp/platform/