create display userdebug dump
Bug: 269212897 Test: adb bugreport Change-Id: I666fb3e0872f8afcf5b8a2d8b598245fbcdbb151
This commit is contained in:
parent
80fed77790
commit
39e672acb4
6 changed files with 48 additions and 0 deletions
10
display/Android.bp
Normal file
10
display/Android.bp
Normal file
|
@ -0,0 +1,10 @@
|
|||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
sh_binary {
|
||||
name: "dump_display_userdebug.sh",
|
||||
src: "dump_display_userdebug.sh",
|
||||
vendor: true,
|
||||
sub_dir: "dump",
|
||||
}
|
3
display/dump.mk
Normal file
3
display/dump.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/display/sepolicy
|
||||
|
||||
PRODUCT_PACKAGES_DEBUG += dump_display_userdebug.sh
|
22
display/dump_display_userdebug.sh
Normal file
22
display/dump_display_userdebug.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/vendor/bin/sh
|
||||
echo "------ HWC Fence States ------"
|
||||
for f in $(ls /data/vendor/log/hwc/*_hwc_fence_state*.txt)
|
||||
do
|
||||
echo $f
|
||||
cat $f
|
||||
done
|
||||
|
||||
echo "------ HWC Error Logs ------"
|
||||
for f in $(ls /data/vendor/log/hwc/*_hwc_error_log*.txt)
|
||||
do
|
||||
echo $f
|
||||
cat $f
|
||||
done
|
||||
|
||||
echo "------ HWC Debug Dumps ------"
|
||||
for f in $(ls /data/vendor/log/hwc/*_hwc_debug*.dump)
|
||||
do
|
||||
echo $f
|
||||
cat $f
|
||||
done
|
||||
|
8
display/sepolicy/dump_display_userdebug.te
Normal file
8
display/sepolicy/dump_display_userdebug.te
Normal file
|
@ -0,0 +1,8 @@
|
|||
pixel_bugreport(dump_display_userdebug)
|
||||
|
||||
userdebug_or_eng(`
|
||||
allow dump_display_userdebug vendor_toolbox_exec:file execute_no_trans;
|
||||
allow dump_display_userdebug vendor_log_file:dir search;
|
||||
allow dump_display_userdebug vendor_hwc_log_file:dir r_dir_perms;
|
||||
allow dump_display_userdebug vendor_hwc_log_file:file r_file_perms;
|
||||
')
|
1
display/sepolicy/file.te
Normal file
1
display/sepolicy/file.te
Normal file
|
@ -0,0 +1 @@
|
|||
type vendor_hwc_log_file, file_type, data_file_type;
|
4
display/sepolicy/file_contexts
Normal file
4
display/sepolicy/file_contexts
Normal file
|
@ -0,0 +1,4 @@
|
|||
/vendor/bin/dump/dump_display_userdebug\.sh u:object_r:dump_display_userdebug_exec:s0
|
||||
|
||||
/data/vendor/log/hwc(/.*)? u:object_r:vendor_hwc_log_file:s0
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue