Repository navigation
android(privileged): privileged shell service for bluetooth metadata & connection policy (#878) - #885
Open
EroNiiChan wants to merge 2 commits into
Open
EroNiiChan wants to merge 2 commits into
EroNiiChan wants to merge 2 commits into
Conversation
added 2 commits
October 30, 2026 20:12
…& connection policy (librepods-org#878) - Introduce ILibrePodsPrivilegedService AIDL interface for IPC - Implement LibrePodsPrivilegedServiceImpl with BluetoothDevice.setMetadata and profile connection policies - Support computer adb standalone startup with Shizuku UserService fallback - Wire PrivilegedClient into LibrePodsService to update battery, charging, and device metadata Signed-off-by: EroNiiChan <eronii@users.noreply.github.com>
…ction policy support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #878
Overview
This pull request implements the privileged shell service architecture for accessing protected Bluetooth permissions on Android without root, addressing the requirements in #878:
me.kavishdevar.librepods.privileged.ILibrePodsPrivilegedService)::corewithbuildFeatures { aidl = true }so both:appand:privilegedshare the interface.setMetadata(String address, int key, byte[] value),setConnectionPolicy(String address, int profile, int policy),isAlive(), anddestroy().LibrePodsPrivilegedServiceImpl.kt):BluetoothProfile.HEADSETandBluetoothProfile.A2DP.BluetoothDevice.setMetadatavia reflection for battery and icon metadata.setConnectionPolicyon both Headset and A2DP profile proxies for connection management.Main.kt):app_process/ActivityThread.systemMain().systemContextto obtain system Bluetooth service references and register withServiceManager.LibrePodsService&PrivilegedClient:METADATA_UNTETHERED_CASE_BATTERY,METADATA_UNTETHERED_LEFT_BATTERY,METADATA_UNTETHERED_RIGHT_BATTERY) into the privileged client.Current Status & Verification
ServiceManager.addServiceacross different Android versions) has not been performed and requires device testing.