67 Commits

Author SHA1 Message Date
Soo-Hwan Na
b7182582a8 Update for Android 16 2025-12-06 22:01:50 +09:00
royna2544
c130f4cbc8 debug-tools: Allow disable audit filter via props 2025-05-11 10:04:29 +09:00
royna2544
c05e941d9f debug-tools: Correct comparison 2025-05-11 10:02:32 +09:00
Royna2544
52a716b30f debug-tools: bootlogger: Add compability with older ver 2025-04-27 13:02:02 +09:00
royna2544
c9f64fee9e debug-tools: bootlogger: Write timestamp to sperate file 2025-04-27 13:02:02 +09:00
royna2544
2999c9f0af debug-tools: Logger: Discard LibcPropsFilter
- Also fix Avc untrusted_app filter
2025-04-27 13:02:02 +09:00
royna2544
e36e49e8a5 debug-tools: bootlogger: Fix audit formatting 2025-04-27 13:02:02 +09:00
royna2544
915f4c8ad8 debug-tools: bootlogger: Use fork for logcat
- Use android logging system
2025-04-27 13:02:02 +09:00
royna2544
7fb9ba6f95 AuditToAllow: Fix crash when avc: is not included 2025-04-27 13:02:02 +09:00
royna2544
0a6cac7146 debug-tools: bootlogger: Use fmtlib for AVCContexts 2025-04-27 13:02:02 +09:00
royna2544
336a1a594d debug-tools: bootlogger: Use fmtlib and modernize code 2025-04-27 13:02:02 +09:00
royna2544
5c6feb7aae debug-tools: bootlogger: Fix -Wreorder-ctor
mhardware/samsung-ext/interfaces/debug-tools/bootlogger/Logger.cpp:203:38: error: field '_fp' will be initialized after field 'name' [-Werror,-Wreorder-ctor]
2025-04-27 13:02:02 +09:00
royna2544
21393ec195 debug-tools: bootlogger: Refactor 2025-04-27 13:02:02 +09:00
Soo Hwan Na
b38b2dea46 fixup! debug-tools: bootlogger: Use OutputContext for generate sepolicy rules 2024-01-14 18:34:48 +09:00
Soo Hwan Na
c18246de11 debug-tools: bootlogger: Use 022 umask 2024-01-04 20:58:52 +09:00
Soo Hwan Na
e1cab562d2 debug-tools: bootlogger: Use OutputContext for generate sepolicy rules
- Auto delete if empty file is needed
2023-12-24 13:05:02 +09:00
Soo Hwan Na
e319e4a217 Fix typo: invaild -> invalid 2023-12-22 00:28:54 +09:00
Soo Hwan Na
c8ba5e7dac debug-tools: dlopener: Move to system_ext 2023-12-21 16:48:05 +09:00
Soo Hwan Na
bda81b4ba5 debug-tools: dlopener: Harden the lstat result check
- Also clean up logging
2023-12-21 14:12:12 +09:00
Soo Hwan Na
1bf1ef9e9b debug-tools: bootlogger: Drop useless system gid 2023-12-20 18:56:44 +09:00
Soo Hwan Na
69297340eb debug-tools: bootlogger: Do not depend on sys.boot_completed 2023-12-20 18:56:44 +09:00
roynatech2544
3b8f006347 debug-tools: bootlogger: Introduce a prop for logcat buffer 2023-12-14 18:34:02 +09:00
roynatech2544
0f4855b01d debug-tools: bootlogger: Use -b all 2023-12-13 19:56:33 +09:00
roynatech2544
0850911c51 debug-tools: dlopener: Don't forget to close handle 2023-12-13 19:46:25 +09:00
roynatech2544
a1dc25ed3c debug-tools: bootlogger: Convert OutputContext to non-virtual
- And fix the global variable usage
2023-12-13 19:46:05 +09:00
roynatech2544
03a3e17873 debug-tools: dlopener: Do not enforce the stat() success
- Also unify & change the format of output with macro
2023-12-10 13:11:52 +09:00
roynatech2544
0401f6a16f debug-tools: dlopener: Notify if it is a symlink 2023-12-10 12:55:53 +09:00
roynatech2544
1b9367f873 debug-tools: bootlogger: Sort out common dedup func 2023-12-10 12:36:30 +09:00
roynatech2544
cc9406e494 debug-tools: dlopener: Switch to call to stat 2023-12-09 01:15:54 +09:00
roynatech2544
917f0419ef debug-tools: dlopener: Check if the argument is directory 2023-12-09 01:10:41 +09:00
roynatech2544
f7a8e1c80b debug-tools: bootlogger: Fix regex to match multiple operation denial 2023-12-08 22:58:34 +09:00
roynatech2544
0c1495f359 debug-tools: bootlogger: Omit untrusted_app from avcfilter 2023-12-08 22:50:41 +09:00
roynatech2544
9343ae8be3 debug-tools: bootlogger: Handle the case where permissive= 2023-12-06 20:25:10 +09:00
roynatech2544
0469b1eb9a debug-tool: bootlogger: Try to merge generated rules if possible 2023-12-06 18:55:02 +09:00
roynatech2544
00498f28c2 debug-tools: bootlogger: Generate rule without bracelets if single 2023-12-06 18:51:08 +09:00
roynatech2544
9e1c4c3c44 debug-tools: bootlogger: Compare single char for permissive 2023-12-06 18:30:33 +09:00
roynatech2544
fcd1024860 debug-tools: bootlogger: Add property_service definition 2023-12-06 18:30:32 +09:00
roynatech2544
6acc83c0a2 debug-tools: bootlogger: Decrease buffer size 2023-12-06 18:30:32 +09:00
roynatech2544
b648245c8a debug-tools: bootlogger: Don't clear boot time logs on system run 2023-12-06 18:30:32 +09:00
roynatech2544
d006b1e65f debug-tools: bootlogger: Correctly do check of log directory file remove 2023-12-06 18:30:32 +09:00
roynatech2544
a91cdefe52 debug-tools: bootlogger: Sort out common rules, if exist 2023-12-06 18:30:28 +09:00
roynatech2544
eb1699cb7e debug-tools: bootlogger: Add audit2allow CPP support 2023-12-06 16:05:22 +09:00
roynatech2544
05e1acddfc debug-tools: bootlogger: Clean up log folder before starting
- If leaving out the files, it is hard to determine whether if its from current boot
- Also use std::error_code::message() for error message print
2023-12-05 23:16:12 +09:00
roynatech2544
21a01b5825 debug-tools: bootlogger: Add experiemental rt log support 2023-12-05 14:42:44 +09:00
roynatech2544
41ee0363d7 debug-tools: bootlogger: Add missing newlines for fprintf
- Also append exe name (argv[0]) on all fprintf calls
2023-12-05 14:24:53 +09:00
roynatech2544
40080ab782 debug-tools: bootlogger: Handle empty, not a directory ending cases 2023-12-05 14:23:13 +09:00
roynatech2544
de34369c71 debug-tools: bootlogger: Add boot time recording support
- Also add delay before quitting log
2023-12-05 14:23:10 +09:00
roynatech2544
99ae23d04a debug-tools: bootlogger: Log the configurated log directory as well 2023-12-05 12:30:17 +09:00
roynatech2544
7ae5a9a296 debug-tools: bootlogger: Switch to using-alias parameter type 2023-12-05 12:30:17 +09:00
roynatech2544
47d6e63783 debug-tools: bootlogger: Make it take arguments instead of hardcode 2023-12-05 12:30:17 +09:00