101 Commits

Author SHA1 Message Date
Michael Bestas
5ca891b507 dumpstate: Don't dump serial number
Change-Id: I575db41209d3a5f8088f7388089650a265107b65
2023-10-18 00:39:12 +03:00
Jaegeuk Kim
66900e4947 Dumpstate: get fsck log
Bug: 241641121
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Iaadb166fe9194518b2db75080cddc02526bdf2bb
2022-08-10 14:26:28 -07:00
Jenny Ho
17a39d7cbd dumpstate: dump AACR related data
Add charging table and capacity dump for
Age Adjusted Charge Rate (AACR) feature

Bug: 209987670
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Ic9dd435557bf4e941fcbdb48fb134c938dd5be83
2022-03-28 17:01:52 +08:00
Willy Hu
ac1d5a182e Revert the "traffic stats log convert tp pcap" mechanism
Since we already disable this mechanism in B5/R3.
So we remove it.

Bug: 179620905
Test: Build pass. Basic function work.
      Test with generate bugreport success.
Change-Id: Iaa9932928afc93934e570cb9f4adf694ce68cbb3
2021-06-21 06:05:01 +00:00
Jaegeuk Kim
de32b5b67e Dumpstate: f2fs: remove verbose segment_info
Let's remove segment_info which seems not useful.

Bug: 184964835
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ib9826f536681d9f36f9d55dab3801a05c47f27a4
2021-04-09 12:26:01 -07:00
Jenny Ho
1c124d2f74 dumpstate: Update TRICKLE-DEFEND dump nodes am: db5e4be33e am: 60ef7dc886
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bramble/+/13257688

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iace560661b62bf9b3cf88fd18cf4e27c64e3edc9
2020-12-23 02:35:27 +00:00
Jenny Ho
db5e4be33e dumpstate: Update TRICKLE-DEFEND dump nodes
Bug: 17314936
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Iac066e085b5ce083a92f23946b6f036f190ac73b
2020-12-22 17:23:42 +08:00
Jenny Ho
5c67aafddf dumpstate: Support dump TEMP/TRICKLE/DWELL-DEFEND setting
Bug: 175172404
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I6ba88b2528177fc9b2af0ce94c91d464a0f0a6d9
2020-12-10 14:34:33 +08:00
Jenny Ho
b8b7557124 dumpstate: Update TRICKLE-DEFEND dump nodes
Bug: 173149361
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I720f60c919889658ff552bdcb983fdc02a5a75b3
2020-12-10 05:23:23 +08:00
Jenny Ho
b3c6db202b dumpstate: Support dump TEMP/TRICKLE/DWELL-DEFEND setting
Bug: 173149361
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: If87673fa18700b359364feb57323b5c564c42f85
2020-12-07 00:49:05 +08:00
Nicole Lee
4cd901c6e2 dumpstate: adjust timing of disable and enable mdlog
Bug: 169662280

The timing of dumpstate to enable diag_mdlog is too marginal to
diag_mdlog process exiting. The starting of diag_mdlog would fail if
diag_mdlog process still exists. Change is to leave some time for
diag_mdlog process to exit before it is enabled again by modifying the
system property vendor.sys.modem.diag.mdlog to true.

Change-Id: I825cd77e3f6e8fe6ce395cbe2c21974f1cb29d02
2020-10-15 11:00:49 +08:00
Hungyen Weng
33b2a10796 dumpstate: refine file copy and tar logic
Originally dumpstate copies files by calling /vendor/bin/cp with execvp.
We are seeing some stuck issues while copying files and taring files.
Change is to copy and tar files in place instead of calling system shell.

Bug: 169465773

Change-Id: I9878bde8e540d41c1b498c841079af38f4ec502c
2020-10-05 03:02:39 +00:00
Martin Liu
d22e87d0db dumpstate: Dump fastrpc dma buffer size
Dump fastrpc dma buffer size so we could understand
the memory usage of fastrpc.

Bug: 168084904
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Merged-In: Iefa6795ded8d8abc377ec6a0f2237649d0164efa
Change-Id: Iefa6795ded8d8abc377ec6a0f2237649d0164efa
2020-09-23 10:59:07 +08:00
TreeHugger Robot
3c5aa84d37 Merge "dumpstate timeout rollback to 30sec" 2020-09-22 14:42:23 +00:00
Martin Liu
2ae7190ad4 dumpstate: Dump fastrpc dma buffer size
Dump fastrpc dma buffer size so we could understand
the memory usage of fastrpc.

Bug: 168084904
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Iefa6795ded8d8abc377ec6a0f2237649d0164efa
2020-09-22 09:31:38 +08:00
Minchan Kim
627f4bfd14 dumpstate timeout rollback to 30sec
We have only 30sec budget to finish dunmpstate HAL so rollback to
30sec and then find a way to improve it whatever.

Bug: 168344541
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I4f6eff5130ca04ede47c503f00c3d76a660c1ce8
2020-09-21 15:00:57 -07:00
Minchan Kim
47959d85ec dumpstate: extend timeout to 60sec
Page Owner dump would take long time if memory size would be bigger.
To be sure, let's increase the timeout to 60sec.

Bug: 168344541
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I0932839b2047916f9ebcb5ecfe6009afb90d5e52
2020-09-15 17:58:20 -07:00
Minchan Kim
976ade2051 dumpstate: Dump page_owner for memory leak debugging
If kernel supports page_owner, dump it at bugreport so that it could
help memory leak problem.

Bug: 168344541
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I183ec4e9a510d52f838db811237417ce3846274f
2020-09-14 07:53:04 -07:00
Tim Lin
295be712bc collect log to debug RIL IPC issue am: 18c9ec4100 am: 33d0ab0e9f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bramble/+/12147671

Change-Id: I074467e9484d7ce267b903f55b75d177227746f8
2020-09-09 14:37:59 +00:00
Tim Lin
18c9ec4100 collect log to debug RIL IPC issue
Bug: 161218754
Test: trigger SSR then bugreport.

      size of qrtr_0_log after unzip
      -rw------- 1 timtmlin primarygroup    18370 Jul 15 09:30 qrtr_0_log

      BR size increased by 3928 bytes that is 0.024%(0.00024) increasing
      16109538 Jul 17 13:41 bugreport-bramble-RVC-2020-07-15-09-29-47.zip
      16113466 Jul 17 13:33 bugreport-bramble-RVC-2020-07-15-09-29-47.zip

Change-Id: Iaec386437d72be3790299b9fa31a5ece722a0be9
2020-09-09 09:35:03 +00:00
Kyle Tso
b2af493ff8 dumpstate: Dump logbuffer_tcpm am: cb3da71fdd am: 37074512ce
Original change: https://googleplex-android-review.googlesource.com/c/device/google/bramble/+/12516248

Change-Id: I13152adad1679e658b0a19783121f0d8d825dc37
2020-09-07 08:15:51 +00:00
Kyle Tso
cb3da71fdd dumpstate: Dump logbuffer_tcpm
Bug: 159590083
Test: check dumpstate result
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I2abbc76492fd8b136bbf1964ce975f6b150466ed
2020-09-07 07:22:38 +00:00
Jaegeuk Kim
c925ddf959 dumpstate: use generic sysfs path for storage
Bug: 161925472
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I8b16142d36d2ceedf8b80e5be47a1c325ffd1809
2020-07-28 15:38:09 -07:00
Alex Hong
fb8af1d53b Dump the debugfs information only in userdebug build
W/sh      (10769): type=1400 audit(0.0:416): avc: denied { read } for name="/" dev="dm-5" ino=2 scontext=u:r:hal_dumpstate_impl:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0
W/sh      (10771): type=1400 audit(0.0:417): avc: denied { read } for name="/" dev="dm-5" ino=2 scontext=u:r:hal_dumpstate_impl:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0

Bug: 160544144
Test: run cts -m CtsSecurityHostTestCases -t android.security.cts.SELinuxHostTest#testNoBugreportDenials
Change-Id: Ic96f36832eb407d96adf2f3c71504754f298a9f7
2020-07-09 16:58:59 +08:00
Jack Wu
ea5e74d1fd dumpstate: dump logbuffer_device in dumpstate
Bug: 159680802
Test: check dumpstate result
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I894963a806832b0f41c94382f87cc46706182f7b
2020-07-07 10:00:41 +08:00
TreeHugger Robot
737771b554 Merge "dumpstate: remove touch force active command" into rvc-d1-dev 2020-07-06 10:49:52 +00:00
davidycchen
f17ccc6e72 dumpstate: remove touch force active command
There is a risk that if we force active the kernel by touch driver but
fail to set it back, it will cause the kernel cannot suspend and imapct
power consumption.

Bug: 159576114
Test: trigger butreport.

Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I58eb8661737ada43dcec13bbbe4ae30dde347f9d
2020-07-06 17:17:14 +08:00
Fo Lee
610b4f873e Add Camera profiler CamNode log
In order to clarify and improve video jank problem, we plan to add
some CamNode log into bugreport

Bug: 158243741
Change-Id: Id93e956472286cf8969ec5e96f762334957a50b8
2020-07-06 10:02:51 +08:00
Ken Tsou
a8668e1817 dumpstate: add battery eeprom to dumpstate
sync ag/10382199

Bug: 149979769
Test: trigger dumpstate and check battery eeprom data
Change-Id: I390bcf599fd232371963b8a3b2cfb282dca05808
Signed-off-by: Wasb Liu <wasbliu@google.com>
Signed-off-by: Ken Tsou <kentsou@google.com>
2020-06-16 09:41:06 +00:00
Willy Hu
0e7c1695a8 [B5] ril: Add null check when strtok_r return
Symptom:
We meet the issue about the incomplete log, when we
process covert to pcap file, it will cause to crash
due to strtok_r return null pointer.

Log:
2020-05-27 20:48:33.058 0000 00 0e b6 00 00 02 00 0e b6 00 00 01 86 DD 60 03 22 0a 00 28 06 40 20 01 b4 00 e3 06 1b 5b a3 67 54 1f b6 41 76 ac 20 01 b0 00 01 68 00 00 00 00 00 00 00 00 00 02 bf d0 03 55 d3 ec 6a 8f 00 00 00 00 a0 02 ff ff 0c b5 00 00 02 04 05 a0 04 02 08 0a 36 45 3b 33 00 00 00 00 01 03 03 08
// it's incomplete log as below
2020-05-27 20:48:33.

Bug: 157973383
Test: 1. We can reproduce this issue by using incomplete log as above
         description.
      2. Manual trigger bugreport with incomplete log and the symptom
        of crash is gone.
Change-Id: I9a69104a1d354da8e732b6c6d7fbe675d2863ed3
2020-06-05 17:07:16 +08:00
Leo Liou
ce9f1cfee1 bramble: dumpstate: add UFS err_stats dump
dumpstate_board.txt:
------ UFS err_stats (/vendor/bin/sh ... ------
err_clear_pend_xfer_tm:0
err_eh:0
err_hibern8_enter:0
err_hibern8_exit:0
err_int_fatal_error:0
err_int_uic_error:0
err_linkstartup:0
err_power_mode_change:0
err_resume:0
err_suspend:0
err_task_abort:0
err_vops_suspend:0

Bug: 137150088
Bug: 151790553
Test: run bugreport and capture dumpstate_board
Change-Id: I519d4d751028e127abffcd0230d0e7664aa13386
Signed-off-by: Leo Liou <leoliou@google.com>
2020-06-03 20:29:37 +08:00
Willy Hu
3135d6dbbf Merge "ril: [B5] Support traffic stats log convert tp pcap" into rvc-dev am: 1f7689240f
Change-Id: I5d8be1f0f591a5d2a4cf04c60e8a4885a429108c
2020-05-25 03:29:18 +00:00
Willy Hu
47c834c85e ril: [B5] Support traffic stats log convert tp pcap
convert traffic stats log(extended_log_datastall_pkt.txt) to pcap
when dump bugreport.

Bug: 154492175
Test: 1. I do see extended_log_datastall.pcap file
      in dumstate_board.bin when I trigger bugreport.
      (data/vendor/radio/extended_logs/extended_log_datastall.txt)
      2. I have do the test about incomplete/truncated logs, pcap just
      can parse to wrong information but not impact the dumpstate
      process.
Change-Id: Iea892bc66bbce8d7f219ca1cde3701cebb35ff80
2020-05-20 12:38:19 +08:00
davidycchen
17a45c8132 dumpstate: add touch packaging plant information
Add more information for debugging touch issues.

Bug: 155249298
Test: adb bugreport

Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I1ec7bb0772bbbab5f59eeca9caae2a217fcc2da0
2020-04-30 16:28:40 +08:00
davidycchen
d7305f1b6c dumpstate: modify dumping touch information commands
Modify dumping touch information commands to avoid touch force
calibration.

Bug: 154291200
Test: trigger bugreport successfully.

Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Ia13fef7eba07be51a33ba5b9f7622435616e6e15
2020-04-22 17:33:42 +08:00
raylinhsu
bc738d7920 dump panel information in dumpstate_board
add panel information to dumpstate_board.txt

Bug: 143331062
Test: adb bugreport and verify logs in dumpstate_board.txt
Change-Id: I056ab3a2d3079ea256da5b4bbb59ff9adcbff0fd
2020-03-25 18:31:20 +08:00
Leo Liou
b9ea9ec690 dumpstate: refactor DumpUFS
The DumpUFS function cannot work with the real sepolicy rules. So
refactor the function to fix the problem.

Bug: 149468879
Test: run bugreport
Change-Id: I9b260d18f4cc768cba98b64d76a149241e17c22b
Signed-off-by: Leo Liou <leoliou@google.com>
2020-03-24 01:55:22 +08:00
Jaegeuk Kim
dbb3898743 Dumpstate: add f2fs info and remove too specific fragmentation info
Bug: 149844577

Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Ocean Chen <oceanchen@google.com>
Change-Id: Id05aaa58118e3d12b4e2734e3014e586e33ee84d
2020-03-13 16:57:48 +08:00
Hungyen Weng
c9dc95e39d dumpstate: don't dump modem logs if verbose logging is disabled.
Bug: 151186921
Change-Id: I9e7b499d332ea4e042edf173ac0368f3c537f0f7
2020-03-11 03:25:24 +00:00
Hunter Knepshield
2b4b2062cf Bramble: fix DumpstateMode validation.
The PROTO mode was added after initial HAL upgrade and is causing VTS
failures due to the way the DumpstateMode param is being validated.

Bug: 150873571
Test: make (no device run VTS, older devices pass with identical change)
Change-Id: Icc4e93c48e65244463db6313de7dee3af098831c
(cherry picked from commit d1ee906172)
2020-03-05 23:49:16 +00:00
Hungyen Weng
bde2a6cce9 dumpstate: Use thread to dump modem logs
Bug: 150185396

Change-Id: I9d989d5e42158b8d85dfd05761eca2516be9a1d6
2020-02-26 02:40:41 +00:00
chasewu
6e71160395 vibrator: Update delta from qpr1 branch
Bug: 149059760
Test: manual check haptics and vibration
Change-Id: I97dae2804973d51af7443a786c155fa519e746f9
Signed-off-by: eddielan <eddielan@google.com>
2020-02-24 03:22:48 +00:00
Hungyen Weng
02e61d40da bramble: support modem logging on user build
Bug: 143047251
Change-Id: Ifd6f6c779ee0f757b5be11282758d86b78420d3e
2020-02-18 08:31:16 +00:00
Hungyen Weng
7aa6ea3838 Update dumpstate HAL to V1.1
Bug: 143184495
Test: atest VtsHalDumpstateV1_1TargetTest pass
Change-Id: I087622c49e2632d7e759a6384c5e09102e072fd7
2020-02-17 15:33:56 +00:00
Raylin Hsu
332076509b dumpstate: Remove to dump MDP xlog in bugreport. am: d68ab810a7 am: 3ef8facc84
Change-Id: Iebd6d3a54f43dce7bfd009287bf7dbef186312e6
2020-02-15 08:21:46 +00:00
Raylin Hsu
d68ab810a7 dumpstate: Remove to dump MDP xlog in bugreport.
The /data/vendor/display/mdp_xlog is for mdp driver but not for DRM/KMS.
The bugreport should not need dump it.

Bug: 149467103
Test: There is no failed selinux log of display_vendor_data_file.
Change-Id: Iae9758234c3a1eb97c2fd1b6de5a9415fa991bcd
2020-02-14 17:05:03 +08:00
Automerger Merge Worker
229b524694 bramble:dumpstate: change the order of touch information am: 4c0e375118 am: 27d8b567b1
Change-Id: I89331432dfff931d95bcdaefaec4995291e87a78
2020-02-03 06:03:32 +00:00
davidycchen
4c0e375118 bramble:dumpstate: change the order of touch information
Change touch ITO test to the last test item because ITO test will
trigger touch hardware reset which may affect the rawdata value of other
test items.

Test: trigger bugreport and check the touch information is correct in
dumpstate.
Bug: 147336072

Change-Id: Iad903e70584f28e824e9a12da442fae553d97cfb
Signed-off-by: davidycchen <davidycchen@google.com>
2020-02-03 10:43:11 +08:00
Bill Richardson
f72cdb9150 dumpstate: Include Citadel status in all bugreports
Gather Citadel's firmware version, uptime stats, and motherboard type in all
bug reports. None of this can be used to identify a specific phone, so it's
safe to run in production builds.

Previously we were running --id and --selftest. Because these could be used
to indentify a specific Citadel chip, we only gathered it on userdebug and
test builds. We used that to isolate problems with early Citadel samples in
prototype phones, which we've done, fixed, and replaced. We don't need that
info anymore.

Bug: 141235263
Test: manual
Change-Id: I6e4d3817fc7f3793956c60f6189ac1ff84b2ae55
Merged-In: I6e4d3817fc7f3793956c60f6189ac1ff84b2ae55
Signed-off-by: Bill Richardson <wfrichar@google.com>
(cherry picked from commit ea5ca7374c)
2020-01-24 12:14:51 -08:00
Automerger Merge Worker
9f3f66e94d Merge "dumpstate: Change tcpm log path" into qt-qpr1-dev am: fbdd17c79a am: c2deb9c126
Change-Id: I4acfe6ff1153f495ec67723dedd759aff8f9cb6a
2020-01-21 08:36:39 +00:00