using tasker to enable high brightness mode - Nexus 6P General

flar2 has integrated high brightness mode into his awesome kernel! This thread is to show how to use tasker to enable high brightness mode automatically when the phone is in the sun. This is not my doing. I learned this with the great help from italia0101.
steps to follow
1. download and install elementalx version 1.02.
2. download and install high brightness mode widget (https://play.google.com/store/apps/details?id=flar2.hbmwidget&hl=en)
3. Download and install tasker (https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en)
4. Follow the steps below given to me by italia0101 to get tasker to execute high brightness mode in the sun
to get HBM to turn on.......
on the top row you have profiles and tasks ... profile is the trigger for the task to activate. firstly we need a task .
Make sure tasks is selected on the top , press the + and name it HBM
now press the + again and find " run shell"
in command type "echo 1 > /sys/devices/virtual/graphics/fb0/hbm" and tick " use root "
That's your task done
now go back and hit " profile " on the main page, its the first tab
press + ,, choose " state " , go to " variables " , then press " variable values "
on the left box type " %LIGHT , press the box with the wonky line in , change it to "greater than"
on the right put 450
now choose the HBM task
To get HBm to turn off.....
on the top row you have profiles and tasks ... profile is the trigger for the task to activate. firstly we need a task .
Make sure tasks is selected on the top , press the + and name it HBM off
now press the + again and find " run shell"
in command type "echo 0 > /sys/devices/virtual/graphics/fb0/hbm"
That's your task done
now go back and hit " profile " on the main page, its the first tab
press + ,, choose " state " , go to " variables " , then press " variable values "
on the left box type " %LIGHT , press the box with the wonky line in , change it to "less than"
on the right put 450
now choose the HBM off task

GCbard said:
flar2 has integrated high brightness mode into his awesome kernel! This thread is to show how to use tasker to enable high brightness mode automatically when the phone is in the sun. This is not my doing. I learned this with the great help from italia0101.
steps to follow
1. download and install elementalx version 1.02.
2. download and install high brightness mode widget (https://play.google.com/store/apps/details?id=flar2.hbmwidget&hl=en)
3. Download and install tasker (https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en)
4. Follow the steps below given to me by italia0101 to get tasker to execute high brightness mode in the sun
to get HBM to turn on.......
on the top row you have profiles and tasks ... profile is the trigger for the task to activate. firstly we need a task .
Make sure tasks is selected on the top , press the + and name it HBM
now press the + again and find " run shell"
in command type "echo 1 > /sys/devices/virtual/graphics/fb0/hbm" and tick " use root "
That's your task done
now go back and hit " profile " on the main page, its the first tab
press + ,, choose " state " , go to " variables " , then press " variable values "
on the left box type " %LIGHT , press the box with the wonky line in , change it to "greater than"
on the right put 450
now choose the HBM task
To get HBm to turn off.....
on the top row you have profiles and tasks ... profile is the trigger for the task to activate. firstly we need a task .
Make sure tasks is selected on the top , press the + and name it HBM off
now press the + again and find " run shell"
in command type "echo 0 > /sys/devices/virtual/graphics/fb0/hbm"
That's your task done
now go back and hit " profile " on the main page, its the first tab
press + ,, choose " state " , go to " variables " , then press " variable values "
on the left box type " %LIGHT , press the box with the wonky line in , change it to "less than"
on the right put 450
now choose the HBM off task
Click to expand...
Click to collapse
Looks good! just a quick EDIT to the HBM to turn off, it can be a bit neater
the HBM off task is fine, but instead of making another profile we can just add an exit task to the original one
Press and hold the task on your profiles page , ( next to the green arrow )
select exit task
select HBM off

GCbard said:
flar2 has integrated high brightness mode into his awesome kernel! This thread is to show how to use tasker to enable high brightness mode automatically when the phone is in the sun. This is not my doing. I learned this with the great help from italia0101.
steps to follow
1. download and install elementalx version 1.02.
2. download and install high brightness mode widget (https://play.google.com/store/apps/details?id=flar2.hbmwidget&hl=en)
3. Download and install tasker (https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en)
4. Follow the steps below given to me by italia0101 to get tasker to execute high brightness mode in the sun
to get HBM to turn on.......
on the top row you have profiles and tasks ... profile is the trigger for the task to activate. firstly we need a task .
Make sure tasks is selected on the top , press the + and name it HBM
now press the + again and find " run shell"
in command type "echo 1 > /sys/devices/virtual/graphics/fb0/hbm" and tick " use root "
That's your task done
now go back and hit " profile " on the main page, its the first tab
press + ,, choose " state " , go to " variables " , then press " variable values "
on the left box type " %LIGHT , press the box with the wonky line in , change it to "greater than"
on the right put 450
now choose the HBM task
To get HBm to turn off.....
on the top row you have profiles and tasks ... profile is the trigger for the task to activate. firstly we need a task .
Make sure tasks is selected on the top , press the + and name it HBM off
now press the + again and find " run shell"
in command type "echo 0 > /sys/devices/virtual/graphics/fb0/hbm"
That's your task done
now go back and hit " profile " on the main page, its the first tab
press + ,, choose " state " , go to " variables " , then press " variable values "
on the left box type " %LIGHT , press the box with the wonky line in , change it to "less than"
on the right put 450
now choose the HBM off task
Click to expand...
Click to collapse
The paid widget isn't necessary

GCbard said:
[...]
to get HBM to turn on.......
on the top row you have profiles and tasks ... profile is the trigger for the task to activate. firstly we need a task .
Make sure tasks is selected on the top , press the + and name it HBM
now press the + again and find " run shell"
[...]
Click to expand...
Click to collapse
OP: you skipped a step here...
For folks who can't find "run shell," you first have to select "Code" when prompted to select an action category.

GuinnessX said:
OP: you skipped a step here...
For folks who can't find "run shell," you first have to select "Code" when prompted to select an action category.
Click to expand...
Click to collapse
You don't need to do that, you can just search " run " and it'll pop up

Thanks for the guide, I got it to work.
Is there anyway I can disable the Persistent notification on the notification drawer?
I was able to get-rid of the notification icon, but not the notification itself. From all the googling I have done, I think this may not be possible, but Im hoping that someone would know how to

duminduweera said:
Thanks for the guide, I got it to work.
Is there anyway I can disable the Persistent notification on the notification drawer?
I was able to get-rid of the notification icon, but not the notification itself. From all the googling I have done, I think this may not be possible, but Im hoping that someone would know how to
Click to expand...
Click to collapse
Long press the notification until it changes color and 'i' appears on the right hand side. Press the "i" and you should be brought to a settings menu were you can click off all notifications for tasker. That is what I did.

Can anyone post a recipe to have HBM turn on when brightness is set to max but only when the measured ambient light is over a certain threshold?
I've already built a task using the @flar2 HBM toggle (vs on/off) which I use with the notification toggle app called Power Toggles.
Tasker Task:
1) Send Intent > Action = flar2.hbmwidget.TOGGLE_HBM
I then use Power Toggles to add a toggle from the Custom Toggle tab, where I can select Tasker Toggle, and then the task I built above.
I use another app called Swipe-In for volume and brightness gestures, so it would be great to get HBM mode to turn on as I mentioned above based on:
1) Max device brightness
2) Ambient light over specified threshold
Then I would only need to swipe to max brightness and assuming the ambient light was high enough, HBM would automatically kick in. As of now, I swipe down to get the notification tray to open, then tap my toggle above.
Thanks!

OK - I took a stab at building what I described above - here is the XML code:
Code:
TaskerData sr="" dvi="1" tv="4.8m">
<Task sr="task16">
<cdate>1433082451109</cdate>
<edate>1450475568213</edate>
<id>16</id>
<nme>HBM</nme>
<pri>100</pri>
<Kid sr="Kid">
<launchID>36</launchID>
<pkg>com.danarama.extrabrightnesstoggle</pkg>
<vnme>1.0</vnme>
<vnum>2</vnum>
</Kid>
<Action sr="act0" ve="7">
<code>37</code>
<ConditionList sr="if">
<bool0>And</bool0>
<Condition sr="c0" ve="3">
<lhs>%BRIGHT</lhs>
<op>7</op>
<rhs>250</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%LIGHT</lhs>
<op>7</op>
<rhs>450</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">echo 1 > /sys/devices/virtual/graphics/fb0/hbm</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act2" ve="7">
<code>43</code>
<ConditionList sr="if">
<bool0>Or</bool0>
<Condition sr="c0" ve="3">
<lhs>%LIGHT</lhs>
<op>6</op>
<rhs>450</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%BRIGHT</lhs>
<op>6</op>
<rhs>250</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act3" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">echo 0 > /sys/devices/virtual/graphics/fb0/hbm</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Img sr="icn" ve="2">
<nme>hd_aaa_ext_sun</nme>
</Img>
</Task>
</TaskerData>
I use this single task which is associated to two profiles - one for %LIGHT (ambient light) above 450, and one for below 450.
The profile(s) run this HBM task:
1) IF
2) I've set my screen brightness (%BRIGHT) greater than 250, -AND- the ambient brightness (%LIGHT) is GREATER than 450, turn ON HBM
3) ELSE IF
4) I've set my screen brightness (%BRIGHT) less than 250 -OR- the ambient brightness (%LIGHT) is LESS than 250, turn OFF HBM
Not sure if there are any battery implications to having Tasker monitoring the %LIGHT or not...
I wasn't able to associate a profile to %BRIGHT, which is what I tried first. I tested this with my flashlight, and the screen did seem to respond as I hoped!
The only thing which doesn't seem to work is HBM stays on if I lower the brightness manually or not when the screen is still under bright light. I'd hope lowering the brightness would make HBM switch off, but I think because my profile isn't based on %BRIGHT, it isn't running my task again.
Any tips?

ShermanTenor said:
Can anyone post a recipe to have HBM turn on when brightness is set to max but only when the measured ambient light is over a certain threshold?
I've already built a task using the @flar2 HBM toggle (vs on/off) which I use with the notification toggle app called Power Toggles.
Tasker Task:
1) Send Intent > Action = flar2.hbmwidget.TOGGLE_HBM
I then use Power Toggles to add a toggle from the Custom Toggle tab, where I can select Tasker Toggle, and then the task I built above.
I use another app called Swipe-In for volume and brightness gestures, so it would be great to get HBM mode to turn on as I mentioned above based on:
1) Max device brightness
2) Ambient light over specified threshold
Then I would only need to swipe to max brightness and assuming the ambient light was high enough, HBM would automatically kick in. As of now, I swipe down to get the notification tray to open, then tap my toggle above.
Thanks!
Click to expand...
Click to collapse
Can I ask why you need the setting to max brightness? Why not just go on ambient light?
I mean if you need ambient light to be over 450 anyway, why bother with the brightness slider?
Sent from my Nexus 6P using Tapatalk

italia0101 said:
Can I ask why you need the setting to max brightness? Why not just go on ambient light?
I mean if you need ambient light to be over 450 anyway, why bother with the brightness slider?
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
I really want to control if it goes on or not. HBM doesn't allow for any brightness adjustment, so I want to be able to use the brightness slider to trigger HBM when on max brightness in really bright conditions.
Ideally moving the slider away from max brightness should disable HBM. If my profile keyed off %BRIGHT instead, I think it would work the way I'd like.
Is it possible to have profiles trigger based on screen brightness?

ShermanTenor said:
I really want to control if it goes on or not. HBM doesn't allow for any brightness adjustment, so I want to be able to use the brightness slider to trigger HBM when on max brightness in really bright conditions.
Ideally moving the slider away from max brightness should disable HBM. If my profile keyed off %BRIGHT instead, I think it would work the way I'd like.
Is it possible to have profiles trigger based on screen brightness?
Click to expand...
Click to collapse
Not directly, but you may be about to use set variable ?
I. E. When 255 is set (bright ) , set variable to 1,
Then have a profile for variable value,. So when it equals 1 it triggers
Sent from my Nexus 6P using Tapatalk

italia0101 said:
Not directly, but you may be about to use set variable ?
I. E. When 255 is set (bright ) , set variable to 1,
Then have a profile for variable value,. So when it equals 1 it triggers
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Thanks for this, but I'm not sure I follow how this would work. Where would I set the variable? I can add a variable on the tab, but I still can't reference %BRIGHT on a profile, so I'm still unclear how this works.

ShermanTenor said:
Thanks for this, but I'm not sure I follow how this would work. Where would I set the variable? I can add a variable on the tab, but I still can't reference %BRIGHT on a profile, so I'm still unclear how this works.
Click to expand...
Click to collapse
Yea I think I get what you mean, my error, don't think it can work with what I said.
Hmm
Edit - I found a thread discussing this on the Nexus 6, they used " file opened" for the profile, problem is it works differently on marshmallow and I'm not sure it would work
http://forum.xda-developers.com/showpost.php?p=61523656&postcount=23
Sent from my Nexus 6P using Tapatalk

italia0101 said:
Yea I think I get what you mean, my error, don't think it can work with what I said.
Hmm
Edit - I found a thread discussing this on the Nexus 6, they used " file opened" for the profile, problem is it works differently on marshmallow and I'm not sure it would work
http://forum.xda-developers.com/showpost.php?p=61523656&postcount=23
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Ahh - thanks for that. The proper path for brightness on the 6P is:
/sys/devices/virtual/graphics/fb0/mdp/qcom,mdss_fb_primary.182/leds/lcd-backlight
Unfortunately, I can't seem to get Tasker to recognize when I'm adjusting the brightness using this recipe. As you say, it may be a Marshmallow thing...

Here's a quick APK I've knocked together for this,
It checks that the light level is high, then if your auto brightness (or manual) Stage drive the screen over a 95% threshold it kicks in, as soon as ambient drops again it should turn off.
Let me know if it's any use to anyone or not.
https://drive.google.com/a/charlesw...7uFpe6lwVzV1ODBNeGNERVU/view?usp=docslist_api
Changed sharing to anyone, sorry, forgot the android App doesn't like to share outside my Apps domain!
---------- Post added at 04:58 AM ---------- Previous post was at 04:27 AM ----------
Although having said that, I've gone a different way, I've created two tasker profiles, one for on, one for off and in gravitybox I've added a quick launch icon, set it to app task, short press to enable long press to disable. Find it's convenient and simple to turn on and off that way.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here's the xml I'm using, it will toggle HBM on and off from the QM icon
<TaskerData sr="" dvi="1" tv="4.8m">
<Task sr="task15">
<cdate>1450664493779</cdate>
<edate>1450703009456</edate>
<id>15</id>
<nme>Bright Turn On</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%TURNEDON</lhs>
<op>1</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%TURNEDON</Str>
<Str sr="arg1" ve="3">1</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">echo 1 > /sys/devices/virtual/graphics/fb0/hbm</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act3" ve="7">
<code>43</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%TURNEDON</lhs>
<op>0</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act4" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%TURNEDON</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">echo 0 > /sys/devices/virtual/graphics/fb0/hbm</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Img sr="icn" ve="2">
<nme>cust_battery</nme>
</Img>
</Task>
</TaskerData>

the_ape said:
Here's a quick APK I've knocked together for this,
It checks that the light level is high, then if your auto brightness (or manual) Stage drive the screen over a 95% threshold it kicks in, as soon as ambient drops again it should turn off.
Let me know if it's any use to anyone or not.
https://drive.google.com/a/charlesw...7uFpe6lwVzV1ODBNeGNERVU/view?usp=docslist_api
Changed sharing to anyone, sorry, forgot the android App doesn't like to share outside my Apps domain!
---------- Post added at 04:58 AM ---------- Previous post was at 04:27 AM ----------
Although having said that, I've gone a different way, I've created two tasker profiles, one for on, one for off and in gravitybox I've added a quick launch icon, set it to app task, short press to enable long press to disable. Find it's convenient and simple to turn on and off that way.
View attachment 3583572
Here's the xml I'm using, it will toggle HBM on and off from the QM icon
<TaskerData sr="" dvi="1" tv="4.8m">
<Task sr="task15">
<cdate>1450664493779</cdate>
<edate>1450703009456</edate>
<id>15</id>
<nme>Bright Turn On</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%TURNEDON</lhs>
<op>1</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%TURNEDON</Str>
<Str sr="arg1" ve="3">1</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">echo 1 > /sys/devices/virtual/graphics/fb0/hbm</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act3" ve="7">
<code>43</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%TURNEDON</lhs>
<op>0</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act4" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%TURNEDON</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">echo 0 > /sys/devices/virtual/graphics/fb0/hbm</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Img sr="icn" ve="2">
<nme>cust_battery</nme>
</Img>
</Task>
</TaskerData>
Click to expand...
Click to collapse
Nice, thanks for this
Sent from my Nexus 6P using Tapatalk

italia0101 said:
Nice, thanks for this
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
No problems, was 4am when I knocked it together though, hence why I changed the need to longpress to de-activate. and why the tasker profile just toggles now. After playing with a few solutions for it, having a quick button in the shortcuts to toggle on and off is easiest solution, as doesn't require you to have the screen at full brightness.

GCbard said:
flar2 has integrated high brightness mode into his awesome kernel! This thread is to show how to use tasker to enable high brightness mode automatically when the phone is in the sun. This is not my doing. I learned this with the great help from italia0101.
steps to follow
1. download and install elementalx version 1.02.
2. download and install high brightness mode widget (https://play.google.com/store/apps/details?id=flar2.hbmwidget&hl=en)
3. Download and install tasker (https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en)
4. Follow the steps below given to me by italia0101 to get tasker to execute high brightness mode in the sun
to get HBM to turn on.......
on the top row you have profiles and tasks ... profile is the trigger for the task to activate. firstly we need a task .
Make sure tasks is selected on the top , press the + and name it HBM
now press the + again and find " run shell"
in command type "echo 1 > /sys/devices/virtual/graphics/fb0/hbm" and tick " use root "
That's your task done
now go back and hit " profile " on the main page, its the first tab
press + ,, choose " state " , go to " variables " , then press " variable values "
on the left box type " %LIGHT , press the box with the wonky line in , change it to "greater than"
on the right put 450
now choose the HBM task
To get HBm to turn off.....
on the top row you have profiles and tasks ... profile is the trigger for the task to activate. firstly we need a task .
Make sure tasks is selected on the top , press the + and name it HBM off
now press the + again and find " run shell"
in command type "echo 0 > /sys/devices/virtual/graphics/fb0/hbm"
That's your task done
now go back and hit " profile " on the main page, its the first tab
press + ,, choose " state " , go to " variables " , then press " variable values "
on the left box type " %LIGHT , press the box with the wonky line in , change it to "less than"
on the right put 450
now choose the HBM off task
Click to expand...
Click to collapse
I believe in the exit task you need to check "use root" as well.

the_ape said:
Here's a quick APK I've knocked together for this,
It checks that the light level is high, then if your auto brightness (or manual) Stage drive the screen over a 95% threshold it kicks in, as soon as ambient drops again it should turn off.
Let me know if it's any use to anyone or not.
https://drive.google.com/a/charlesw...7uFpe6lwVzV1ODBNeGNERVU/view?usp=docslist_api
Changed sharing to anyone, sorry, forgot the android App doesn't like to share outside my Apps domain!
---------- Post added at 04:58 AM ---------- Previous post was at 04:27 AM ----------
Although having said that, I've gone a different way, I've created two tasker profiles, one for on, one for off and in gravitybox I've added a quick launch icon, set it to app task, short press to enable long press to disable. Find it's convenient and simple to turn on and off that way.
View attachment 3583572
Here's the xml I'm using, it will toggle HBM on and off from the QM icon
<TaskerData sr="" dvi="1" tv="4.8m">
<Task sr="task15">
<cdate>1450664493779</cdate>
<edate>1450703009456</edate>
<id>15</id>
<nme>Bright Turn On</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%TURNEDON</lhs>
<op>1</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%TURNEDON</Str>
<Str sr="arg1" ve="3">1</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">echo 1 > /sys/devices/virtual/graphics/fb0/hbm</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act3" ve="7">
<code>43</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%TURNEDON</lhs>
<op>0</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act4" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%TURNEDON</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>123</code>
<Str sr="arg0" ve="3">echo 0 > /sys/devices/virtual/graphics/fb0/hbm</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Img sr="icn" ve="2">
<nme>cust_battery</nme>
</Img>
</Task>
</TaskerData>
Click to expand...
Click to collapse
So with app do we still need tasker?

Related

[APP - unsolved] - youtube preloading settings

Does anyone know if it is possible to change the preload settings in the new youtube app? I would like the ability to preload a lot more than it currently is.
The youtube.xml had some interesting properties that I think if tweaked would allow for more storage of offline videos. It also had some other interesting properties.
Code:
<long name="prefetch_last_not_used_notification_time" value="1341515076733" />
<boolean name="show_channel_store_turorial" value="false" />
<boolean name="prefetch_watch_later" value="true" />
<boolean name="download_only_while_charging" value="true" />
<int name="transfer_max_connections" value="3" />
<int name="session_summary" value="1" />
<long name="prefetch_last_local_playback_time" value="1342121116028" />
<int name="download_max_rate" value="131072" />
<int name="session_watch_count" value="0" />
<int name="last_ad_delay" value="420000" />
<boolean name="prefetch_subscriptions" value="true" />
<string name="prefetch_quota">512</string>
<boolean name="promo_fullscreen" value="true" />
<long name="last_ad_time" value="1339645854411" />
I think the entry that needs to change is prefetch_quota. I'll be changing mine to 1024 and report back. Another interesting one is transfer_max_connections as well as download_max_rate. The 131072 value for download_max_rate I believe is in bytes or it is also 128kb which aligns with what some other users have noticed.
Thanks.
So after changing the value to 1024 and letting it sit for a night on the charger the file was automatically changed back to 512.
I'm going to try transfer_max_connections and i set mine to 8 next.
I have a feeling 'prefetch_quota' refers to the 'prefetch_subscriptions' line above it. It seems to me that that setting refers to how much to load from your subscriptions, as opposed to buffering a video more before starting to play or preloading more of the general video index.
I'm not sure what you mean by 'preload more than it is', though, so maybe that's what you want.
Good luck.
g
its only for your subscriptions
It still isn't preloading as much as I'd like it too. I'll mess with some more settings over the weekend.
iconeo said:
It still isn't preloading as much as I'd like it too. I'll mess with some more settings over the weekend.
Click to expand...
Click to collapse
Thanks for investigating this. Have you been able to determine which directory or folder Youtube is preloading the cache to?

Anyone Have a Do Not Disturb-ish/Blocking Mode Profile That Works on Tasker?

Like the title says, I'm looking for something that will allow me to still get calls when my phone is charging at night, but not get any notification sounds. I tried to set one up, but couldn't get it to work. If anyone could help me out, it would be GREATLY appreciated.
Thanks!
<TaskerData sr="" dvi="1" tv="4.1u3m">
<Profile sr="prof92" ve="2">
<cdate>1371021166430</cdate>
<clp>true</clp>
<edate>1372607911990</edate>
<id>92</id>
<mid0>91</mid0>
<mid1>96</mid1>
<nme>Sleeping</nme>
<Time sr="con0">
<fh>19</fh>
<fm>0</fm>
<th>9</th>
<tm>0</tm>
</Time>
<Loc sr="con1">
<cname>Home Net</cname>
<lat>32.000000</lat>
<long>-110.000000</long>
<prv>2</prv>
<rad>5000.0</rad>
</Loc>
<State sr="con2">
<code>10</code>
<Int sr="arg0" val="0"/>
</State>
</Profile>
<Task sr="task91">
<cdate>1348688878922</cdate>
<edate>1372073757851</edate>
<id>91</id>
<nme>Mute Night</nme>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>305</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act1" ve="3">
<code>308</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act2" ve="3">
<code>22240</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.twofortyfouram.locale.intent.extra.BLURB>Reading: nothing.
</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<ekawas.blogspot.com.extra.access>false</ekawas.blogspot.com.extra.access>
<ekawas.blogspot.com.extra.access-type>java.lang.Boolean</ekawas.blogspot.com.extra.access-type>
<ekawas.blogspot.com.extra.aq>false</ekawas.blogspot.com.extra.aq>
<ekawas.blogspot.com.extra.aq-type>java.lang.Boolean</ekawas.blogspot.com.extra.aq-type>
<ekawas.blogspot.com.extra.calendar>false</ekawas.blogspot.com.extra.calendar>
<ekawas.blogspot.com.extra.calendar-type>java.lang.Boolean</ekawas.blogspot.com.extra.calendar-type>
<ekawas.blogspot.com.extra.caller>false</ekawas.blogspot.com.extra.caller>
<ekawas.blogspot.com.extra.caller-type>java.lang.Boolean</ekawas.blogspot.com.extra.caller-type>
<ekawas.blogspot.com.extra.ecid>true</ekawas.blogspot.com.extra.ecid>
<ekawas.blogspot.com.extra.ecid-type>java.lang.Boolean</ekawas.blogspot.com.extra.ecid-type>
<ekawas.blogspot.com.extra.gmail>false</ekawas.blogspot.com.extra.gmail>
<ekawas.blogspot.com.extra.gmail-type>java.lang.Boolean</ekawas.blogspot.com.extra.gmail-type>
<ekawas.blogspot.com.extra.gtalk>false</ekawas.blogspot.com.extra.gtalk>
<ekawas.blogspot.com.extra.gtalk-type>java.lang.Boolean</ekawas.blogspot.com.extra.gtalk-type>
<ekawas.blogspot.com.extra.k9>false</ekawas.blogspot.com.extra.k9>
<ekawas.blogspot.com.extra.k9-type>java.lang.Boolean</ekawas.blogspot.com.extra.k9-type>
<ekawas.blogspot.com.extra.sms>false</ekawas.blogspot.com.extra.sms>
<ekawas.blogspot.com.extra.sms-type>java.lang.Boolean</ekawas.blogspot.com.extra.sms-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">ekawas.blogspot.com</Str>
<Str sr="arg2" ve="3">Enhanced SMS & Caller ID</Str>
</Action>
<Action sr="act3" ve="3">
<code>20</code>
<App sr="arg0">
<appClass>com.sec.android.app.clockpackage.deskclock.CradleMain</appClass>
<appPkg>com.sec.android.app.clockpackage</appPkg>
<label>Desk clock</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
</Action>
<Img sr="icn" ve="2">
<nme>hd_device_access_volume_muted</nme>
</Img>
</Task>
<Task sr="task96">
<cdate>1371021733981</cdate>
<edate>1371047524430</edate>
<id>96</id>
<nme>Weather</nme>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="1"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act1" ve="3">
<code>20</code>
<App sr="arg0">
<appClass>com.handmark.expressweather.MainActivity</appClass>
<appPkg>com.handmark.expressweather</appPkg>
<label>1Weather</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
Anytime near home based on network location, YOU WILL NEED TO CHANGE THIS TO YOUR LOCATION
between 7pm and 9am,
and plugged in and charging...
sets sounds the way I want,
phone calls ring through and others are silent,
launches desktop dock clock
IN THIS TASK, YOU WILL WANT TO DELETE THE SECTION REFERENCING Enhanced SMS & Caller ID
on exit (in the morning when uplugged)
launch my weather app so I can see if it's going to rain or not
IN THIS TASK YOU WILL WANT TO EDIT IT TO LAUNCH YOUR FAVORITE WEATHER APP, OR JUST DELETE THAT TASK COMPLETELY
Please read forum rules before posting
Questions and help issues go in Q&A and Help section
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator

Play Store Search Results Problem Despite Efforts - Exact Name Ranking Very Low

The app was published about a month ago, and when I do a search for the exact name of the app Turbo Verse it ranks very low 25th at the highest, currently its #92.
I understand the basic SEO rules for the play store (downloads, rankings, compatibility etc.) but I feel this is an anomaly because this is the only app in the entire store that contains the words Turbo and Verse in the title and I can see no reason why it shouldnt be ranked very high for the exact name.
I was thinking it may have something to with the manifest so I will post it below, I have 18 reviews, mostly positive and over 100 downloads.
The full name of the App as it appears in the store is: Turbo Verse KJV - Bible Memory but I am only typing in the first part: Turbo Verse, but when I type the whole name into the search its still ranking about 9 or 10th
I would really appreciate any advice, I am a new developer and I would like to learn from my mistakes.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="url removed because I can post a link in this forum"
package="com.turboverse.scripturememory"
android:versionCode="2"
android:versionName="1.01" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="10" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:description="@string/appDescription"
>
<activity
android:name="com.turboverse.scripturememory.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:launchMode="singleTop" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".RequestVerse" android:screenOrientation="portrait" />
<activity android:name=".ByReferenceBookList" android:screenOrientation="portrait" />
<activity android:name=".ByTopicList" android:screenOrientation="portrait" />
<activity android:name=".Chapters" android:screenOrientation="portrait" />
<activity android:name=".Verses" android:screenOrientation="portrait" />
<activity android:name=".PlayVerse" android:screenOrientation="portrait" />
<activity android:name=".MyVersesList" android:screenOrientation="portrait" />
<activity android:name=".ChapterVerses" android:screenOrientation="portrait" />
<activity android:name=".UpdateDownloadVerses" android:screenOrientation="portrait" />
<service android:name=".TurboVerseService" />
</application>
<!-- application android:name="GlobalObjects" android:label="@string/app_name" /-->
<uses-permission android:name="android.permission.WAKE_LOCK"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"><group gid="media_rw"></group></uses-permission>
<supports-screens android:resizeable="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
</manifest>

Turn off notification noise when wireless charging?

Is there a way to turn off the notification noise the phone makes when you place it on a wireless charger? I have a charging pad on my desk and I pick it up and respond to texts, etc a fair amount and it gets annoying hearing that noise every time. Yes, I can just set it to vibrate or silent, but I would still like to have the notification sound for all other notifications.
thanks in advance.
same problem here
Same issue here with exact reasons. Would like to know the answer to this. Rooting is not an option. Haven't Samsung tested this in the real world to know how the sound gets annoying when you frequently put on and off the phone on the pad??
Thanks in advance!
Settings/Sound/Volume
set System to 0
rocolema said:
Settings/Sound/Volume
set System to 0
Click to expand...
Click to collapse
That doesn't work, the charging sound is linked to the notification volume.
So turning off notification volume is not a workable fix
Only solution I have found is to use Do Not Disturb feature in settings for the hours of 11pm to 6am
mddmx said:
Only solution I have found is to use Do Not Disturb feature in settings for the hours of 11pm to 6am
Click to expand...
Click to collapse
I dont have an issue at night, I use do not disturb already.
its during the day when I want to hear a notification noise for actual notifications, just not the sound it makes when I set it on the charging pad since I pick it up and reply to notifications regularly.
Mine is doing strange things. I put my phone on charging pad - makes a sound and that in about a minute gives me the same sound, like someone just put it on the charger again. Then this happens for the rest of the charging. every minute. What is going ON.
I just bought another wireless charger , and it's the same.
Any thoughts
I think what happens is the phone stops accepting a charge when it's 100% then it drops a few percent, and then starts again.
dumb.
I've not found a way to turn this sound off either. Very annoying.
yes..flash my Rom
I found a way to disable the charging sound via Tasker...
This Tasker profile essentially waits for a charging (powered) state, mutes notifications for 2 seconds, then returns the notification volume back to where it was. It has been working great for me.
Code:
Profile: Disable Charge Sounds (11)
State: Power [ Source:Any ]
Enter: Temporary Mute (7)
A1: Variable Set [ Name:%OLDVOLN To:%VOLN Do Maths:eek:ff Append:eek:ff ]
A2: Notification Volume [ Level:0 Display:eek:ff Sound:eek:ff ]
A3: Popup [ Title: Text:Temporarily Muting Background Image: Layout:Popup Timeout (Seconds):3 Show Over Keyguard:eek:n ]
A4: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A5: Notification Volume [ Level:%OLDVOLN Display:eek:ff Sound:eek:ff ]
here is the xml if you want to try to import to tasker:
Code:
<TaskerData sr="" dvi="1" tv="4.7u3m">
<Profile sr="prof11" ve="2">
<cdate>1437678878460</cdate>
<clp>true</clp>
<edate>1438118899355</edate>
<id>11</id>
<mid0>7</mid0>
<nme>Disable Charge Sounds</nme>
<State sr="con0" ve="2">
<code>10</code>
<Int sr="arg0" val="0"/>
</State>
</Profile>
<Task sr="task7">
<cdate>1437670118224</cdate>
<edate>1438118816485</edate>
<id>7</id>
<nme>Temporary Mute</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%OLDVOLN</Str>
<Str sr="arg1" ve="3">%VOLN</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>305</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>550</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">Temporarily Muting</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3">Popup</Str>
<Int sr="arg4" val="3"/>
<Int sr="arg5" val="1"/>
</Action>
<Action sr="act3" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>305</code>
<Int sr="arg0">
<var>%OLDVOLN</var>
</Int>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
change the file
i had the same issue ...
u must change the file "WirelessChargingStarted" in system media ui and replace with the file below ( put permission or not work)
so no more sound
( if delete and no put another file there is another sound horizont)
montafede said:
i had the same issue ...
u must change the file "WirelessChargingStarted" in system media ui and replace with the file below ( put permission or not work)
so no more sound
( if delete and no put another file there is another sound horizont)
Click to expand...
Click to collapse
I assume you are rooted? I didn't have permissions to rename or replace the file. By the way, are you replacing it because of Knox or what?
pingpong no lose guaranty knox 0 0
Please run the following command in your shell...
Code:
montafede --verbose
Thank you thank you thank you!
gg48gg said:
I found a way to disable the charging sound via Tasker...
This Tasker profile essentially waits for a charging (powered) state, mutes notifications for 2 seconds, then returns the notification volume back to where it was. It has been working great for me.
Code:
Profile: Disable Charge Sounds (11)
State: Power [ Source:Any ]
Enter: Temporary Mute (7)
A1: Variable Set [ Name:%OLDVOLN To:%VOLN Do Maths:eek:ff Append:eek:ff ]
A2: Notification Volume [ Level:0 Display:eek:ff Sound:eek:ff ]
A3: Popup [ Title: Text:Temporarily Muting Background Image: Layout:Popup Timeout (Seconds):3 Show Over Keyguard:eek:n ]
A4: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A5: Notification Volume [ Level:%OLDVOLN Display:eek:ff Sound:eek:ff ]
here is the xml if you want to try to import to tasker:
Code:
<TaskerData sr="" dvi="1" tv="4.7u3m">
<Profile sr="prof11" ve="2">
<cdate>1437678878460</cdate>
<clp>true</clp>
<edate>1438118899355</edate>
<id>11</id>
<mid0>7</mid0>
<nme>Disable Charge Sounds</nme>
<State sr="con0" ve="2">
<code>10</code>
<Int sr="arg0" val="0"/>
</State>
</Profile>
<Task sr="task7">
<cdate>1437670118224</cdate>
<edate>1438118816485</edate>
<id>7</id>
<nme>Temporary Mute</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%OLDVOLN</Str>
<Str sr="arg1" ve="3">%VOLN</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>305</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>550</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">Temporarily Muting</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3">Popup</Str>
<Int sr="arg4" val="3"/>
<Int sr="arg5" val="1"/>
</Action>
<Action sr="act3" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>305</code>
<Int sr="arg0">
<var>%OLDVOLN</var>
</Int>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
Click to expand...
Click to collapse
Seriously, thank you!
The tasker profile is only working sometimes for me now, unfortunately. I think it has to do with how fast tasker is able to respond to the "charging" event. Sometimes playing the audio wins out in priorities, and the annoying sound plays. I chatted with Samsung online about this and below is their official response to this issue. In short, they recommend removing the phone from the charger when the battery is full, regardless of charging method. This is consistent with the online user guide as well. This is unfortunate, since most of us charge our phones overnight on our nightstands or desks.
Chat InformationPlease wait for a Samsung Agent to respond.
Chat InformationYou are now chatting with 'Vinny'. There will be a brief survey at the end of our chat to share feedback on my performance today.
Chat InformationYour Issue ID for this chat is LTK11256012002924X
Vinny: Hi, thank you for contacting Samsung Technical Support. How may I help you today?
Me: Hi, I am having an issue when wirelessly charging my S6...
Vinny: Hello
Me: hi
Me: hen it becomes fully charged it keeps making the charging sound every few minutes. It is annoying.
Me: many people are reporting the same issue on several forums
Vinny: I am sorry to know that you are facing issues with the wirelessly charging pad.
Vinny: I will be glad to assist you in this regard.
Vinny: May I ask you a few questions to assist you better?
Me: please
Me: Don't worry, I will stay with you throughout the chat session so we can complete the conversation.
Vinny: May I know the model number of your device? You can find the model number at the rear panel of your device.
Me: I have model sm-g920azkfatt
Vinny: Thank you for the model number.
Vinny: I checked with my resources, I see that it is the default feature set, when the device is fully charged to 100% it is suggest to remove the phone as it may effect the device battery.
Me: so wireless charging is not recommended for overnight use?
Vinny: I'm sorry for the delay. I'll be right with you.
Vinny: Yes, you are correct , charging the device to overnight may effect the device battery life. so it is recommended to remove the phone once the device reaches to 100%.
Vinny: I can understand the inconvenience caused to you, but I request you not to charge the device full overnight.
Me: this is only for wireless charging correct?
Vinny: No , it is recommended not to charge the device for full night with the wall charger.
Vinny: Please unplug the phone once it gets to 100% battery life and not to charge the device for whole night.
Me: My understanding is that it is safe to leave the phone on a wired charger and that the phone is designed not to overcharge the battery.
Vinny: Thank you for waiting. I'll be with you in just a moment.
Vinny: I will be right with you.
Vinny: Thank you for waiting. I'll be with you in just a moment.
Vinny: Yes, I can understand your requirements , It is not recommended to charge the device for overnight, as it will stop charging the device after 100% but the device get to get warm if it is connected to wall charger or the wireless charging pad and it may effect the battery life.
Me: OK, is there a way to disable the charging sound?
Vinny: No , there is no option to disable the sound on the Charging pad if the device reaches to 100
Vinny: No , there is no option to disable the sound on the Charging pad if the device reaches to 100% charging, it is the default sound notification set.
Vinny: If there was any other option I would have surely provided you with that.
Me: OK, thank you for your assistance.
Vinny: You're welcome. Is there anything else I can assist you with?
Vinny: May I help you with anything else?
Vinny: Not to rush you, are we still connected on the chat?
Me: yes
Me: no thank you. Goodbye.
Doesn't work on S7 w/Marshmallow?
Hi.. First, thank you. I am fairly new to Tasker, beyond some basics, so learned a couple things. This half works for me. Everything executes OK, except that the notification volume doesn't get turned down (to zero) before the chime, which I set the phone on the wireless charger. The chime occurs while Tasker is executing this profile, but before the volume is turned down. Anyone else noticing this?
gg48gg said:
I found a way to disable the charging sound via Tasker...
This Tasker profile essentially waits for a charging (powered) state, mutes notifications for 2 seconds, then returns the notification volume back to where it was. It has been working great for me.
Code:
Profile: Disable Charge Sounds (11)
State: Power [ Source:Any ]
Enter: Temporary Mute (7)
A1: Variable Set [ Name:%OLDVOLN To:%VOLN Do Maths:eek:ff Append:eek:ff ]
A2: Notification Volume [ Level:0 Display:eek:ff Sound:eek:ff ]
A3: Popup [ Title: Text:Temporarily Muting Background Image: Layout:Popup Timeout (Seconds):3 Show Over Keyguard:eek:n ]
A4: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A5: Notification Volume [ Level:%OLDVOLN Display:eek:ff Sound:eek:ff ]
here is the xml if you want to try to import to tasker:
Code:
<TaskerData sr="" dvi="1" tv="4.7u3m">
<Profile sr="prof11" ve="2">
<cdate>1437678878460</cdate>
<clp>true</clp>
<edate>1438118899355</edate>
<id>11</id>
<mid0>7</mid0>
<nme>Disable Charge Sounds</nme>
<State sr="con0" ve="2">
<code>10</code>
<Int sr="arg0" val="0"/>
</State>
</Profile>
<Task sr="task7">
<cdate>1437670118224</cdate>
<edate>1438118816485</edate>
<id>7</id>
<nme>Temporary Mute</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%OLDVOLN</Str>
<Str sr="arg1" ve="3">%VOLN</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>305</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>550</code>
<Str sr="arg0" ve="3"/>
<Str sr="arg1" ve="3">Temporarily Muting</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3">Popup</Str>
<Int sr="arg4" val="3"/>
<Int sr="arg5" val="1"/>
</Action>
<Action sr="act3" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>305</code>
<Int sr="arg0">
<var>%OLDVOLN</var>
</Int>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
Click to expand...
Click to collapse

Screen Orientation is not changing in Manifest file.

I am not getting the desired output. Please correct me where I am wrong. This is my Manifest file.
<activity
android:name=".Main2Activity"
android:label="@String/app_name"
android:theme="@Style/AppTheme.NoActionBar">
android:screenOrientation="Landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Thanks
According to the Android docs, it is "android:screenOrientation="landscape" - so better avoid the uppercase "L".
This attribute is not enough to keep your app in landscape mode. You need to prevent the system from rotating your view. You need to indicate that your activity will handle screen rotation by itself. Add
android:configChanges="orientation|screenSize"
to <activity>.
See the docs at https://developer.android.com/guide/topics/manifest/activity-element.html#config .

Categories

Resources