Run an with only a 30% chance of happening - Tasker Tips & Tricks

I'm wondering if it's possible to run an app when phone unlocks, but only a set probability of the time..
Right now my profile is Display Unlock
1: Launch App
2: Wait 500ms
3: Back
works fine. But I only want a 1/10 or 1/2 chance etc of that app actually launching.
Ideas? Thanks in advance

mattmedia1 said:
I'm wondering if it's possible to run an app when phone unlocks, but only a set probability of the time..
Right now my profile is Display Unlock
1: Launch App
2: Wait 500ms
3: Back
works fine. But I only want a 1/10 or 1/2 chance etc of that app actually launching.
Ideas? Thanks in advance
Click to expand...
Click to collapse
Would require root + Secure settings plugin

You can do that using variable randomize

Related

Running Nexus one in "Kiosk mode"?

I'm looking to use the Nexus one hardware to create a single purpose device that will run an app at boot up and not allow the user to exit the app. This device will be given to users to take home for days so needs to be tamper-proof. i.e. cannot make calls, cannot SMS, cannot access rest of the OS, etc.
At the Android API level, I believe I can auto-start the app and "disable" the home button but cannot get around the long-press home button recent app list.
One possible solution would be to open it up and physically unplug the buttons' ribbon connector from the PCB.
What I would prefer is to somehow disable the home button using a cooked ROM that will ignore it in this particular app and the app can have some kind of secret way to exit. I do not know how difficult this would be using a rooted Nexus one.
Any input will be greatly appreciated.
Thank you.
You would need to build it from source. (non winzip deving)
If any knowledgeable person get's it it would be pretty easy to boot into recovery and edit system files or wipe it.
The nexus would not be suitable for this because of the nature of the bootloader.
To be honest, I personally think you would be better off building your own device for this. I'm sure that the buttons could be disabled easily enough, but the tamper proof part is a little different.
Main reason:
If you make the device so that you can't boot into recovery, fastboot, or tamper with it in anyway. How would you yourself make any additional modifications to the device?
You guy have some good points.
Maybe it's better off just using rooted stock ROM and set it as home screen then physically disable the hardware buttons. The battery cover will be glued shut to prevent access to SIM and battery anyway
As for making changes to the app, I believe ADK will allow me to update the app through USB. I wonder if its feasible to do auto-update it over network...?
wow your trying to lock the device down sounds like steve jobs lol
would not the best approach to this is to write your app as a home replacement and not show any apps? you could disable access to app drawer and settings, then you would only need to hook/disable home long press.
You wont be able stop a savvy user from flashing something on it easily.
What about setting up a pattern lock and using FLAG_SHOW_WHEN_LOCKED
to display on top of the lock? If the user tries to exit your program they'll be greeted with the pattern lock. Have some timer so your app automatically comes back to the top.
Correct me if I'm wrong, but doesn't the last app list show NO apps if no apps were launched yet?
pikipirs said:
Correct me if I'm wrong, but doesn't the last app list show NO apps if no apps were launched yet?
Click to expand...
Click to collapse
Yes you're right. I've set my app as home screen replacement and after reboot there wasn't any 'recent app' list
Looks like I don't need a custom ROM after all.
Just out of curiosity, what exactly are you doing with the phone that requires it to be tamper proof?
-------------------------------------
Sent via the XDA Tapatalk App
The absolute minimum requirement is that we have a device we can give to a user of any technical proficiency and allow them to easily record videos and post them directly onto a website from anywhere.
[email protected] said:
What about setting up a pattern lock and using FLAG_SHOW_WHEN_LOCKED
to display on top of the lock? If the user tries to exit your program they'll be greeted with the pattern lock. Have some timer so your app automatically comes back to the top.
Click to expand...
Click to collapse
That's an interesting approach, I will have to explore that more.
How can users actually exit the app when it's over the lock screen? Does that mean all buttons including home will not do anything since lock screen is keyguarded? Does touch still register? Is this the workaround that the custom lock screen app uses?
dzeikei said:
Yes you're right. I've set my app as home screen replacement and after reboot there wasn't any 'recent app' list
Looks like I don't need a custom ROM after all.
Click to expand...
Click to collapse
How do you set an app to be the home screen replacement?

[Q] Can Tasker ....

Can Tasker automate the abling and disabling of a security PIN for unlocking the phone? For example, while at home I would like to have no screen lock, but while out I would like more security and so would like a PIN to be required for accessing the phone. Thanks in advance.
Yes it can
Sent from my Nexus S using xda premium
NicholasQ said:
Yes it can
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
Awesome, thanks.
gimiento said:
Can Tasker automate the abling and disabling of a security PIN for unlocking the phone? For example, while at home I would like to have no screen lock, but while out I would like more security and so would like a PIN to be required for accessing the phone. Thanks in advance.
Click to expand...
Click to collapse
That's what I have mine doing. You'll need this also https://market.android.com/details?id=com.intangibleobject.securesettings.plugin
I've tried playing around but couldnt figure out how to do it. Can you tell me how to? Thanks
kjaved373 said:
I've tried playing around but couldnt figure out how to do it. Can you tell me how to? Thanks
Click to expand...
Click to collapse
When I'm off work later tonight I can post step by step instructions. Do you have wifi at home? Because I have mine set so that it knows I'm at home when I'm connected to my home wifi.
thats exactly what I want! I would appreciate it very much!
1. Create new profile - name it whatever you want
2. Under First Context choose State > Net > Wifi Connected
3. Under SSID input your home wifi's network name or if connected to it then just hit the magnifying lens in the upper right and select your home network and hit the green checkmark at the bottom to save it
4. Choose New Task and name it whatever you want.
5. Hit the plus sign to add a new action and choose Plugin > Secure Settings
6. Now hit Edit under Configuration and change Keyguard to either password/pin or pattern lock (depending on what security you've choosen) and select Off (I also check the setting where I've got to enter in my pass code once before it will unlock but that's up to you) and then hit the disk icon in the bottom right to save it and again confirm that you want to save it.
7. Hit the green checkmark again and also on the next screen.
8. Then click on the action you created and choose Add Exit Task and repeat the steps starting at step 4 but this time under Password/Pin or Pattern Lock choose On.
9. Then just keep hitting the green checkmarks until you exit out of Tasker.
I typed this out on my phone on the bus ride home so let me know if it's not clear or I missed a step. And you will need to first install Secure Settings that I linked to earlier.
Awesome, thanks for posting that! I haven't used Tasker, or Locale or any other automating app, so I'm curious, why would one choose Tasker over Locale? I just have a few simple things i want to automate (though that list could grow once I get into it).
gimiento said:
Awesome, thanks for posting that! I haven't used Tasker, or Locale or any other automating app, so I'm curious, why would one choose Tasker over Locale? I just have a few simple things i want to automate (though that list could grow once I get into it).
Click to expand...
Click to collapse
I've never used Locale but before I bought Tasker I read a few reviews comparing the two and it seems that Locale is more user friendly but Tasker is more powerful. But for most everyday uses Locale will probably work fine.
jesusice said:
1. Create new profile - name it whatever you want
2. Under First Context choose State > Net > Wifi Connected
3. Under SSID input your home wifi's network name or if connected to it then just hit the magnifying lens in the upper right and select your home network and hit the green checkmark at the bottom to save it
4. Choose New Task and name it whatever you want.
5. Hit the plus sign to add a new action and choose Plugin > Secure Settings
6. Now hit Edit under Configuration and change Keyguard to either password/pin or pattern lock (depending on what security you've choosen) and select Off (I also check the setting where I've got to enter in my pass code once before it will unlock but that's up to you) and then hit the disk icon in the bottom right to save it and again confirm that you want to save it.
7. Hit the green checkmark again and also on the next screen.
8. Then click on the action you created and choose Add Exit Task and repeat the steps starting at step 4 but this time under Password/Pin or Pattern Lock choose On.
9. Then just keep hitting the green checkmarks until you exit out of Tasker.
I typed this out on my phone on the bus ride home so let me know if it's not clear or I missed a step. And you will need to first install Secure Settings that I linked to earlier.
Click to expand...
Click to collapse
I did exactly as you said and i can't get it to work. Did you clear the lock settings in security before doing this or keep that? Also what rom are you using, that may be the problem for me (elite ics).
I've tried setting a lock, and then connecting to wifi but lock doesn't go away. I also tried having no lock set and turning off wifi, but the lock doesn't show up on the screen.
kjaved373 said:
I did exactly as you said and i can't get it to work. Did you clear the lock settings in security before doing this or keep that? Also what rom are you using, that may be the problem for me (elite ics).
I've tried setting a lock, and then connecting to wifi but lock doesn't go away. I also tried having no lock set and turning off wifi, but the lock doesn't show up on the screen.
Click to expand...
Click to collapse
I didn't think to add that you've also gotta open Secure Settings and select the Helper tab and install the Helper. There's also an option there to download a flashable zip to install the helper (it's gotta be in system to work). I've just gotten so used to flashing the helper every time I flash a new ROM I didn't think of it.
jesusice said:
I didn't think to add that you've also gotta open Secure Settings and select the Helper tab and install the Helper. There's also an option there to download a flashable zip to install the helper (it's gotta be in system to work). I've just gotten so used to flashing the helper every time I flash a new ROM I didn't think of it.
Click to expand...
Click to collapse
Had Helper installed and still didn't work. Btw Helper is for pattern only, you don't need it for pin/password.
I'll try playing around some more tomorrow. Thanks for the help!
I'm very interested in this. If you get this working I may have to break down and buy tasker. Always been curious about it, but never really had a purpose of it til this came up.
Sent from my Nexus S 4G
kjaved373 said:
Had Helper installed and still didn't work. Btw Helper is for pattern only, you don't need it for pin/password.
I'll try playing around some more tomorrow. Thanks for the help!
Click to expand...
Click to collapse
Did you also enable Tasker as a device administrator? This can be found in your phone settings under Security.
jesusice said:
Did you also enable Tasker as a device administrator? This can be found in your phone settings under Security.
Click to expand...
Click to collapse
Didn't have it enabled, but still not working.
actually nothing in tasker is working for me, gonna try locale or the other program.
kjaved373 said:
actually nothing in tasker is working for me, gonna try locale or the other program.
Click to expand...
Click to collapse
/shrug
Sorry, don't know what to tell you. Tasker's working great for me.
tried llama and it kinda worked with built-in actions but not with the secure settings plugin.
Couldn't you also do it by location as well, instead of Wifi connection. Which is basically Locale.
Sent from my Nexus S 4G

[Tutorial] Auto BT Tether - The Tasker Way

So... I´m not a great fan of doing things manually if I don´t have to so the manual toggling of the BT Tether doesn´t do it for me...
So I worked myself to a automatic sollution based on Tasker and Bluetooth Auto Connect
Tasker is available as a free 7-day trial here if you wan´t to try it out before you buy, Bluetooth Auto Connect is all free.
Works like this: If Display is turned on, the Gear waits 20sec (longer than the regular Display timeout), if display is still on after thoose 20sec it turns the BT Tether On and sets the Display timeout to 1 min instead (Optional). When the display turns off again, it waits 1 min, if display is still off, it shuts the Tether Off aswell and returns the display timeout to 15sec again.
So here goes:
1. Download both apps and install on Gear (you should know how it´s made by now) You shouldnt need to do anything with BT Auto Connect, we will trigger it from within Tasker.
2.Start Tasker and select New Profile. Set name to "BT Tether On", choose Event, Display and finally Display On.
3. Create a Task to be triggered by the Profile and set it like this:
Code:
1. Wait 20 seconds
2. If %SCREEN ~ On
3. Bluetooth Auto Connect (Found under Plugins, then click on the Config button, then click Profiles and tick Networking (PAN), go back and click on Devices, click on your device and tick the Networking (PAN) here aswell, back again and click Profile Action, choose Connect)
4. Display timeout 1min (optional)
5. Variable Set %BTtether To On
6. End If
3. Save the Task and back out to Tasker´s Main screen.
4. Create new profile. Set name to "BT Tether Off", choose Event, Display and finally Display Off.
5. Create a Task to be triggered by the Profile and set it like this:
Code:
1. If %BTtether ~On
2. Wait 1 Minute
3. If %SCREEN ~Off
4. Bluetooth Auto Connect (Found under Plugins, then click on the Config button, then click Profiles and tick Networking (PAN), go back and click on Devices, click on your device and tick the Networking (PAN) here aswell, back again and click Profile Action, choose Disconnect)
5. Display Timeout 15 Seconds (optional)
6. Variable Set %BTtether To Off
7. End If
8. End If
That´s about it!
Have only tested this a couple of hours so there might be Bugs in the "code" but have it a try and report back to me if something feels weird.
Happy Tasking!
2013-12-18 - Adding files
Downlod premade profiles here:
BT Tether On
BT Tether Off
After importing, remember to enter the Task and click on Bluetooth Auto Connect and select your BT device in the list.
Cant wait to try on my gear
Sent from my SM-N900T
Nice and simple I like the screen on trigger
That reminds me, should update my thread that has Bluetooth auto tether. Been too busy with trying to get GM on my
nexus amongst other things.
st-tps said:
So... I´m not a great fan of doing things manually if I don´t have to so the manual toggling of the BT Tether doesn´t do it for me...
So I worked myself to a automatic sollution based on Tasker and Bluetooth Auto Connect
Tasker is available as a free 7-day trial here if you wan´t to try it out before you buy, Bluetooth Auto Connect is all free.
Works like this: If Display is turned on, the Gear waits 20sec (longer than the regular Display timeout), if display is still on after thoose 20sec it turns the BT Tether On and sets the Display timeout to 1 min instead (Optional). When the display turns off again, it waits 1 min, if display is still off, it shuts the Tether Off aswell and returns the display timeout to 15sec again.
So here goes:
1. Download both apps and install on Gear (you should know how it´s made by now) You shouldnt need to do anything with BT Auto Connect, we will trigger it from within Tasker.
2.Start Tasker and select New Profile. Set name to "BT Tether On", choose Event, Display and finally Display On.
3. Create a Task to be triggered by the Profile and set it like this:
Code:
1. Wait 20 seconds
2. If %SCREEN ~ On
3. Bluetooth Auto Connect (Found under Plugins, then click on the Config button, then click Profiles and tick Networking (PAN), go back and click on Devices, click on your device and tick the Networking (PAN) here aswell, back again and click Profile Action, choose Connect)
4. Display timeout 1min (optional)
5. Variable Set %BTtether To On
6. End If
3. Save the Task and back out to Tasker´s Main screen.
4. Create new profile. Set name to "BT Tether Off", choose Event, Display and finally Display Off.
5. Create a Task to be triggered by the Profile and set it like this:
Code:
1. If %BTtether ~On
2. Wait 1 Minute
3. If %SCREEN ~Off
4. Bluetooth Auto Connect (Found under Plugins, then click on the Config button, then click Profiles and tick Networking (PAN), go back and click on Devices, click on your device and tick the Networking (PAN) here aswell, back again and click Profile Action, choose Disconnect)
5. Display Timeout 15 Seconds (optional)
6. Variable Set %BTtether To Off
7. End If
8. End If
That´s about it!
Have only tested this a couple of hours so there might be Bugs in the "code" but have it a try and report back to me if something feels weird.
Happy Tasking!
Click to expand...
Click to collapse
Do I need to be rooted to do this? Thanks
Sent from my SM-N900T using XDA Premium 4 mobile app
jhobert said:
Do I need to be rooted to do this? Thanks
Sent from my SM-N900T using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It´s not necessary but as youre forced to have a null_ rom to achieve Bluetooth tether then you´we got root no mather what..
Ok got it. So I really need to root and flash null rom. Cannot use stock.
Sent from my SM-N900T using XDA Premium 4 mobile app
Personally I dont like screen on events.. I prefer to assign the task to a gesture.
Although the screen timeout modification & screen off events are excellent.
Good job on the write up..
fOmey said:
Personally I dont like screen on events.. I prefer to assign the task to a gesture.
Although the screen timeout modification & screen off events are excellent.
Good job on the write up..
Click to expand...
Click to collapse
I don´t really know yet if I like it either, but you have to try it to find out
I may assign the On feature to a button/widget by Tasker and let the Off feature be like above.
We´ll see...
thanks
nice job brother, and thanks for the pm
I've been battling with this for a while, and in the end it was so simple
thanks again
kashortiexda said:
nice job brother, and thanks for the pm
I've been battling with this for a while, and in the end it was so simple
thanks again
Click to expand...
Click to collapse
Sometimes the answer is right in front of your eyes but you don´t see it
Nice work
Sent from my GT-N7100 using Tapatalk
Im so stupid and cant even handle doing this task when all the directions are there...can someone upload it so I can restore it from tasker....for some reason I cant follow the steps. Thank u ro the OP I love the idea but cant get it to work.
Sent from my SPH-L720 using xda app-developers app
I kinda got it to work but without the "end ifs" at the end of the tasks...and theres 2 at the end of the second task....I dont get the reason for it and it wont let me save it like that....
Sent from my SPH-L720 using xda app-developers app
jbarresi19 said:
I kinda got it to work but without the "end ifs" at the end of the tasks...and theres 2 at the end of the second task....I dont get the reason for it and it wont let me save it like that....
Sent from my SPH-L720 using xda app-developers app
Click to expand...
Click to collapse
I´ll break the code down for you with comments:
Code:
1. If %BTtether ~On //Checks IF the Variable BTtether is set to on, If it is, the Tasks below continues, else task is aborted.
2. Wait 1 Minute //Pretty selfexplained.
3. If %SCREEN ~Off //IF Display is still Off after 1 min, the task below continues, else task is aborted
4. Bluetooth Auto Connect //Disconnects the BT Tether
5. Display Timeout 15 Seconds (optional) //Sets new Display Timeout
6. Variable Set %BTtether To Off //Sets BTtether to Off so Tasker knows the state of the BT Tether.
7. End If //Ends "If %SCREEN ~Off "
8. End If // Ends "If %BTtether ~On"
Since we got two If expressions in the code, we need to have two End If´s to decides where thoose IF´s ends.
Seem a little clearer?
In regular programming you have to specify all IF expressions with a start and an end, may look different from language to language though.
Maybe Tasker doesn´t need the End IF if it´s in the End of the code but I want the code to look clean and OK so I put it there to make it right.
Quick Note:
Premade profiles is now available for download in first post.
st-tps said:
Quick Note:
Premade profiles is now available for download in first post.
Click to expand...
Click to collapse
Im really really trying to learn this tasker thing and ur explanation was very good and detailed....thanks so much for the dl links......its so insane how creative people get with tasker and ive been an android user for almost 6 years now and its the first time ive really jumped into it....very cool
EDIT: Is it me or do the download links not work? Just brings me to a page of code.....maybe i just misunderstood i thought these would be able to be imported into tasker..
EDIT2: Nevermind nothing is broken it just me. ....just need to choose tasker and in auto puts it into my tasker profiles....THANKS!!!
Sent from my SPH-L720 using xda app-developers app
Thanks.
Sent from my SM-N9005 using Tapatalk
---------- Post added at 02:47 AM ---------- Previous post was at 02:42 AM ----------
st-tps said:
Quick Note:
Premade profiles is now available for download in first post.
Click to expand...
Click to collapse
Can you tell me plz how to download..
It open xml file when i press on it..
And how to import for Tasker too..
Iam totally noop on this.
Thanks..
Sent from my SM-N9005 using Tapatalk
firasusman said:
Can you tell me plz how to download..
It open xml file when i press on it..
And how to import for Tasker too..
Iam totally noop on this.
Thanks..
Sent from my SM-N9005 using Tapatalk
Click to expand...
Click to collapse
Rightclick -> Save as
You need to change pretences in tasker on gear to not be beginner mode
Then you can long press certain areas and select import (check tasker website for better details)
So far this is really my only tasker profile im using and it works great...just wanna thank you again...works so good
Edit: if you have anybother cool profiles for gear or phone please share...ive been trying to get the wifi on when home but I just cant the cell tower one to work. And dont wanna waste battery using gps.
Sent from my SPH-L720 using xda app-developers app
Im really trying to get my wifi to turn on using the cell tower method and I just cant get it to work.....I let it scan for 15 mins and after I turn my wifi off it wont turn back on. Could I be foing something wrong? Or is there a better way without killing battery?
Sent from my SPH-L720 using xda app-developers app

How to 30 second time delay an apk after boot

Googling but not getting results. Have an app that is set to run at bootup but want to set it to delay and run 30 seconds after bootup.
doitinthedirt said:
Googling but not getting results. Have an app that is set to run at bootup but want to set it to delay and run 30 seconds after bootup.
Click to expand...
Click to collapse
Xposed Module BootManager to kill it from running at boot, then tasker task to launch app 30 secs after boot and then immediately return to home screen maybe?
doitinthedirt said:
Googling but not getting results. Have an app that is set to run at bootup but want to set it to delay and run 30 seconds after bootup.
Click to expand...
Click to collapse
Auto Exec
thanks but not looking for another app... would like to open up the current app and tweek it adding the delay internally in the app..
doitinthedirt said:
thanks but not looking for another app... would like to open up the current app and tweek it adding the delay internally in the app..
Click to expand...
Click to collapse
You are probably looking at a considerable amount of work. Would probably require the full Android SDK, some disassembly knowledge, slight code modification, re-compilation, etc. Also, you probably don't have the necessary keys to properly re-sign the app.
Didn't iKrYpToNiTe already mention that he is going to work on this? My guess is it would be an enormous undertaking to someone who has limited or no development knowledge. If you are patient, I'm sure he will have it out soon. In the mean time, you can just run it manually after boot.
I just like to know how stuff works.. you are probably right... not an easy thing to take on.. might venture into it I did find sites explaining how to design apps.. but I have 0 experience programming..

[MOD] Disable High Volume Warning (no root)

If you're like me you're bummed that we have no root and are missing the abilities of root. Namely having the ability to use Xposed to turn off the annoying high volume warning. The following information aims to restore that functionality without root but requires some work but when you're done it's "set it and forget it.". You will never have to do it again. (Unless you wipe your phone)
I have this running on my phone and it works perfectly. I've attached a screenshot showing that the high volume warning is disabled on my phone. Note there is no popup on my volume slider when it's at max, so it's working. This mod uses Tasker and AutoTools. If you're not familiar with them it's OK, the article I'm linking has a step by step process for creating events and tasks.
Once again this isn't my work. I'm just bringing the information to the masses.
All set? Click here to go to the article. Enjoy!
P.S. You will need to open AutoTools and activate the 30 day trial if you don't have the full version. Then grant it permission, If not this won't work. To get the full version just open AutoTools and clock "Get full version".
***********UPDATE 09/15***********
I have confirmed that you will have to manually "test" this procedure first before it survives a reboot.
To do this:
Open tasker.
Click on the Monitor Start event.
Click on the 30 second task.
Click the "play" button in the lower left corner.
The task will begin manually.
If all is well both of the actions will turn green.
If anything turns red something isn't configured correctly.
***********UPDATE 09/17***********
For those that either don't want to or are having difficulty setting up the profiles I have attached them to this post in XML form, Then all you have to do is give the apps permission in ADB as stated in the article and import the profiles.
To import them into Tasker:
Download the file called "Tasker Profiles.zip" from the link below.
Unzip it and save it anywhere on your internal storage. Open up Tasker and disable Beginner Mode in Preferences.
Then, go back to the main screen and long-press on the “Profile” tab up top. You should see a pop-up with one of the options being “Import.”
Tap on that and browse to where you saved the .prf.xml files and select that file to import.
Repeat for the second profile.
Screenshots for this are attached to this OP.
I have also attached a quick demo video to show that this process works perfectly. No popup.
Credit:
Mishaal Rahman
reboot and see if it still works.
I already tried this and after reboot it still prompts the first time.
I've rebooted several times. It works for me. There is a 30 second delay before the task is executed. That is by design.
Compusmurf said:
reboot and see if it still works.
I already tried this and after reboot it still prompts the first time.
Click to expand...
Click to collapse
Try this to see if everything is set up correctly:
Open tasker.
Click on the Monitor Start event.
Click on the 30 second task.
Click the "play" button in the lower left corner.
The task will begin manually.
If all is well both of the actions will turn green.
If anything turns red something isn't configured correctly.
I've attached screenshots of this procedure.
Also something to consider is that if you have any task killers installed or anything that kills tasks on startup you should add tasker to the ignore list of that app.
Hope this helps.
It's configured correctly. Here is the thing. If you pull the value before without using, then pull the value after clicking ok manually, it is NOT 2, it's 0. This was discussed on the s7 and s8 forums. Odd that yours works and dozens of other folks doesn't.
Sent from my SM-N950U using Tapatalk
I dont know what to tell you. It does work for me just fine as my screen shots show. Sorry it's not working for you.
Can you screenshot your configuration screen? Is the value your sending "int" for integer? It shouldn't matter but what Carrier are you using? I'm Sprint.
One other thing to check is under app permissions ensure that AutoTool has the ability to change system settings. Just running the adb shell pm command isn't enough.
Compusmurf said:
It's configured correctly. Here is the thing. If you pull the value before without using, then pull the value after clicking ok manually, it is NOT 2, it's 0. This was discussed on the s7 and s8 forums. Odd that yours works and dozens of other folks doesn't.
Sent from my SM-N950U using Tapatalk
Click to expand...
Click to collapse
According to the article 0 is 'not configured' 1 is 'disabled' which is what the value would be when you click ok. 2 is 'inactive'.(How this differs from 'not configured' or 'disabled' I do not know). and 3 is 'enabled'. All depending on your mobile country code. Perhaps changing it to 1 will work for you?
Specifically, we will be modifying the System.Global property audio_safe_volume_state both on boot and periodically so Android will always think you have consented to bypass the warning. This property is defined in AOSP, which we’re reproducing below. There are several states this property can take, ranging from 0-3. 30 seconds after boot or after every 20 hours of continuous music playback, the state is set to ‘0’ or ‘not configured.’ It is then set to ‘1’ for ‘disabled’ or ‘3’ for ‘enabled’ depending on your Mobile Country Code. If you live in the E.U., this property is set to ‘3’ by default but is changed to ‘2’ for ‘inactive’ whenever the user manually bypasses the volume warning. We will be changing the value of this property to the ‘inactive’ state (changing it to ‘disabled’ never worked for me, in case you’re wondering).
Click to expand...
Click to collapse
Hope this helps.
This is already built in...Vibration>Volume>3 dots menu in upper right hand corner> Media Volume Limiter> Turn it off.
Namuh said:
This is already built in...Vibration>Volume>3 dots menu in upper right hand corner> Media Volume Limiter> Turn it off.
Click to expand...
Click to collapse
Confirmed.
Going to Settings -> Sound and Vibration -> Volume -> hit the 3 dot menu -> Media Volume Limiter -> Off works.
I came from a Note 4 with Android 5.1.1 that didn't have this feature. I had no idea Samsung finally caved and added it.
Thank you.
Or not. I rebooted again and it does NOT work anymore. I'm really not trusting Samsung with this. The tasker method works every time. Every reboot. See attached screenshots showing it's turned on (and set to max) and still showing this message. I rebooted several times just in case I had a weird reboot. I'm still getting the popup even with it turned on and the max adjusted to the maximum or even with it turned off completely.
I only wish I was wrong. Thanks for the try though.
Yeah will reset after a boot
https://forum.xda-developers.com/showpost.php?p=73802232&postcount=4
marctronixx said:
https://forum.xda-developers.com/showpost.php?p=73802232&postcount=4
Click to expand...
Click to collapse
Yup...so with tasker I don't have to do any of that. I never have to touch it again. It never comes back.
Thanks again though.
I did learn something from this process. When I re-enabled the tasker even it didn't work when I rebooted. So I hit the "play" button that I mentioned earlier to retest the task and once everything turned green I rebooted and it now works again...after every reboot. So I'll add this to the OP that the task must be "tested" after it's set up in order to get it to work.
Even more interesting is who posted it. Compusmurf was the guy who stated in this thread that this did not work for him. Interesting.
I did get it to work finally. I had another tasker/app that was stepping on it.
Compusmurf said:
I did get it to work finally. I had another tasker/app that was stepping on it.
Click to expand...
Click to collapse
Well I also confirmed that when I disabled it and allowed the popup to come back by rebooting simply re-enabling the tasker even then rebooting did not make it work again. I had to "test" it with the play button to get it to work again. So I'm updating the OP to reflect this.
rawintellect said:
Yup...so with tasker I don't have to do any of that. I never have to touch it again. It never comes back.
Thanks again though.
Click to expand...
Click to collapse
Yeah my point of my post was to show the reason why the built in way doesn't work long term. The tasker way is preferred for those who find the nanny thing an annoyance. :good:
System ui tuněr app should be able to do it
Techvir said:
System ui tuněr app should be able to do it
Click to expand...
Click to collapse
I looked at every single screenshot of System UI Tuner in the play store. I saw no option to disable the high volume warning. Only an option to remove the volume icon which isn't the same thing.
Can you show me a screenshot of it working?
I know this process I linked is a long one and I would really love to be shown a better way but until I am this works for non rooted devices every time.

Categories

Resources