Add TV audio output switch and USB storage visibility#8
Draft
BigShoots wants to merge 2 commits into
Draft
Conversation
Member
|
Should've splitted into a commit related to audio settings + a commit related to USB |
hmtheboy154
requested changes
Jun 6, 2026
| persist.bluetooth.enablenewavrcp=true | ||
|
|
||
| # Make public USB storage app-visible on Android TV x86. | ||
| persist.sys.adoptable=force_on |
Member
There was a problem hiding this comment.
this is like..... turning any external storage into adoptable, not trying to make USB storage "app-visible".
You need DocumentUI to make it "app-visible", but I already included it in
| $(eval PRODUCT_COPY_FILES += $(f):$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/$(notdir $f))) | ||
|
|
||
| PRODUCT_COPY_FILES += \ | ||
| $(LOCAL_PATH)/sysconfig/hiddenapi-package-whitelist-org.lineageos.tv.audiooutput.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/sysconfig/hiddenapi-package-whitelist-org.lineageos.tv.audiooutput.xml |
Member
There was a problem hiding this comment.
Better use Android.mk (or .bp) instead of this
|
|
||
| /devices/*/block/sr* auto auto defaults voldmanaged=cdrom:auto | ||
| /devices/*/usb*/* auto auto defaults voldmanaged=usb:auto,noemulatedsd | ||
| /devices/*/usb*/* auto auto defaults voldmanaged=usb:auto,noemulatedsd,encryptable=userdata |
Member
There was a problem hiding this comment.
All storage here does not set encryptable=userdata label because I found out that it generate folders like Android, Alarms, Music, DCIM, etc
| @@ -0,0 +1,16 @@ | |||
| LOCAL_PATH := $(call my-dir) | |||
|
|
|||
| include $(CLEAR_VARS) | |||
Member
There was a problem hiding this comment.
Maybe use Android.bp instead for future-proofing ?
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
This adds an Android TV audio output selector and fixes public USB storage visibility for the x86_64 TV product.
Changes:
AudioOutputSwitch, a privilegedsystem_extapp that handlescom.android.tv.settings.SOUND.encryptable=userdata.persist.sys.adoptable=force_onso public USB storage is visible to apps on Android TV.Testing
Tested as an image patch against
lineage-21.0-20260331-UNOFFICIAL-x86_64_tv-signed.isoon an Intel 7th gen mini PC / ThinkCentre M710q class device.System defaultclears the preferred media route./storage/1512-1D39after the vold/adoptable visibility change.Note: the HDMI/DisplayPort audio policy fix used during local ISO testing appears to belong to the audio HAL/policy source rather than this device repository, so it is intentionally not included in this PR.