289 Commits

Author SHA1 Message Date
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
koko-07870
d7741838e9 FlashControl: Re-format with ktfmt
Using google-style

Signed-off-by: koko-07870 <ko282ko82@gmail.com>
2025-04-27 13:05:28 +09:00
koko-07870
aedb448e1b FlashControl: Add launcher icon
Signed-off-by: koko-07870 <ko282ko82@gmail.com>
2025-04-27 13:05:28 +09:00
koko-07870
9400ffe1c8 FlashControl: Fix leftover intensity spelling
Signed-off-by: koko-07870 <ko282ko82@gmail.com>
2025-04-27 13:05:28 +09:00
koko-07870
bb7785b221 FlashControl: correct intensity spelling and modify footer message
Signed-off-by: koko-07870 <ko282ko82@gmail.com>
2025-04-27 13:05:06 +09:00
roynatech2544
420366b66b app: Update for QPR2
app: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Signed-off-by: RisenID <risen@pixelexperience.org>
Change-Id: I0c1bd901429bbe3bf81c1530e156735f8637a96e

app: Migrate to CompoundButton.OnCheckedChangeListener
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427 | AOSP
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
Signed-off-by: RisenID <risen@pixelexperience.org>
Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835

app: Migrate to SelectorWithWidgetPreference
Change-Id: Ie4aaa1fff836a407c1d8f5b919b7b0051748f5d3

Co-Authored-by: Peter Kalauskas <peskal@google.com>
Co-Authored-by: Chaohui Wang <chaohuiw@google.com>
Co-Authored-by: LuK1337 <priv.luk@gmail.com>
2025-04-27 13:05:06 +09:00
roynatech2544
405b957149 aidl: battery: Call android::base::InitLogging
- So libbase logging would work
2025-04-27 13:05:06 +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
roynatech2544
47004e4621 app: FlashControl: Log the message from ex 2025-04-27 13:02:02 +09:00
roynatech2544
2cf22c974d aidl: flashlight: Give the message for getBrightness ex 2025-04-27 13:02:02 +09:00
roynatech2544
db768fb8ec app: FlashControl: Fix possible crash on create 2025-04-27 13:02:02 +09:00
roynatech2544
7c10e11934 aidl: battery: Fix dumpsys newline ending 2025-04-27 13:02:02 +09:00
roynatech2544
d9d74b679a aidl: battery: Add logtag for parser 2025-04-27 13:02:02 +09:00
roynatech2544
d650fc2f0b aidl: battery: Switch to using JSON config for sysfs paths 2025-04-27 13:01:55 +09:00
Soo Hwan Na
c82e343e06 aidl: battery: Fix the spertus wakeup in cv 2024-01-17 20:16:09 +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
9889d14e5c fixup! Add README 2024-01-14 18:34:48 +09:00
Soo Hwan Na
1a8029bd8e aidl: battery: Cleanup and fix error handle code 2024-01-07 23:43:33 +09:00
Soo Hwan Na
a6719740c9 aidl: battery: Print more useful data about impl lib 2024-01-06 18:55:34 +09:00
Soo Hwan Na
3e00e90bc6 fixup! aidl: battery: Clean up setChargeLimit verification 2024-01-06 18:37:07 +09:00
Soo Hwan Na
d887e5e90e fixup! aidl: battery: Add dump support 2024-01-06 17:05:29 +09:00
Soo Hwan Na
4d69f72fe8 aidl: battery: Fix comparison of policy and actual 2024-01-06 13:13:46 +09:00
Soo Hwan Na
4f26ef07ce aidl: battery: Query charge status and try fix if need 2024-01-06 12:14:03 +09:00
Soo Hwan Na
c18246de11 debug-tools: bootlogger: Use 022 umask 2024-01-04 20:58:52 +09:00
Soo Hwan Na
394bd242b7 aidl: battery: Add dump support 2024-01-04 20:58:49 +09:00
Soo Hwan Na
14a84e5ea6 aidl: battery: Clean up setChargeLimit verification
- Also sort out invalid config value to a constexpr
2024-01-04 19:41:38 +09:00
Soo Hwan Na
ac6825d379 aidl: battery: Fix the kLoopThread control 2024-01-04 19:41:36 +09:00
Soo Hwan Na
a5fb4a3309 aidl: battery: Move to a noop impl if loading failed 2023-12-30 18:53:47 +09:00
Soo Hwan Na
95849122c4 Remove keymaster/ from here
-- This works only with Android 14, hence move to hardware/samsung fourteen branch
2023-12-27 11:32:42 +09:00
Soo Hwan Na
2a9a8dee34 Revert "aidl: battery: Don't poll when discharging"
- Breaks restart charging

This reverts commit 17af54aefc.
2023-12-25 00:52:38 +09:00
Soo-Hwan Na
dbdb5f0ba5 Add README 2023-12-25 00:13:19 +09:00
Soo Hwan Na
112773f1f7 aidl: battery: Handle the case where compiled as 32bit 2023-12-24 13:05:25 +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
430ac0a477 aidl: battery: Add mutex for health hals sync 2023-12-24 01:13:54 +09:00
Soo Hwan Na
0cf61813f6 aidl: battery: Fix the constructor functions calls
- Parsing config is not needed for health HAL connection and loading override impl
2023-12-24 01:13:50 +09:00
Soo Hwan Na
c60880e0c6 aidl: battery: Start ThreadPool before linkToDeath() 2023-12-23 20:21:14 +09:00
Soo Hwan Na
aa2bbe86a3 aidl: battery: Add health service death handlers 2023-12-23 13:16:12 +09:00
Soo Hwan Na
71d434eca0 aidl: battery: Switch default to loadable module
- Add example, append default paths
2023-12-23 12:08:48 +09:00
Soo Hwan Na
ed643d27f6 aidl: battery: Use waitServiceDefault for getting health AIDL
- getServiceDefault checks once, so it crashes every time before health HAL is up
2023-12-22 21:09:10 +09:00
Soo Hwan Na
503d29fbb5 libextsupport: Add waitServiceDefault which polls 2023-12-22 21:09:07 +09:00