+++ b/frameworks/base/core/res/res/values/symbols.xml
<java-symbol type="raw" name="fallbackring" />
+ <java-symbol type="raw" name="alarmbeep" />
+++ b/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
@@ -37,7 +37,9 @@ import android.provider.Settings;
+import com.android.internal.R;
@@ -264,11 +267,14 @@ final class WifiNotificationController {
mNotificationBuilder.setTicker(title);
mNotificationBuilder.setContentTitle(title);
mNotificationBuilder.setContentText(details);
+ mNotificationBuilder.setSound(Uri.parse("android.resource://" + "com.android.systemui"
+ + "/" + R.raw.fallbackring));
mNotificationRepeatTime = System.currentTimeMillis() + NOTIFICATION_REPEAT_DELAY_MS;
notificationManager.notifyAsUser(null, ICON_NETWORKS_AVAILABLE,
mNotificationBuilder.build(), UserHandle.ALL);
RK 7.1 添加可以wifi notification 提示音
猜你喜欢
转载自blog.csdn.net/m1126125223/article/details/82802386
今日推荐
周排行