Commit graph

57 commits

Author SHA1 Message Date
Jack Wu
bd99c7ad2f dump_power: add battery caretaker dump into bugreport
logging for AACR(+H), AAFV, AACT, AACC and AACP Version

Bug: 384737509
Test: adb bugreport
Flag: EXEMPT bugfix
Change-Id: I4e1feff739abeb22bbffe03bf8d903962eade26f
Signed-off-by: Jack Wu <wjack@google.com>
2024-12-20 12:29:53 +08:00
Spade Lee
3f193d644d dump_power: zumapro: correct dump path
- move fg registers dump from debugfs to sysfs
- add pca9468/ln8411/dual_batt path
- remove unused debug path

Bug: 377895720
Flag: EXEMPT bugfix
Change-Id: I44ff1f6d14d9c440dccd832b6012c9dcaa0f7954
Signed-off-by: Spade Lee <spadelee@google.com>
2024-11-12 16:51:08 +00:00
Baltazar Ortiz
9af16ad5e4 dumpstate: Use generic dc_mains for all parallel chargers
Bug: 360866957
Test: adb bugreport
Flag: EXEMPT bugfix
Change-Id: If9268d4ac8ec857c3dd9a7f2cae6b6485cfb2e95
Signed-off-by: Baltazar Ortiz <baltazarortiz@google.com>
2024-09-25 23:24:05 +00:00
Treehugger Robot
ac8d8990e8 Merge "dump_power: add max77779sp dump path" into main 2024-08-13 16:43:17 +00:00
Spade Lee
ced94e1197 dump_power: add max77779sp dump path
Bug: 347452474
Test: adb bugreport verify ok
Flag: EXEMPT bugfix
Change-Id: I69483cd7afd121c4d127d234685ff928bbf37b4c
Signed-off-by: Spade Lee <spadelee@google.com>
2024-08-12 14:01:58 +00:00
Spade Lee
de1ffe6821 dump_power: zumapro: add FG dump registers path
Bug: 355756379
Test: adb bugreport verify ok
Flag: EXEMPT bugfix
Change-Id: I58a2a7f79bccbd560440054c2593b0ad6968b84c
Signed-off-by: Spade Lee <spadelee@google.com>
2024-08-12 14:01:54 +00:00
Kyle Tso
b616d05cca dumpstate: Dump manual_disable_vbus in TCPC
Bug: 335368150
Bug: 344686002
Bug: 352490157
Flag: EXEMPT bugfix
Change-Id: I1f6cc8bc830d4e23e86b0fc93fa49f2944835cda
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-08-05 11:25:27 +00:00
Kyle Tso
c0e32b0bea dumpstate: Modify dumpTcpc path and content
Ported from I248fb250b94cbd4078e7f3c44da83f62002b53fb with some
modifications.

Bug: 357543284
Test: checked the content in dumpstate
Flag: EXEMPT bugfix
Change-Id: I35502167baedb96b58f214cb6842fb1ea4dee3e0
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-08-05 11:07:36 +00:00
Vishvam Mazumdar
20baf04a64 Merge "Add CPU Idle Histogram Stats to dumpstate board file." into main 2024-07-10 21:41:10 +00:00
Vishvam Mazumdar
cae96e4e50 Add CPU Idle Histogram Stats to dumpstate board file.
This change is to allow the CPU Idle Histogram Stats to be dumped in
bugreports so that there is more insight into the idle behavior of
devices in the field.

Test: Build/Flash
Test: adb bugreport
Bug: 344908619
Flag: EXEMPT bugfix
Change-Id: I3b7b0d573bfd5f7e5e9f05c333b5a38940f3d8d6
Signed-off-by: Vishvam Mazumdar <vmazumdar@google.com>
2024-07-10 21:40:39 +00:00
Jack Wu
77f2807cf9 dump_power: add RT9470G dump into bugreport
1. power supply properties
2. registers

Bug: 347914940
Test: adb bugreport
Flag: EXEMPT bugfix
Change-Id: Ie6f2de3acef515665727f3e3bc0e4373778ffe07
Signed-off-by: Jack Wu <wjack@google.com>
2024-06-24 01:52:47 +00:00
Hiroshi Akiyama
9bcf2600ec dump_power: parse vimon in dumpstate board
Bug: 345835957
Test: generate bugreport
Flag: EXEMPT bugfix
Change-Id: Id611cd76a0133e1525ffe74e82a6c0d940e39aab
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2024-06-11 20:28:37 +00:00
Jenny Ho
596e99f6e3 Merge "dump_power: add max77779 fwupdate logbuffer into bugreport" into 24D1-dev am: b19d9e72a9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/27057698

Change-Id: I9122f9c85e6ae0bc0fc357f7adefb06f2e7bf06d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 06:06:48 +00:00
Jenny Ho
95ec940804 dump_power: add max77779 fwupdate logbuffer into bugreport
Bug: 334198978
Change-Id: I62fcde4a49024ccacc96a3139bb3284c41ceea58
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2024-04-23 08:04:40 +00:00
Treehugger Robot
e6aab8f51f Merge "dumpstate: Dump logbuffer_pogo_transport" into main 2024-04-16 01:08:35 +00:00
Jenny Ho
cd9e0185ec dump_power: add dual battery debugfs path
Bug: 334773288
Change-Id: If8d69a88b0d3c1fb5ab37b855e1efd265eab618b
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2024-04-15 09:58:15 +00:00
Kyle Tso
bc9752ea63 dumpstate: Dump logbuffer_pogo_transport
Bug: 328314131
Change-Id: I2ff93e33efa9727d14f21a68e8261221a1091638
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-04-15 17:25:08 +08:00
Jenny Ho
97762978d9 dump_power: add maxfg_history permission
allow to dump secondary battery history for dual battery projects

Bug: 333952062
Change-Id: Id2732c04bdeb7c955e67a427e4d41c224943983a
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2024-04-12 00:06:24 +00:00
Hiroshi Akiyama
cc02e0259d dumpstate: add checks in irq duration count
Add checks to vector size before accessing vector contents to prevent
null pointer exception.

Bug: 330796833
Test: adb bugreport
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d55a1eb732fb6deac79b21cabaf606f0c477612f)
Merged-In: I1a50337b1fde3b763ee7f154fa206f98681045dd
Change-Id: I1a50337b1fde3b763ee7f154fa206f98681045dd
2024-03-25 18:29:15 +00:00
William McVicker
3eb0112b43 Merge "Update tcpm i2c path with new device name" into main 2024-02-22 17:54:41 +00:00
Daniel Okazaki
bb47f85b04 dumpstate: moving charger nodes to user build
Bug: 323415060
Test: adb bugreport
Change-Id: Iabc4c810641acf54e2bebf5e441423bc341b54c8
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2024-02-17 04:28:18 +00:00
Will McVicker
3c01f2056c Update tcpm i2c path with new device name
The new names fix uninformative kernel wakelock names.

Bug: 315190967
Bug: 323447554
Change-Id: I9f2d55b532f9a0f9692a0d613727893b588e600a
2024-02-16 15:14:02 -08:00
Spade Lee
c4c265ea45 dumpstate: add SoC residency dump
Bug: 319536756
Test: SoC residency was correctly shown in dumpstate board
Change-Id: I20bf91393efcf0edb6c458f55e228a227f930ee5
Signed-off-by: Spade Lee <spadelee@google.com>
2024-01-22 16:43:35 +00:00
Jenny Ho
1257aa5cdd Handle empty read from file.
Test: run /vendor/bin/dump/dump_power
Bug: 317934817
Change-Id: Ia4453483fdfaba838a1ffb3d38b243dceb9628e7
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-28 11:35:08 +08:00
Sam Ou
59814a3dae Merge "bcl: add lastmeal.csv into dumpstate" into main 2023-12-18 01:50:06 +00:00
samou
e4ceff9023 bcl: add lastmeal.csv into dumpstate
Test: ./dump_power
Bug: 293899466
Change-Id: I0ff03baf459fe4a2ae57a2837f4181b04d764e7b
Signed-off-by: samou <samou@google.com>
2023-12-15 14:39:17 +00:00
Wilson Sung
2dd6ea4c83 Remove dump_wlan.sh
Bug: 312143882
Test: make selinux_policy
Change-Id: Idebcb5bcd81647927b324372b3ec0ffefd5f72b6
2023-12-06 09:13:20 +00:00
Hiroshi Akiyama
a9506fbf2a dumpstate: add evt count logging
Add capability for dump_power to log event counter logging

Bug: 299668264
Test: adb bugreport and check dumpstate_board.txt
Change-Id: I1fdf6214dc9b333044e395a8148349b26c0d5653
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-11-06 21:52:17 +00:00
Treehugger Robot
6113111eea Merge "dump_power: fix the problem of not being able to dump properties" into main 2023-11-06 15:48:43 +00:00
Jack Wu
4f407e7b15 dump_power: fix the problem of not being able to dump properties
Bug: 309011602
Test: adb bugreport and check dumpstate_board.txt
Change-Id: I2b1cb98fad154511fe55c84ecf85272f58f634ee
Signed-off-by: Jack Wu <wjack@google.com>
2023-11-06 20:27:25 +08:00
samou
505f0b8308 bcl: support thismeal binary parsing
Test: ./dump_power and adb bugreport
Bug: 293899466
Change-Id: I4ba2ee96a02573993cd4de132db9095f73253041
Signed-off-by: samou <samou@google.com>
2023-11-02 11:49:05 +00:00
Sam Ou
ce8c8e9bb8 Revert "bcl: add parser for thismeal.bin and lastmeal.bin"
This reverts commit fa0ee1521c.

Reason for revert: migrate binary parser to battery_mitigation

Change-Id: I7c97c3cb91924cdc19f61c8b7ea85e6c49813c42
2023-10-31 16:56:47 +00:00
Sam Ou
61a1d02c32 Merge "bcl: add parser for thismeal.bin and lastmeal.bin" into main 2023-10-31 02:22:51 +00:00
samou
fa0ee1521c bcl: add parser for thismeal.bin and lastmeal.bin
Test: ./dump_power
Bug: 293899466
Change-Id: I648a4a0b205cbebd681613505bc5f91a848a3deb
Signed-off-by: samou <samou@google.com>
2023-10-30 07:04:25 +00:00
Daniel Okazaki
7fb00c91c3 dump_power: adding defender logs for charger and active time
Bug: 306108267
Test: build/flash
Test: adb bugreport
Change-Id: If9bf3e6ab1c6008cbefd4b09a8bb2802ff196207
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2023-10-27 18:47:43 +00:00
Hiroshi Akiyama
c4dc97b468 dumpstate: fix missing dump_power.rc in Android.bp
Bug: 305532134
Test: adb bugreport and check dumpstate_board.txt
Change-Id: Ie5009983f43fe28483d4c30d3fc405f475ee7e7c
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-10-19 22:43:32 +00:00
Hiroshi Akiyama
1809b11768 Merge "Migrate dump_power.sh contents into cpp for improved speed" into main 2023-10-15 23:46:11 +00:00
Hiroshi Akiyama
e837d5240b Migrate dump_power.sh contents into cpp for improved speed
Bug: 299133307
Test: adb bugreport and check dumpstate_board.txt
Change-Id: Ied22b516844cb1d39a39fbbdee0b81a69c1d2e1c
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-09-22 11:08:29 +00:00
YiKai Peng
a170ed0e50 dumpstate: Add authstart permission
Bug: 300182745
Test: Build/Flash

Change-Id: I8e365d9eaeb2cb337d8016e221744df658404d3c
Signed-off-by: YiKai Peng <kenpeng@google.com>
2023-09-20 11:51:43 +00:00
Jack Wu
e5cdef56e4 dumpstate: fix pps-dc logbuffer missing
Bug: 300284266
Test: data is correct in dumpstate
Change-Id: I325ed2acf7e329f599b2792ef2682f7ccc225722
Signed-off-by: Jack Wu <wjack@google.com>
2023-09-14 08:18:14 +00:00
Jack Wu
ad27baa842 dumpstate: fix incorrect maxfg_secondary path
Bug: 299268124
Test: data is correct in dumpstate
Change-Id: Ie304342def837b580b07ebdde9ce042fba897b9b
Signed-off-by: Jack Wu <wjack@google.com>
2023-09-07 20:09:00 +08:00
Jack Wu
464f64dabc init: disable dock-defend in charger mode
Need to meet energy certification test requirement which needs to
be able to charge FULL.

Bug: 298923686
Test: can charge to full on dock in charger mode
Change-Id: Ie7a2acb18e8ebb4e4bed36c759164217d127ae1c
Signed-off-by: Jack Wu <wjack@google.com>
2023-09-05 09:21:15 +08:00
Jack Wu
91dcc11be7 dump_power: add permission for first_usage_date access
Bug: 298628003
Test: write first_usage_date sysfs node successfully
Change-Id: I1ba33c2aba8cf0129357bb83df8a8609684a52c7
Signed-off-by: Jack Wu <wjack@google.com>
2023-09-04 17:19:35 +08:00
Jack Wu
a88d94fb46 dumpstate: fix incorrect dc sysfs node path
also add thermal stats permissions for clearing

Bug: 298628728
Test: can parse pca stats in pixelstats-uevent
Change-Id: Ie6bf430842115cc21167f693f20fd169be19f6d6
Signed-off-by: Jack Wu <wjack@google.com>
2023-09-04 04:31:04 +00:00
Jenny Ho
064e269d4d Merge "dump_power: dump battery pairing state" into udc-qpr-dev 2023-08-29 07:02:42 +00:00
Daniel Okazaki
dab8549f10 dump_power: adding BMS changes for static i2c bus
Bug: 296941196
Test: build/flash/adb bugreport
Change-Id: I5e46fa09d6e939f849473a6efbfd6e5bac73d067
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2023-08-28 19:28:10 +00:00
Jenny Ho
ce92b5579e dump_power: dump battery pairing state
Bug: 294782342
Change-Id: I4f7f9b5a8b8232f4b25d931a5cbb95ca30b1b39c
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-08-28 16:24:45 +08:00
Zheng Pan
05a3dcba0a Update i2c bus sysfs path
Bug: 296941196
Test: make sure i2c bus paths exist and are accessable.
Change-Id: Id5f8d12c35c6c0d41e82776d2d6dff4371e73213
2023-08-25 22:13:03 +00:00
Daniel Okazaki
cddb5f1445 zumapro: adding eeprom print in dump_power
Moving BMS privileges and settings to own file

Bug: 294080767
Test: adb bugreport
Change-Id: I97cdbd252a4fd6996b566276992bfa5e9a5bc0c4
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2023-08-03 22:28:34 +00:00
Jenny Ho
501b19dd1e dump_power: integrate FG dump path
Bug: 290542674
Change-Id: Ic4375a761d1164d60dcfd44dedd7528e65f0e7b4
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-07-27 22:39:07 +00:00