Toggle Volume booster with Speakerphone ON/OFF settings for quiet factory speakerphones.

46 views
Skip to first unread message

Logan Fury

unread,
May 30, 2020, 3:12:42 PM5/30/20
to Tasker

Good morning all,


First major difference I noted in Android Q10 from 8.1.0 was Samsung did away with extra-volume button for phone/speakerphone and the speakerphone is really quiet.

I found a free app on playstore. It works but doesn't like to shut down so ADB WiFi is required:


https://play.google.com/store/apps/details?id=com.goodev.volume.booster


When you get it go immediately to settings. You'll most likely want to disable launch-on-boot and set max boost to 40% anything higher can damage your speakers, excessive use at 40% can damage speakers.


Here's scripts


Profile: Speakerphone ON (773)

    Restore: no

    Event: Logcat Entry [ Output Variables:* Component:AS.AudioService Filter:setSpeakerphoneOn(true) Grep Filter (Check Help):Off ]

Enter: Vol Booster ON (647)

    A1: Launch App [ Package/App Name:Volume Booster GOODEV Data: Exclude From Recent Apps:Off Always Start New Copy:Off ] 

    A2: Wait [ MS:500 Seconds:1 Minutes:0 Hours:0 Days:0 ] 

    A3: AutoInput Gestures [ Configuration:Gesture Type: Swipe

Start Point: 855,2165

End Point: 855,2165

Duration: 250 Timeout (Seconds):60 ] 


Profile: Speakerphone OFF (642)

    Restore: no

    Event: Logcat Entry [ Output Variables:* Component:AS.AudioService Filter:setSpeakerphoneOn(false) Grep Filter (Check Help):Off ]

Enter: Vol Booster OFF (648)

    A1: Tasker Function [  Function:CheckADBWifi() ] 

    A2: If [ %has_adb_wifi ~ true ]

    A3: Status Bar [ Set:Collapsed ] 

    A4: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ] 

    A5: App Info [  Package/App Name:com.goodev.volume.booster Ignore Packages: Ignore Unlaunchable Apps:Off Get All Details:Off ] 

    A6: ADB Wifi [  Command:pm disable-user %app_package Host: Port: Timeout (Seconds):1 Enable Debugging (Check Help):Off ] 

    A7: ADB Wifi [  Command:pm enable %app_package Host: Port: Timeout (Seconds):1 Enable Debugging (Check Help):Off ] 

    A8: Say [ Text:Applications force closed Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] 

    A9: Else If [ %has_adb_wifi ~ false ]

    A10: Say [ Text:T C P I P must be enabled Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ] 

    A11: End If 

These Profile triggers are scripted for Samsung Android Q10 phones. Logcat should reveal yours if your model is different and doesn't respond to these triggers.


For Android 8.1.0 Samsungs use:


ON


LOGCAT ENTRY 

Component: AudioService 

Filter: setSpeakerphoneOn(true)


OFF


LOGCAT ENTRY 

Component: AudioService 

Filter: setSpeakerphoneOn(false)


In all cases, when about to hunt for logcat data, I suggest rebooting phone first for best data return.

I hope this is helpful for anyone hard-of-hearing, or stuck with a quiet speakerphone volume (or both!)


Enjoy and stay safe :D


Logan

Reply all
Reply to author
Forward
0 new messages