[Guide] scheduling extreme power saving mode using LLAMA! - One (M7) Q&A, Help & Troubleshooting

This guide is for those who want to use this mode other than the battery reaching 20%
or want to automate this mode when screen is off as in this simple example where after 40 mins the mode will be activated
There are screenshots in post #2 step by step
First u need sense 6 rom and of cos u need to be rooted
U need "Llama" and "Secure settings" both being free apps from playstore
i am using Llama as its easier to use
Steps
1) Just open llama , new event
2) add condition as screen off ( with delayed event 40 mins) , choose action , local plugin, secure settings , options , launch activity , power , choose app first, then choose from dropdown list [Power].extremepowersaver.Extremepowersaveractivityconfirm ( if u can see the words being too long just tilt and use landscape mode)
Save yr llama event. thats it.
Edit: macrodroid is better to use than llama as it does it not do cell polling And can use shake device feature Just follow the same steps

Here are the steps

When I try to test the action I get a message saying that secure settings does not have permission. I'm also not rooted

racingmatt1 said:
When I try to test the action I get a message saying that secure settings does not have permission. I'm also not rooted
Click to expand...
Click to collapse
U need to be rooted for some parts of secure settings to work and also Llama
However for now u can try this
http://forum.xda-developers.com/showthread.php?t=2820169

Thanks for the post, it really helps me in Tasker, but I need to put an Exit task to do the opposite; i.e. to close the Power Saver mode?

mrtarrouk said:
Thanks for the post, it really helps me in Tasker, but I need to put an Exit task to do the opposite; i.e. to close the Power Saver mode?
Click to expand...
Click to collapse
Unfortunately I haven't figured out how to do this. Try using the application state
Sent from my HTC One using XDA Free mobile app

Thanks for your response, but I will appreciate if you told me what is application state?

mrtarrouk said:
Thanks for your response, but I will appreciate if you told me what is application state?
Click to expand...
Click to collapse
well dont bother anyway , it doesnt really work .

Update : macrodroid app also works . Better to use macrodroid
Sent from [ROM][PORT] Android 4.4.4 | Sense 6 | 3.28.401.7 | ART | Stable

Related

G-button set as... my first small project

Project for V30B
G-button set as a turn on and turn off airplane mode button. Doesnt matter of smartphone display is blocked or not.
I wanna create zip file which I will flash later from cwm recovery.
I have no idea how to start and what I should do. I need your help. For help I will send website in private message where you can download any music for free without registration or website with watching newest movies for free.
1adamek said:
Project for V30B
G-button set as a turn on and turn off airplane mode button. Doesnt matter of smartphone display is blocked or not.
I wanna create zip file which I will flash later from cwm recovery.
I have no idea how to start and what I should do. I need your help. For help I will send website in private message where you can download any music for free without registration or website with watching newest movies for free.
Click to expand...
Click to collapse
With all respect, I think is kinda useless
1adamek said:
Project for V30B
G-button set as a turn on and turn off airplane mode button. Doesnt matter of smartphone display is blocked or not.
I wanna create zip file which I will flash later from cwm recovery.
I have no idea how to start and what I should do. I need your help. For help I will send website in private message where you can download any music for free without registration or website with watching newest movies for free.
Click to expand...
Click to collapse
Check the files in here system\usr\keylayout\
Here are the files that control the G button (key 95). Depending on the you are using, it is one file or another...
Re: G-button set as... my first project
danielr18 said:
With all respect, I think is kinda useless
Click to expand...
Click to collapse
I think it would be useful, at work I encounter tons of dead spots.
Sent from my OptimusBlack using xda app-developers app
I think the problem is you can only map the G-button to default keys in android, like keys on keyboard (A-Z, space, enter...) and a few other function keys (power, volume...), to toggle airplane mode you probably need to create a app to do it.
Heuxxx remaped this button to turn on camera. Camera is an app. So I have found app to turn on and turn off airplane mode.
https://play.google.com/store/apps/details?id=net.oxdb.Airplane
Here I have Huexxx zip file. And I know that I need to put file there /system/usr/keylayout
http://d-h.st/za3
But how change this file to run my app ?
The difference is : Camera is one of the function key I mentioned above (because obviously some android phone does have a camera button)
the modification in keylayout file does not make it call specific app, it only activate camera button function in android, i.e. open default camera app and take pictures.
fjsw said:
I think the problem is you can only map the G-button to default keys in android, like keys on keyboard (A-Z, space, enter...) and a few other function keys (power, volume...), to toggle airplane mode you probably need to create a app to do it.
Click to expand...
Click to collapse
I fear so. Maybe try 'key 95 VOLUME_MUTE', sure that is not airplane mode and I don't even know if it works.
In this rom http://forum.xda-developers.com/showthread.php?t=1826777 we can do that (Press G to open an app). Hope this can help
PS: Download ver4.2.1. It's the most stable ones

[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

[Q] Airdroid 2.1.0 question

Hi guys this is my first post on XDA. I'm currently testing new apps, and I recently encountered a situation in my OPO with the airdroid.
I don't know if it's normal, but in Airdroid 2.1.0 whenever I log out the application, the process is still running in the background. How can I turn off that process without need to go to the Definitions > applications > In execution and stop it from there .
With Best regards
Have you taken a look in options to see if the appropriate options are checked.
I believe it runs in the background because push service a s push mirror to work
lol go back to app and press back button it will say exit say yes and its done
skedone said:
lol go back to app and press back button it will say exit say yes and its done
Click to expand...
Click to collapse
That solved the problem. Thank you

apps keep closing

Hi,
unfortunately i got some problems with memory
when i leave app and go to home , app close and i wont get any notifications, for example when i chat in telegram, i press home button to switch to other app and when i do that, telegram close and i don't get any notification until i open that again, another example: im talkin in whats app (voice call) and when i press home button, call aborts
also i've checked "don't keep activities" but its off
is there any solution to fix this without resetting/wiping/rooting phone ?
p.s : sorry for lack of english skills
pekz said:
Hi,
unfortunately i got some problems with memory
when i leave app and go to home , app close and i wont get any notifications, for example when i chat in telegram, i press home button to switch to other app and when i do that, telegram close and i don't get any notification until i open that again, another example: im talkin in whats app (voice call) and when i press home button, call aborts
also i've checked "don't keep activities" but its off
is there any solution to fix this without resetting/wiping/rooting phone ?
p.s : sorry for lack of english skills
Click to expand...
Click to collapse
hi ,
have you turned off each of these apps in Smart Manager /Battery /power saving ..?
You can do this by selecting your correct app ,tapping on it a popup menu will appear ,select ....turn off etc .
See screenshots for example .
good luck
willcor said:
hi ,
have you turned off each of these apps in Smart Manager /Battery /power saving ..?
See screenshots for example .
good luck
Click to expand...
Click to collapse
no, i didnt changed anything at all
pekz said:
no, i didnt changed anything at all
Click to expand...
Click to collapse
hi
,
look at my screenshots and turn off your select ..preffered apps .
what does each of these apps "say" ? ...automatic or turn off ...?
You have to select turn off ( each app you prefer to run .)
good luck
post note
Also you have to enable that apps eg Telegram notifications ..allowed...!
see screenshot( Device /settings /notification.
willcor said:
hi
,
look at my screenshots and turn off your select ..preffered apps .
what does each of these apps "say" ? ...automatic or turn off ...?
You have to select turn off ( each app you prefer to run .)
good luck
post note
Also you have to enable that apps eg Telegram notifications ..allowed...!
see screenshot( Device /settings /notification.
Click to expand...
Click to collapse
thank you so much, FIXED :good:

Long press back button kill app

Hi all,
New to tasker and completely lost. So any help is greatly appreciated.
Due to work requirements I will have to lose root on my Oneplus 8 pro and revert to complete stock.
One of the main things i don't want to be without is the ability to long press the back button to kill the current app I'm on.
Can anyone help me in achieving this via tasker without root? Thanks
hallo dare said:
Hi all,
New to tasker and completely lost. So any help is greatly appreciated.
Due to work requirements I will have to lose root on my Oneplus 8 pro and revert to complete stock.
One of the main things i don't want to be without is the ability to long press the back button to kill the current app I'm on.
Can anyone help me in achieving this via tasker without root? Thanks
Click to expand...
Click to collapse
Hi, have you tried the ADB WIFI options?
You do not need to be a root user.
Kill Current App (295)
A1: App Info [ Package/App Name: Ignore Packages: Ignore Unlaunchable Apps:Off Get All Details:Off ]
A2: ADB Wifi [ Command:am force-stop %app_package Host: Port: Timeout (Seconds):1 Enable Debugging (Check Help):Off ]
leromaro said:
Hi, have you tried the ADB WIFI options?
You do not need to be a root user.
Kill Current App (295)
A1: App Info [ Package/App Name: Ignore Packages: Ignore Unlaunchable Apps:Off Get All Details:Off ]
A2: ADB Wifi [ Command:am force-stop %app_package Host: Port: Timeout (Seconds):1 Enable Debugging (Check Help):Off ]
Click to expand...
Click to collapse
Hi thanks. Yeah, I've looked into this but completely lost on how to set it up. Tried youtube videos for a step by step guide but nothing makes sense. If you know of any steo by step guide I'd appreciate it. Thanks
Hi im looking for the same issue only i am rooted but absolutely no xposed so how get kill app with long press back?
samsungFanboy85 said:
Hi im looking for the same issue only i am rooted but absolutely no xposed so how get kill app with long press back?
Click to expand...
Click to collapse
haven't found even one ROM, xposed module or an app that support this so usefull and intuitive gesture in A12.
IDUS why longpback2kill is not a stock gesture.
I got to surrender
Got edxposed, problem solved..
In hindsight...
Useless feature kill back
Kil kill kill
Dont keep activity/ no back proc
Hey play store, thanks for notificatiob on updates, specificaky im fighting u dont do..
Oh hey samsung0,,, good to havr secure folder back, that i drozen detached, uninstalled and wiped leftowers... Also did a live sacrifice and rain dance...
Realy nice woud be... Shortcut to launch overlay with running process/service ... Like in accubattery but on a key,no task killer just view... What triggers this state... Deviice strts screeching like pain, freezes all input but sometime foreground app looks running ok, but it either dont go or u need catch a sec and go to homescreen... Or power vol. Down only
U think its gpu or ram ? 1 game does this and not the heaviest i play... So ? Ideas? How to test it? But 90% force tebboot so no logcat...

Categories

Resources