Hi,
is it possible to automatically turn off beats audio switch, when headphone is plugged in? I just want to use this feature when on Speakers.
Thanks in advance
cr4zyE4RL said:
Hi,
is it possible to automatically turn off beats audio switch, when headphone is plugged in? I just want to use this feature when on Speakers.
Thanks in advance
Click to expand...
Click to collapse
No sorry have to do it manually
Maybe with a task automation manager ?
Personnaly I use llama, I will have a look at this ...
no idea anyone?
cr4zyE4RL said:
no idea anyone?
Click to expand...
Click to collapse
Your question was answered 2 posts above!
I been wanting to do this for some time, and it seems that the key to do this is here:
This is the part in the catalog that makes the switch to beats ON, when setting it to OFF the code is 800 instead of 900, now the question should be how can we set this from tasker or other automation app? I'll start searching, maybe someone knows.
Code:
11-23 01:40:11.350 D/AudioService(608): setGlobalEffect id=900 , appName=com.android.settings
11-23 01:40:11.350 D/AudioService(608): [HtcBeatsEffect]setSystemSoundEffect id=900
11-23 01:40:11.390 D/AudioService(608): [HtcBeatsEffect]checkBeatsSupport mMirrorOn=false mMiracastOn=false mSubwooferOn=falsemSubwooferHeadset=false mHeadsetConnected=false mBTHeadsetConnected=false mHDMIOn=false mBeatsSpeaker=true
11-23 01:40:11.400 D/AudioService(608): [HtcBeatsEffect]convertEffect before=900
11-23 01:40:11.400 D/AudioService(608): [HtcBeatsEffect]convertEffect after=900
11-23 01:40:11.400 D/AudioService(608): [HtcBeatsEffect]setParameters(global_effect=Beats)
11-23 01:40:11.400 D/AudioService(608): broadcastSoundEffectChanged effect=900
11-23 01:40:11.400 D/AudioService(608): [HtcBeatsEffect]onMessageBeatsNotify active=false effect=900
11-23 01:40:11.400 D/AudioService(608): [HtcBeatsEffect]getSoundEffect
Related
Hey guys I was just wondering that it would be possible to write a script for incoming call volume issue. Now it is known that pressing the volume down and up keys several times restores the call volume. So if the script could detect incoming calls and simulate the keypressing it can restore the volume then we could set it to run at boot. This would be a temporary fix but a fix anyway. I m not a techie so just need feedback from you guys.
Sent from my CSL-MI410 using XDA App
nayneshdev said:
Hey guys I was just wondering that it would be possible to write a script for incoming call volume issue.
Click to expand...
Click to collapse
good idea!!!
Sure!
Use the app "tasker"
set condition:incoming call
action:to adjust volume
Sorry,My english is bad!
Pls see the attached files!
in my case, the workaround for this bug is to toggle the speakerphone off and then on.
This also boosts the media volume significantly if the headphone is jacked in
uemuem said:
Sure!
Use the app "tasker"
set condition:incoming call
action:to adjust volume
Sorry,My english is bad!
Click to expand...
Click to collapse
Plz Explain In Detail
pls provide how the steps to set it on tasker APP.
Yeah please let us know how to use Tasker....
Tasker is just like ifttt
Hi
Download This Tasker Script From Here
Originally Posted Bye edowar
http://www.multiupload.com/WSOCS82U7M
Then put to /sdcard/tasker/profiles directory. Then load the profile via tasker app.
by Clicking "Profile Data" Then Select "One profile"
Select "Call" Profile Done.
Hope This Helps. Plz post your comment if it works for you or not
its not working for me atleast.
will try it and let u knw!
There is nothing in profile data. How to download profiles via tasker? Thank you.
Sent from my CSL-MI410 using XDA App
pittms said:
There is nothing in profile data. How to download profiles via tasker? Thank you.
Sent from my CSL-MI410 using XDA App
Click to expand...
Click to collapse
dude first download the file form the link that i have posted earlier.
then copy that file in tasker profiles directory.
read my earlier post again
Hello im facing bad problem. My WiFi cant find our school router in WiFi connections. I can stand next to it but it still cant find it.
Other wifies are working veery fine
Sent from my LG-P970 using xda app-developers app
racik198 said:
Hello im facing bad problem. My WiFi cant find our school router in WiFi connections. I can stand next to it but it still cant find it.
Other wifies are working veery fine
Sent from my LG-P970 using xda app-developers app
Click to expand...
Click to collapse
Does it work with other ROMS?
Yeah. Does it work fine with other ROMS. Also JB has some problems with WiFi. You can try CM9 and report back
Sent from my HTC One X+ using XDA Premium HD
It works on ICS GB and Froyo. It stoped working when i started using cm10.
Sent from my LG-P970 using xda app-developers app
racik198 said:
It works on ICS GB and Froyo. It stoped working when i started using cm10.
Sent from my LG-P970 using xda app-developers app
Click to expand...
Click to collapse
Are you using the latest nightly? I never had problems with wifi with cm10. If your nvram is corrupt then you'll have problems with wifi.
Can you give logcat of wifi? (Please not the whole logcat.)
Well i know how to make a logcat but WiFi logcat?
Its just copying WiFi from logcat?
Sent from my LG-P970 using xda app-developers app
racik198 said:
Well i know how to make a logcat but WiFi logcat?
Its just copying WiFi from logcat?
Sent from my LG-P970 using xda app-developers app
Click to expand...
Click to collapse
I've always had WiFi problems on 4.1.1. Even from official updates. I think it's just how it is. Most get WiFi but you could be like me, WiFi doesn't work on JB. Even on my One X+. I think it's the routers your school is using.
Sent from my HTC One X+ using XDA Premium HD
racik198 said:
Hello im facing bad problem. My WiFi cant find our school router in WiFi connections. I can stand next to it but it still cant find it.
Other wifies are working veery fine
Click to expand...
Click to collapse
To my mind it can be a problem with wifi channels. Cm10 wifi works only in 1-10 range. As far as im concerned, there is no solution to change that channels range. In cm7 there is option in advanced options in wifi to change that range. By flashing cm7, by boype for example, you can see if its this problem or not.
Well this happen when i turn on WiFi
InputMethodManagerService( 1558): Window already focused, ignoring focus gain of: [email protected] attribute=null D/PhoneStatusBar( 1817): disable: < expand icons alerts ticker* system_info back home recent clock > E/wpa_supplicant( 4841): ioctl[SIOCSIWPMKSA] E/wpa_supplicant( 4841): ioctl[SIOCSIWPMKSA] E/WifiStateMachine( 1558): Failed to set device name cm_p970 E/WifiStateMachine( 1558): Failed to set manufacturer LGE E/WifiStateMachine( 1558): Failed to set model name LG-P970 E/WifiStateMachine( 1558): Failed to set model number LG-P970 E/WifiStateMachine( 1558): Failed to set serial number E/WifiStateMachine( 1558): Failed to set WPS config methods E/WifiStateMachine( 1558): Failed to set primary device type 10-0050F204-5 I/wpa_supplicant( 4841): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=00:00:00:00:00:00 SSID= E/wpa_supplicant( 4841): wpa_driver_wext_scan: Start D/Beautiful Widgets( 4340): WIFI_STATE_CHANGED_ACTION D/audio_hw_default(13067): [do_output_standby] (0x400178e8) V/audio_hw_default(13067): [device_output_mixer_setting_log] line(3933) caller/line ( do_output_standby / 1783 ) mixer device output is (MIXER_DEVICE_DEFAULT) D/audio_gain(13067): [get_output_setting] target_device(0) device(0) I/
Sent from my LG-P970 using xda app-developers app
Nightly 17102012 still same logcat saying the same too
E/wpa_supplicant( 5278): ioctl[SIOCSIWPMKSA] E/wpa_supplicant( 5278): ioctl[SIOCSIWPMKSA] E/WifiStateMachine( 1558): Failed to set device name cm_p970 E/WifiStateMachine( 1558): Failed to set manufacturer LGE E/WifiStateMachine( 1558): Failed to set model name LG-P970 E/WifiStateMachine( 1558): Failed to set model number LG-P970 E/WifiStateMachine( 1558): Failed to set serial number E/WifiStateMachine( 1558): Failed to set WPS config methods E/WifiStateMachine( 1558): Failed to set primary device type 10-0050F204-5 I/wpa_supplicant( 5278): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=00:00:00:00:00:00 SSID= E/wpa_supplicant( 5278): wpa_driver_wext_scan: Start D/Beautiful Widgets( 1076): WIFI_STATE_CHANGED_ACTION I/
Sent from LG P970 via XDA app on CM10.
It might be a bug in googles JB sources.
Sent from my LG-P970
Phones WiFi works till channel 11. Our school WiFi is at channel 13.
Is there a way to extend it to channel 13?
Sent from LG P970 via XDA app on CM10.
racik198 said:
Phones WiFi works till channel 11. Our school WiFi is at channel 13.
Is there a way to extend it to channel 13?
Sent from LG P970 via XDA app on CM10.
Click to expand...
Click to collapse
In North america channels 12 and up isn't allowed or is only allowed in certain condition (wikipedia: List of WLAN channels) so CM follows that probably set it so.
Sent from my LG-P970
So theres no way to change it?
Sent from LG P970 via XDA app on CM10.
racik198 said:
So theres no way to change it?
Sent from LG P970 via XDA app on CM10.
Click to expand...
Click to collapse
Not that I know of.
Sent from my LG-P970
I'm from Spain and i had the same problem.
Try this, for me works!!
Alex Kloss12/10/2012After editing /system/etc/wifi/nvram.txt to change "ccode=ALL" to "ccode=EU" (had to remount the partition with rw attribute) and restarting my p970, it works. However, this solution is obviously far from being perfect.
Any pointers on where the sqlite3-db-setting is put into effect in the sources? I'm interested in the background of this strange little bug.
Posted in Ricardo Cerqueira's Google+
h**ps://plus.google.com/115049428938...ts/FeXXPRwK2Lp
Click to expand...
Click to collapse
[Q] Already hook a method of one activity, how to call another func in this activity?
I hook A method of MainActivity, and I also know this activity has func B.
then, after i hooked A with handleLoadPackage -> findAndHookMethod,
i got the param.thisObject(MethodHookParam param), but if i use below code, it will show error in xposed,
Code: MainActivity MainAct = (MainActivity)param.thisObject;
Error in xposed: java.lang.ClassCastException: com.test.test.MainActivity cannot be cast to com.test.test.MainActivity.
....
what's wrong here and how to fix it or to implement my request: after hook A then call B, thanks!
still no answer here:angel::angel:
still no any feedback here
callMethod?
Sent from my GT-I9305 using XDA Free mobile app
MaaarZ said:
callMethod?
Sent from my GT-I9305 using XDA Free mobile app
Click to expand...
Click to collapse
yes, call hooked activity's method, thanks!
fengfengchao said:
yes, call hooked activity's method, thanks!
Click to expand...
Click to collapse
You cannot cast to the class that's defined only in target package - you don't know anything about that class at design/compile time.
It's available only during runtime, when your code is running in target app context.
To call a method simply use:
XposedHelpers.callMethod(param.thisObject, "B"); or
XposedHelpers.callMethod(param.thisObject, "B", params...); in case function has parameters.
C3C076 said:
You cannot cast to the class that's defined only in target package - you don't know anything about that class at design/compile time.
It's available only during runtime, when your code is running in target app context.
To call a method simply use:
XposedHelpers.callMethod(param.thisObject, "B"); or
XposedHelpers.callMethod(param.thisObject, "B", params...); in case function has parameters.
Click to expand...
Click to collapse
Hi C3C076,
thanks for your anwsers, i will try it and feedback the results to you ,thanks!
C3C076 said:
You cannot cast to the class that's defined only in target package - you don't know anything about that class at design/compile time.
It's available only during runtime, when your code is running in target app context.
To call a method simply use:
XposedHelpers.callMethod(param.thisObject, "B"); or
XposedHelpers.callMethod(param.thisObject, "B", params...); in case function has parameters.
Click to expand...
Click to collapse
Hi C3C076,
sorry for late response, your answer worked
thanks for your help and Merry Christmas !
Here's very basic example, beginning of my task. Can anyone explain to me why it doesn't work when I connect to WiFi?
Edit the state options, you want to change active from yes to any.
The reason why it's not working is that the state is looking for a specific SSID to match from the active option
HatchetEgg said:
Edit the state options, you want to change active from yes to any.
The reason why it's not working is that the state is looking for a specific SSID to match from the active option
Click to expand...
Click to collapse
Very tks, solved for me
Hi All,
It would appear that the interface / code changed rather a lot in the most recent update and the previous intents are no longer working.
I have figured out how to fix this. Please follow the directions below.
Important Note: Your profile name is now prefixed with PC. E.g. My profile of test.co.uk/example [user] would now be PC test.co.uk/example [user]
So, here are the settings (don't include the curly brackets):
Connect
Action: net.openvpn.openvpn.CONNECT
Extra: net.openvpn.openvpn.AUTOSTART_PROFILE_NAME: PC {Your profile name}
Extra: net.openvpn.openvpn.AUTOCONNECT: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Disconnect
Action: net.openvpn.openvpn.DISCONNECT
Extra: net.openvpn.openvpn.STOP: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Edit: As of the current version (3.0.4), OpenVPN no longer remains in the foreground on disconnect.
Awesome... Thanks for the fix.
Sent from my Galaxy Note 8 using XDA Labs
Thanks
Yes - It is very annoying that OpenVPN remains on the foreground on Disconnect.
Can Tasker's Kill App be used for this purpose?
jvillasante said:
Yes - It is very annoying that OpenVPN remains on the foreground on Disconnect.
Can Tasker's Kill App be used for this purpose?
Click to expand...
Click to collapse
I tried this but it didn't seem to do anything.
mmotti said:
Hi All,
It would appear that the interface / code changed rather a lot in the most recent update and the previous intents are no longer working.
I have figured out how to fix this. Please follow the directions below.
Important Note: Your profile name is now prefixed with PC. E.g. My profile of test.co.uk/example [user] would now be PC test.co.uk/example [user]
So, here are the settings (don't include the curly brackets):
Connect
Action: net.openvpn.openvpn.CONNECT
Extra: net.openvpn.openvpn.AUTOSTART_PROFILE_NAME: PC {Your profile name}
Extra: net.openvpn.openvpn.AUTOCONNECT: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Disconnect
Action: net.openvpn.openvpn.DISCONNECT
Extra: net.openvpn.openvpn.STOP: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Annoyingly they have made it so OpenVPN remains in the foreground on disconnect. I have yet to look into this.
Click to expand...
Click to collapse
Thank you very much!!!
mmotti said:
Annoyingly they have made it so OpenVPN remains in the foreground on disconnect. I have yet to look into this.
Click to expand...
Click to collapse
:highfive: Thank you for finding this. I had to downgrade 1.1.27 to get my task to work, but now I've got the new UI and working tasks, so THANK YOU.
As a lazy workaround to the app remaining in the foreground I've added a 1-second wait then 2 AutoInput Back actions:
"Intent to end OpenVPN connection"
2. Wait = 1 second
3. AutoInput Global Action = Back
4. AutoInput Global Action = Back
mondohow said:
:highfive: Thank you for finding this. I had to downgrade 1.1.27 to get my task to work, but now I've got the new UI and working tasks, so THANK YOU.
As a lazy workaround to the app remaining in the foreground I've added a 1-second wait then 2 AutoInput Back actions:
"Intent to end OpenVPN connection"
2. Wait = 1 second
3. AutoInput Global Action = Back
4. AutoInput Global Action = Back
Click to expand...
Click to collapse
Could you explain in tasker how to do it?
Thanks
xhenon said:
Could you explain in tasker how to do it?
Thanks
Click to expand...
Click to collapse
You will need the AutoInput Tasker plugin for this to work. You can get it from here:
https://play.google.com/store/apps/details?id=com.joaomgcd.autoinput
1. Follow the above steps for the Disconnect task
2. Hit the + to add a new action
In the list that pops up, select Task -> Wait and change it to 1 second
3. Hit the + button to add a new action
In the list select Plugin -> AutoInput -> Global Action
Hit the pencil icon next to Configuration
Hit Action -> Select Back from the list
Hit the check mark on the top right, then hit the back button to return to the Actions list
4. Repeat #3
Your Actions list should look like the attached image.
I had to add the AutoInput 'Back' action twice since OpenVpn Connect backs out of the VPN Profile screen into the main app screen. The second Back action takes you to back into your last app/activity.
It's a lazy workaround so I'm sure someone will come up with something better in time.
Go Home tasker task
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
jvillasante said:
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
Click to expand...
Click to collapse
Excellent - Thanks.
Thank you for this. BIG help.
I was wondering if anybody out there has a profile for disconnecting from OpenVPN but only after wifi has been in disconnected state for 30 seconds?
Thanks.
jvillasante said:
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
Click to expand...
Click to collapse
Thanks to the OP and thanks to you,excellent info
Thanks for sharing, i was quite annoyed by that update.
Made my day
Hi.
Thank you for this.
Maybe i am just to noobish for this, but how do you make the command "Actions"?
Is that Secure settings?
betahelix said:
Hi.
Thank you for this.
Maybe i am just to noobish for this, but how do you make the command "Actions"?
Is that Secure settings?
Click to expand...
Click to collapse
I originally followed a guide here: https://collinmbarrett.com/android-tasker-openvpn/
That should tell you where to find the necessary actions.
Use the updated values in OP instead of those listed on the site, though.
mmotti said:
I originally followed a guide here: https://collinmbarrett.com/android-tasker-openvpn/
That should tell you where to find the necessary actions.
Use the updated values in OP instead of those listed on the site, though.
Click to expand...
Click to collapse
First of all, thank you for this post.
Currently I'm using "go home" to "close" open vpn after disconnect.
Latest change log says "* added minimize app on disconnect shortcut feature"
Do you think we can use it in Tasker somehow to natively minimize the app after disconnect?
Sent from my Pixel 2 using Tapatalk
rodak said:
First of all, thank you for this post.
Currently I'm using "go home" to "close" open vpn after disconnect.
Latest change log says "* added minimize app on disconnect shortcut feature"
Do you think we can use it in Tasker somehow to natively minimize the app after disconnect?
Click to expand...
Click to collapse
I was using: wait 1 second and go home.
After updating, it actually closes itself automatically now. It happens very quickly - I don't even see the OpenVPN UI.
mmotti said:
I was using: wait 1 second and go home.
After updating, it actually closes itself automatically now. It happens very quickly - I don't even see the OpenVPN UI.
Click to expand...
Click to collapse
Thanks, will try it out.
Edit: It worked perfectly, maybe time to update the original post?
Sent from my Pixel 2 using Tapatalk
rodak said:
Thanks, will try it out.
Edit: It worked perfectly, maybe time to update the original post?
Click to expand...
Click to collapse
I popped an edit in there
mmotti said:
I popped an edit in there
Click to expand...
Click to collapse
Hello,
I am using Automate its pretty much the same in terms of use like tasker.
But it's free and you Programm flows. But when I try this without using the back back option the disconnect interface didn't close it self.
Did you comment something new in the action blocks?
Gesendet von meinem G8341 mit Tapatalk