Investigate cmd #59

Closed
opened 2026-01-25 16:12:18 +01:00 by Benjamin_Loison · 16 comments
Owner
adb shell cmd -l
Output:
Currently running services:
  DockObserver
  SurfaceFlinger
  SurfaceFlingerAIDL
  accessibility
  account
  activity
  activity_task
  adb
  adbroot_service
  adservices_manager
  advanced_protection
  alarm
  android.frameworks.cameraservice.service.ICameraService/default
  android.frameworks.devicestate.IDeviceStateService/default
  android.frameworks.location.altitude.IAltitudeService/default
  android.frameworks.sensorservice.ISensorManager/default
  android.frameworks.stats.IStats/default
  android.frameworks.vibrator.IVibratorControlService/default
  android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default
  android.hardware.boot.IBootControl/default
  android.hardware.drm.IDrmFactory/clearkey
  android.hardware.health.IHealth/default
  android.hardware.media.c2.IComponentStore/software
  android.hardware.memtrack.IMemtrack/default
  android.hardware.nfc.INfc/default
  android.hardware.power.IPower/default
  android.hardware.sensors.ISensors/default
  android.hardware.thermal.IThermal/default
  android.hardware.usb.IUsb/default
  android.hardware.usb.gadget.IUsbGadget/default
  android.hardware.vibrator.IVibrator/default
  android.hardware.wifi.IWifi/default
  android.hardware.wifi.supplicant.ISupplicant/default
  android.os.UpdateEngineService
  android.os.UpdateEngineStableService
  android.security.apc
  android.security.authorization
  android.security.compat
  android.security.identity
  android.security.legacykeystore
  android.security.maintenance
  android.security.metrics
  android.service.gatekeeper.IGateKeeperService
  android.system.keystore2.IKeystoreService/default
  android.system.net.netd.INetd/default
  android.system.suspend.ISystemSuspend/default
  android.system.vold.IVold/default
  app_binding
  app_function
  app_hibernation
  app_integrity
  app_search
  appops
  appwidget
  attestation_verification
  audio
  auth
  authentication_policy
  autofill
  background_install_control
  backup
  battery
  batteryproperties
  batterystats
  binder_calls_stats
  biometric
  blob_store
  bluetooth_manager
  bugreport
  cacheinfo
  carrier_config
  clipboard
  color_display
  companiondevice
  connectivity
  connectivity_native
  connmetrics
  content
  country_detector
  cpuinfo
  credential
  crossprofileapps
  dataloader_manager
  dbinfo
  device_config
  device_identifiers
  device_lock
  device_policy
  device_state
  deviceidle
  devicestoragemonitor
  diskstats
  display
  dnsresolver
  domain_verification
  dpmservice
  dreams
  drm.drmManager
  dropbox
  dynamic_instrumentation
  dynamic_system
  ecm_enhanced_confirmation
  econtroller
  emergency_affordance
  ethernet
  euicc_card_controller
  external_vibrator_service
  feature_flags
  file_integrity
  fingerprint
  font
  game
  gfxinfo
  gpu
  grammatical_inflection
  graphicsstats
  hardware_properties
  healthconnect
  imms
  incident
  incidentcompanion
  incremental
  input
  input_method
  inputflinger
  installd
  intrusion_detection
  ions
  iphonesubinfo
  ipsec
  isms
  isub
  jobscheduler
  launcherapps
  legacy_permission
  lights
  lineageglobalactions
  lineagehardware
  lineagehealth
  lineagelivedisplay
  lineagetrust
  locale
  location
  location_time_zone_manager
  lock_settings
  logcat
  looper_stats
  manager
  mdns
  media.aaudio
  media.audio_flinger
  media.audio_policy
  media.camera
  media.camera.proxy
  media.extractor
  media.metrics
  media.player
  media.resource_manager
  media.resource_observer
  media_communication
  media_metrics
  media_projection
  media_resource_monitor
  media_router
  media_session
  meminfo
  memtrack.proxy
  midi
  mount
  nearby
  netd
  netd_listener
  netpolicy
  netstats
  network_management
  network_score
  network_stack
  network_time_update_service
  network_watchlist
  nfc
  notification
  oem_lock
  on_device_intelligence
  ondevicepersonalization_system_service
  otadexopt
  overlay
  pac_proxy
  package
  package_native
  people
  performance_hint
  permission
  permission_checker
  permissionmgr
  persistent_data_block
  phone
  pinner
  platform_compat
  platform_compat_native
  power
  powerstats
  print
  processinfo
  procstats
  profile
  profiling_service
  ranging
  reboot_readiness
  recovery
  remote_provisioning
  resources
  restrictions
  role
  rollback
  runtime
  safety_center
  scheduling_policy
  sdk_sandbox
  search
  sec_key_att_app_id_provider
  secure_element
  security_state
  sensitive_content_protection_service
  sensor_privacy
  sensorservice
  serial
  servicediscovery
  settings
  shortcut
  simphonebook
  slice
  soundtrigger
  soundtrigger_middleware
  speech_recognition
  stats
  statsbootstrap
  statscompanion
  statsmanager
  statusbar
  storaged
  storaged_pri
  storagestats
  supervision
  suspend_control
  suspend_control_internal
  system_config
  system_server_dumper
  system_update
  telecom
  telephony.registry
  telephony_ims
  testharness
  tethering
  textclassification
  textservices
  texttospeech
  thermalservice
  time_detector
  time_zone_detector
  tracing.proxy
  tradeinmode
  transparency
  trust
  uimode
  updatelock
  uri_grants
  usagestats
  usb
  user
  vcn_management
  vendor.lineage.health.IChargingControl/default
  vendor.lineage.health.IFastCharge/default
  vendor.lineage.livedisplay.IPictureAdjustment/default
  vibrator_manager
  virtualdevice
  virtualdevice_native
  voiceinteraction
  vold
  vpn_management
  wallpaper
  wearable_sensing
  webviewupdate
  wifi
  wifinl80211
  wifip2p
  wifiscanner
  window

on my Fairphone 4 LineageOS 23.0.

Would help Benjamin_Loison/Backup_Android_apps/issues/51#issuecomment-10148871.

``` adb shell cmd -l ``` <details> <summary>Output:</summary> ``` Currently running services: DockObserver SurfaceFlinger SurfaceFlingerAIDL accessibility account activity activity_task adb adbroot_service adservices_manager advanced_protection alarm android.frameworks.cameraservice.service.ICameraService/default android.frameworks.devicestate.IDeviceStateService/default android.frameworks.location.altitude.IAltitudeService/default android.frameworks.sensorservice.ISensorManager/default android.frameworks.stats.IStats/default android.frameworks.vibrator.IVibratorControlService/default android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default android.hardware.boot.IBootControl/default android.hardware.drm.IDrmFactory/clearkey android.hardware.health.IHealth/default android.hardware.media.c2.IComponentStore/software android.hardware.memtrack.IMemtrack/default android.hardware.nfc.INfc/default android.hardware.power.IPower/default android.hardware.sensors.ISensors/default android.hardware.thermal.IThermal/default android.hardware.usb.IUsb/default android.hardware.usb.gadget.IUsbGadget/default android.hardware.vibrator.IVibrator/default android.hardware.wifi.IWifi/default android.hardware.wifi.supplicant.ISupplicant/default android.os.UpdateEngineService android.os.UpdateEngineStableService android.security.apc android.security.authorization android.security.compat android.security.identity android.security.legacykeystore android.security.maintenance android.security.metrics android.service.gatekeeper.IGateKeeperService android.system.keystore2.IKeystoreService/default android.system.net.netd.INetd/default android.system.suspend.ISystemSuspend/default android.system.vold.IVold/default app_binding app_function app_hibernation app_integrity app_search appops appwidget attestation_verification audio auth authentication_policy autofill background_install_control backup battery batteryproperties batterystats binder_calls_stats biometric blob_store bluetooth_manager bugreport cacheinfo carrier_config clipboard color_display companiondevice connectivity connectivity_native connmetrics content country_detector cpuinfo credential crossprofileapps dataloader_manager dbinfo device_config device_identifiers device_lock device_policy device_state deviceidle devicestoragemonitor diskstats display dnsresolver domain_verification dpmservice dreams drm.drmManager dropbox dynamic_instrumentation dynamic_system ecm_enhanced_confirmation econtroller emergency_affordance ethernet euicc_card_controller external_vibrator_service feature_flags file_integrity fingerprint font game gfxinfo gpu grammatical_inflection graphicsstats hardware_properties healthconnect imms incident incidentcompanion incremental input input_method inputflinger installd intrusion_detection ions iphonesubinfo ipsec isms isub jobscheduler launcherapps legacy_permission lights lineageglobalactions lineagehardware lineagehealth lineagelivedisplay lineagetrust locale location location_time_zone_manager lock_settings logcat looper_stats manager mdns media.aaudio media.audio_flinger media.audio_policy media.camera media.camera.proxy media.extractor media.metrics media.player media.resource_manager media.resource_observer media_communication media_metrics media_projection media_resource_monitor media_router media_session meminfo memtrack.proxy midi mount nearby netd netd_listener netpolicy netstats network_management network_score network_stack network_time_update_service network_watchlist nfc notification oem_lock on_device_intelligence ondevicepersonalization_system_service otadexopt overlay pac_proxy package package_native people performance_hint permission permission_checker permissionmgr persistent_data_block phone pinner platform_compat platform_compat_native power powerstats print processinfo procstats profile profiling_service ranging reboot_readiness recovery remote_provisioning resources restrictions role rollback runtime safety_center scheduling_policy sdk_sandbox search sec_key_att_app_id_provider secure_element security_state sensitive_content_protection_service sensor_privacy sensorservice serial servicediscovery settings shortcut simphonebook slice soundtrigger soundtrigger_middleware speech_recognition stats statsbootstrap statscompanion statsmanager statusbar storaged storaged_pri storagestats supervision suspend_control suspend_control_internal system_config system_server_dumper system_update telecom telephony.registry telephony_ims testharness tethering textclassification textservices texttospeech thermalservice time_detector time_zone_detector tracing.proxy tradeinmode transparency trust uimode updatelock uri_grants usagestats usb user vcn_management vendor.lineage.health.IChargingControl/default vendor.lineage.health.IFastCharge/default vendor.lineage.livedisplay.IPictureAdjustment/default vibrator_manager virtualdevice virtualdevice_native voiceinteraction vold vpn_management wallpaper wearable_sensing webviewupdate wifi wifinl80211 wifip2p wifiscanner window ``` </details> on my Fairphone 4 LineageOS 23.0. Would help [Benjamin_Loison/Backup_Android_apps/issues/51#issuecomment-10148871](https://codeberg.org/Benjamin_Loison/Backup_Android_apps/issues/51#issuecomment-10148871).
Author
Owner
adb shell cmd android.frameworks.location.altitude.IAltitudeService/default
No shell command implementation.
```bash adb shell cmd android.frameworks.location.altitude.IAltitudeService/default ``` ``` No shell command implementation. ```
Author
Owner
adb shell cmd notexistingyhwmbezd
cmd: Can't find service: notexistingyhwmbezd
```bash adb shell cmd notexistingyhwmbezd ``` ``` cmd: Can't find service: notexistingyhwmbezd ```
Author
Owner
adb shell cmd DockObserver
No shell command implementation.
echo $?
0
```bash adb shell cmd DockObserver ``` ``` No shell command implementation. ``` ```bash echo $? ``` ``` 0 ```
Author
Owner

On Linux Mint 22.3 Cinnamon Framework 13 Virtual Machine Manager LineageOS 23.0 virtual machine for safety:

Bash script:
TIMEOUT=2
for command in $(adb shell cmd -l | tail -n +2)
do
    echo "|$command|"
    output=$(timeout $TIMEOUT adb shell cmd $command 2>&1)
    if [ $? = 124 ]
    then
        echo "Stopped after $TIMEOUT seconds"
    fi
    #echo $output
    if [ "$output" != 'No shell command implementation.' ]
    then
        echo $command
    fi
    #break
done
Output:
|DockObserver|
|SurfaceFlinger|
SurfaceFlinger
|SurfaceFlingerAIDL|
SurfaceFlingerAIDL
|accessibility|
accessibility
|account|
account
|activity|
activity
|activity_task|
|adb|
adb
|adbroot_service|
adbroot_service
|adservices_manager|
|alarm|
alarm
|android.frameworks.cameraservice.service.ICameraService/default|
android.frameworks.cameraservice.service.ICameraService/default
|android.frameworks.devicestate.IDeviceStateService/default|
|android.frameworks.location.altitude.IAltitudeService/default|
|android.frameworks.sensorservice.ISensorManager/default|
android.frameworks.sensorservice.ISensorManager/default
|android.frameworks.stats.IStats/default|
android.frameworks.stats.IStats/default
|android.hardware.audio.core.IConfig/default|
android.hardware.audio.core.IConfig/default
|android.hardware.audio.core.IModule/bluetooth|
android.hardware.audio.core.IModule/bluetooth
|android.hardware.audio.core.IModule/default|
android.hardware.audio.core.IModule/default
|android.hardware.audio.core.IModule/r_submix|
android.hardware.audio.core.IModule/r_submix
|android.hardware.audio.effect.IFactory/default|
android.hardware.audio.effect.IFactory/default
|android.hardware.bluetooth.IBluetoothHci/default|
android.hardware.bluetooth.IBluetoothHci/default
|android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default|
android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default
|android.hardware.bluetooth.offload.leaudio.IHciProxy/default|
android.hardware.bluetooth.offload.leaudio.IHciProxy/default
|android.hardware.boot.IBootControl/default|
android.hardware.boot.IBootControl/default
|android.hardware.cas.IMediaCasService/default|
android.hardware.cas.IMediaCasService/default
|android.hardware.drm.IDrmFactory/clearkey|
android.hardware.drm.IDrmFactory/clearkey
|android.hardware.gatekeeper.IGatekeeper/default|
android.hardware.gatekeeper.IGatekeeper/default
|android.hardware.graphics.allocator.IAllocator/default|
android.hardware.graphics.allocator.IAllocator/default
|android.hardware.graphics.composer3.IComposer/default|
android.hardware.graphics.composer3.IComposer/default
|android.hardware.health.IHealth/default|
android.hardware.health.IHealth/default
|android.hardware.media.c2.IComponentStore/software|
android.hardware.media.c2.IComponentStore/software
|android.hardware.memtrack.IMemtrack/default|
android.hardware.memtrack.IMemtrack/default
|android.hardware.power.IPower/default|
android.hardware.power.IPower/default
|android.hardware.power.stats.IPowerStats/default|
android.hardware.power.stats.IPowerStats/default
|android.hardware.security.keymint.IRemotelyProvisionedComponent/avf|
Stopped after 2 seconds
android.hardware.security.keymint.IRemotelyProvisionedComponent/avf
|android.hardware.security.keymint.IRemotelyProvisionedComponent/default|
android.hardware.security.keymint.IRemotelyProvisionedComponent/default
|android.hardware.security.sharedsecret.ISharedSecret/gatekeeper|
android.hardware.security.sharedsecret.ISharedSecret/gatekeeper
|android.hardware.sensors.ISensors/default|
android.hardware.sensors.ISensors/default
|android.os.UpdateEngineService|
android.os.UpdateEngineService
|android.os.UpdateEngineStableService|
android.os.UpdateEngineStableService
|android.security.apc|
android.security.apc
|android.security.authorization|
android.security.authorization
|android.security.compat|
android.security.compat
|android.security.identity|
android.security.identity
|android.security.legacykeystore|
android.security.legacykeystore
|android.security.maintenance|
android.security.maintenance
|android.security.metrics|
android.security.metrics
|android.system.keystore2.IKeystoreService/default|
android.system.keystore2.IKeystoreService/default
|android.system.net.netd.INetd/default|
android.system.net.netd.INetd/default
|android.system.suspend.ISystemSuspend/default|
android.system.suspend.ISystemSuspend/default
|android.system.virtualizationmaintenance|
Stopped after 2 seconds
android.system.virtualizationmaintenance
|android.system.vmtethering.IVmTethering|
|android.system.vold.IVold/default|
android.system.vold.IVold/default
|app_binding|
|app_function|
|app_hibernation|
app_hibernation
|app_integrity|
|app_search|
|appops|
appops
|appwidget|
|artd|
artd
|attestation_verification|
|audio|
audio
|auth|
|authentication_policy|
|autofill|
autofill
|background_install_control|
|backup|
|battery|
battery
|batteryproperties|
|batterystats|
|binder_calls_stats|
binder_calls_stats
|biometric|
|blob_store|
blob_store
|bluetooth_manager|
bluetooth_manager
|bugreport|
|cacheinfo|
|clipboard|
|color_display|
color_display
|companiondevice|
companiondevice
|connectivity|
connectivity
|connectivity_native|
|connmetrics|
|content|
content
|country_detector|
|cpuinfo|
|credential|
|crossprofileapps|
|dataloader_manager|
|dbinfo|
|device_config|
device_config
|device_identifiers|
|device_lock|
|device_policy|
device_policy
|device_state|
device_state
|deviceidle|
deviceidle
|devicestoragemonitor|
devicestoragemonitor
|diskstats|
|display|
display
|domain_verification|
|dreams|
dreams
|drm.drmManager|
drm.drmManager
|dropbox|
dropbox
|dynamic_instrumentation|
|dynamic_system|
|ecm_enhanced_confirmation|
|emergency_affordance|
|ethernet|
|feature_flags|
feature_flags
|file_integrity|
|font|
font
|game|
game
|gfxinfo|
|gpu|
gpu
|grammatical_inflection|
grammatical_inflection
|graphicsstats|
|hardware_properties|
|healthconnect|
|incidentcompanion|
|incremental|
incremental
|input|
input
|input_method|
input_method
|inputflinger|
inputflinger
|ipsec|
|jobscheduler|
jobscheduler
|launcherapps|
launcherapps
|legacy_permission|
|lights|
|lineageglobalactions|
|lineagehardware|
|lineagelivedisplay|
|lineagetrust|
|locale|
locale
|location|
location
|location_time_zone_manager|
location_time_zone_manager
|lock_settings|
lock_settings
|logcat|
|looper_stats|
looper_stats
|manager|
manager
|media.audio_flinger|
media.audio_flinger
|media.audio_policy|
media.audio_policy
|media.camera|
media.camera
|media.camera.proxy|
media.camera.proxy
|media.extractor|
media.extractor
|media.metrics|
media.metrics
|media.player|
media.player
|media.resource_manager|
media.resource_manager
|media.resource_observer|
media.resource_observer
|media_communication|
|media_metrics|
|media_projection|
|media_resource_monitor|
|media_router|
|media_session|
media_session
|meminfo|
|memtrack.proxy|
memtrack.proxy
|midi|
|mount|
|nearby|
|netd_listener|
|netpolicy|
netpolicy
|netstats|
|network_management|
|network_score|
|network_stack|
network_stack
|network_time_update_service|
network_time_update_service
|network_watchlist|
network_watchlist
|notification|
notification
|on_device_intelligence|
on_device_intelligence
|ondevicepersonalization_system_service|
|otadexopt|
otadexopt
|overlay|
overlay
|pac_proxy|
|package|
package
|package_native|
|people|
|performance_hint|
|permission|
|permission_checker|
|permissionmgr|
|pinner|
pinner
|platform_compat|
|platform_compat_native|
|power|
power
|powerstats|
|print|
print
|processinfo|
|procstats|
|profile|
|profiling_service|
|ranging|
|reboot_readiness|
reboot_readiness
|recovery|
recovery
|remote_provisioning|
remote_provisioning
|resources|
resources
|restrictions|
|role|
role
|rollback|
|runtime|
|safety_center|
safety_center
|scheduling_policy|
|sdk_sandbox|
sdk_sandbox
|search|
|sec_key_att_app_id_provider|
|secure_element|
|security_state|
|sensitive_content_protection_service|
|sensor_privacy|
sensor_privacy
|sensorservice|
sensorservice
|serial|
|servicediscovery|
|settings|
settings
|shortcut|
shortcut
|slice|
slice
|soundtrigger|
|soundtrigger_middleware|
|speech_recognition|
|stats|
stats
|statsbootstrap|
|statscompanion|
|statsmanager|
|statusbar|
statusbar
|storaged|
storaged
|storaged_pri|
storaged_pri
|storagestats|
|supervision|
supervision
|system_config|
|system_server_dumper|
|system_update|
|telecom|
telecom
|telephony.registry|
|testharness|
testharness
|tethering|
|textclassification|
|textservices|
|texttospeech|
|thermalservice|
thermalservice
|time_detector|
time_detector
|time_zone_detector|
time_zone_detector
|tracing.proxy|
|tradeinmode|
|transparency|
transparency
|trust|
|uimode|
uimode
|updatelock|
|uri_grants|
|usagestats|
usagestats
|usb|
|user|
user
|vcn_management|
|virtualdevice|
|virtualdevice_native|
|voiceinteraction|
voiceinteraction
|vpn_management|
|wallpaper|
wallpaper
|wearable_sensing|
wearable_sensing
|webviewupdate|
webviewupdate
|wifi|
wifi
|wifinl80211|
wifinl80211
|wifip2p|
wifip2p
|wifiscanner|
|window|
window

Only:

android.system.virtualizationmaintenance
android.hardware.security.keymint.IRemotelyProvisionedComponent/avf

hang for at least 2 seconds.

On Linux Mint 22.3 Cinnamon Framework 13 Virtual Machine Manager LineageOS 23.0 virtual machine for safety: <details> <summary>Bash script:</summary> ```bash TIMEOUT=2 for command in $(adb shell cmd -l | tail -n +2) do echo "|$command|" output=$(timeout $TIMEOUT adb shell cmd $command 2>&1) if [ $? = 124 ] then echo "Stopped after $TIMEOUT seconds" fi #echo $output if [ "$output" != 'No shell command implementation.' ] then echo $command fi #break done ``` </details> <details> <summary>Output:</summary> ``` |DockObserver| |SurfaceFlinger| SurfaceFlinger |SurfaceFlingerAIDL| SurfaceFlingerAIDL |accessibility| accessibility |account| account |activity| activity |activity_task| |adb| adb |adbroot_service| adbroot_service |adservices_manager| |alarm| alarm |android.frameworks.cameraservice.service.ICameraService/default| android.frameworks.cameraservice.service.ICameraService/default |android.frameworks.devicestate.IDeviceStateService/default| |android.frameworks.location.altitude.IAltitudeService/default| |android.frameworks.sensorservice.ISensorManager/default| android.frameworks.sensorservice.ISensorManager/default |android.frameworks.stats.IStats/default| android.frameworks.stats.IStats/default |android.hardware.audio.core.IConfig/default| android.hardware.audio.core.IConfig/default |android.hardware.audio.core.IModule/bluetooth| android.hardware.audio.core.IModule/bluetooth |android.hardware.audio.core.IModule/default| android.hardware.audio.core.IModule/default |android.hardware.audio.core.IModule/r_submix| android.hardware.audio.core.IModule/r_submix |android.hardware.audio.effect.IFactory/default| android.hardware.audio.effect.IFactory/default |android.hardware.bluetooth.IBluetoothHci/default| android.hardware.bluetooth.IBluetoothHci/default |android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default| android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default |android.hardware.bluetooth.offload.leaudio.IHciProxy/default| android.hardware.bluetooth.offload.leaudio.IHciProxy/default |android.hardware.boot.IBootControl/default| android.hardware.boot.IBootControl/default |android.hardware.cas.IMediaCasService/default| android.hardware.cas.IMediaCasService/default |android.hardware.drm.IDrmFactory/clearkey| android.hardware.drm.IDrmFactory/clearkey |android.hardware.gatekeeper.IGatekeeper/default| android.hardware.gatekeeper.IGatekeeper/default |android.hardware.graphics.allocator.IAllocator/default| android.hardware.graphics.allocator.IAllocator/default |android.hardware.graphics.composer3.IComposer/default| android.hardware.graphics.composer3.IComposer/default |android.hardware.health.IHealth/default| android.hardware.health.IHealth/default |android.hardware.media.c2.IComponentStore/software| android.hardware.media.c2.IComponentStore/software |android.hardware.memtrack.IMemtrack/default| android.hardware.memtrack.IMemtrack/default |android.hardware.power.IPower/default| android.hardware.power.IPower/default |android.hardware.power.stats.IPowerStats/default| android.hardware.power.stats.IPowerStats/default |android.hardware.security.keymint.IRemotelyProvisionedComponent/avf| Stopped after 2 seconds android.hardware.security.keymint.IRemotelyProvisionedComponent/avf |android.hardware.security.keymint.IRemotelyProvisionedComponent/default| android.hardware.security.keymint.IRemotelyProvisionedComponent/default |android.hardware.security.sharedsecret.ISharedSecret/gatekeeper| android.hardware.security.sharedsecret.ISharedSecret/gatekeeper |android.hardware.sensors.ISensors/default| android.hardware.sensors.ISensors/default |android.os.UpdateEngineService| android.os.UpdateEngineService |android.os.UpdateEngineStableService| android.os.UpdateEngineStableService |android.security.apc| android.security.apc |android.security.authorization| android.security.authorization |android.security.compat| android.security.compat |android.security.identity| android.security.identity |android.security.legacykeystore| android.security.legacykeystore |android.security.maintenance| android.security.maintenance |android.security.metrics| android.security.metrics |android.system.keystore2.IKeystoreService/default| android.system.keystore2.IKeystoreService/default |android.system.net.netd.INetd/default| android.system.net.netd.INetd/default |android.system.suspend.ISystemSuspend/default| android.system.suspend.ISystemSuspend/default |android.system.virtualizationmaintenance| Stopped after 2 seconds android.system.virtualizationmaintenance |android.system.vmtethering.IVmTethering| |android.system.vold.IVold/default| android.system.vold.IVold/default |app_binding| |app_function| |app_hibernation| app_hibernation |app_integrity| |app_search| |appops| appops |appwidget| |artd| artd |attestation_verification| |audio| audio |auth| |authentication_policy| |autofill| autofill |background_install_control| |backup| |battery| battery |batteryproperties| |batterystats| |binder_calls_stats| binder_calls_stats |biometric| |blob_store| blob_store |bluetooth_manager| bluetooth_manager |bugreport| |cacheinfo| |clipboard| |color_display| color_display |companiondevice| companiondevice |connectivity| connectivity |connectivity_native| |connmetrics| |content| content |country_detector| |cpuinfo| |credential| |crossprofileapps| |dataloader_manager| |dbinfo| |device_config| device_config |device_identifiers| |device_lock| |device_policy| device_policy |device_state| device_state |deviceidle| deviceidle |devicestoragemonitor| devicestoragemonitor |diskstats| |display| display |domain_verification| |dreams| dreams |drm.drmManager| drm.drmManager |dropbox| dropbox |dynamic_instrumentation| |dynamic_system| |ecm_enhanced_confirmation| |emergency_affordance| |ethernet| |feature_flags| feature_flags |file_integrity| |font| font |game| game |gfxinfo| |gpu| gpu |grammatical_inflection| grammatical_inflection |graphicsstats| |hardware_properties| |healthconnect| |incidentcompanion| |incremental| incremental |input| input |input_method| input_method |inputflinger| inputflinger |ipsec| |jobscheduler| jobscheduler |launcherapps| launcherapps |legacy_permission| |lights| |lineageglobalactions| |lineagehardware| |lineagelivedisplay| |lineagetrust| |locale| locale |location| location |location_time_zone_manager| location_time_zone_manager |lock_settings| lock_settings |logcat| |looper_stats| looper_stats |manager| manager |media.audio_flinger| media.audio_flinger |media.audio_policy| media.audio_policy |media.camera| media.camera |media.camera.proxy| media.camera.proxy |media.extractor| media.extractor |media.metrics| media.metrics |media.player| media.player |media.resource_manager| media.resource_manager |media.resource_observer| media.resource_observer |media_communication| |media_metrics| |media_projection| |media_resource_monitor| |media_router| |media_session| media_session |meminfo| |memtrack.proxy| memtrack.proxy |midi| |mount| |nearby| |netd_listener| |netpolicy| netpolicy |netstats| |network_management| |network_score| |network_stack| network_stack |network_time_update_service| network_time_update_service |network_watchlist| network_watchlist |notification| notification |on_device_intelligence| on_device_intelligence |ondevicepersonalization_system_service| |otadexopt| otadexopt |overlay| overlay |pac_proxy| |package| package |package_native| |people| |performance_hint| |permission| |permission_checker| |permissionmgr| |pinner| pinner |platform_compat| |platform_compat_native| |power| power |powerstats| |print| print |processinfo| |procstats| |profile| |profiling_service| |ranging| |reboot_readiness| reboot_readiness |recovery| recovery |remote_provisioning| remote_provisioning |resources| resources |restrictions| |role| role |rollback| |runtime| |safety_center| safety_center |scheduling_policy| |sdk_sandbox| sdk_sandbox |search| |sec_key_att_app_id_provider| |secure_element| |security_state| |sensitive_content_protection_service| |sensor_privacy| sensor_privacy |sensorservice| sensorservice |serial| |servicediscovery| |settings| settings |shortcut| shortcut |slice| slice |soundtrigger| |soundtrigger_middleware| |speech_recognition| |stats| stats |statsbootstrap| |statscompanion| |statsmanager| |statusbar| statusbar |storaged| storaged |storaged_pri| storaged_pri |storagestats| |supervision| supervision |system_config| |system_server_dumper| |system_update| |telecom| telecom |telephony.registry| |testharness| testharness |tethering| |textclassification| |textservices| |texttospeech| |thermalservice| thermalservice |time_detector| time_detector |time_zone_detector| time_zone_detector |tracing.proxy| |tradeinmode| |transparency| transparency |trust| |uimode| uimode |updatelock| |uri_grants| |usagestats| usagestats |usb| |user| user |vcn_management| |virtualdevice| |virtualdevice_native| |voiceinteraction| voiceinteraction |vpn_management| |wallpaper| wallpaper |wearable_sensing| wearable_sensing |webviewupdate| webviewupdate |wifi| wifi |wifinl80211| wifinl80211 |wifip2p| wifip2p |wifiscanner| |window| window ``` </details> Only: ``` android.system.virtualizationmaintenance android.hardware.security.keymint.IRemotelyProvisionedComponent/avf ``` hang for at least 2 seconds.
Author
Owner

143 entries are kept among initial 263 ones.

143 entries are kept among initial 263 ones.
Author
Owner
adb shell cmd android.hardware.audio.core.IModule/bluetooth
cmd: Failure calling service android.hardware.audio.core.IModule/bluetooth: Failed transaction (2147483646)
```bash adb shell cmd android.hardware.audio.core.IModule/bluetooth ``` ``` cmd: Failure calling service android.hardware.audio.core.IModule/bluetooth: Failed transaction (2147483646) ```
Author
Owner

96 kept entries after excluding such commands.

96 kept entries after excluding such commands.
Author
Owner
Bash script:
TIMEOUT=2
for command in $(adb shell cmd -l | tail -n +2)
do
    #echo "|$command|"
    output=$(timeout $TIMEOUT adb shell cmd $command 2>&1)
    if [ $? = 124 ]
    then
        #echo "Stopped after $TIMEOUT seconds"
        # :
        continue
    fi
    #echo $output
    if [ "$output" != 'No shell command implementation.' ] && [ "$output" != "cmd: Failure calling service $command: Failed transaction (2147483646)" ]
    then
        echo $command
    fi
    #break
done
<details> <summary>Bash script:</summary> ```bash TIMEOUT=2 for command in $(adb shell cmd -l | tail -n +2) do #echo "|$command|" output=$(timeout $TIMEOUT adb shell cmd $command 2>&1) if [ $? = 124 ] then #echo "Stopped after $TIMEOUT seconds" # : continue fi #echo $output if [ "$output" != 'No shell command implementation.' ] && [ "$output" != "cmd: Failure calling service $command: Failed transaction (2147483646)" ] then echo $command fi #break done ``` </details>
Author
Owner
adb shell cmd device_state
Output:
Device state manager (device_state) commands:
  help
    Print this help text.
  state [reset|OVERRIDE_DEVICE_STATE]
    Return or override device state.
  print-state
    Return the current device state.
  print-states
    Return list of currently supported device states.
  print-states-simple
    Return the currently supported device states in comma separated format.
adb shell cmd device_state print-states
Output:
Supported states: [
  DeviceState{identifier=0, name='DEFAULT', app_accessible=true, cancel_when_requester_not_on_top=false},
]
```bash adb shell cmd device_state ``` <details> <summary>Output:</summary> ``` Device state manager (device_state) commands: help Print this help text. state [reset|OVERRIDE_DEVICE_STATE] Return or override device state. print-state Return the current device state. print-states Return list of currently supported device states. print-states-simple Return the currently supported device states in comma separated format. ``` </details> ```bash adb shell cmd device_state print-states ``` <details> <summary>Output:</summary> ``` Supported states: [ DeviceState{identifier=0, name='DEFAULT', app_accessible=true, cancel_when_requester_not_on_top=false}, ] ``` </details>
Author
Owner
adb shell cmd input
Output:
Usage: input [<source>] [-d DISPLAY_ID] <command> [<arg>...]

The sources are: 
      touchnavigation
      touchscreen
      joystick
      stylus
      touchpad
      gamepad
      dpad
      mouse
      keyboard
      trackball
      rotaryencoder
[axis_value] represents an option specifying the value of a given axis 
      The syntax is as follows: --axis <axis_name>,<axis_value>
            where <axis_name> is the name of the axis as defined in 
            MotionEvent without the AXIS_ prefix (e.g. SCROLL, X)
      Sample [axis_values] entry: `--axis Y,3`, `--axis SCROLL,-2`

-d: specify the display ID.
      (Default: -1 for key event, 0 for motion event if not specified.)
The commands and default sources are:
      text <string> (Default: keyboard)
      keyevent [--longpress|--duration <duration to hold key down in ms>] [--doubletap] [--async] [--delay <duration between keycodes in ms>] <key code number or name> ... (Default: keyboard)
      tap <x> <y> (Default: touchscreen)
      swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen)
      draganddrop <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen)
      press (Default: trackball)
      roll <dx> <dy> (Default: trackball)
      motionevent <DOWN|UP|MOVE|CANCEL> <x> <y> (Default: touchscreen)
      scroll (Default: rotaryencoder). Has the following syntax:
            scroll <x> <y> [axis_value] (for pointer-based sources)
            scroll [axis_value] (for non-pointer-based sources)
            Axis options: SCROLL, HSCROLL, VSCROLL
            None or one or multiple axis value options can be specified.
            To specify multiple axes, use one axis option for per axis.
            Example: `scroll --axis VSCROLL,2 --axis SCROLL,-2.4`
      keycombination [-t duration(ms)] <key code 1> <key code 2> ... (Default: keyboard, the key order is important here.)
```bash adb shell cmd input ``` <details> <summary>Output:</summary> ``` Usage: input [<source>] [-d DISPLAY_ID] <command> [<arg>...] The sources are: touchnavigation touchscreen joystick stylus touchpad gamepad dpad mouse keyboard trackball rotaryencoder [axis_value] represents an option specifying the value of a given axis The syntax is as follows: --axis <axis_name>,<axis_value> where <axis_name> is the name of the axis as defined in MotionEvent without the AXIS_ prefix (e.g. SCROLL, X) Sample [axis_values] entry: `--axis Y,3`, `--axis SCROLL,-2` -d: specify the display ID. (Default: -1 for key event, 0 for motion event if not specified.) The commands and default sources are: text <string> (Default: keyboard) keyevent [--longpress|--duration <duration to hold key down in ms>] [--doubletap] [--async] [--delay <duration between keycodes in ms>] <key code number or name> ... (Default: keyboard) tap <x> <y> (Default: touchscreen) swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen) draganddrop <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen) press (Default: trackball) roll <dx> <dy> (Default: trackball) motionevent <DOWN|UP|MOVE|CANCEL> <x> <y> (Default: touchscreen) scroll (Default: rotaryencoder). Has the following syntax: scroll <x> <y> [axis_value] (for pointer-based sources) scroll [axis_value] (for non-pointer-based sources) Axis options: SCROLL, HSCROLL, VSCROLL None or one or multiple axis value options can be specified. To specify multiple axes, use one axis option for per axis. Example: `scroll --axis VSCROLL,2 --axis SCROLL,-2.4` keycombination [-t duration(ms)] <key code 1> <key code 2> ... (Default: keyboard, the key order is important here.) ``` </details>
Author
Owner
adb shell cmd launcherapps
Output:
Usage: cmd launcherapps COMMAND [options ...]

cmd launcherapps dump-view-hierarchies
    Output captured view hierarchies. Files will be generated in 
    `/data/misc/wmtrace/`. After pulling the data to your device,
     you can upload / visualize it at `go/winscope`.
```bash adb shell cmd launcherapps ``` <details> <summary>Output:</summary> ``` Usage: cmd launcherapps COMMAND [options ...] cmd launcherapps dump-view-hierarchies Output captured view hierarchies. Files will be generated in `/data/misc/wmtrace/`. After pulling the data to your device, you can upload / visualize it at `go/winscope`. ``` </details>
Author
Owner
adb shell cmd launcherapps dump-view-hierarchies
ls /data/misc/wmtrace/
ls: cannot access '/data/misc/wmtrace/': Permission denied
sudo ls -lah /data/misc/wmtrace/
Output:
total 7.0K
drwx------.  2 system system 3.4K Jan  1  1970 .
drwxrwx--t. 67 system misc   3.4K Apr 12 01:58 ..

Related to Benjamin_Loison/Voice_assistant/issues/40.

```bash adb shell cmd launcherapps dump-view-hierarchies ls /data/misc/wmtrace/ ``` ``` ls: cannot access '/data/misc/wmtrace/': Permission denied ``` ```bash sudo ls -lah /data/misc/wmtrace/ ``` <details> <summary>Output:</summary> ``` total 7.0K drwx------. 2 system system 3.4K Jan 1 1970 . drwxrwx--t. 67 system misc 3.4K Apr 12 01:58 .. ``` </details> Related to [Benjamin_Loison/Voice_assistant/issues/40](https://codeberg.org/Benjamin_Loison/Voice_assistant/issues/40).
Author
Owner
adb shell cmd role
Output:
Role (role) commands:
  help or -h
    Print this help text.

  get-role-holders [--user USER_ID] ROLE
  add-role-holder [--user USER_ID] ROLE PACKAGE [FLAGS]
  remove-role-holder [--user USER_ID] ROLE PACKAGE [FLAGS]
  clear-role-holders [--user USER_ID] ROLE [FLAGS]
  set-bypassing-role-qualification true|false
  get-active-user-for-role [--user USER_ID] ROLE
  set-active-user-for-role [--user USER_ID] ROLE ACTIVE_USER_ID [FLAGS]
```bash adb shell cmd role ``` <details> <summary>Output:</summary> ``` Role (role) commands: help or -h Print this help text. get-role-holders [--user USER_ID] ROLE add-role-holder [--user USER_ID] ROLE PACKAGE [FLAGS] remove-role-holder [--user USER_ID] ROLE PACKAGE [FLAGS] clear-role-holders [--user USER_ID] ROLE [FLAGS] set-bypassing-role-qualification true|false get-active-user-for-role [--user USER_ID] ROLE set-active-user-for-role [--user USER_ID] ROLE ACTIVE_USER_ID [FLAGS] ``` </details>
Author
Owner
adb shell cmd settings
Output:
Settings provider (settings) commands:
  help
      Print this help text.
  get [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY
      Retrieve the current value of KEY.
  put [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY VALUE [TAG] [default] [overrideableByRestore]
      Change the contents of KEY to VALUE.
      TAG to associate with the setting (cannot be default or overrideableByRestore).
      {default} to set as the default, case-insensitive only for global/secure namespace
      {overrideableByRestore} to let the value be overridden by BackupManager on restore operations
  delete [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY
      Delete the entry for KEY.
  reset [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE {PACKAGE_NAME | RESET_MODE}
      Reset the global/secure table for a package with mode.
      RESET_MODE is one of {untrusted_defaults, untrusted_clear, trusted_defaults}, case-insensitive
  list [--user <USER_ID> | current] [--lineage] NAMESPACE
      Print all defined keys.
      NAMESPACE is one of {system, secure, global}, case-insensitive
```bash adb shell cmd settings ``` <details> <summary>Output:</summary> ``` Settings provider (settings) commands: help Print this help text. get [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY Retrieve the current value of KEY. put [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY VALUE [TAG] [default] [overrideableByRestore] Change the contents of KEY to VALUE. TAG to associate with the setting (cannot be default or overrideableByRestore). {default} to set as the default, case-insensitive only for global/secure namespace {overrideableByRestore} to let the value be overridden by BackupManager on restore operations delete [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE KEY Delete the entry for KEY. reset [--user <USER_ID> | current] [--deviceId <DEVICE_ID> | 0] [--lineage] NAMESPACE {PACKAGE_NAME | RESET_MODE} Reset the global/secure table for a package with mode. RESET_MODE is one of {untrusted_defaults, untrusted_clear, trusted_defaults}, case-insensitive list [--user <USER_ID> | current] [--lineage] NAMESPACE Print all defined keys. NAMESPACE is one of {system, secure, global}, case-insensitive ``` </details>
Author
Owner
adb shell cmd user
Output:
User manager (user) commands:
  help
    Prints this help text.

  list [-v | --verbose] [-V | --very-verbose] [--all]
    Prints all users on the system.

  report-system-user-package-whitelist-problems [-v | --verbose] [--critical-only] [--mode MODE]
    Reports all issues on user-type package allowlist XML files. Options:
    -v | --verbose: shows extra info, like number of issues
    --critical-only: show only critical issues, excluding warnings
    --mode MODE: shows what errors would be if device used mode MODE
      (where MODE is the allowlist mode integer as defined by config_userTypePackageWhitelistMode)

  set-system-user-mode-emulation [--reboot | --no-restart] <headless | full | default>
    Changes whether the system user is headless, full, or default (as defined by OEM).
    WARNING: this command is meant just for development and debugging purposes.
             It should NEVER be used on automated tests.
    NOTE: by default it restarts the Android runtime, unless called with
          --reboot (which does a full reboot) or
          --no-restart (which requires a manual restart)

  is-headless-system-user-mode [-v | --verbose]
    Checks whether the device uses headless system user mode.
  is-visible-background-users-on-default-display-supported [-v | --verbose]
    Checks whether the device allows users to be start visible on background in the default display.
    It returns the effective mode, even when using emulation
    (to get the real mode as well, use -v or --verbose)

  is-visible-background-users-supported [-v | --verbose]
    Checks whether the device allows users to be start visible on background.
    It returns the effective mode, even when using emulation
    (to get the real mode as well, use -v or --verbose)

  is-user-visible [--display DISPLAY_ID] <USER_ID>
    Checks if the given user is visible in the given display.
    If the display option is not set, it uses the user's context to check
    (so it emulates what apps would get from UserManager.isUserVisible())

  get-main-user 
    Displays main user id or message if there is no main user

  grant-admin <USER_ID>
    Grants admin privileges to the given user (requires adb root)

  revoke-admin <USER_ID>
    Revokes admin privileges from the given user (requires adb root)
```bash adb shell cmd user ``` <details> <summary>Output:</summary> ``` User manager (user) commands: help Prints this help text. list [-v | --verbose] [-V | --very-verbose] [--all] Prints all users on the system. report-system-user-package-whitelist-problems [-v | --verbose] [--critical-only] [--mode MODE] Reports all issues on user-type package allowlist XML files. Options: -v | --verbose: shows extra info, like number of issues --critical-only: show only critical issues, excluding warnings --mode MODE: shows what errors would be if device used mode MODE (where MODE is the allowlist mode integer as defined by config_userTypePackageWhitelistMode) set-system-user-mode-emulation [--reboot | --no-restart] <headless | full | default> Changes whether the system user is headless, full, or default (as defined by OEM). WARNING: this command is meant just for development and debugging purposes. It should NEVER be used on automated tests. NOTE: by default it restarts the Android runtime, unless called with --reboot (which does a full reboot) or --no-restart (which requires a manual restart) is-headless-system-user-mode [-v | --verbose] Checks whether the device uses headless system user mode. is-visible-background-users-on-default-display-supported [-v | --verbose] Checks whether the device allows users to be start visible on background in the default display. It returns the effective mode, even when using emulation (to get the real mode as well, use -v or --verbose) is-visible-background-users-supported [-v | --verbose] Checks whether the device allows users to be start visible on background. It returns the effective mode, even when using emulation (to get the real mode as well, use -v or --verbose) is-user-visible [--display DISPLAY_ID] <USER_ID> Checks if the given user is visible in the given display. If the display option is not set, it uses the user's context to check (so it emulates what apps would get from UserManager.isUserVisible()) get-main-user Displays main user id or message if there is no main user grant-admin <USER_ID> Grants admin privileges to the given user (requires adb root) revoke-admin <USER_ID> Revokes admin privileges from the given user (requires adb root) ``` </details>
Author
Owner

I checked all entries.

I checked all entries.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/adb#59