美文网首页
Android 关机案例分析

Android 关机案例分析

作者: 程序员Android1 | 来源:发表于2019-08-26 16:12 被阅读0次
阅读五分钟,每日十点,和您一起终身学习,这里是程序员Android

本篇文章主要介绍 Android 开发中的部分知识点,通过阅读本篇文章,您将收获以下内容:

  1. 长按 Power 键关机Log 分析
  2. 定时关机Log分析
    3.低电量关机log分析
    4.高温关机log分析

1. 长按 Power 键关机Log 分析

01-01 06:38:56.898   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:56.951   382   382 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest.
01-01 06:38:56.957   382   382 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest.
01-01 06:38:57.012   933   933 D ShutdownThread: Notifying thread to start shutdown longPressBehavior=1
01-01 06:38:57.014   933   933 D ShutdownThread: Attempting to use SysUI shutdown UI
01-01 06:38:57.015   933   933 D ShutdownThread: SysUI handling shutdown UI
01-01 06:38:57.026   933  5207 I ShutdownThread: Sending shutdown broadcast...
01-01 06:38:57.032   933   933 W SyncManager: Writing sync state before shutdown...
... ...
01-01 06:38:58.259   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:58.272   933  5207 I ShutdownThread: Shutting down activity manager...
01-01 06:38:58.275   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:58.308   523   523 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 10 lines
01-01 06:38:58.308   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
... ...
01-01 06:38:58.755   933  1395 E KernelCpuSpeedReader: Failed to read cpu-freq: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state (No such file or directory)
01-01 06:38:58.820   933  5207 W ProcessStatsService: Writing process stats before shutdown...
01-01 06:38:58.850   933  5207 D ShutdownTiming: ShutdownActivityManager took to complete: 578ms
01-01 06:38:58.842   523   523 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 59 lines
01-01 06:38:58.842   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:58.850   933  5207 I ShutdownThread: Shutting down package manager...
01-01 06:38:58.852   933  1719 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
01-01 06:38:58.857   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:58.898   933  5207 D ShutdownTiming: ShutdownPackageManager took to complete: 48ms
01-01 06:38:58.892   523   523 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 10 lines
01-01 06:38:58.892   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:58.902   933  5212 W ShutdownThread: Turning off cellular radios...
01-01 06:38:58.907   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:58.908   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:58.908  2006  3362 V PhoneInterfaceManager: [PhoneIntfMgr] Shutting down Phone 0
01-01 06:38:58.908   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:58.925   523   523 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 4 lines
01-01 06:38:58.926   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:58.932   933  5212 I ShutdownThread: Waiting for Radio...
01-01 06:38:58.941   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:58.942   523   523 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 2 lines
... ...

01-01 06:38:59.033  2006  2179 V PhoneInterfaceManager: [PhoneIntfMgr] 1 Phones are shutdown.
01-01 06:38:59.034  1739  1739 D CarrierText: updateCarrierText(): 0
01-01 06:38:59.034   933  5212 I ShutdownThread: Radio turned off.
01-01 06:38:59.034   933  5212 D ShutdownTiming: ShutdownRadio took to complete: 132ms
01-01 06:38:59.034   933  5212 I ShutdownThread: Radio shutdown complete.
01-01 06:38:59.034   933  5207 D ShutdownTiming: ShutdownRadios took to complete: 136ms
01-01 06:38:59.034   933  5207 D ShutdownTiming: SystemServerShutdown took to complete: 2010ms
01-01 06:38:59.035  1739  1739 D CarrierText: Getting plmn/spn sticky brdcst No service/
01-01 06:38:59.035  1739  1739 D CarrierText: onRefreshCarrierInfo(), mTelephonyCapable: true
01-01 06:38:59.036  1739  1739 D CarrierText: updateCarrierText(): 0
01-01 06:38:59.036   933  5207 I ShutdownThread: Shutdown critical subsyslist is :modem : 
01-01 06:38:59.037   933  5207 I ShutdownThread: Waiting for a maximum of 10000ms
01-01 06:38:59.037  1739  1739 D CarrierText: Getting plmn/spn sticky brdcst No service/
01-01 06:38:59.041   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:59.042   523   523 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 2 lines
01-01 06:38:59.043   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
... ...

01-01 06:38:59.635  1016  1597 I QTI_SDM_INFO: [qti_rmnet_modem.c:1753] qti_rmnet_modem_not_in_service():Completed processing modem out of service ind
01-01 06:38:59.635  1016  1597 I QTI_SDM_INFO: [qti_cmdq.c:113] qti_cmdq_cmd_free():qcmap_cmdq: free one commmand data
01-01 06:38:59.641   933  5207 I ShutdownThread: Vendor subsystem(s) shutdown successful
01-01 06:38:59.642   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:38:59.643   523   523 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 2 lines
... ... 

01-01 06:39:00.160   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:39:00.161   523   523 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 2 lines
01-01 06:39:00.162   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-01 06:39:00.162   933  5207 I ShutdownThread: Performing low-level shutdown...
01-01 06:39:00.180   933   933 W Looper  : Slow dispatch took 126ms main h=android.app.ActivityThread$H c=android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA@965d0c2 m=0
01-01 06:39:00.193   523   523 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0

2. 定时关机Log分析

S8F46F2 07-14 09:00:15.965 27986 27988 I YLOG    : logmon::0.000 148-0-0-0 t:2640455 c:0 ts:0k 0.000[55,2640362,2640307,49837][0] 
M8F46F3 07-14 09:00:16.059   450  1127 D LIBGPS  : watchdog_open PowerState:GE2 CP SLEEP readcount:59297
S8F46F4 07-14 09:00:16.145   726   726 I ShutdownCountdownActivity: ShutdownThread->shutdown
M8F46F5 07-14 09:00:16.152   726  2096 D         : Gralloc UnRegister  w:684, h:389, f:0x1, usage:0xb00, ui64Stamp:1802618 line = 2218
M8F46F6 07-14 09:00:16.152   726  2096 D         : Gralloc UnRegister  w:684, h:389, f:0x1, usage:0xb00, ui64Stamp:1802614 line = 2218
M8F46F7 07-14 09:00:16.152   726  2096 D         : Gralloc UnRegister  w:684, h:389, f:0x1, usage:0xb00, ui64Stamp:1802585 line = 2218
M8F46F8 07-14 09:00:16.156   367 12821 E SPRDHWComposer: SPRD_SR SprdHWComposer2::GET_ACTIVE_CONFIG[460] *outConfig:0
S8F46F9 07-14 09:00:16.157   726   726 D WindowManager: Input focus has changed to Window{f7c879a u0 com.android.chrome/org.chromium.chrome.browser.ChromeTabbedActivity}
M8F46FA 07-14 09:00:16.172   367 12821 E SPRDHWComposer: SPRD_SR SprdHWComposer2::GET_ACTIVE_CONFIG[460] *outConfig:0
M8F46FB 07-14 09:00:16.189   726   726 D PowerManagerService: shutdown the device , UID : 1000 , PID : 726 , reason  : timer , confirm = false , wait = false
M8F46FC 07-14 09:00:16.218 12547 12547 I Monkey  : :Sending Key (ACTION_DOWN): 23    // KEYCODE_DPAD_CENTER
M8F46FD 07-14 09:00:16.223   381   381 I PowerHAL: Don't support interaction_other in normal mode
... ...
M8F470B 07-14 09:00:16.307   726   741 D ShutdownThread: Notifying thread to start shutdown longPressBehavior=1
... ...
M8F4735 07-14 09:00:16.504   726   743 I libprocessgroup: Successfully killed process cgroup uid 10092 pid 16544 in 0ms
M8F4736 07-14 09:00:16.520   726 16616 I ShutdownThread: Sending shutdown broadcast...
S8F4737 07-14 09:00:16.522   726 16616 D BroadcastQueue: Add broadcast <BroadcastRecord{4defbe1 u-1 android.intent.action.ACTION_SHUTDOWN}> into [ordered | foreground], pending size 0

... ...
M8F4C70 07-14 09:00:18.356   385   465 D lowmemorykiller: handle_vmpressure 100 current cache 495608  swapfree  92660
E8F4C71 07-14 09:00:18.356   726 16616 I commit_sys_config_file: [procstats,58]
M8F4C72 07-14 09:00:18.357   726 16616 I ShutdownThread: Shutting down package manager...
R8F4C73 07-14 09:00:18.362   903   943 D RILJ    : [7558]< RIL_REQUEST_SIM_OPEN_CHANNEL error 2 [SUB0]
M8F4C74 07-14 09:00:18.362   903   903 D TeleUtils:  translateOperatorName: old name= 
M8F4C75 07-14 09:00:18.363   903   903 D TeleUtils:  translateOperatorName: itemList length is 27
M8F4C76 07-14 09:00:18.363   903   903 D TeleUtils: translateOperatorName not found: numeric plmn =  newName= 
... ...
M8F4D06 07-14 09:00:18.515 16615 16681 D libEGL  : loaded /vendor/lib64/egl/libGLESv1_CM_POWERVR_ROGUE.so
M8F4D07 07-14 09:00:18.516   903  1391 V PhoneInterfaceManager: [PhoneIntfMgr] 2 Phones are shutdown.
M8F4D08 07-14 09:00:18.517  1341  1425 I CPVoiceAgent: select: retrun 0
M8F4D09 07-14 09:00:18.517   726 16683 I ShutdownThread: Waiting for Radio...
M8F4D0A 07-14 09:00:18.520   726 16683 I ShutdownThread: Radio shutdown complete.
... ...
M8F5083 07-14 09:00:21.837   903   903 I VvmSimStateTracker: android.intent.action.SIM_STATE_CHANGED
M8F5084 07-14 09:00:21.839   726 16616 I ShutdownThread: Performing low-level shutdown...

3.低电量关机log分析

    Line 2295: <12>[53458.555107]  (0)[342:healthd]healthd: battery l=10 v=3568 t=45.0 h=2 st=3 c=0 chg=u
    Line 2442: <12>[53460.361140]  (0)[342:healthd]healthd: battery l=9 v=3568 t=45.0 h=2 st=3 c=0 chg=u
    Line 3107: <12>[53489.333602]  (3)[342:healthd]healthd: battery l=9 v=3575 t=45.0 h=2 st=3 c=0 chg=u
    Line 8710: <12>[53711.906188]  (3)[342:healthd]healthd: battery l=8 v=3578 t=45.0 h=2 st=3 c=0 chg=u
    Line 11490: <12>[53818.554454]  (0)[342:healthd]healthd: battery l=8 v=3538 t=44.0 h=2 st=3 c=-1 chg=u
    Line 11588: <12>[53820.103793]  (2)[342:healthd]healthd: battery l=7 v=3533 t=44.0 h=2 st=3 c=0 chg=u
    Line 12022: <12>[53837.870632]  (3)[342:healthd]healthd: battery l=7 v=3537 t=44.0 h=2 st=3 c=0 chg=u
    Line 17244: <12>[54046.941597]  (0)[342:healthd]healthd: battery l=6 v=3521 t=45.0 h=2 st=3 c=0 chg=u
    Line 19241: <12>[54098.176034]  (0)[342:healthd]healthd: battery l=6 v=3521 t=45.0 h=2 st=3 c=-1 chg=u
    Line 19700: <12>[54111.861629]  (2)[342:healthd]healthd: battery l=5 v=3522 t=44.0 h=2 st=3 c=0 chg=u
    Line 24675: <12>[54251.762153]  (1)[342:healthd]healthd: battery l=5 v=3462 t=45.0 h=2 st=3 c=-1 chg=u
    Line 24680: <12>[54251.797130]  (1)[342:healthd]healthd: battery l=4 v=3460 t=45.0 h=2 st=3 c=-1 chg=u
    Line 26655: <12>[54298.555451]  (0)[342:healthd]healthd: battery l=4 v=3480 t=45.0 h=2 st=3 c=0 chg=u
    Line 26747: <12>[54303.977334]  (3)[342:healthd]healthd: battery l=3 v=3488 t=45.0 h=2 st=3 c=0 chg=u
    Line 27387: <12>[54335.066338]  (2)[342:healthd]healthd: battery l=3 v=3496 t=45.0 h=2 st=3 c=0 chg=u
    Line 27942: <12>[54358.556012]  (2)[342:healthd]healthd: battery l=3 v=3501 t=45.0 h=2 st=3 c=0 chg=u
    Line 28532: <12>[54376.054397]  (3)[342:healthd]healthd: battery l=2 v=3500 t=45.0 h=2 st=3 c=0 chg=u
    Line 36173: <12>[54594.124322]  (2)[342:healthd]healthd: battery l=2 v=3484 t=45.0 h=2 st=3 c=0 chg=u
    Line 36978: <12>[54604.599521]  (3)[342:healthd]healthd: battery l=1 v=3479 t=45.0 h=2 st=3 c=0 chg=u
    

4.高温关机log分析

相关文章

网友评论

      本文标题:Android 关机案例分析

      本文链接:https://www.haomeiwen.com/subject/wtpqectx.html