4 Commits

Author SHA1 Message Date
Enzo Liao
d8a9aa897d Remove unused apps (RamdumpService and SSRestartDetector) from AOSP.
After ag/26620507, the two apps are built in AOSP.
AOSP doesn't need them so we should not build them.

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
Flag: NONE N/A
Change-Id: I0925fa0bb512a0001bfb46c524c9124128bc5e6e
2024-04-22 16:57:27 +08:00
Enzo Liao
2a2146024b Revert "Remove unsed apps (RamdumpService and SSRestartDetector)..."
Revert submission 26988480-Remove RamdumpService and SSRestartDetector from AOSP

Reason for revert: Exclude AOSP builds by a condition check instead

Reverted changes: /q/submissionid:26988480-Remove+RamdumpService+and+SSRestartDetector+from+AOSP

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
Flag: NONE N/A

Change-Id: I518af9425d8f808671118c41d1cabd68782c1ff6
2024-04-22 05:10:46 +00:00
Enzo Liao
69e58738af Remove unsed apps (RamdumpService and SSRestartDetector) from AOSP.
After ag/26620507, the two apps are built in AOSP.
AOSP doesn't need them so we should not build them.

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
Flag: NONE N/A
Change-Id: I93cf92de91e1880739e0593b84f6343d152682f8
2024-04-17 16:16:38 +08:00
Enzo Liao
7d7c8ebaeb Centralize SELinux policies for deamons and apps related to ramdumps and coredumps according to go/pixel-defrag.
They include the domains:
1. dump_ramdump
2. ramdump
3. ramdump_app
4. sscoredump
5. ssr_detector_app

We copy policies of domains of ramdump and sscoredump from hardware/google/pixel-sepolicy to gs-common but don't remove them there to keep compatibility for other projects.

New SELinux policies:
1. Create a new file context of /data/vendor/ssrdump/logcat for SSRestartDetector to write device logs when it detects new coredumps.
2. RamdumpService will also access the path to compress device logs to zip files of coredumps.

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
Change-Id: I02c2e1569a95ea90901d9476ef75bca74a4f43e1
2024-04-08 14:10:15 +00:00