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
Daniel Okazaki
9302b07567
zumapro: fix eeprom print in dump_power
...
Bug: 290542674
Test: adb bugreport
Change-Id: I38a484295be50cb76e29f2170bff7d95301d62b5
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2023-07-25 21:09:42 +00:00
Daniel Okazaki
2ff3f3c8e0
Revert "zumapro: fix pmic regs print in dump_power"
...
This reverts commit d0fd1b567f
.
Reason for revert: selinux issues
Change-Id: I6273bc00d7180a5eb07b2e74381ff6523ab598a7
2023-07-21 16:40:11 +00:00
Daniel Okazaki
d0fd1b567f
zumapro: fix pmic regs print in dump_power
...
Bug: 290542674
Test: build/manual test script
Change-Id: Iba23bf2be5136f47e5d06aef6892d415c8600490
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2023-07-17 18:01:53 +00:00
Daniel Okazaki
8ed0170af8
zumapro: update dump_power for zumapro
...
Bug: 290542674
Test: build/flash
Change-Id: I432cce65c670693021a707f63780d728e2236ff2
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2023-07-13 00:54:42 +00:00
Jenny Ho
b36442e900
dumpstate: add dump max77779 FG data path
...
Bug: 290315763
Change-Id: I946fd90fdca90b268fae0dbfdce18172d5bce92f
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-07-07 16:23:52 +08:00
Minchan Kim
12c9a0fe55
remove dump_cma.sh from zumapro
...
We will introduce it into gs-common
Bug: 276901078
Change-Id: I921398c0ebe68343c84c4b429e2e595d214ff205
Signed-off-by: Minchan Kim <minchan@google.com>
2023-04-11 22:23:01 +00:00
Robin Peng
dec234f475
init zumapro from zuma sha 4daedb8feb4d4
...
Bug: 272725898
Change-Id: I1e1ab5d15e7f4b2b59e28f2e52e07cd7e12f25b3
2023-03-31 15:10:16 +00:00