royna2544
c130f4cbc8
debug-tools: Allow disable audit filter via props
2025-05-11 10:04:29 +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
915f4c8ad8
debug-tools: bootlogger: Use fork for logcat
...
- Use android logging system
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
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
a1dc25ed3c
debug-tools: bootlogger: Convert OutputContext to non-virtual
...
- And fix the global variable usage
2023-12-13 19:46:05 +09:00
roynatech2544
1b9367f873
debug-tools: bootlogger: Sort out common dedup func
2023-12-10 12:36:30 +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
0469b1eb9a
debug-tool: bootlogger: Try to merge generated rules if possible
2023-12-06 18:55:02 +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
47d6e63783
debug-tools: bootlogger: Make it take arguments instead of hardcode
2023-12-05 12:30:17 +09:00
roynatech2544
fed2a1f511
debug-tools: bootlogger: Clear log directory files always
2023-12-05 12:30:17 +09:00
roynatech2544
d5f9fe51d4
debug-tools: bootlogger: Don't cache properties starting with ctl.
...
- Those are special props that are handled by init
2023-12-05 12:30:17 +09:00
roynatech2544
893f0a4528
debug-tools: bootlogger: Do not allow modification of logline
2023-12-05 12:30:17 +09:00
roynatech2544
bd7f881dd9
debug-tools: bootlogger: Assume CONFIG_AUDIT is on always
2023-12-04 16:00:34 +09:00
roynatech2544
c2e05c9ec8
debug-tools: bootlogger: Fix libc_props filter
...
- Correctly start from right mismatched string
2023-12-04 15:40:13 +09:00
roynatech2544
1539a1cac6
debug-tools: bootlogger: Make libc prop filter sperate from avc
...
- This doesn't depend on audit support
2023-12-04 15:40:13 +09:00
roynatech2544
14d1100254
debug-tools: bootlogger: Switch to a low-level file management
...
- And enable fsync
2023-12-04 15:40:12 +09:00
roynatech2544
c369d1af1c
debug-tools: bootlogger: Add /proc/config.gz parsing support
...
- Disabling avc filter if !CONFIG_AUDIT
2023-12-04 15:40:09 +09:00
roynatech2544
d379f3b978
debug-tools: bootlogger: Cache the denied props list
...
- Else, the duplicated access denied could spam logs
- Add loggings
- Format code
- Also refactor a bit
2023-12-04 13:03:12 +09:00
roynatech2544
89880b6dd4
debug-tools: bootlogger: Rewrite filter/logger context
2023-12-04 11:25:17 +09:00
roynatech2544
d3750aac45
bootlogger: Remove seperated variable isvaild
...
- Better to call ofs.good() instead
2023-12-03 16:34:07 +09:00
roynatech2544
dbab06fe78
bootlogger: Add ability to detect ro.logd.kernel
...
- And disable kmsg logs for it
2023-12-03 16:34:03 +09:00
roynatech2544
f4701680b4
bootlogger: Construct std::regex instances only once
2023-12-03 16:33:41 +09:00
roynatech2544
5e5ec68b8b
bootlogger: Match libc's prop access denial message
2023-12-03 16:33:41 +09:00
roynatech2544
41101698c6
debug-tools: Delete log file if it is empty
2023-12-01 14:59:57 +09:00
roynatech2544
f6d0886107
Import debug-tools, to unify them
2023-11-26 18:59:01 +09:00