107 Commits

Author SHA1 Message Date
Michael Bestas
4e4c7364c1 Merge tag 'android-15.0.0_r1' of https://android.googlesource.com/device/google/redfin into HEAD
Android 15.0.0 release 1

* tag 'android-15.0.0_r1' of https://android.googlesource.com/device/google/redfin:
  Update stale OWNERS.
  Remove mandyshen@google.com from OWNERS
  Set "enable_nr_dual_connectivity_qcril" to control module build
  Move license metadata declarations to meta-lic.mk and remove the Android.mk file.
  Convert Android.mk to Android.bp under redfin/dumpstate

Change-Id: I1700fa7eb746d0b3c22424642dda916dda0db8ff
2024-09-26 00:53:09 +03:00
Herbert Xue
f43a72c598 Convert Android.mk to Android.bp under redfin/dumpstate
Bug: 311544087
Test: lunch aosp_redfin-trunk_staging-userdebug, m android.hardware.dumpstate@1.1-service.redfin
Change-Id: I40e70657f57cda1240594d13bcef79ec0e155a33
2023-11-17 14:03:43 +08:00
Michael Bestas
03e08064c3 dumpstate: Don't dump serial number
Change-Id: I575db41209d3a5f8088f7388089650a265107b65
2023-10-18 00:39:42 +03:00
Jaegeuk Kim
7a1521a0c0 Dumpstate: get fsck log
Bug: 241641121
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Iaadb166fe9194518b2db75080cddc02526bdf2bb
2022-08-10 14:27:45 -07:00
Jenny Ho
bfc4164afc 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 16:59:26 +08:00
Willy Hu
2a3fd510f9 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: I59e0aaa3fcff5e32b2e9fb626bcd899148102a2b
2021-06-21 06:04:52 +00:00
Jaegeuk Kim
087277bf70 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:27:12 -07:00
Bob Badour
514462a663 [LSC] Add LOCAL_LICENSE_KINDS to device/google/redfin
Added SPDX-license-identifier-Apache-2.0 to:
  dumpstate/Android.mk
  self-extractors/qcom/staging/Android.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Ic5c7d12b921e0fa7e2fb95dfb74deda88ee2a189
2021-03-11 10:15:05 -08:00
Jenny Ho
3dd8f91244 dumpstate: Update TRICKLE-DEFEND dump nodes am: 0d26602877 am: 49ef6e25f8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/13254629

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic9a101d3b93e6ae04c3793ccc7f844fef192732a
2020-12-23 02:35:27 +00:00
Jenny Ho
0d26602877 dumpstate: Update TRICKLE-DEFEND dump nodes
Bug: 17314936
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Ifc56875988cd50d42f73e741a31cfbccb7a859aa
2020-12-22 17:21:24 +08:00
Jenny Ho
ec6890bdab dumpstate: Support dump TEMP/TRICKLE/DWELL-DEFEND setting
Bug: 175172404
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Ie41dae64941bdade2f5308ad5a9fb3a47c5d2ca7
2020-12-10 14:33:16 +08:00
Jenny Ho
a81a2d4140 dumpstate: Update TRICKLE-DEFEND dump nodes
Bug: 173149361
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Ic3d3372f4b5f3d903bdf016f6ccbd6085d8e64ee
2020-12-10 05:26:40 +08:00
Jenny Ho
e1478e5cbb dumpstate: Support dump TEMP/TRICKLE/DWELL-DEFEND setting
Bug: 173149361
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: If286d2a81acfe315fbf49221daa96b097ba352ce
2020-12-07 00:46:08 +08:00
Nicole Lee
a81f071077 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 10:59:42 +08:00
TreeHugger Robot
8fbf893e43 Merge "dumpstate: add #19(TYPE_OFFSET_DATA_SEC) touch raw data" into rvc-qpr-dev am: cae4a6d8ee am: 4cbf0f4538
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/12660786

Change-Id: I388b439c7b43e0b1bdf5dc9c589b225aeff890d7
2020-10-12 09:02:33 +00:00
TreeHugger Robot
cae4a6d8ee Merge "dumpstate: add #19(TYPE_OFFSET_DATA_SEC) touch raw data" into rvc-qpr-dev 2020-10-12 08:20:09 +00:00
Hungyen Weng
9c6a0980af 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 02:42:12 +00:00
Martin Liu
71a47ab29d 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: I24251ec2d50fedec40939df480a6473a8a7ef187
Change-Id: I24251ec2d50fedec40939df480a6473a8a7ef187
2020-09-23 10:56:46 +08:00
Super Liu
0f80e463b4 dumpstate: add #19(TYPE_OFFSET_DATA_SEC) touch raw data
Bug: 169197851
Test: adb bugreport to check touch data
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I4835058cdad7c90a154d97dde55c4f7e9c2f0d57
2020-09-23 10:48:56 +08:00
TreeHugger Robot
a145ca1b6d Merge "dumpstate timeout rollback to 30sec" 2020-09-22 14:42:24 +00:00
Martin Liu
74d125783b 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: I24251ec2d50fedec40939df480a6473a8a7ef187
2020-09-22 09:30:54 +08:00
Minchan Kim
dfd62773b7 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: I7b9fb03ca4c0cc7500285ad751fd31ed8d67a696
2020-09-21 14:58:35 -07:00
Minchan Kim
48441196ee 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.

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: Ia137ade462afc545fd61a0a58b75332105b6e4a5
2020-09-15 18:05:04 -07:00
Kyle Tso
bc0b463051 dumpstate: Dump logbuffer_tcpm am: 514545bf6b am: 5ba0c18599
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/12517210

Change-Id: I2985c06a5ecda966fab805680b24bd6560a5615b
2020-09-07 08:15:51 +00:00
Kyle Tso
514545bf6b dumpstate: Dump logbuffer_tcpm
Bug: 159590083
Test: check dumpstate result
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I3a555f76595386b9bb1a685a41a0e7869de4b846
2020-09-07 07:22:56 +00:00
Jaegeuk Kim
622e7140fc dumpstate: use generic sysfs path for storage
Bug: 161925472
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I8b16142d36d2ceedf8b80e5be47a1c325ffd1809
2020-07-28 15:37:17 -07:00
Alex Hong
c0bed9c86e 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: Ib10b9b0e959e86c6e96610015df93537102d7dde
2020-07-09 17:00:43 +08:00
Jack Wu
500b0647da dumpstate: dump logbuffer_device in dumpstate
Bug: 159680802
Test: check dumpstate result
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: If10d5b654e4e39747a29cfd23fdf6b7b658a007d
2020-07-07 10:09:21 +08:00
Fo Lee
2cd2648d44 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: Idb1cf97c321027cdc7651700d32fe0cb92ab016b
2020-07-06 10:06:37 +08:00
Ken Tsou
2fb7619cfd 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:40:20 +00:00
Super Liu
ac3ffc70ec dumpstate: change touch output data format
Bug: 144326854
Test: check bugreport output data
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I0b240e1488a8319c9472a68bf82476b71614c881
2020-06-10 15:15:50 +08:00
Willy Hu
a42dffa999 [R3] 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-08 17:19:35 +08:00
Leo Liou
363bcf7857 redfin: 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-08 17:19:28 +08:00
Willy Hu
fd23ca34b5 ril: [R3] 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-29 21:22:44 +08:00
raylinhsu
2cdd2e37f3 dump panel information in dumpstate_board
add panel information to dumpstate_board.txt

Bug: 152169557
Test: adb bugreport and verify logs in dumpstate_board.txt
Change-Id: Ie86b738b2b2a2c214de2e74d2b46a0f96e703cd0
2020-05-29 21:21:51 +08:00
Leo Liou
aa40533ec4 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-05-29 21:21:47 +08:00
Ocean Chen
e3dfbf570f Merge "Dumpstate: add f2fs info and remove too specific fragmentation info" into rvc-dev
Change-Id: I5489d4dd25cc29ff01080de2daab39353944c4be
Change-Id: I9da7bad20f0ae7d34a17aa107ba08a34f514d6a9
Change-Id: I678871172bcda20777e756475833dd75dedf705a
Change-Id: Ic0c9ae80c05b6cc16fa5d0cfef4bbe00e47de130
2020-05-29 21:21:25 +08:00
Jaegeuk Kim
c10af43028 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-05-29 21:21:25 +08:00
TreeHugger Robot
9170c61c9b Merge "dumpstate: add rtx logbuffer in dumpstate" into rvc-dev
Change-Id: I15ce120c4a9c246149f3fe291fbd3f6fcab4b036
Change-Id: I0414eb56ec39855e3e950c511999600f0a886714
Change-Id: I5a0ed95c29b1bb82073570f657f5369bbf53b0f5
Change-Id: Ie56c524c40d50cf37eab99b67c2757a939979492
2020-05-29 21:21:20 +08:00
YiHsiang Peng
f3f7f90dfd dumpstate: add rtx logbuffer in dumpstate
Bug: 149061606
Signed-off-by: YiHsiang Peng <yihsiangpeng@google.com>
Change-Id: I6421315d57cf21a169e1da1473da7e6e8251e232
2020-05-29 21:21:20 +08:00
Hungyen Weng
80ac375948 dumpstate: don't dump modem logs if verbose logging is disabled.
Bug: 151186921
Change-Id: I9e7b499d332ea4e042edf173ac0368f3c537f0f7
2020-05-29 21:21:17 +08:00
Hunter Knepshield
db895423ca Redfin: 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: I5a26d9e12fb60ddd5526275cb0d176ff9acef6e4
(cherry picked from commit 1d4fd8a0b221ef14cbe56a67dbe7b303bf065cd0)
2020-05-29 21:21:09 +08:00
Hungyen Weng
e7b7e29dab dumpstate: Use thread to dump modem logs
Bug: 150185396

Change-Id: I9d989d5e42158b8d85dfd05761eca2516be9a1d6
2020-05-29 21:20:59 +08:00
chasewu
4057c6cb8d vibrator: Sync factory fixed to mainline
Bug: 149666621
Bug: 149274114
Test: manual check logs
Change-Id: Ib360f31008c5619d64a1c5c2a9b24baed53140f7
Signed-off-by: chasewu <chasewu@google.com>
2020-05-29 21:20:52 +08:00
Automerger Merge Worker
8946aba2cc Merge "dumpstate: Remove unused files" into qt-qpr1-dev am: af4b41f7f5 am: 7f188ffbad
Change-Id: I5ec0f3220795d1893083fa21b6d8971da555a3d7
2020-05-29 21:20:49 +08:00
Salmax Chang
fc9f5b212d Merge "dumpstate: Remove unused files" into qt-qpr1-dev
Change-Id: Ia3e3285ffb0f63bb733f4aeab209fdbf8ad77ed8
2020-05-29 21:20:48 +08:00
Hungyen Weng
fa2f03bca1 Merge "redfin: support modem logging on user build"
Change-Id: Id146dcbffb51ed44e4c090875eff4a23faef4b88
Change-Id: I5d36054e592196719ac0841ae1c34cfba4a733a2
Change-Id: If11b59fb1ba69947fd1e4716f10da1a5a450f749
Change-Id: Ifa5b46ec193150bbbbba9e9185811c6da1f4163f
2020-05-29 21:20:47 +08:00
SalmaxChang
3e11992b0d dumpstate: Remove unused files
Bug: 144332391
Change-Id: I87b3a2dda2eee10aa7ee69e906341f4815fae1f4
2020-05-29 21:20:47 +08:00
Hungyen Weng
c779d79569 redfin: support modem logging on user build
Bug: 143047251
Change-Id: Ifd6f6c779ee0f757b5be11282758d86b78420d3e
2020-05-29 21:20:47 +08:00
Hungyen Weng
150ff07f8c Update dumpstate HAL to V1.1
Bug: 143184495
Test: atest VtsHalDumpstateV1_1TargetTest pass
Change-Id: I087622c49e2632d7e759a6384c5e09102e072fd7
2020-05-29 21:20:46 +08:00