Skip to content

refactor: improve NFC hooks and broadcast handling#35

Merged
VictorModi merged 1 commit into0penPublic:mainfrom
VictorModi:feat/force_start_nfc_service
Feb 3, 2026
Merged

refactor: improve NFC hooks and broadcast handling#35
VictorModi merged 1 commit into0penPublic:mainfrom
VictorModi:feat/force_start_nfc_service

Conversation

@VictorModi
Copy link
Collaborator

  • Replace Logger with centralized log in NfcServiceHookBroadcastReceiver
  • Add PackageManagerHook to intercept hasSystemFeature for NFC-related features
  • Fix DialogHelper random UID length validation (max 65535)
  • Refactor BaseHook logging to use hook's own name
  • Simplify init methods in NfcServiceHook and NfcDispatchManagerHook
  • Ensure safe retrieval of NFC Service Handler and prevent null crashes
  • Limit NdefMessage max length to MAX_OF_BROADCAST_SIZE instead of Int.MAX_VALUE
  • Update MainHook to initialize multiple hooks safely with improved logging

- Replace Logger with centralized `log` in NfcServiceHookBroadcastReceiver
- Add PackageManagerHook to intercept `hasSystemFeature` for NFC-related features
- Fix DialogHelper random UID length validation (max 65535)
- Refactor BaseHook logging to use hook's own name
- Simplify init methods in NfcServiceHook and NfcDispatchManagerHook
- Ensure safe retrieval of NFC Service Handler and prevent null crashes
- Limit NdefMessage max length to `MAX_OF_BROADCAST_SIZE` instead of Int.MAX_VALUE
- Update MainHook to initialize multiple hooks safely with improved logging
@VictorModi VictorModi deployed to pull_requests_build February 3, 2026 00:06 — with GitHub Actions Active
@VictorModi VictorModi merged commit 9ff1bdb into 0penPublic:main Feb 3, 2026
1 check passed
@VictorModi VictorModi deleted the feat/force_start_nfc_service branch February 3, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant