78 Commits

Author SHA1 Message Date
Hridya Valsaraju
1e33417ad0 sunfish: Set PRODUCT_SET_DEBUGFS_RESTRICTIONS
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, the
build flag PRODUCT_SET_DEBUGFS_RESTRICTIONS can be set by vendors to
enforce additional debugfs restrictions for userdebug/eng builds. The
same flag will be used to enable sepolicy neveallow statements to
prevent new permissions added for debugfs access.

Test: build, boot
Bug: 184381659
Change-Id: I45e6f20c886d467a215c9466f3a09965ff897d7e
2024-06-22 15:24:55 +03:00
Michael Bestas
1d594b603e Merge tag 'android-14.0.0_r1' of https://android.googlesource.com/device/google/sunfish into lineage-21
Android 14.0.0 Release 1 (UP1A.231005.007)

* tag 'android-14.0.0_r1' of https://android.googlesource.com/device/google/sunfish:
  Update sunfish SVN to 64
  Update sunfish SVN to 63
  sunfish: remove customizedMaxCachedProcesses
  Update sunfish SVN to 62
  Add hardware/qcom/wlan namespace
  update namespace for generic hal
  Explicit init .rc user.
  update AIDL IGoogleBattery manifest version to 2
  Revert "Revert "update AIDL IGoogleBattery manifest version to 2""
  Revert "update AIDL IGoogleBattery manifest version to 2"
  update AIDL IGoogleBattery manifest version to 2
  Update overlay to support MAC randomization on open SSIDs
  Set the default loop driver queue depth to 31
  Revert "Migrate the blkio cgroup controller to the v2 hierarchy"
  sunfish: move sg_write_buffer rule to common folder
  Update Sunfish compatibility matrix and makefile to use the AIDL wifi_ext service.
  Revert "Update Sunfish compatibility matrix to use the"
  Add prebuilt protobuf 3.9.1 to vendor partition.
  Update Sunfish compatibility matrix to use the AIDL wifi_ext service.
  [Sunfish] Drop the ACCESS_FINE_LOCATION for Restore
  Migrate the blkio cgroup controller to the v2 hierarchy
  Add display config for sunfish
  Removing deprecated Sunfish target
  update namespace for generic hal
  Migrate I/O scheduler parameters to task_profiles.json
  Delete HALs that are already in VINTF fragments (google_battery)
  Delete HALs that are already in VINTF fragments (android.hardware.*)
  Delete GNSS from main manifest.
  Clean up unused face_enroll_introduction_animation
  This file doesn't exist
  Dumpstate: get fsck log
  Disable per-cgroup PSI accounting
  AOSP+GMS - Build for aosp_sunfish_gms - set BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE.
  Allow including car boards from outside google_car
  Add device-specific support for GoogleBattery AIDL V1
  Update sunfish SVN to 45
  [LSC] Add LOCAL_LICENSE_KINDS to device/google/sunfish
  Notify port status change for moisture detection
  Implement callbacks for limitPowerTransfer
  Migrate IUsb implementation to AIDL
  Disable LE audio related profiles for sunfish
  Switch NFC from HIDL to AIDL
  Set default the Bluetooth class of device
  Revert "Switch NFC from HIDL to AIDL"
  Use the ?= operator so BT properties can be overridden
  Switch NFC from HIDL to AIDL
  Update LE Audio profile properties to match spec and implementation
  Update sunfish SVN to 42 Bug:  223313197
  Implement callbacks for limitPowerTransfer

 Conflicts:
	BoardConfig-common.mk
	device.mk

Change-Id: I405c33be5711d05a53bf14d784eca2fc2672cea0
2023-10-25 23:29:22 +03:00
Michael Bestas
768836ec8c dumpstate: Don't dump serial number
Change-Id: I575db41209d3a5f8088f7388089650a265107b65
2023-05-24 19:34:00 +03:00
Jaegeuk Kim
4a68bd47c1 Dumpstate: get fsck log
Bug: 241641121
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Iaadb166fe9194518b2db75080cddc02526bdf2bb
2022-08-10 14:27:22 -07:00
Jenny Ho
369dbc48f8 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-29 05:26:20 +08:00
Jaegeuk Kim
29352689b2 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:55 -07:00
Jenny Ho
e9bd7922e9 dumpstate: Update TRICKLE-DEFEND dump nodes
Bug: 173149361
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I4e07f8e95ac16dbc5058c87392e9efe651a95038
2020-12-23 10:45:07 +08:00
Jenny Ho
3802baa30b dumpstate: fix the merge back fail from rvc-qpr-dev
Bug: 173149361
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Iba2b1d90f96de76b8fd151b228a2822bd7a2bcd7
2020-12-23 09:07:59 +08:00
Jenny Ho
40dce710e8 dumpstate: Support dump TEMP/TRICKLE/DWELL-DEFEND setting
Bug: 173149361
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Ibf416b31d394f17a80dbc9b1509641d438a72fea
2020-12-05 08:48:42 +08:00
Nicole Lee
d2db6e8025 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:03:39 +08:00
Hungyen Weng
58e83d844a 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:04:48 +00:00
Martin Liu
733668937f dumpstate: Dump fastrpc dma buffer size am: 42064855e0 am: 3fccd83368 am: f2d27dc8be am: cb53082db2 am: 66134dfdae
Original change: https://android-review.googlesource.com/c/device/google/sunfish/+/1432551

Change-Id: Ib652e8bcca2ae4155972dc3284e6694ff178cfba
2020-09-21 13:12:02 +00:00
Martin Liu
42064855e0 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: I3579ccf20b92b25bdcd3f5741efcc287bb3fa40e
2020-09-21 12:17:05 +08:00
Jaegeuk Kim
76b0afa084 sunfish: use generic sysfs path for storage tunings
Bug: 161925472
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I6cd925c5beb41d5de13f48c97fe21d8ce3cf7ca5
2020-08-03 10:20:42 -07:00
Leo Liou
2e7ef39a17 dumpstate: refactor DumpUFS
The DumpUFS function cannot work with the real sepolicy rules. So
refactor the function to fix the problem.

*** Error dumping /sys/kernel/debug/ufshcd0/stats/err_stats (UFS err_stats): No such file or directory
*** Error dumping /sys/kernel/debug/ufshcd0/stats/io_stats (UFS io_stats): No such file or directory
*** Error dumping /sys/kernel/debug/ufshcd0/stats/req_stats (UFS req_stats): No such file or directory

Bug: 149468879
Bug: 155938509
Test: run bugreport
Change-Id: I9b260d18f4cc768cba98b64d76a149241e17c22b
Signed-off-by: Leo Liou <leoliou@google.com>
Signed-off-by: YH_Lin <yhli@google.com>
2020-05-08 06:04:47 +08:00
David Chen
93971c7b99 Merge "dumpstate: add touch packaging plant information" into rvc-dev 2020-05-04 04:11:19 +00:00
davidycchen
5935a0dcb5 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:48:52 +08:00
davidycchen
2bdc31ab7d 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-23 17:18:28 +08:00
TreeHugger Robot
a32eb4f17a Merge "ril: collect haldebug log in bugreport" into rvc-dev 2020-03-17 15:38:38 +00:00
Jaegeuk Kim
a73582d553 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 17:04:07 +08:00
Tim Lin
caf1979014 ril: collect haldebug log in bugreport
File is generated when RIL crash to keep haldebug log.

Bug: 144401289
Test: Bugreport has these files.
Change-Id: I3690845a08fe7fedddc13adced02b9316f54fd39
2020-03-13 14:05:27 +08:00
Hungyen Weng
2b1caa5db6 dumpstate: don't dump modem logs if verbose logging is disabled.
Bug: 151186921
Change-Id: I9e7b499d332ea4e042edf173ac0368f3c537f0f7
2020-03-11 03:23:54 +00:00
Automerger Merge Worker
05a03f93b1 Merge "dumpstate: lock active mode while reading touch data" into qt-qpr1-dev am: 9ff121d745
Change-Id: If60a9c7c9f2f8be304a9fb09f629c7a833ecfce7
2020-03-11 01:42:52 +00:00
davidycchen
8c09dafd5a dumpstate: lock active mode while reading touch data
It might fail to read golden MS rawdata when touch is idle
so I set touch IC as active mode before read rawdata.

Bug: 146467495
Test: trigger bugreport and check the information is correct.

Change-Id: I5b17a1527ef75c1de5904859538c0eae69006d98
Signed-off-by: davidycchen <davidycchen@google.com>
2020-03-10 13:51:54 +08:00
Hunter Knepshield
782f2cc24d Sunfish: 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: I5549eee10e24433030e56353ec828bca6657cc11
(cherry picked from commit 83e8575bb4)
2020-03-05 23:49:08 +00:00
Hungyen Weng
f23e83be49 Merge "dumpstate: Use thread to dump modem logs" into rvc-dev 2020-03-03 05:55:45 +00:00
Automerger Merge Worker
29d3ab1d01 Merge "WiFi: Remove WiFi DP Trace from dumpstate_board.txt" into qt-qpr1-dev am: 6ffc9fc067
Change-Id: I61c8eddd9a171d45440fb3be59a9f54244f5eb4c
2020-03-02 10:12:52 +00:00
Sunil Ravi
ae11f34a09 WiFi: Remove WiFi DP Trace from dumpstate_board.txt
Read from /d/wlan/dpt_stats/dump_set_dpt_logs is
causing a crash in WLAN driver. Hence removing
WLAN DP Trace in bugreport:dumpstate_board.txt file.

Bug: 133593283
Bug: 150067348
Test: Collected bug report and confirmed that dp trace
is not added in dumpstate_board.txt file.

Change-Id: I4b4a41c965072f471dafe23034395a1675099d6c
Signed-off-by: Sunil Ravi <sunilravi@google.com>
2020-02-26 11:13:59 +08:00
Hungyen Weng
0ee5c9e94e dumpstate: Use thread to dump modem logs
Bug: 150185396

Change-Id: I9d989d5e42158b8d85dfd05761eca2516be9a1d6
2020-02-26 02:44:03 +00:00
Automerger Merge Worker
339eca7a25 Merge "dumpstate: add battery eeprom to dumpstate" into qt-qpr1-dev am: 97ba9dc5d0
Change-Id: Idc421bf64534cbd5a9ea6e18af0854cb396e411d
2020-02-25 08:03:41 +00:00
Wasb Liu
06f1f3b60a dumpstate: add battery eeprom to dumpstate
Bug: 149979769
Test: trigger dumpstate and check battery eeprom data
Change-Id: I390bcf599fd232371963b8a3b2cfb282dca05808
Signed-off-by: Wasb Liu <wasbliu@google.com>
2020-02-21 20:21:03 +08:00
Hungyen Weng
3435755919 sunfish: support modem logging on user build
Bug: 143047251
Change-Id: Ifd6f6c779ee0f757b5be11282758d86b78420d3e
2020-02-18 08:17:12 +00:00
Hungyen Weng
9942f8fcb4 Update dumpstate HAL to V1.1
Bug: 143184495
Test: atest VtsHalDumpstateV1_1TargetTest pass
Change-Id: I087622c49e2632d7e759a6384c5e09102e072fd7
2020-02-17 15:32:41 +00:00
Automerger Merge Worker
d05f9ab264 Merge "Remove to dump MDP xlog in bugreport." into qt-qpr1-dev am: 60595a4d6b am: 744f88b140
Change-Id: I8778b250e5c3ad08b2a2f561085a4631b1aa0157
2020-02-07 11:17:31 +00:00
TreeHugger Robot
60595a4d6b Merge "Remove to dump MDP xlog in bugreport." into qt-qpr1-dev 2020-02-07 10:50:26 +00:00
Automerger Merge Worker
b6d0a5253d Merge "dumpstate: dump ttf information in dumpstate" into qt-qpr1-dev am: 9e1dbf7b02 am: 6e26b28f5b
Change-Id: I5d1228e7972393c8fae97e902668f19e1e1f5b74
2020-02-05 08:03:52 +00:00
Jenny Ho
8b4044d2d6 dumpstate: dump ttf information in dumpstate
Bug: 147844315
Test: check dumpstate result
Change-Id: I8236a607b100807e9783cd6805a31a356b4996bd
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2020-02-04 07:44:23 +00:00
Automerger Merge Worker
b488b93c92 Merge "sunfish:dumpstate: change the order of touch information" into qt-qpr1-dev am: 8b956a411c am: 783b8ab56a
Change-Id: I13be124f3dcffc23ba93af157ccaa3251acc1c7a
2020-02-03 06:03:26 +00:00
davidycchen
ef9bf46564 sunfish: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: Ie9d5c98d6dac3d8dc80ef9a494884eab272f64cc
Signed-off-by: davidycchen <davidycchen@google.com>
2020-02-03 10:46:58 +08:00
Bill Richardson
1286efd68e 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: I51f6911210af55b323eb4593c8aca07536dab063
Merged-In: I51f6911210af55b323eb4593c8aca07536dab063
Signed-off-by: Bill Richardson <wfrichar@google.com>
(cherry picked from commit a75b7f61df)
2020-01-24 12:16:50 -08:00
Automerger Merge Worker
9c08a8ec3e Merge "sunfish:dumpstate: add more touch information in bugreport" into qt-qpr1-dev am: 92294d4d59 am: 312889fd3c
Change-Id: I87b5bf0e024077f696e180e70884f8a262f01fb1
2020-01-14 04:05:45 +00:00
davidycchen
6ca0b31170 sunfish:dumpstate: add more touch information in bugreport
Add two items:
Golden raw (Use for checking if any unexpect PI or abnormal golden raw happened)
ITO_HF_Raw (Use for checking touch sensor HW status, ex:open)

Bug: 147336072
Test: trigger bugreport and check these two items is in dumpstate.

Change-Id: I51a6a75a8866c606cb871737f98b15810f37c376
Signed-off-by: davidycchen <davidycchen@google.com>
2020-01-13 16:27:30 +08:00
Automerger Merge Worker
25c2b02569 dumpstate: Remove unused log am: 53725b92d3 am: 4cfe3619a9
Change-Id: I1ae37b2a454f128615d504f44350ada1e6200f63
2020-01-13 03:13:07 +00:00
SalmaxChang
53725b92d3 dumpstate: Remove unused log
esim is present for all S5 SKUs

Bug: 146847670
Change-Id: Ibf924bf6e2eea933230e46d2db52cda3e8f1fc2f
2020-01-13 02:45:35 +00:00
Bill Richardson
a75b7f61df 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: I51f6911210af55b323eb4593c8aca07536dab063
Signed-off-by: Bill Richardson <wfrichar@google.com>
2020-01-10 17:28:21 -08:00
chasewu
ed0bcd4454 dumpstate: Remove Vibrator
Vibrator debug data is now being dumped through the HIDL interface.

Bug: 146848183
Test: adb bugreport
Change-Id: Ic9ddfb861fc1c72c158988bc16b8cd030e2745b1
Merged-In: Ie65cc80b9982676572198e0c2536ec7523f5daa6
Signed-off-by: chasewu <chasewu@google.com>
2020-01-03 11:04:31 +00:00
chasewu
671448219e dumpstate: Remove Vibrator
Vibrator debug data is now being dumped through the HIDL interface.

Bug: 146848183
Test: adb bugreport
Change-Id: Ie65cc80b9982676572198e0c2536ec7523f5daa6
Signed-off-by: chasewu <chasewu@google.com>
2020-01-03 08:31:37 +00:00
raylinhsu
5b94b43a5a 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: 146848189
Test: There is no failed selinux log of display_vendor_data_file.
Change-Id: I570c1adf38bd20ffb1f178735044be4229d15012
2019-12-27 18:14:23 +08:00
Automerger Merge Worker
2305fbe3e3 Merge "dumpstate: dump display PMIC registers" into qt-qpr1-dev am: d1da9e8dac am: b48156b848
Change-Id: I14f4f3d360035e88e13395e2e3838907ed67ce65
2019-12-24 03:05:57 +00:00
TreeHugger Robot
d1da9e8dac Merge "dumpstate: dump display PMIC registers" into qt-qpr1-dev 2019-12-24 02:40:55 +00:00