Commit graph

12 commits

Author SHA1 Message Date
Woody Lin
89b9a50820 init.debug.rc: enable etm/etm2dram when SJTAG is unlocked
Enables the debug features required an unlocked SJTAG to the section
`on property:ro.vendor.sjtag_ap_is_unlocked=true`, so they can be
enabled when 1. PD is available on non-fused device on boot, or 2. PD is
available after betterbug acquires it from the corp service.

Bug: 298314432
Change-Id: Ie834b587c130d749a33a87801113df03d5b3d29a
2023-09-13 04:10:09 +00:00
Robin Peng
5f0318b21f do not mount the debugfs on userdebug builds
Bug: 278988913
Change-Id: I5c703310a4f82acf52fad87854682ca6e668d99b
Signed-off-by: Robin Peng <robinpeng@google.com>
2023-07-26 00:25:54 +00:00
Woody Lin
5186bf4b9b gs201: init.debug.rc: Enable etm/etm2dram when ramdump is enabled
Bug: 265382296
Change-Id: Ib215551397a361f5734401173e62a15691e45425
2023-03-10 08:43:31 +00:00
David Brazdil
a9b460cfe9 pkvm: Prefix metrics when running on A0 chip
A0 and B0 chips have different performance characteristics when it comes
to the hypervisor because B0 waits for SysMMU_SYNCs to complete during
every memory ownership transaction.

Set debug.hypervisor.metrics_tag=hwrev_a0 on PROTO1.x and EVT1.0
devices. EVT1.1 and later are B0 and benchmarks are representative of
production devices. This is only done on userdebug/eng builds.

Test: 'getprop | grep hypervisor' on A0/B0 devices
Change-Id: I0c81a0e4706a13cd63358de23048087a9190b9da
2022-09-26 09:59:08 +00:00
Cheney Ni
89968fbffb Bluetooth: correct logbuffer_btpower owner to Bluetooth am: a150e72f05 am: 98cf42c3aa
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19321385

Change-Id: Ia88db0f89ea62a2254b2cb6f2d5b6a013852cc09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-21 03:30:27 +00:00
Cheney Ni
a150e72f05 Bluetooth: correct logbuffer_btpower owner to Bluetooth
Bug: 229691092
Test: Pass file permission check
Change-Id: I62c0c32124859db36b530a861bcc554d9a9d6c33
2022-07-20 19:05:20 +00:00
Jenny Ho
55d7c9174a fix avc error for fg_model/registers
type=1400 audit(1656889974.500:4): avc: denied { setattr } for comm="init" name="fg_model" dev="debugfs" ino=32089 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=0
type=1400 audit(1656889974.500:5): avc: denied { setattr } for comm="init" name="registers" dev="debugfs" ino=32095 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=0

Bug: 226271913
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I376aeb1af4f6d0ba026c34a6ee7642a0a53e6320
2022-07-07 02:57:33 +00:00
Jenny Ho
e3a70263b6 init.rc: add permission to dump battery debugging data
Bug: 205259954
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I6d71cc6fb11e1881d78a81f36162e3d9493654bd
2022-06-21 06:33:43 +00:00
Ted Lin
805826c2cc fix the avc denied for maxfg/registers
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:28): avc: denied { search } for name="maxfg" dev="debugfs" ino=31872 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=dir permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:29): avc: denied { read } for name="registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:30): avc: denied { open } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:31): avc: denied { getattr } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo

Bug: 208909060
Test: adb bugreport
Change-Id: I72a6b72e568fe109350edd2a0a91747251e6fba4
Signed-off-by: Ted Lin <tedlin@google.com>
2022-02-17 09:04:23 +00:00
jonerlin
7d12f0defa bluetooth: correct btuart logger device node path
* modify dev/logbuffer_tty16 to dev/logbuffer_tty18

Bug: 213759828
Test: 1. Enable Bluetooth in P22 devices and check uart log in
android.hardware.bluetooth@1.1::IBluetoothHci.txt
2. Enable Bluetooth in P21 devices and check uart log in
android.hardware.bluetooth@1.1::IBluetoothHci.txt
3. Fake bthal ssrdump and check the coredump log.

Change-Id: I208fae8e5ddf60d7df52311c32249bf3ac401dbc
2022-01-17 09:06:28 +00:00
Peter Csaszar
71a2c8287a init.debug.rc: Change owner/group of SJTAG files
On userdebug & eng builds, change the owner/group of SJTAG sysfs files
that need to be written to 'system', so that BetterBug is able to write
these files.

Bug: 204381544

Test: Ensure that the writable files in the following directories have
'system' as their owner & group:

  /sys/devices/platform/sjtag_ap/interface/
  /sys/devices/platform/sjtag_gsa/interface/

Signed-off-by: Peter Csaszar <pcsaszar@google.com>
Change-Id: I1fd61f702960a266bc8a2f84d1a1358ccefe3c9c
2021-10-28 16:02:13 +00:00
Aaron Ding
bb4beafe47 Create gs201 device folder baseline
clone from gs101 sha 9d1c97c2

Bug: 183183095
Change-Id: Ie7112bdf0aceb33c9e1956aa52e961b670582733
2021-05-19 13:35:26 +08:00