更改免提使其无操作加audio_policy_conf配置

rk3399 android 7.1
rockchip的audio_policy_conf在打包的文件系统下的system/etc 系统优先是去vendor/etc 下面找如果没有就去system下面找。
这个文件源码是在devices/rockchip/common/audio_policy_rk30board.conf

更改免提操作参考下面这个
在这里插入图片描述
参考博文 https://blog.youkuaiyun.com/bberdong/article/details/53036569
adb shell dumpsys media.audio_policy
查看当前各种有效设备信息

行 1607705: [persist.device_config.aconfig_flags.bluetooth.audio_policy_ag_enabled]: [true] 行 1607706: [persist.device_config.aconfig_flags.bluetooth.audio_policy_hf_enabled]: [true] 行 1616849: bluetooth/com.android.bluetooth.flags.sink_audio_policy_handover: READ_ONLY + ENABLED (/apex/com.android.btservices), ENABLED (device_config) 行 1617342: media_audio/android.media.audiopolicy.audio_policy_update_mixing_rules_api: READ_ONLY + ENABLED (system), READ_ONLY + ENABLED (product), ENABLED (device_config) 行 2097200: [■]: sinkAudioPolicyHandover sink_audio_policy_handover 行 2178097: 10: [2025-07-23 09:40:47.595] execute took 0ms - succeeded, sql="INSERT OR REPLACE INTO `metadata` (`address`,`migrated`,`a2dpSupportsOptionalCodecs`,`a2dpOptionalCodecsEnabled`,`last_active_time`,`is_active_a2dp_device`,`isActiveHfpDevice`,`preferred_output_only_profile`,`preferred_duplex_profile`,`active_audio_device_policy`,`a2dp_connection_policy`,`a2dp_sink_connection_policy`,`hfp_connection_policy`,`hfp_client_connection_policy`,`hid_host_connection_policy`,`pan_connection_policy`,`pbap_connection_policy`,`pbap_client_connection_policy`,`map_connection_policy`,`sap_connection_policy`,`hearing_aid_connection_policy`,`hap_client_connection_policy`,`map_client_connection_policy`,`le_audio_connection_policy`,`volume_control_connection_policy`,`csip_set_coordinator_connection_policy`,`le_call_control_connection_policy`,`bass_client_connection_policy`,`battery_connection_policy`,`manufacturer_name`,`model_name`,`software_version`,`hardware_version`,`companion_app`,`main_icon`,`is_untethered_headset`,`untethered_left_icon`,`untethered_right_icon`,`untethered_case_icon`,`untethered_left_battery`,`untethered_right_battery`,`untethered_case_battery`,`untethered_left_charging`,`untethered_right_charging`,`untethered_case_charging`,`enhanced_settings_ui_uri`,`device_type`,`main_battery`,`main_charging`,`main_low_battery_threshold`,`untethered_left_low_battery_threshold`,`untethered_right_low_battery_threshold`,`untethered_case_low_battery_threshold`,`spatial_audio`,`fastpair_customized`,`le_audio`,`gmcs_cccd`,`gtbs_cccd`,`exclusive_manager`,`call_establish_audio_policy`,`connecting_time_audio_policy`,`in_band_ringtone_audio_policy`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", path=/data/user_de/0/com.android.bluetooth/databases/bluetooth_db 行 2178098: 11: [2025-07-23 09:40:47.595] prepare took 0ms - succeeded, sql="INSERT OR REPLACE INTO `metadata` (`address`,`migrated`,`a2dpSupportsOptionalCodecs`,`a2dpOptionalCodecsEnabled`,`last_active_time`,`is_active_a2dp_device`,`isActiveHfpDevice`,`preferred_output_only_profile`,`preferred_duplex_profile`,`active_audio_device_policy`,`a2dp_connection_policy`,`a2dp_sink_connection_policy`,`hfp_connection_policy`,`hfp_client_connection_policy`,`hid_host_connection_policy`,`pan_connection_policy`,`pbap_connection_policy`,`pbap_client_connection_policy`,`map_connection_policy`,`sap_connection_policy`,`hearing_aid_connection_policy`,`hap_client_connection_policy`,`map_client_connection_policy`,`le_audio_connection_policy`,`volume_control_connection_policy`,`csip_set_coordinator_connection_policy`,`le_call_control_connection_policy`,`bass_client_connection_policy`,`battery_connection_policy`,`manufacturer_name`,`model_name`,`software_version`,`hardware_version`,`companion_app`,`main_icon`,`is_untethered_headset`,`untethered_left_icon`,`untethered_right_icon`,`untethered_case_icon`,`untethered_left_battery`,`untethered_right_battery`,`untethered_case_battery`,`untethered_left_charging`,`untethered_right_charging`,`untethered_case_charging`,`enhanced_settings_ui_uri`,`device_type`,`main_battery`,`main_charging`,`main_low_battery_threshold`,`untethered_left_low_battery_threshold`,`untethered_right_low_battery_threshold`,`untethered_case_low_battery_threshold`,`spatial_audio`,`fastpair_customized`,`le_audio`,`gmcs_cccd`,`gtbs_cccd`,`exclusive_manager`,`call_establish_audio_policy`,`connecting_time_audio_policy`,`in_band_ringtone_audio_policy`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", path=/data/user_de/0/com.android.bluetooth/databases/bluetooth_db 行 2178103: 16: [2025-07-23 09:40:47.595] execute took 0ms - succeeded, sql="INSERT OR REPLACE INTO `metadata` (`address`,`migrated`,`a2dpSupportsOptionalCodecs`,`a2dpOptionalCodecsEnabled`,`last_active_time`,`is_active_a2dp_device`,`isActiveHfpDevice`,`preferred_output_only_profile`,`preferred_duplex_profile`,`active_audio_device_policy`,`a2dp_connection_policy`,`a2dp_sink_connection_policy`,`hfp_connection_policy`,`hfp_client_connection_policy`,`hid_host_connection_policy`,`pan_connection_policy`,`pbap_connection_policy`,`pbap_client_connection_policy`,`map_connection_policy`,`sap_connection_policy`,`hearing_aid_connection_policy`,`hap_client_connection_policy`,`map_client_connection_policy`,`le_audio_connection_policy`,`volume_control_connection_policy`,`csip_set_coordinator_connection_policy`,`le_call_control_connection_policy`,`bass_client_connection_policy`,`battery_connection_policy`,`manufacturer_name`,`model_name`,`software_version`,`hardware_version`,`companion_app`,`main_icon`,`is_untethered_headset`,`untethered_left_icon`,`untethered_right_icon`,`untethered_case_icon`,`untethered_left_battery`,`untethered_right_battery`,`untethered_case_battery`,`untethered_left_charging`,`untethered_right_charging`,`untethered_case_charging`,`enhanced_settings_ui_uri`,`device_type`,`main_battery`,`main_charging`,`main_low_battery_threshold`,`untethered_left_low_battery_threshold`,`untethered_right_low_battery_threshold`,`untethered_case_low_battery_threshold`,`spatial_audio`,`fastpair_customized`,`le_audio`,`gmcs_cccd`,`gtbs_cccd`,`exclusive_manager`,`call_establish_audio_policy`,`connecting_time_audio_policy`,`in_band_ringtone_audio_policy`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", path=/data/user_de/0/com.android.bluetooth/databases/bluetooth_db 行 2178104: 17: [2025-07-23 09:40:47.595] prepare took 0ms - succeeded, sql="INSERT OR REPLACE INTO `metadata` (`address`,`migrated`,`a2dpSupportsOptionalCodecs`,`a2dpOptionalCodecsEnabled`,`last_active_time`,`is_active_a2dp_device`,`isActiveHfpDevice`,`preferred_output_only_profile`,`preferred_duplex_profile`,`active_audio_device_policy`,`a2dp_connection_policy`,`a2dp_sink_connection_policy`,`hfp_connection_policy`,`hfp_client_connection_policy`,`hid_host_connection_policy`,`pan_connection_policy`,`pbap_connection_policy`,`pbap_client_connection_policy`,`map_connection_policy`,`sap_connection_policy`,`hearing_aid_connection_policy`,`hap_client_connection_policy`,`map_client_connection_policy`,`le_audio_connection_policy`,`volume_control_connection_policy`,`csip_set_coordinator_connection_policy`,`le_call_control_connection_policy`,`bass_client_connection_policy`,`battery_connection_policy`,`manufacturer_name`,`model_name`,`software_version`,`hardware_version`,`companion_app`,`main_icon`,`is_untethered_headset`,`untethered_left_icon`,`untethered_right_icon`,`untethered_case_icon`,`untethered_left_battery`,`untethered_right_battery`,`untethered_case_battery`,`untethered_left_charging`,`untethered_right_charging`,`untethered_case_charging`,`enhanced_settings_ui_uri`,`device_type`,`main_battery`,`main_charging`,`main_low_battery_threshold`,`untethered_left_low_battery_threshold`,`untethered_right_low_battery_threshold`,`untethered_case_low_battery_threshold`,`spatial_audio`,`fastpair_customized`,`le_audio`,`gmcs_cccd`,`gtbs_cccd`,`exclusive_manager`,`call_establish_audio_policy`,`connecting_time_audio_policy`,`in_band_ringtone_audio_policy`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", path=/data/user_de/0/com.android.bluetooth/databases/bluetooth_db 行 2186581: bluetooth/audio_policy_ag_enabled=true 行 2186582: bluetooth/audio_policy_hf_enabled=true 行 2186754: bluetooth/com.android.bluetooth.flags.sink_audio_policy_handover=true 行 2187770: media_audio/android.media.audiopolicy.audio_policy_update_mixing_rules_api=true 行 2248776: DUMP OF SERVICE media.audio_policy: 行 2248819: Config source: /odm/etc/audio/sku_pineapple_qssi/audio_policy_configuration.xml 行 2251436: --------- 0.035s was the duration of dumpsys media.audio_policy, ending at: 2025-07-23 09:42:02 行 2406415: Permission [android.permission.MANAGE_AUDIO_POLICY] (b63ca34): 行 2406418: perm=PermissionInfo{d9153ed android.permission.MANAGE_AUDIO_POLICY} 行 2446440: android.permission.MANAGE_AUDIO_POLICY: prot=signature 行 2488295: android.permission.MANAGE_AUDIO_POLICY: granted=true 行 2494769: android.permission.MANAGE_AUDIO_POLICY: type=TYPE_MANIFEST, packageName=android, appId=1000, gids=[], protectionLevel=[signature], flags=[] 行 2499661: android.permission.MANAGE_AUDIO_POLICY: granted=true, flags=[PROTECTION_GRANTED] 行 2500195: android.permission.MANAGE_AUDIO_POLICY: granted=true, flags=[PROTECTION_GRANTED] 行 2646896: _id:2061 name:bluetooth/audio_policy_ag_enabled pkg:com.google.android.gms value:true 行 2647028: _id:2054 name:bluetooth/audio_policy_hf_enabled pkg:com.google.android.gms value:true
09-17
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值