adb shell dumpsys (services)的用法

1、adb shell dumpsys -l
Currently running services:
  AAL
  DockObserver
  GbaService
  GoogleOtaBinder
  GpuAppSpectatorService
  GuiExtService
  NvRAMAgent
  PQ
  SunwaveFingerprintService
  SurfaceFlinger
  accessibility
  account
  activity
  alarm
  amigoserver
  android.hardware.fingerprint.IFingerprintDaemon
  android.hardware.fingerprint.IGoodixFingerprintDaemon
  android.security.keystore
  android.service.gatekeeper.IGateKeeperService
  anrmanager
  appops
  appwidget
  assetatlas
  audio
  backup
  battery
  batteryproperties
  batterystats
  bluetooth_manager
  carrier_config
  clipboard
  commontime_management
  connectivity
  connectivity_metrics_logger
  consumer_ir
  content
  contexthub_service
  country_detector
  cpuinfo
  data_shaping
  dbinfo
  device_policy
  deviceidle
  devicestoragemonitor
  diskstats
  display
  dns_listener
  dreams
  drm.drmManager
  dropbox
  ethernet
  fingerprint
  gfxinfo
  gpu
  graphicsstats
  hardware_properties
  imms
  ims
  input
  input_method
  iphonesubinfo
  isms
  isub
  jobscheduler
  launcherapps
  location
  lock_settings
  media.VTS
  media.audio_flinger
  media.audio_policy
  media.camera
  media.camera.proxy
  media.codec
  media.drm
  media.extractor
  media.mmsdk
  media.player
  media.radio
  media.resource_manager
  media.sound_trigger_hw
  media_projection
  media_router
  media_session
  meminfo
  midi
  mount
  mtk-perfservice
  mtk.codecservice
  netd
  netpolicy
  netstats
  network_management
  network_score
  network_time_update_service
  notification
  otadexopt
  package
  permission
  persistent_data_block
  phone
  phoneEx
  pinner
  power
  print
  processinfo
  procstats
  program_binary
  recovery
  restrictions
  rttmanager
  running_booster
  samplingprofiler
  scheduling_policy
  search
  search_engine
  sensorservice
  serial
  servicediscovery
  shortcut
  simphonebook
  soundtrigger
  statusbar
  telecom
  telephony.registry
  textservices
  trust
  uimode
  updatelock
  usagestats
  usb
  user
  vibrator
  voiceinteraction
  vrmanager
  wallpaper
  webviewupdate
  wfo
  wifi
  wifip2p
  wifiscanner
  window

2、打开某个服务的调试信息:

 xxxxxx@xxxx:~$    adb shell dumpsys input_method -d
Input method manager service dump options:
  [-d] [-h] [cmd] [option] ...
  -d enable <zone>          enable the debug zone
  -d disable <zone>         disable the debug zone
       zone list:
         0 : InputMethodManagerService
         1 : InputMethodService
         2 : InputMethodManager
  -h                        print the dump usage

xxxxxx@xxxx:~$

   adb shell dumpsys input_method -d enable 0 ===》打开InputMethodManagerService 的debug调试开关
   adb shell dumpsys input_method -d enable 1===》打开InputMethodService 的debug调试开关
   adb shell dumpsys input_method -d enable 2===》打开InputMethodManager的debug调试开关


  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值