电压波动异常分析

一、电池电压跳变异常

电压跳变图如下:

电压跳变图

kerenl log中 中对应时间的处理事件行为。电压跳变定位,v=4151 代表电压。

	Line 37766: <12>[ 5831.654685]  (7)[404:health@2.0-serv]healthd: battery l=54 v=4151 t=35.0 h=2 st=2 c=1508 fc=2946000 cc=0 chg=a
	Line 37783: <12>[ 5831.673222]  (0)[404:health@2.0-serv]healthd: battery l=54 v=4167 t=35.0 h=2 st=2 c=1659 fc=2946000 cc=0 chg=a
	Line 37979: <12>[ 5854.413646]  (7)[404:health@2.0-serv]healthd: battery l=54 v=4150 t=35.0 h=2 st=2 c=1514 fc=2946000 cc=0 chg=a
	Line 38068: <12>[ 5861.712812]  (7)[404:health@2.0-serv]healthd: battery l=54 v=4173 t=35.0 h=2 st=2 c=1692 fc=2946000 cc=0 chg=a
	Line 38078: <12>[ 5861.732910]  (5)[404:health@2.0-serv]healthd: battery l=54 v=4171 t=35.0 h=2 st=2 c=1678 fc=2946000 cc=0 chg=a
	Line 38464: <12>[ 5903.919299]  (7)[404:health@2.0-serv]healthd: battery l=54 v=4178 t=36.0 h=2 st=2 c=1709 fc=2946000 cc=0 chg=a
	Line 38533: <12>[ 5908.033334]  (6)[404:health@2.0-serv]healthd: battery l=55 v=4177 t=36.0 h=2 st=2 c=1713 fc=2946000 cc=0 chg=a
	Line 38927: <12>[ 5951.850297]  (6)[404:health@2.0-serv]healthd: battery l=55 v=4178 t=36.0 h=2 st=2 c=1688 fc=2946000 cc=0 chg=a
	Line 38964: <12>[ 5953.159009]  (7)[404:health@2.0-serv]healthd: battery l=55 v=4182 t=36.0 h=2 st=2 c=1731 fc=2946000 cc=0 chg=a
	Line 38988: <12>[ 5953.421185]  (7)[404:health@2.0-serv]healthd: battery l=55 v=4180 t=36.0 h=2 st=2 c=1710 fc=2946000 cc=0 chg=a
	Line 39384: <12>[ 5997.787311]  (6)[404:health@2.0-serv]healthd: battery l=55 v=4176 t=36.0 h=2 st=2 c=1653 fc=2946000 cc=0 chg=a
	Line 39425: <12>[ 5999.786818]  (6)[404:health@2.0-serv]healthd: battery l=56 v=4181 t=36.0 h=2 st=2 c=1695 fc=2946000 cc=0 chg=a
	Line 39472: <12>[ 6002.927902]  (0)[404:health@2.0-serv]healthd: battery l=56 v=4154 t=36.0 h=2 st=2 c=1470 fc=2946000 cc=0 chg=a
	Line 39883: <12>[ 6047.606627]  (6)[404:health@2.0-serv]healthd: battery l=56 v=4182 t=36.0 h=2 st=2 c=1679 fc=2946000 cc=0 chg=a
	Line 39906: <12>[ 6047.633863]  (7)[404:health@2.0-serv]healthd: battery l=56 v=4180 t=36.0 h=2 st=2 c=1672 fc=2946000 cc=0 chg=a
	Line 39963: <12>[ 6052.436740]  (7)[404:health@2.0-serv]healthd: battery l=56 v=4180 t=36.0 h=2 st=2 c=1659 fc=2946000 cc=0 chg=a
	Line 40418: <12>[ 6099.723761]  (4)[404:health@2.0-serv]healthd: battery l=57 v=4152 t=36.0 h=2 st=2 c=1422 fc=2946000 cc=0 chg=a
	Line 40575: <12>[ 6111.940382]  (7)[404:health@2.0-serv]healthd: battery l=57 v=4182 t=36.0 h=2 st=2 c=1667 fc=2946000 cc=0 chg=a
	Line 40769: <12>[ 6131.691120]  (6)[404:health@2.0-serv]healthd: battery l=57 v=4156 t=37.0 h=2 st=2 c=1445 fc=2946000 cc=0 chg=a
	Line 40790: <12>[ 6131.727259]  (4)[404:health@2.0-serv]healthd: battery l=57 v=4156 t=37.0 h=2 st=2 c=1445 fc=2946000 cc=0 chg=a
	Line 40810: <12>[ 6131.748741]  (7)[404:health@2.0-serv]healthd: battery l=57 v=4158 t=37.0 h=2 st=2 c=1456 fc=2946000 cc=0 chg=a
	Line 41019: <12>[ 6150.850120]  (7)[404:health@2.0-serv]healthd: battery l=57 v=4154 t=37.0 h=2 st=2 c=1430 fc=2946000 cc=0 chg=a
	Line 41250: <12>[ 6171.451132]  (4)[404:health@2.0-serv]healthd: battery l=57 v=4154 t=37.0 h=2 st=2 c=1399 fc=2946000 cc=0 chg=a
	Line 41584: <12>[ 6200.287381]  (7)[404:health@2.0-serv]healthd: battery l=58 v=4184 t=37.0 h=2 st=2 c=1625 fc=2946000 cc=0 chg=a
	Line 41799: <12>[ 6220.965265]  (5)[404:health@2.0-serv]healthd: battery l=58 v=4186 t=37.0 h=2 st=2 c=1618 fc=2946000 cc=0 chg=a
	Line 42065: <12>[ 6246.912828]  (7)[404:health@2.0-serv]healthd: battery l=58 v=4193 t=37.0 h=2 st=2 c=1670 fc=2946000 cc=0 chg=a
	Line 42388: <12>[ 6280.459881]  (6)[404:health@2.0-serv]healthd: battery l=58 v=4195 t=37.0 h=2 st=2 c=1653 fc=2946000 cc=0 chg=a
	Line 42514: <12>[ 6293.221618]  (4)[404:health@2.0-serv]healthd: battery l=59 v=4172 t=37.0 h=2 st=2 c=1441 fc=2946000 cc=0 chg=a
	Line 42887: <12>[ 6339.162441]  (6)[404:health@2.0-serv]healthd: battery l=59 v=4186 t=37.0 h=2 st=2 c=1537 fc=2946000 cc=0 chg=a
	Line 42918: <12>[ 6339.975004]  (7)[404:health@2.0-serv]healthd: battery l=59 v=4186 t=37.0 h=2 st=2 c=1536 fc=2946000 cc=0 chg=a
	Line 42948: <12>[ 6341.232990]  (7)[404:health@2.0-serv]healthd: battery l=59 v=4186 t=37.0 h=2 st=2 c=1534 fc=2946000 cc=0 chg=a
	

二、电压波动异常对应的 UTC 时间

kernel log中对应的UTC时间如下:

	Line 37658: <6>[ 5819.358181]  (5)[290:wdtk-5][thread:290][RT:5819358159866] 2010-01-01 02:03:55.47217 UTC;android time 2010-01-01 07:33:55.47217
	Line 37849: <6>[ 5839.838234]  (1)[286:wdtk-1][thread:286][RT:5839838229222] 2010-01-01 02:04:15.527287 UTC;android time 2010-01-01 07:34:15.527287
	Line 38033: <6>[ 5860.318118]  (1)[286:wdtk-1][thread:286][RT:5860318112810] 2010-01-01 02:04:36.7170 UTC;android time 2010-01-01 07:34:36.7170
	Line 38245: <6>[ 5880.798159]  (7)[292:wdtk-7][thread:292][RT:5880798148320] 2010-01-01 02:04:56.487206 UTC;android time 2010-01-01 07:34:56.487206
	Line 38415: <6>[ 5901.278172]  (0)[285:wdtk-0][thread:285][RT:5901278167753] 2010-01-01 02:05:16.967225 UTC;android time 2010-01-01 07:35:16.967225
	Line 38634: <6>[ 5921.758140]  (5)[290:wdtk-5][thread:290][RT:5921758131264] 2010-01-01 02:05:37.447188 UTC;android time 2010-01-01 07:35:37.447188
	Line 38815: <6>[ 5942.238174]  (4)[289:wdtk-4][thread:289][RT:5942238151159] 2010-01-01 02:05:57.927207 UTC;android time 2010-01-01 07:35:57.927207
	Line 39066: <6>[ 5962.718183]  (5)[290:wdtk-5][thread:290][RT:5962718172438] 2010-01-01 02:06:18.407229 UTC;android time 2010-01-01 07:36:18.407229
	Line 39233: <6>[ 5983.198141]  (1)[286:wdtk-1][thread:286][RT:5983198136641] 2010-01-01 02:06:38.887194 UTC;android time 2010-01-01 07:36:38.887194
	Line 39480: <6>[ 6003.678134]  (2)[287:wdtk-2][thread:287][RT:6003678127459] 2010-01-01 02:06:59.367184 UTC;android time 2010-01-01 07:36:59.367184
	Line 39653: <6>[ 6024.158159]  (3)[288:wdtk-3][thread:288][RT:6024158151662] 2010-01-01 02:07:19.847209 UTC;android time 2010-01-01 07:37:19.847209
	Line 39831: <6>[ 6044.638106]  (0)[285:wdtk-0][thread:285][RT:6044638101634] 2010-01-01 02:07:40.327159 UTC;android time 2010-01-01 07:37:40.327159
	Line 40074: <6>[ 6065.118222]  (1)[286:wdtk-1][thread:286][RT:6065118208990] 2010-01-01 02:08:00.807266 UTC;android time 2010-01-01 07:38:00.807266
	Line 40266: <6>[ 6085.598210]  (3)[288:wdtk-3][thread:288][RT:6085598196501] 2010-01-01 02:08:21.287253 UTC;android time 2010-01-01 07:38:21.287253
	Line 40503: <6>[ 6106.078191]  (0)[285:wdtk-0][thread:285][RT:6106078180857] 2010-01-01 02:08:41.767238 UTC;android time 2010-01-01 07:38:41.767238
	Line 40721: <6>[ 6126.558185]  (2)[287:wdtk-2][thread:287][RT:6126558175598] 2010-01-01 02:09:02.247233 UTC;android time 2010-01-01 07:39:02.247233
	Line 40968: <6>[ 6147.038205]  (4)[289:wdtk-4][thread:289][RT:6147038191186] 2010-01-01 02:09:22.727248 UTC;android time 2010-01-01 07:39:22.727248
	Line 41199: <6>[ 6167.518212]  (5)[290:wdtk-5][thread:290][RT:6167518203542] 2010-01-01 02:09:43.207261 UTC;android time 2010-01-01 07:39:43.207261
	Line 41438: <6>[ 6187.998110]  (7)[292:wdtk-7][thread:292][RT:6187998104052] 2010-01-01 02:10:03.687161 UTC;android time 2010-01-01 07:40:03.687161
	Line 41675: <6>[ 6208.478152]  (7)[292:wdtk-7][thread:292][RT:6208478138332] 2010-01-01 02:10:24.167195 UTC;android time 2010-01-01 07:40:24.167195
	Line 41883: <6>[ 6228.958149]  (0)[285:wdtk-0][thread:285][RT:6228958144919] 2010-01-01 02:10:44.647202 UTC;android time 2010-01-01 07:40:44.647202
	Line 42092: <6>[ 6249.438182]  (0)[285:wdtk-0][thread:285][RT:6249438160430] 2010-01-01 02:11:05.127217 UTC;android time 2010-01-01 07:41:05.127217
	Line 42276: <6>[ 6269.918107]  (0)[285:wdtk-0][thread:285][RT:6269918101632] 2010-01-01 02:11:25.607158 UTC;android time 2010-01-01 07:41:25.607158
	Line 42470: <6>[ 6290.398166]  (2)[287:wdtk-2][thread:287][RT:6290398161374] 2010-01-01 02:11:46.87218 UTC;android time 2010-01-01 07:41:46.87218
	Line 42663: <6>[ 6310.878082]  (2)[287:wdtk-2][thread:287][RT:6310878077192] 2010-01-01 02:12:06.567134 UTC;android time 2010-01-01 07:42:06.567134
	Line 42822: <6>[ 6331.358371]  (1)[286:wdtk-1][thread:286][RT:6331358361010] 2010-01-01 02:12:27.47417 UTC;android time 2010-01-01 07:42:27.47417
	

三、对应UTC 时间内 event Log中事件处理

event Log 中对应时间的处理事件行为。

01-01 07:32:25.263813   985  4971 I am_uid_stopped: 10006
01-01 07:32:30.564929   985  1003 I am_kill : [0,10911,com.google.android.partnersetup,906,empty for 2742s]
01-01 07:32:30.601069   985  4026 I am_proc_died: [0,10911,com.google.android.partnersetup,906,18]
01-01 07:32:30.601596   985  4026 I am_uid_stopped: 10020
01-01 07:32:54.043717   985  1003 I am_kill : [0,10993,com.google.android.apps.turbo:aab,904,empty for 2665s]
01-01 07:32:54.069470   985  4026 I am_proc_died: [0,10993,com.google.android.apps.turbo:aab,904,18]
01-01 07:33:51.788643   985  1007 I battery_level: [54,4170,350]
01-01 07:33:51.947804   985  1008 I am_pss  : [11876,10019,com.google.android.ims,21838848,16777216,0,128741376,0,18,142]
01-01 07:33:52.040950   985  1008 I am_pss  : [11961,10070,com.google.android.apps.messaging:rcs,26121216,8749056,0,145805312,0,18,90]
01-01 07:33:52.111476   985  1008 I am_pss  : [11860,10039,com.google.android.dialer,14561280,10125312,0,108580864,0,18,69]
01-01 07:34:16.691472   985  1112 I storage_state: [41217664-9172-527a-b3d5-edabb50a7d69,0,0,25091084288,25701982208]
01-01 07:35:23.723548   985  1007 I battery_level: [55,4177,360]
01-01 07:35:23.851438   985  1008 I am_pss  : [11876,10019,com.google.android.ims,21847040,16777216,0,128741376,0,18,113]
01-01 07:35:23.969307   985  1008 I am_pss  : [11961,10070,com.google.android.apps.messaging:rcs,26123264,8749056,0,145805312,0,18,116]
01-01 07:35:24.084904   985  1008 I am_pss  : [11860,10039,com.google.android.dialer,14561280,10125312,0,108580864,0,18,112]
01-01 07:35:54.245264   985  1068 I service_manager_stats: [100,92,4655015]
01-01 07:36:55.477384   985  1007 I battery_level: [56,4181,360]
01-01 07:37:16.927686   985  1112 I storage_state: [41217664-9172-527a-b3d5-edabb50a7d69,0,0,24964358144,25701982208]
01-01 07:38:17.028753   985  1112 I storage_state: [41217664-9172-527a-b3d5-edabb50a7d69,0,0,24852897792,25701982208]
01-01 07:38:35.414395   985  1007 I battery_level: [57,4152,360]
01-01 07:38:41.077479   985  1008 I am_pss  : [1616,10014,com.google.android.gms.persistent,58270720,36257792,0,203382784,0,4,73]
01-01 07:38:41.154287   985  1008 I am_pss  : [1274,10076,com.google.android.inputmethod.latin,55901184,49229824,0,171425792,0,6,65]
01-01 07:38:41.218068   985  1008 I am_pss  : [1749,10026,com.google.android.googlequicksearchbox:interactor,23403520,5447680,0,129708032,0,4,58]
01-01 07:38:41.283464   985  1008 I am_pss  : [1790,1068,com.android.se,5617664,2592768,0,86581248,0,0,55]
01-01 07:38:41.351690   985  1008 I am_pss  : [1771,1000,com.qiku.logsystem,15503360,10424320,0,115171328,0,0,58]
01-01 07:38:41.416445   985  1008 I am_pss  : [1582,1001,com.mediatek.ims,18276352,12439552,0,123478016,0,0,60]
01-01 07:38:41.505157   985  1008 I am_pss  : [1402,1001,com.android.phone,45342720,36402176,0,168390656,0,0,74]
01-01 07:38:41.577915   985  1008 I am_pss  : [1390,1000,com.megvii.faceunlockdev,99066880,95465472,0,193200128,0,0,63]

四、对应UTC 时间 main log的处理行为

main log 中对应时间的处理事件行为。

01-01 07:33:46.125141 12202 12202 I dex2oat : /system/bin/dex2oat --input-vdex-fd=19 --output-vdex-fd=20 --compiler-filter=speed-profile --profile-file-fd=23 --classpath-dir=/system/app/GoogleExtShared --class-loader-context=PCL[] --generate-mini-debug-info --compilation-reason=bg-dexopt
01-01 07:33:46.601642 12202 12202 I dex2oat : Explicit concurrent copying GC freed 14(90KB) AllocSpace objects, 0(0B) LOS objects, 99% free, 760B/1536KB, paused 93us total 7.065ms
01-01 07:33:46.779663 12202 12202 I dex2oat : dex2oat took 664.049ms (637.222ms cpu) (threads: 8) arena alloc=3KB (3104B) java alloc=16KB (17144B) native alloc=936KB (958840B) free=2MB (2186888B)
01-01 07:33:46.791796   551  1049 V installed: DexInv: --- END '/system/app/GoogleExtShared/GoogleExtShared.apk' (success) ---
01-01 07:33:46.887970   985 11866 I system_server: The ClassLoaderContext is a special shared library. 
... ...

01-01 07:36:27.754178   551  1050 V installed: DexInv: --- BEGIN '/system/priv-app/FilesGoogle/FilesGoogle.apk' ---
01-01 07:36:27.921082 12877 12877 I dex2oat : /system/bin/dex2oat --input-vdex-fd=19 --output-vdex-fd=20 --compiler-filter=speed-profile --profile-file-fd=23 --classpath-dir=/system/priv-app/FilesGoogle --class-loader-context=PCL[/system/framework/org.apache.http.legacy.boot.jar] --generate-mini-debug-info --compilation-reason=bg-dexopt
01-01 07:36:29.682576 10191 10191 D ian.qu  : ian.qu write file ok
... ... 
01-01 07:37:45.704298 13084 13084 I dex2oat : /system/bin/dex2oat --input-vdex-fd=19 --output-vdex-fd=20 --compiler-filter=speed-profile --profile-file-fd=23 --classpath-dir=/system/priv-app/GooglePackageInstaller --class-loader-context=PCL[] --generate-mini-debug-info --compilation-reason=bg-dexopt
01-01 07:37:47.165283 13084 13084 I dex2oat : Explicit concurrent copying GC freed 10384(4MB) AllocSpace objects, 0(0B) LOS objects, 95% free, 79KB/1615KB, paused 90us total 8.826ms
01-01 07:37:47.595620 13084 13084 I dex2oat : dex2oat took 1.902s (5.101s cpu) (threads: 8) arena alloc=1603KB (1642136B) java alloc=95KB (97480B) native alloc=4MB (4827376B) free=5MB (5658384B)
01-01 07:37:47.613222   551  1050 V installed: DexInv: --- END '/system/priv-app/GooglePackageInstaller/GooglePackageInstaller.apk' (success)

... ... 
01-01 07:39:28.004280 13124 13134 W dex2oat : Compilation of boolean ankh.a(ankn) took 118.029ms
01-01 07:39:28.194248 13124 13124 W dex2oat : Compilation of gdz anzx.a(aatu, anzq, abel, acdi, boolean) took 126.507ms
01-01 07:39:28.195596 13124 13129 W dex2oat : Compilation of anzf anzi.a(java.lang.String, int, int, gcl) took 142.913ms/
... ... 

01-01 07:40:51.367912 13322 13322 I dex2oat : Explicit concurrent copying GC freed 5478(2MB) AllocSpace objects, 0(0B) LOS objects, 99% free, 760B/1536KB, paused 95us total 7.866ms
01-01 07:40:51.694355 13322 13322 I dex2oat : dex2oat took 1.323s (2.908s cpu) (threads: 8) arena alloc=10KB (11256B) java alloc=16KB (17144B) native alloc=2MB (2944768B) free=2MB (2298112B)
01-01 07:40:51.710582   551  1061 V installed: DexInv: --- END '/system/priv-app/ManagedProvisioning/ManagedProvisioning.apk' (success) ---

五、建议 链接翻墙wifi ,登录Google 账户,更新GMS 后静置 30分钟后复测。

至此,本篇已结束,如有不对的地方,欢迎您的建议与指正。同时期待您的关注,感谢您的阅读,谢谢!

微信关注公众号:  程序员Android,领福利

原文地址:https://www.cnblogs.com/wangjie1990/p/11327103.html