Commit Graph

257 Commits

Author SHA1 Message Date
Roman Lubij
12a554bf3b (DNM) pipa: peripheralmanager: some optimisations
- Use SIMD math where possible
- Make the kb accel thread sleep for longer
2025-08-18 13:15:26 +00:00
Roman Lubij
946ee66c69 (DNM) pipa: peripheralmanager: Reimplement angle detection
Thanks luka177 for the code for retrieving the accelerometer data from the KB. This is mostly WIP overall, but it does seem to work *okay*.
2025-08-18 13:15:26 +00:00
Roman Lubij
f86f874c61 xiaomi-keyboard: Improve the watchdog
We should no longer be getting a logspam of the watchdog thread being stuck for over 50 years
2025-08-18 13:15:26 +00:00
Pranshu Sheoran
3e7d75fcfe pipa: vendorsetup: update repo links and function. 2025-08-18 13:15:26 +00:00
Aryan Biswas
1d93b770b4 pipa: Moved nvram binary from ct 2025-07-29 15:51:22 +00:00
Tim Zimmermann
93c875bce3 pipa: Enable support for freeform windows and picture-in-picture
Change-Id: If0a63fc7e8455100128fa25955bb4da485fff873
2025-07-29 15:51:22 +00:00
Sugakesshaa
6286bc61f1 pipa: overlay: Set config_defaultPeakRefreshRate to 144
Change-Id: I7deb1c14df98c966fbf8d5951019e8a92a818962
2025-07-29 15:51:22 +00:00
Pranshu Sheoran
20684b72ce pipa: set target boot animation resolution 2025-07-29 15:51:22 +00:00
Abdulwahab Isam
02b7280407 [DNM][TMP] pipa: keybaord watchdog test
Change-Id: I576664b053ca49cb9ef5fcbf635b5e6edda402a7
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-04-28 18:41:48 +03:00
Abdulwahab Isam
c5b84f155e Revert "pipa: Import QDCM display calibration from hentaiOS"
This reverts commit 13273879b3.
2025-04-25 21:33:51 +00:00
Abdulwahab Isam
9227221f82 pipa: drop LOS prebuilts
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-04-22 08:27:25 +00:00
Abdulwahab Isam
243ecb6140 pipa: enable updater again
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-04-22 08:26:34 +00:00
Abdulwahab Isam
020aa5ccd8 pipa: update firmware and blobs from OS2.0.3.0.UMZMIXM
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-04-12 20:40:43 +03:00
Abdulwahab Isam
20f913278b pipa: Add support for bypass charging
check for refernce
e81ac1d1b0
12f550e062

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-04-11 14:06:51 +03:00
Abdulwahab Isam
2d63ae597b pipa: remove updater
Change-Id: Ib5cf9b0442754c1959de0b904003551c04bf4e69
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-04-07 05:52:57 +03:00
Abdulwahab Isam
a092388bed pipa: ship LOS apps
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-04-04 08:01:57 +03:00
Abdulwahab Isam
0a64bc699f pipa: extract-files: fixes and add common-only function
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-04-03 07:25:51 +03:00
Abdulwahab Isam
e58955d62e pipa: PeripheralManager: disable keyboard when device is locked
Change-Id: If28600c72be57fc36ef4a871d69e67f05d7e0b7e
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-04-03 07:25:38 +03:00
Abdulwahab Isam
067e6bbc2f pipa: vendorsetup: clean up and add fw check
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-04-01 05:50:19 +03:00
Abdulwahab Isam
ed9f1e4699 pipa: vendorsetup: remove notification split patch
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-31 23:17:09 +03:00
Abdulwahab Isam
bc816dd128 pipa: add script to extract firmware
payload-dumper the ROM and point it to exctracted folder

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-31 21:26:33 +03:00
LuK1337
5f8bd99b81 pipa: Switch to py extract utils
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-31 21:26:31 +03:00
Abdulwahab Isam
2ecf7ca01e pipa: vendorsetup: add firmware extract function
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-31 08:35:07 +03:00
Michael Bestas
a61a07371b pipa: Add firmware extraction support
Change-Id: If6cb6334a8f7b2fcc77c8947569eba1b2002190a
2025-03-31 07:05:59 +03:00
Abdulwahab Isam
0f4b246d63 pipa: vendorsetup: switch sm8250-common branches
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-30 00:46:36 +03:00
Abdulwahab Isam
3f8e4e31ab pipa: vendorsetup: switch common branches
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-29 20:35:40 +03:00
Abdulwahab Isam
6bcd4574f5 pipa: clean up for official builds
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-27 04:34:21 +03:00
Abdulwahab Isam
1bd780c5ee pipa: enhance xiaomi-pen utility with error handling
- Update copyright year to 2023-2025
- Add version information
- Implement proper error handling for device operations
- Add status output for better diagnostics
- Add comments for improved readability
- Return appropriate error codes on failure

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 06:02:32 +03:00
Abdulwahab Isam
b8af5dac53 pipa: add license header to xiaomi-keyboard.cpp
- Add standard LineageOS license header
- Add SPDX identifier
- Match copyright format with Java files (2023-2025)
- No functional changes to implementation

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 05:58:17 +03:00
Abdulwahab Isam
95d08296e3 pipa: peripheralmanager: update Android.bp and Manifest files for consistency
- Update copyright year to 2023-2025 to match other components
- Standardize license header format to SPDX
- No functional changes to build definitionspipa:

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 05:54:51 +03:00
Abdulwahab Isam
8a7c57d40a pipa: enhance StylusSettingsFragment with improved reliability
- Update copyright year to 2023-2025
- Standardize license header format to SPDX
- Add robust exception handling for fragment lifecycle
- Implement consistent logging with timestamps
- Add debug flag via system property
- Align TAG values with other components
- Fix null pointer access for preference switching

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 05:52:29 +03:00
Abdulwahab Isam
601d2fd23f pipa: update StylusSettingsActivity for consistency
- Update copyright year to 2023-2025
- Standardize license header format to SPDX
- Add class documentation with JavaDoc
- Add basic logging for activity creation
- Standardize TAG naming convention

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 05:51:23 +03:00
Abdulwahab Isam
d42cfa9e8d pipa: enhance PenUtils with improved logging and reliability
- Add robust exception handling for device operations
- Implement consistent logging with timestamps
- Use system properties for debug flag configuration
- Standardize naming conventions for constants
- Improve documentation with JavaDoc comments
- Update copyright year to 2023-2025

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 05:50:27 +03:00
Abdulwahab Isam
54616309b8 pipa: enhance BootCompletedReceiver with improved logging
- Add configurable debug flag via system property
- Implement consistent logging with timestamps
- Add exception handling for individual services
- Improve logging details for better diagnostics
- Update copyright year to match other components

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 05:49:04 +03:00
Abdulwahab Isam
3b7ef13276 pipa: improve keyboard Android integration
- Add robust exception handling throughout the codebase
- Implement state tracking to prevent redundant operations
- Enhance logging with timestamps and severity levels
- Improve device detection reliability
- Add detailed documentation with JavaDoc comments

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 05:47:29 +03:00
Abdulwahab Isam
865e43385b pipa: refactor: improve keyboard driver reliability and maintenance
- Reduce resource usage with smaller buffers and optimized code
- Add watchdog thread for automatic recovery from hangs
- Implement configuration file support for runtime settings
- Add dynamic keyboard detection with fallback path
- Improve connection handling with debouncing and backoff
- Enhance power management with proper sleep/wake handling
- Add proper signal handling and resource cleanup

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 05:42:47 +03:00
Abdulwahab Isam
a1919b0c02 pipa: remove Angle detection code from keyboard
too much logic and kinda overkill for our usecase

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 05:42:40 +03:00
Abdulwahab Isam
2657ec2f01 pipa: update blobs from OS2.0.2.0.UMZMIXM
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-24 05:42:40 +03:00
Dyneteve
13273879b3 pipa: Import QDCM display calibration from hentaiOS
I am not certain if the exact author to be attributed is @ Dyneteve,
as the file was extracted by @ KakatkarAkshay from apollo hentaiOS image,
but they did not release its device tree code.

Co-authored-by: Dyneteve <dyneteve@hentaios.com>
Change-Id: Idc690f696656d209b0623b4a39cf09314946f7f8
Signed-off-by: Yuan Si <do4suki@gmail.com>
2025-03-19 17:07:32 +03:00
Abdulwahab Isam
724913d11b pipa: vendorsetup: update device related branches
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-19 17:07:13 +03:00
Abdulwahab Isam
400d5932ca pipa: axion: ship matlog
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-18 11:44:16 +03:00
Abdulwahab Isam
b696d31cfc pipa: vendorsetup: add more repos just in case they failed to sync
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-17 18:21:16 +03:00
Abdulwahab Isam
dd37098e88 pipa: update repos for qpr2
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-16 23:12:09 +03:00
Abdulwahab Isam
79fe7e5798 pipa: blobs: remove duplicated libcapiv2
they're already in common

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-16 23:02:32 +03:00
Sugakesshaa
f04c648fa0 pipa: overlay: Define brightness float values
Change-Id: I4a3b8d401f47e5d24350d91311418e3ebf29a171
2025-03-15 19:50:34 +03:00
Abdulwahab Isam
42a4df0cb3 pipa: vendorsetup: switch to LOS hw/ximi and get Dolby separately
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-15 13:00:06 +03:00
Abdulwahab Isam
9a656d4a35 pipa: vendorsetup: add more source patches
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-15 09:39:39 +03:00
Abdulwahab Isam
2856bb161f pipa: axion: they not like us
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-15 09:23:54 +03:00
Abdulwahab Isam
3042964a5c pipa: define small and big core groups
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-03-08 09:42:34 +03:00
Abdulwahab Isam
27691a81ad pipa: ship camera
Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
2025-02-27 21:04:55 +03:00