[APP][Battery Saving] NFC Auto ON/OFF - GPS Auto ON/OFF [21 Jul 14] - G3 Themes and Apps

Tasker and Secure Settings​
{
"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"
}
I use these 2 apps to simplify the process of using Google Wallet and Maps as well as to save battery. Additionally, leaving NFC on is more of a security risk anyway. What this guide will show you is how to set up Tasker to enable NFC automatically for you when you launch Google Wallet and to enable the GPS when you use Google Maps. Whats cool is as soon as you exit the each program, it will turn NFC off or GPS off. It's great because it eliminates various annoying steps.​
BEFORE YOU BEGIN, INSTALL BusyBox BY STERICSON!!
INSTRUCTIONS:
1. Download and Install Tasker and Secure Settings
2. Open Secure Settings
3. Once open, click System+ at the Top - See below
4. You should now be at the following Screen where it says Disabled with an X at the bottom - See below
5. Click Disabled to Enable this module (This requires root and if you have SuperUser or SuperSU, you will be prompted to grant Root Access)
6. Grant Root Permissions if this applies
7. If all Goes well, the module will be enabled - See below
8. Reboot the phone
9. Upon complete reboot process, open tasker
10. Click on Tasks - See below
11. Click the + at the bottom of the screen
12. Name the task NFC On as seen below
13. You will now be at the task Edit Screen, hit the + at the bottom again
14. You will see a Select Action Category Box -> select Plugin - see below
15. You will see Select Plugin Action Category Box -> select Secure Settings - see below
16. The Action edit Screen will open -> Click the pencil in the upper right corner - see below
17. All Actions will open up -> click System+ Actions - see below
18. Scroll down the list and click NFC
19. Make sure on is selected and hit the save button to the left the X - see below
20. You will come back to the task Edit Page - see below
21. Hit the softui back button 2x at the bottom of the screen until you see the Task in the list that you just created - (YOU WILL ONLY SEE NFC ON BECAUSE THATS ALL YOU CREATED SO FAR) - see below
22. Reapeat the same steps to Create NFC Off, GPS On and GPS On. Ensure you select the proper state such as on and off as it applies - see below
ON:
OFF:
32. Now you will Create the Profiles, in other words, picking the Apps that you want to use
33. Go to the profiles Tab of tasker - see below
34. A Box will pop up -> select Application - see below
35. Select Google Wallet for the NFC On/Off Tasks - see below
36. Hit the softui Back button at the bottom and a task window will appear - see below
37. Select NFC On from the list and you should see the below output
38. Long Press on NFC On and a Menu will pop up - see below
39. Click Add Exit task and select NFC Off
40. You will now have the output as seen below
41. Make Sure the profile is on and you are complete!!
42. If you would like to add Maps complete the same steps as above, if you are good with what you have then you are done!!
It looks like a lot of steps but trust me its not that bad. Its easy once you get used to it!!! Enjoy and if this helped you hit the thanks button!

You forgot the part that it requires Busy Box as well for Secure Settings - Just FYI
Also if you want a more accurate location based for Maps, why not enable Location - High Accuracy and then Battery saving as the off action?

nest75068 said:
You forgot the part that it requires Busy Box as well for Secure Settings - Just FYI
Also if you want a more accurate location based for Maps, why not enable Location - High Accuracy and then Battery saving as the off action?
Click to expand...
Click to collapse
Thanks for pointing that out, I added it to the OP

Problem with just turning the GPS off as soon as you switch away from maps to something else, when you switch back you'll get an 'enable gps' message from maps.
Here was my solution:
Tasks:
'GPS on'
1. Variable Set
%GPSStateWanted, 1
2. If %GPS ~ Off
3. GPS on (use secure settings for this)
4. Flash
GPS on
5. Else
6. Flash
GPS was already on.
7. End if
Task: GPS off
1. Variable Clear
%GPSStateWanted
2. If %GPS ~ On
3. Flash
GPS countdown started
4. For
%countdown, 69:0
5. If %GPS ~ On
6. If %GPSStateWanted = 0
7. Flash
GPS countdown %countdown IF %countdown < 4
8. Wait 0, 1, 0, 0 (1 sec)
9. End if
10. End if
11. End if
12. If %GpsStateWanted != 1
13. GPS Off (use secure settings)
14. Flash
GPS off
15. Else
16. Flash
GPS countdown: GPS still needed
17. End if
18 End if
After testing manually that GPS on does turn on the GPS, and that GPS off then does turn the GPS off after a minute or so, then create a profile
Profile:
'GPS On'
App selection: Maps, Naviation, Tripadvisor
Green arrow action: GPS on
Red Array action: GPS off
Reason I didn't have a single wait is that I wanted the abort countdown to happen immediately otherwise you run the risk of things getting confused (e.g. a wait 69 would just potentially have GPS off/on/off/on all queued up - I want tasks to stop asap so that the next can trigger).

ohmegosh said:
Problem with just turning the GPS off as soon as you switch away from maps to something else, when you switch back you'll get an 'enable gps' message from maps.
Here was my solution:
Tasks:
'GPS on'
1. Variable Set
%GPSStateWanted, 1
2. If %GPS ~ Off
3. GPS on (use secure settings for this)
4. Flash
GPS on
5. Else
6. Flash
GPS was already on.
7. End if
Task: GPS off
1. Variable Clear
%GPSStateWanted
2. If %GPS ~ On
3. Flash
GPS countdown started
4. For
%countdown, 69:0
5. If %GPS ~ On
6. If %GPSStateWanted = 0
7. Flash
GPS countdown %countdown IF %countdown < 4
8. Wait 0, 1, 0, 0 (1 sec)
9. End if
10. End if
11. End if
12. If %GpsStateWanted != 1
13. GPS Off (use secure settings)
14. Flash
GPS off
15. Else
16. Flash
GPS countdown: GPS still needed
17. End if
18 End if
After testing manually that GPS on does turn on the GPS, and that GPS off then does turn the GPS off after a minute or so, then create a profile
Profile:
'GPS On'
App selection: Maps, Naviation, Tripadvisor
Green arrow action: GPS on
Red Array action: GPS off
Reason I didn't have a single wait is that I wanted the abort countdown to happen immediately otherwise you run the risk of things getting confused (e.g. a wait 69 would just potentially have GPS off/on/off/on all queued up - I want tasks to stop asap so that the next can trigger).
Click to expand...
Click to collapse
Why not just use secure settings to set it to turn on HighAccuracy lcoation mode and then turn it off? This way you avoid the whole GPS issue since it can rely on other factors to pinpoint location in the case that GPS hasn't locked on yet.
That's what I'm using and never have an issue with maps saying enable GPS when I switch from Maps to any app and then back

nest75068 said:
Why not just use secure settings to set it to turn on HighAccuracy lcoation mode and then turn it off? This way you avoid the whole GPS issue since it can rely on other factors to pinpoint location in the case that GPS hasn't locked on yet.
That's what I'm using and never have an issue with maps saying enable GPS when I switch from Maps to any app and then back
Click to expand...
Click to collapse
For navigation, if you aren't in either gps or high accuracy then the navigation will get cancelled with warnings.

I've had tasker for a while now, and only made simple tasks here and there. I control gps and the such with an app called trigger.
I do remember that there was a way to export your profiles out of tasker. If you could do that, and then post it here, it could make it a lot easier for users to benefit from your work.
I'm all for tapping away at my phone getting the settings working, but hey, not everyone will be down with that..

The GPS part of this is kinda pointless. Android already puts GPS to sleep after a some period if no app is using it. If you want to save battery you are probably better off with Greenify - force it to shut down Maps, don't use Google now, etx

Related

[APP] Tasker: Share your setup

Read about what Tasker is here or at the Lifehacker article. Download on Android Market or direct purchase from dev.
I'm pretty sure the possibilities are endless with this app, so please share what you've done with it here. Here's one of mine (more will follow):
Car Mode
This setup will use a toggle widget to:
Turn off Wi-Fi
Turn on GPS
Send an SMS that is triggered off a missed call event that lets the caller know you're in the car and can't talk
You can easily launch an app (for instance Navigation), I just haven't shown that here
Step #1 Create a new task called "ToggleTask" that looks like this (this is the task the Widget you create will call):
{
"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"
}
Step #2 Create a new task called "Driving" that looks like this:
Step #3 Create a new task called "Stop Driving" that looks like this:
Step #4 Create a new task called "CarSMS" that looks like this:
Step #5 Create 3 profiles like the bottom 3 seen here:
Final Step Add the widget to your home screen, select "ToggleTask" and click "Add Widget". Note: initially the Widget label will say ToggleTask. If this bothers use rename ToggleTask to StartDriving everywhere it occurs
Now, when you get in the car, click the widget. When you get to your destination, click it again.
To launch an app, simply edit the "Driving" task to do so.
i was not even aware of this app, it looks AWESOME! I'm very interested in seeing how other people are using this application
using this would it be possible to create a shortcut directly to the alarm settings? I still haven't figured out how to do that on froyo since the option dissappeared in bettercut.
AMAZING!
Just downloaded.
bender2115 said:
using this would it be possible to create a shortcut directly to the alarm settings? I still haven't figured out how to do that on froyo since the option dissappeared in bettercut.
Click to expand...
Click to collapse
I'm not seeing that, but if I understand your question, you can add the Analog Clock widget to the screen and clicking that will take you into the alarm settings
thanks, but I don't really want a widget, I just want a shortcut.
Looks like timerrific and locale had a baby that kicked its parents ass.
saw something about this earlier on twitter a few days back while i was at work, this thread made me actually try it. just need to play around with it more when its not 5am. only thing i dislike thus far is the app handles media itself instead of passing the "play" and such on to the default music app. need to figure out how to get "play" and "stop" to pass to the music app from the "data" field and i'll be happy
I can't seem to get the SMS functionality to work. Everything works perfectly in the OP's example except send SMS. I'm wondering if there is something in settings that needs tweeked?
psylink said:
saw something about this earlier on twitter a few days back while i was at work, this thread made me actually try it. just need to play around with it more when its not 5am. only thing i dislike thus far is the app handles media itself instead of passing the "play" and such on to the default music app. need to figure out how to get "play" and "stop" to pass to the music app from the "data" field and i'll be happy
Click to expand...
Click to collapse
Have you tried using Media->Android media->Toggle Pause?
I imagine you could use Headphone Plugged:App->Music,Toggle Pause to ensure it worked every time. Or you could assign a variable if you wanted it to be more sophisticated. Here's a quick example:
Not Music=Variable Set %MUSIC, 0
Headset Plugged=Load App:Music(If Music = 0)
Headset Plugged=Go Home(If Music = 0)
Headset Plugged=Variable Set %MUSIC, 1
Headset Plugged EXIT=Android Media Pause
Variable Set %MUSIC, 1=Android Media Toggle
Works like a charm on my droid.
ya, so my alarm now says "wake the frack up you lazy bastard" on work days if i sleep past a certain time. 15min before i *have* to be out the door, phone says "isnt it time to leave for work" then turns gps on. when i leave and plug in the heaphone jack music starts (stops when unplugged), turns wifi off when 30M from home, arrive at work stops music, turns phone on silent. gps turns off until i leave work, and then it sends a SMS to my gf i'm on the way home when so far from work. dev will be getting some monies on my payday
now i wont have to play with the phone so much while driving
thanks for the toggle pause, didnt even notice all that last night and that did the trick
I've been using Tasker since the early betas for months now.
The three things that I always run:
WORK (Location 1km around Work)
- Turn Wifi Off
SLEEP (Hours 22:00-07:00)
- Turn AutoSync Off (this stops emails, but allows calls and SMS during the night)
LOW BATTERY (Battery 0-20%)
- Turn off AutoBrightness
- Set Brightness to 10%
- Set Screen Timeout to 30s
- Turn AutoSync Off
artesea said:
I've been using Tasker since the early betas for months now.
The three things that I always run:
WORK (Location 1km around Work)
- Turn Wifi Off
SLEEP (Hours 22:00-07:00)
- Turn AutoSync Off (this stops emails, but allows calls and SMS during the night)
LOW BATTERY (Battery 0-20%)
- Turn off AutoBrightness
- Set Brightness to 10%
- Set Screen Timeout to 30s
- Turn AutoSync Off
Click to expand...
Click to collapse
Hey I was wondering if you could let me know how you setup your variables. i'm not understanding how to do this. I was trying to setup sleep profile to turn off auto sync and i don't know what to put for variables %Time-?????????
Previously with Timeriffic (which is fantastic, btw) if I wanted a night profile, I had to guess about what times I would be going to bed. Since I use the desktop dock, Tasker allows me to setup a new event based upon docking my phone, so I've been using this for the "Docked" event:
Enter Task (go to bed):
Turn Wifi Off
Lower Ring volume
Lower Notification volume
Turn off vibrate
Exit Task (when I wake up and pull the phone off the dock:
Load App: Weather Bug Elite (to check the forecast)
artesea said:
LOW BATTERY (Battery 0-20%)
- Turn off AutoBrightness
- Set Brightness to 10%
- Set Screen Timeout to 30s
- Turn AutoSync Off
Click to expand...
Click to collapse
I think I'm gonna implement this one too..
mrmarshall428 said:
Hey I was wondering if you could let me know how you setup your variables. i'm not understanding how to do this. I was trying to setup sleep profile to turn off auto sync and i don't know what to put for variables %Time-?????????
Click to expand...
Click to collapse
Tasker can be tricky to get used to, but once mastered has amazing power.
To create my Sleep profile here are the step:
Press New, you will get a "First Context" popup, select "Time".
Here you should have From and To ticked. Make sure that From is when you want Sync Off (22:00) and To when it comes back on (07:00). Press Done.
This will now take you to a Task Edit screen.
You don't need to press New, but doing so allows you to name this bit.
Press the "+" button, in the "Select Action Category" select Net, and then Auto-Sync.
Here leave it as "Set: Off" and press Done
Press the Done button along the bottom.
You will now be back in the main Tasker screen. If you want to rename "From 22:00 to 07:00" tap on it, and select Name and give it something like "Sleep".
Press Apply and you are ready to go.
xManMythLegend said:
Looks like timerrific and locale had a baby that kicked its parents ass.
Click to expand...
Click to collapse
Tasker says to Momma Timmerific and Daddy Locale: "who's your daddy now BIOTCH??!!"
The_Adjudicator said:
I can't seem to get the SMS functionality to work. Everything works perfectly in the OP's example except send SMS. I'm wondering if there is something in settings that needs tweeked?
Click to expand...
Click to collapse
Here's what I did, this might help you.
Let's create a task that send a SMS to the number "466453", which is GOOGLE 411. I have this set daily to check the weather for me.
From your Tasker home screen, create New.
Select First Context : Time.
Select your From time. Make sure it has a checkmark, and un-check To. Click Done.
I have mine set for 10:00am.
Press the + icon (bottom left corner).
Select Action Category : Phone.
Select Phone Action : Send SMS.
Fill in the contact number (466453) and the message (weather xxxxx), where xxxxx is your local zipcode.
Tap Done.
Tap Done again.
----- ----- ----- ----- -----
You can test it by changing the Time to a few minutes ahead. Then edit it after you confirm it works.
I have several of these. One for the weather that repeats every 6 hours, another to check my bank balances, and one that texts my wife, "I Love You"
crachel said:
Enter Task (go to bed):
Turn Wifi Off
Lower Ring volume
Lower Notification volume
Turn off vibrate
Exit Task (when I wake up and pull the phone off the dock:
Load App: Weather Bug Elite (to check the forecast)
Click to expand...
Click to collapse
Would both of these "Enter" and "exit" be as one task??
I see tasks created.....what i'm wondering is.
Do we create a task to revert the phone to a previous state??
Mikey1022 said:
I see tasks created.....what i'm wondering is.
Do we create a task to revert the phone to a previous state??
Click to expand...
Click to collapse
No, Tasker will automatically revert back. For instance, when I lower phone & notification volume and disable vibrate on a phone "Docked" event, Tasker automatically reverts back when I un-dock the phone. I don't have to tell it to put the volume back up and turn on vibrate.
When you click a task in the Profile view, you will get an option to "Add Exit Task", that would be used for doing something unique all together (like launching an app).. you don't have to use it to revert state
Edit:http://tasker.dinglisch.net/userguide/userguide_settings.html
I'm using it to enable wifi on places where I know there's wifi and some power management stuff.. the usual.
There is one task I'm working on that's kinda awesome, but I can't get it to function properly. When I wake up, Tasker polls weatheronline.com for the current weather and the forecast for the day, and reads it out to me. The trouble is in the fact that I can't get it to read me the conditions for the day, it reads me the url for the conditions icon instead.
Attached is the xml of the task, maybe somebody smarter can get it to work?
(note: You'll have to register at worldweatheronline.com for a free key and paste it in the HTTP get action)

[ROM] Epsilon Project < V5.0 | 12/01 > / < Clean | Fast | Stable | +Battery >

[ROM] Epsilon Project < V5.0 | 12/01 > / < Clean | Fast | Stable | +Battery >
{
"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"
}
This version is developed on the last update of KitKat (4.4.4). It has been optimized for better battery life and performance development, without losing any proper function of our device. There was eliminated some google apps that are available in the playstore, has integrated settings within setting menu. If you want a 100% Stable Rom, Updated, Light and with Good Performance without losing any functionality Epsilon Project ROM is for you.
- Base KXB21.14-L1.40 (XT1032 Stock 4.4.4 Brasil)
- All system apps updated
- Updated Drivers Qualcomm/Adreno GPU
- Optimizations GPS
- Kernel Aero (improve battery life while keeping up a reasonable performance.)
- Busybox initramfs
- Deodexed
- Zipaligned
- Rooted SuperSu
- Smooth Scroll Patched
- SQlite3 script (Wes Garner)
- Auto-Zipalign script (Wes Garner)
- Init.d support
- Bash support
- Op.App Enabled (With White tabs) under Security Settings
- Reduced navigation bar 40dpi
- Adblock Host
- Battery saving tweaks
- Best Performance, no more lags
- Removed Update option in Settings
- Removed some bloats (You can install from the Playstore)
- Fixed Google Bootanimation (Dankoman)
- Fixed Boot Logo (Google Edition)
- ...more changes in changelog for the next version
Epsilon Project V5 - Download
Update GravityBox 3.5.1 - Download
Stock Kernel (optional) - Download
Remove GravityBox Patch (optional) - Download
Fix Lang ENG Power Battery - Download
V-1
Initial Version
V-2
Rezipalign
Extended Power Menu (reboot / fast reboot / recovery / bootloader)
Navbar reduced to 38dpi
New Live Wallpaper Google Edition Sunbean
SuperSU has been moved to the setting menu
CM Calculator with more options
Xposed Gravity Box and Integrated Framework to the setting menu
Moved and translated the privacy manager application to the main setting panel
V-3
New Animations
New interface Holo Light 99%
Power Battery integrated in menu settings
New icons for navigation bar
Optimized Launcher Stock
New Boot Image
CM Calculator
Redesigned icons in settings
System Applications updated
Updated Adhost
Signal AOSP style icons (thanks tiaoalvino)
Changed dialer icon
Lidroid File Explorer (root explorer / file manager / ftp / and more)
GravityBox Updated (3.4.1)
V-4
Google Keyboard 3.2
Google Play Music 5.7 Material Design
PlayStore 5.0 Material Design
Google Chrome 38.0 Material Design
Google Services 6.1.71 Material Design
Updated AdBlock Host
Render GPU
GravityBox 3.4.7
New Tweaks for Better Battery
Unlock Camera Options
Rezipalign
Updated AeroKernel
V-5
New Script Installation
Updated SuperSU 2.36
Removed SuperSU Settings Menu
Updated ad blocking
Removed Google Chrome, feel free to choose the browser that you like
Removed Google Music, feel free to choose the player that you like
Removed File Explorer, feel free to choose the file explorer that you like
Removed the Motorola Demos well as services report errors motorola
Aero updated kernel (11/05)
Included AeroControl to configure the kernel Aero included in the Rom
Updated Fm Player
They have integrated and upgraded options motorola who brought default as migration, moto assist, etc
Updated the Gallery and Camera Motorola
Updated Google Play Service, Google Play and Google Keyboard
Updated GravityBox 3.4.9
Fixed status bar AOSP
Removed extended menu reboot, it can be enabled from the GravityBox
Drivers native GPU Moto G
Fixed the bug that did not allow for problems ViperSound install BusyBox
Installation unknown sources enabled by default
ReZipalign System
​
WHAT IS POWER BATTERY ?
Is an application that has been developed Kisler to improve the battery and in which we can select a number of options available to suit our needs can optimize the duration of battery . The idea of ​​this application has been to combine options that are useful for battery management and in turn be simple to use for everyone .
OPTIONS AND WHAT BRINGS ?
To improve this consumption have a number of options are:
Battery Percentage : This section is intended to determine the percentage of battery from Battery Power shall act performing the operations described below, default is 15 %.
BASIC SETTINGS
Wireless Mode: Selecting this option turns off the wifi if you have it activated before entering in the range of battery action defined in the beginning to Battery Power .
Data Mode : Selecting this option disables the data if activated before entering them in the range of battery action defined in the beginning to Battery Power .
Sync Mode: Selecting this option disables the synchronization should have it checked before entering the battery range of action defined in the beginning to Battery Power .
Bluetooth Mode: Selecting this option disables the bluetooth if you have it activated before entering in the range of battery action defined in the beginning to Battery Power .
mode Location: Selecting this option disables the location should have it checked before entering the battery range of action defined in the beginning to Battery Power .
Silent mode : Selecting this option disables the sound / vibration should have it checked before entering the battery range of action defined in the beginning to Battery Power .
Led Mode: Selecting this option disables the LED notification should have it checked before entering the battery range of action defined in the beginning to Battery Power .
ADVANCED
Mode Range: detects a known and active wifi zone wifi to connect automatically or off when leaving the area. (Discussed in detail below).
CPU Mode: Reduces CPU frequency automatically when entering the range defined in Battery Power Battery .
CPU Maximum Frequency : Defines how often you will use the CPU and the CPU mode , default 540 MHz
OPTIONS SCREEN
Brightness Mode : Reduces brightness automatically when entering the range defined in Battery Power Battery .
Brightness Percentage : Brightness Percentage to be applied in the glow mode , default 0 %.
Dark Mode: Controls the brightness as if it were an automatic but with lower values ​​to making work less and reducing the brightness sensor
Pocket Mode: Turn the screen to remove the phone from his pocket and is optimized to consume less than the native rom
Notification Mode: If a notification arrives for a few seconds to pick up the phone turns on the screen without pressing the (must activate accessibility " settings / accessibility / power battery" )
Notification Time : used in the second mode is defined notification
HOURS SMOOTH
Hours Mode : Turn the hour mode to manage data and wifi connection at a time interval.
Week end mode : Activates the alternate schedule for weekend
Restore Links: Restore connections to turn the screen during the hours so
Disable Sensors: Disables the sensors during the quiet hours
Set time : Set the time and day of the week that will activate the quiet hours
PROFILES
These options are combined with profiles Cyanogenmod . Its operation is as follows:
Battery power gives you the option to choose 2 profiles ( of Cyanogenmod ) for that you must enter the name of the previously created profile in the " Settings / Profiles " on Battery Power (default is "Home" and " street" ) . In each of the profiles you can enter a range of performance Power Battery, for example in the profile " House " 15% if we select the profile " Street " 25% . This is so that the Battery Power switch profiles automatically change its range of action and will know when your battery should act removing the options that you feel is necessary . To enable the use of profiles with Cyanogenmod Power battery is made from the " Profile Mode " option.
If not select any profile or the profile used is not one defined in Power Battery percentage to be used will be the first that we have defined earlier .
DISCLAIMER MODE RANGE
This mode produces no wakelock , battery consumption or anything similar . It is designed to conserve battery power in the event that we get out of range of our wifi preventing the active connection be used and consumed without activating it when we get to a place where there is a known wifi stay.
To do this I have based on location through LAC and Cell ID , or put more colloquially by the position of the antennas.
In the picture above you can see a simple design of antennas and radios. Battery Power antenna detects how you are and if you are in your area or not. To do this the first time I conectéis the wifi zone start checking nearby antennas ( depending on the house may be affected by one or more antennas ) .
Once detected out of the range of action of these antennas ( this may vary ) check the state of wifi is connected and if it will be off. The opposite case is that when entering the range of a registered as a wifi access point antenna, wifi be activated.
In the case we are in the same location, for example our home and want to disable / enable wifi to not have changed position we can do like coming to a new area to choose a new wifi network , since disconnection / automatic connection is made just by changing antenna .
In the event that wifi is turned off before choosing a new wifi network you connect may be due to a crossing of antennas ( due to the change from one to another so quickly disconnection may occur ) and if the problem persists after several attempts the solution may be to move a few steps to avoid this junction or off the range mode temporarily to introduce this new wifi.
Advantages of this: It has no wakelock , maximum energy savings by not using the location network location.
Disadvantages: If you are traveling to a remote area of your home, but that you get that antenna signal , being detected as " known antenna " believes these at home and activate the signal . This drawback will very much depend on where you live each and the number of antennas that affect the area. As a rule in the city or area where a large number of antennas work better this way .
Sounds great, shall test! Sounds smooth without even testing
core720 said:
.... reserved[
Will report.... Downloading
Click to expand...
Click to collapse
bugs
Hi, are there any bugs?
because I have school tomorrow and I don't want to have bugs. I need the gps. Is it working?
and is there the same bug as in the CM that you can't connect to wifi extender networks or is it all stock based?
Need to download Stock Kernel or no?
Any bugs to look out for?
Cool, it has app ops!
Bugs
MAC address is messed up @core720
will I lose duel sim support, if I flash this? Given this is based on 1032 single sim.
xt1033 compatible?
!n0x said:
Need to download Stock Kernel or no?
Any bugs to look out for?
Testing...
Click to expand...
Click to collapse
No
its not support xt1033 dual sim its based on (XT1032 Stock 4.4.4 Brasil). so not working on our devices. no signal.
Any chance of a xt1033 compatible?
ART compatible?
Perhaps the DEV will kindly make a version of this ROM based on Stock XT1033 for Dual-SIM people. Having quickly looked: FM Radio should work and Motorola Camera / Gallery are included.
Wow
Waauw, this rom is greaaaat, soo smooth. I flashed the PA mini gapps on it and everything works great.
Thank you so much for this rom. I would like to hit the thanks button 30 times if I could
Sounds nice ROM, i will test

			
				
I just tried to install but the file is corrupted by me
I do believe you have to convert your file system type if you're running GPE or custom roms before flashing this one due to being based on stock. Is that right?
rogeriorp said:
I do believe you have to convert your file system type if you're running GPE or custom roms before flashing this one due to being based on stock. Is that right?
Click to expand...
Click to collapse
Only GPE converts USERDATA partition. If you are running anything else; you can just wipe and flash this.
Mchasard said:
I just tried to install but the file is corrupted by me
Click to expand...
Click to collapse
What problem u r facing ??

Tasker Project to control Philips Hue bulbs using Ok Google commands (no root)

Tasker Project to control Philips Hue bulbs using Ok Google commands (no root)​
I've created a Tasker Project that works in conjuction with Ok Google and a few Tasker plugins to give you voice control over your Philips Hue lights, as well as some instructions for setting it up. Hope you enjoy! Apologies for the lack of links, I'm more a lurker than a poster.
(Not sure if this is the right forum for this, but mods please move it if not.)
For those who are starting from scratch wanting to do this, I'll give a short guide to how to get this up and running. If you are experienced, the gist of it is to install all the plugins, import the XML file, and configure AutoHue within the tasks.
Step 1: Prereqs
The first thing you'll need to do (after buying and setting up your Hue bulbs) is install the prerequisites:
Tasker:
($2.99)
play.google.com/store/apps/details?id=net.dinglisch.android.taskerm
AutoVoice:
play.google.com/store/apps/details?id=com.joaomgcd.autovoice
AutoVoice Pro Unlock:
($1.57, yes you need pro)
play.google.com/store/apps/details?id=com.joaomgcd.autovoice.unlock
AutoHue:
($1.29)
play.google.com/store/apps/details?id=com.cuberob.autohue
Philips Hue:
(not required, but you'll need it if you haven't already set up your bulbs. good for testing anyway):
play.google.com/store/apps/details?id=com.philips.lighting.hue
​
Step 2: Configure AutoVoice
You'll then need to make sure you have Ok Google enabled and allow AutoVoice to intercept commands. Lifehacker has a good article on how to do this which I used, so I'll just tell you to use steps 0 and 1 from that:
lifehacker.com/how-to-create-custom-voice-commands-with-tasker-and-aut-1282209195
I also recommend in the AutoVoice app, under Google Now Integration, to check the "Only Voice" box so if you type a search for anything it doesn't accidentally trigger a profile.
Keep in mind I'm running this on a stock, rooted Nexus 6 with always listening Google Now enabled. YMMV if you have other means to trigger the voice commands. You may want to set up some dummy tasks to test your voice triggering.
Step 3: Configure Tasker
At this point you can follow the Lifehacker guide to set up some profiles, but I've provided my Tasker Project via an XML file for your convenience.
XDA doesn't accept .xml files, so I changed it to .txt
Just rename it back to .xml (it's plaintext, so by all means inspect it). You should never blindly import a stranger's Tasker profiles.
Once you're satisfied, just download and import it into Tasker (there are guides out there for this).
Step 4: Configure Tasker Profiles for your Bulbs
One at a time open the "Set Lights", "Turn off the lights", "Mood Lighting", and "Movie Mode" actions and do the following for each of the "AutoHue" Actions in each task (There are 3 in "Set Lights", 1 in the rest):
==> Select the Action
==> Tap the pencil in the rop right
==> Tap the magnifying glass and search/pair with your Hue bridge
==> Tap the button under "Light" and select the bulbs you want to be controlled
==> Tap the Check Mark in the top right
(That step seems like a lot of work, but trust me when I say it pales in comparison to setting up all of these individually)
Step 5: Test!
Once you've completed that, open a few of the tasks and press the Play button in the bottom corner to make sure they are configured right (your lights should respond accordingly). Then once you know Tasker is working right, you can try using Ok Google to trigger it. If everything was configured properly, then you're all good to go!
List of available commands I have already set up with descriptions:
These can be disabled individually by either turning the Profile switch to Off or completely deleting the Profile and Task from Tasker.
==> "Turn on the lights"
- turns on all lights to maximum brightness​==> "Turn off the lights"
- turns off all lights​==> "Dim the lights"
- dims the lights to 20%​==> "Movie Mode"
- turns off all lights except one (mine's set for the one being in the kitchen; This needs to be set up like the "Set Lights" task above.)​==> "Set the Mood"
- dims the lights and sets them red (for when you've got "company"). This needs to be set up like the "Set Lights" task above.​==> "Wake Up"
- When phone alarm goes off, slowly increases the lights from off to full with blue hue to help you wake up, then waits 10 minutes and sets the color to white​==> Increase by % (increments of 10%; range: 10%-90%)
- e.g. "increase the lights 30%"​==> Decrease by % (increments of 10%; range: 10%-90%)
- e.g. "decrease the lights 30%"​==> Set to % (increments of 10%; range: 10%-100%)
- e.g. "set the lights to 30%"​
Note: I have it configured so setting the brightness also adjusts the warmth of the light, so a dimmer light is an oranger hue (easier on the eyes in the dark; similar to f.lux.) This can be disabled by changing references to the %Sat variable under the AutoHue actions in the "Set Lights" task to 0.
Things I'll probably add in soon:
Another variable for hue to add the ability to change the color of the lights with voice commands
Individual Room Lighting Control
A Few Notes:
Let me just say that I, personally, have not developed any of the tools required to make this happen, so if you liked what I've put together here throw your money at them, not me. (You'll need to in order to make it work, anyway.)
If you have the Xposed Module installed, you can also set up AutoVoice to work from Android Wear devices (pretty cool!)
This seems pretty cool actually. need to give this a shot. the more things i can combine with Hue the better!
been playing with hue and tasker since i got it. will check yours out!
Thanks Mate!
Well tried it the moment I read this thread. Worked great! Thanks for sharing.
"Okay Google, Turn on the lights"
:highfive:
Very nice! Thank you for that. I created my own commands, resembling the scenes I have set up. For this, you have to directly connect to your bridge, create a new user and read out the color settings of your lamps with your desired scene. Whoever wants to try it:
1. Find out you Hue bridge's IP.
2. Connect to it via Browser:
Code:
http://HUE_IP/debug/clip.html
3. In the URL field within the page, enter:
Code:
http://HUE_IP/api
4. For message body, enter:
Code:
{"devicetype":"test user","username":"newdeveloper"}
This will create a user named "newdeveloper". You can choose whatever name you like.
5. Push "POST". In "Command Response", you will see something like "Error: Link button not pressed." You'll have to press the button on your bridge, then hit "POST" again. It should say "success" now.
6. Now, enter the following in the URL field:
Code:
http://HUE_IP/api/newdeveloper
Afterwards, hit "GET". You will see a list of your lights, their state and some further information.
7. Now, with your phone, start a scene that you'd like to set via your voice. Afterwards, hit "GET" again. You'll see that the state of the corresponding lights changed (except you already set the scene before).
8. Now you've got something like this:
{
"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"
}
And there are all the values you need!
9. Now go to Tasker. Hit the + Button, choose Event, then Plugin, Autovoice, Recognized.
10. Hit the Pencil next to "Configuration". Choose "Speak Filter", speak your desired command. Then hit the checkmark on the top.
11. Now select "New Task", enter a name if you like, then hit the checkmark. + Button, Plugin, Autohue, Pencil next to Configuration.
12. Now you can choose your Lights which you want to turn on and to be set. Under Command, select "Custom JSON String". In my case, it looks like this:
So, I tell the lamp to turn on ("on":true), and to set to the color I read out before ("xy":[0.5438,0.4048]).
You can also use the "bri", "hue" and "sat" variables if you like, but I prefer xy, its easier for me
EDIT: This only sets the color. You need the "bri" variable for brightness!
13. Test Command and profit! This was for a single light now. If you have different lights with different settings, just add another task for that event
I hope that this is helpful for some of.. hue
For the "wake up " setting, do I need to say "Ok Google Wake up" to enable it or does it run automatically and check for an alarm. I use the Gentle Alarm clock app if that matters.
I'm also wondering if you have anything for dimming the lights slowly? I put a hue bulb in my sons room and I'm trying to set something up for it dims slowly over 15-20mins while I read to him before he goes to bed, then turns off completely and also make sure it doesn't turn on AT all throughout the night by accident.
turokk said:
For the "wake up " setting, do I need to say "Ok Google Wake up" to enable it or does it run automatically and check for an alarm. I use the Gentle Alarm clock app if that matters.
Click to expand...
Click to collapse
It just runs automatically when an alarm is detected. I've only ever tested it with the default Google alarm, but it should theoretically work with any app, as long as that's what Tasker is detecting.
shadow321337 said:
It just runs automatically when an alarm is detected. I've only ever tested it with the default Google alarm, but it should theoretically work with any app, as long as that's what Tasker is detecting.
Click to expand...
Click to collapse
It worked perfectly with Gentle Alarm, so happy it worked.
Hey Shadow,
I have a question about the "wake up" task. Can you add more than one Variable Add? Right now it has the following after step 2 (Auto Hue)
3 Variable Add - Name %Brightness Value 5
4 Wait 485 msec
5 Goto ... etc
I'd like to do the following and tried it and it didn't work.
3 Variable Add - Name %Brightness Value 2
4 Wait 6 Minutes
5 Variable Add - Name %Brightness Value 6
6 Wait 4 minutes
7 Goto - Type Action Number Number 2
8 Wait - 10 minutes
The brightness doesn't seem to change at all form 2 to 6 value when I add an extra Variable Add. I then did a "Perform Action for step 5 and then it did a loop, where it went from Brightness 2 to Brightness 6.. but then the color was different and not blue.. so I assume the Perform Action is doing a specific call to another task with a different color.
At worst case I'll revert back to the original and just change the Variable Add brightness to 2 and leave it for 10mins then let the script run through.
turokk said:
Hey Shadow,
I have a question about the "wake up" task. Can you add more than one Variable Add? Right now it has the following after step 2 (Auto Hue)
3 Variable Add - Name %Brightness Value 5
4 Wait 485 msec
5 Goto ... etc
I'd like to do the following and tried it and it didn't work.
3 Variable Add - Name %Brightness Value 2
4 Wait 6 Minutes
5 Variable Add - Name %Brightness Value 6
6 Wait 4 minutes
7 Goto - Type Action Number Number 2
8 Wait - 10 minutes
The brightness doesn't seem to change at all form 2 to 6 value when I add an extra Variable Add. I then did a "Perform Action for step 5 and then it did a loop, where it went from Brightness 2 to Brightness 6.. but then the color was different and not blue.. so I assume the Perform Action is doing a specific call to another task with a different color.
At worst case I'll revert back to the original and just change the Variable Add brightness to 2 and leave it for 10mins then let the script run through.
Click to expand...
Click to collapse
Sorry about the late response. Real life is distracting sometimes.
What are you trying to achieve by adding an extra variable add? What you're doing should be logically making it change, but not to an extent that you'd see a practical change in lighting. If you're just looking to make it increase faster, you can increase the amount the Brightness variable is increased by, or shorten the time span between the loop iterations. Also keep in mind adding 2 or adding 6 to %Brightness isn't going to be increasing the value by that much. The value goes from 0 to 255, so adding 2 is only adding 0.78% to the total brightness level.
I try to import your profile it told me I can't because it's contain more then one profile. Any way around it. I'm new to tasker
cbetso said:
I try to import your profile it told me I can't because it's contain more then one profile. Any way around it. I'm new to tasker
Click to expand...
Click to collapse
Make sure Beginner Mode is disabled in Tasker, and then on the main screen hold-tap on the house icon in the lower left and select Import from there. It sounds like you're trying to import just a Profile, but this is a Project, which is a combination of Profiles, Tasks, and Variables.
shadow321337 said:
Make sure Beginner Mode is disabled in Tasker, and then on the main screen hold-tap on the house icon in the lower left and select Import from there. It sounds like you're trying to import just a Profile, but this is a Project, which is a combination of Profiles, Tasks, and Variables.
Click to expand...
Click to collapse
Thanks that work
I can't get it to dim or brighten
cbetso said:
I can't get it to dim or brighten
Click to expand...
Click to collapse
Does it work running the Tasker commands from within Tasker? Or does it just not work via voice?
It don't work with in tasker or by voice
cbetso said:
It don't work with in tasker or by voice
Click to expand...
Click to collapse
Make sure you follow the steps properly and remember that the commands are pre-set to be telling the lights what to do based on MY setup. Yours WILL vary and you'll have to change some things around to make it work perfectly for you. I've detailed how to do that in Step 4.
shadow321337 said:
Make sure you follow the steps properly and remember that the commands are pre-set to be telling the lights what to do based on MY setup. Yours WILL vary and you'll have to change some things around to make it work perfectly for you. I've detailed how to do that in Step 4.
Click to expand...
Click to collapse
I can't find "set lights" under profiles. It showed up for me once under "tasks" but then I messed stuff up so I deleted the project.
When I re-added it, nothing showed up under tasks.
Help? Thanks for your hard work! I can't wait to enjoy this.
EDIT: Fixed it! Was using the wrong voice commands
benblb said:
I can't find "set lights" under profiles. It showed up for me once under "tasks" but then I messed stuff up so I deleted the project.
When I re-added it, nothing showed up under tasks.
Help? Thanks for your hard work! I can't wait to enjoy this.
Click to expand...
Click to collapse
That's really strange. You deleted the entire project and re-imported it? I'm not sure if that's a bug with Tasker or something, but it should allow you to re-import everything. There are like 35 tasks in the project, "Set Lights" being one. It should be under tasks, not profiles. You might try renaming the xml file to see if it will re-import with a different name and get everything. Or try adding and removing it a few times with the different options of "Delete Contents" or "Keep Contents" and see if one of them works. Beyond that or completely resetting Tasker I'm not too sure how to get it back if re-importing doesn't get it.
shadow321337 said:
That's really strange. You deleted the entire project and re-imported it? I'm not sure if that's a bug with Tasker or something, but it should allow you to re-import everything. There are like 35 tasks in the project, "Set Lights" being one. It should be under tasks, not profiles. You might try renaming the xml file to see if it will re-import with a different name and get everything. Or try adding and removing it a few times with the different options of "Delete Contents" or "Keep Contents" and see if one of them works. Beyond that or completely resetting Tasker I'm not too sure how to get it back if re-importing doesn't get it.
Click to expand...
Click to collapse
I got around this by choosing a random profile like "turn on the lights" and expanding it. Then I pressed and held the task, and replaced it with "set lights". I activated the AutoHue parts, and then switched it back.
In addition, I was using incorrect voice commands. All better now!
Do you know how to disable to toast that pops up telling me that a possible command has been detected? It now shows up no matter what I search by voice.
Thanks for such a fast reply!

[WIFI][MODS] Wifi Sleep Policy Patch

???? ?????
{
"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"
}
???? ?0??
WIFI IDLE TIMER PATCH
This mod is used to add a shortened WiFi disable timer when device screen turns off, This patch helps to save battery on phones & tablets, Simple yet effective.
A custom disable time can be set for wifi by user.
When installed Wifi can quickly disable in sleep mode in 2 minute & enable on wake instantly. Default without patch is 15 minutes. Non-user controllable in Android
Quicker wifi disable time during screen off idle state equal better battery savings slower percentage ℅ drops in power for a bigger powersave increase. Get the most from your battery.
Depending on which system an user apps constantly use wifi, either foreground or background is why your battery life varies an drops quick during standby.
Some apps bypass doze mode pooling wifi resources constant while screen off.
Note when installed your wifi sleep policy will be set to sleep on battery mode only. Meaning wifi will always be on when plugged into a power source an off on battery when device is sleeping.
Data should be disabled by default when installed to aid in battery saving when wifi is off, so that the system dont automatically enable mobile data . ( For Phones on data plans, Tablets without sim cards need not care about data settings).
Smartphones mobile data still can be turn on an off as normal in settings or quick panel if an when needed.
INSTALL
Flash wifi idle patch zip via recovery & reboot thats it.
Small Few devices may reboot once after to configure of global policy. (Normally)
Magisk users need to flash v1.2 module in manager app not recovery.
WIFI OFF TIMER
With my patch installed Wifi is set at 2 minute before wifi disable once screen is off.
A simple wifi_idle_timer.zip below is added to adjust wifi disabled on screen off timer if needed to your personal timing.
(This wifi idle timer zip is set to 5 minutes by default.)
To adjust timer open wifi idle timer zip below then open up add_to_settings.sh via any file manager with a editor like Mixplorer (my choice) , Root explorer & so on....
WHAT TO LOOK FOR
"wifi_idle_ms" value=" 300000 "<--- you adjust these Numbers here in milliseconds twice in the add_to_settings.sh script
Examples to adjust timer in milliseconds
TIMER ADJUSTMENTS;
1 second = 1000 ms
10 seconds = 10000 ms
30 seconds = 30000 ms
1 minute = 60000 ms
2 minutes = 120000 ms
5 minutes = 300000 ms
You can also Google any pacific number of choice, Example simply by typing 10 mins in ms , ans. 600000 milliseconds.
Extras
Back to stock Info . ( Uninstall )
If you would like to keep my patch installed but set it to stock settings, simply put wifi idle timer to a value of 900000 in milliseconds for standard Android sleep policy time .
Use this stock value in wifi-idle-timer.zip.
Set this stock time 15 minute in magisk module install also if needed.
Or if you want to completely remove mod, flaѕh install zip (wifi idle patch) once to Restore stock settings .
Flash magisk module in recovery or use manager app module section of magisk to untick module for disable or removal.
##### UPDATE NEW MAGISK VERSION V1.3 #####
On install:
Wifi sleep settings are done instantly without rebooting, you can back out an close magisk manager when just setting wifi timer. Only doze and google services option modifications take place after rebooting your device.
change log: v1.3
.added on the fly wife timer change when flashing
.added download issues fixed under force doze
.added force doze an google services optimization separately
.added some changes to scripting an installer.
Click to expand...
Click to collapse
##### UPDATE NEW MAGISK VERSION V1.2 #####
Can now choose from 1 minute to 5 minutes sleep timer on install .
Can now choose to add Force Doze for instantly turning on doze when screen is off .
Force Doze mode also includes adding Google Services to doze an battery optimization blacklist - so it services can now be control to stop those processes always draining battery when device sleeps .
A few extra prop tweaks for battery savings .
Questions?
Wifi Sleep Policy info
When activated by default Android wifi disable on screen off is usually 15 minutes before off sometimes longer when this settings feature called Keep wifi on during sleep is set to - only when plugged in or Never. On almost all devices you can't control this timer without being patched.
This complete wifi sleep Policy feature is hidden in Android 9 tho it still can be changed with adb or this mod.
Sadly this feature is removed in Android R also known as the new Android 11 .
Extra
Its a FACT that disabling wifi on screen off in mobile devices saves battery.
This factor can be increased to even more battery saving by disabling wifi earlier than the standard 15 minutes timer on screen off to a more lower time.
Phones should also disable mobile data for best battery life.
Their are few apps that claim to or can do this BUT, they are third party an not able to bypass doze, they use memory and cpu, they are NOT a sure thing like this system alone mod no Extras .
So far tested on Marshmallow, Nougat & Oreo Devices.
Alcatel, Amazon, ZTE, Samsung should also work on many others.
Devices on Custom Rom's that experience SOD from Wifi-on related issues may also benefit . ( You will have to try to make sure it works for your issue an device)..
Credit
This is my new found semi- universal methods on most newer Android 6+ for adding this feature.
(For Rooted Devices)
This is for most rooted Android with custom recovery for install .
Experience with mod
My battery life has been great after making this mod.
Quick Battery saving test
Without PATCH ' full charge while device sleep , exactly 24 hours later 74℅.
With PATCH ' full charge while device asleep , exactly 24 hours later 97℅.
You do the math....
Note
I do have some other mods i personally made that may also play a small part with this saving but this made a great impact by far.
Battery saving may vary on different setups.
Great for phones even Greater for tablets.
Disclaimer
Code:
* I am not responsible for bricked devices, dead SD cards, thermonuclear war,
* or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about this feature included
* in the product you find here before flashing it!
* YOU are choosing to make these modifications.
This should be safe to use when properly install.
Like if you found this mod useful.
Created :
02/04/2020
Updated :
08/10/2020
_________
So how well will this work with an app like Spotify running in the background using wifi and screen off?
eric93se said:
So how well will this work with an app like Spotify running in the background using wifi and screen off?
Click to expand...
Click to collapse
Wifi will remain on always while charging. On battery Android will disable wifi two minutes after screen off to save battery. Use Spotify while on charge or another easy way is to change wifi sleep policy in settings - wifi - advance to always on during sleep for Spotify an then put back to charging only when not using that app.
UPDATED 06.08.20
reserved
Ziona said:
UPDATED 06.08.20
reserved
Click to expand...
Click to collapse
Sorry what version is newer?
Wifi Iddle patch or Wifi Iddle patch 1.2
Thanks
enotar said:
Sorry what version is newer?
Wifi Iddle patch or Wifi Iddle patch 1.2
Thanks
Click to expand...
Click to collapse
Its rite there mate, the latest is v1.2 an its for magisk install in manager only, the older other is a recovery install standalone.
I'm trying to apply your fix a Android DVR mirror that keeps turning the Wi-Fi off on me when it goes to sleep. I want the Wi-Fi to stay on. I can't select anything in magisk because I have no volume buttons on the device.
What should I do?
jhavron said:
I'm trying to apply your fix a Android DVR mirror that keeps turning the Wi-Fi off on me when it goes to sleep. I want the Wi-Fi to stay on. I can't select anything in magisk because I have no volume buttons on the device.
What should I do?
Click to expand...
Click to collapse
this mod is for disabling wifi via screen off at a desired set time. Patching to use hidden system settings. What you are asking is the opposite, android 6-8 you can find wifi sleep policy settings in settings - connection/wifi - advance - Keep Wi-Fi on during sleep > set this to - Always .
Ziona said:
this mod is for disabling wifi via screen off at a desired set time. Patching to use hidden system settings. What you are asking is the opposite, android 6-8 you can find wifi sleep policy settings in settings - connection/wifi - advance - Keep Wi-Fi on during sleep > set this to - Always .
Click to expand...
Click to collapse
It's on a DMSM5BE (sprd sl8541e_cus_go) DVR rear view mirror. Running Android 8.1, rooted using magisk. Since it doesn't have any US radios to connect to LTE here I WiFi tether it to a Nexus 6 I keep in the glove box. The problem is that when ignition is off the mirror goes to sleep it soon after kills the WiFi leaving it not able to be remotely operated. I've messed with the WiFi Sleep Policy before without any change. I believe if I set the wifi_idle_ms to a huge amount (like a couple of days worth) it maybe the ticket.
https://www.amazon.com/dp/B07ZPSTT45/ref=cm_sw_r_apan_glt_fabc_YERCKXNGH2JB5T43407F
jhavron said:
It's on a DMSM5BE (sprd sl8541e_cus_go) DVR rear view mirror. Running Android 8.1, rooted using magisk. Since it doesn't have any US radios to connect to LTE here I WiFi tether it to a Nexus 6 I keep in the glove box. The problem is that when ignition is off the mirror goes to sleep it soon after kills the WiFi leaving it not able to be remotely operated. I've messed with the WiFi Sleep Policy before without any change. I believe if I set the wifi_idle_ms to a huge amount (like a couple of days worth) it maybe the ticket.
https://www.amazon.com/dp/B07ZPSTT45/ref=cm_sw_r_apan_glt_fabc_YERCKXNGH2JB5T43407F
Click to expand...
Click to collapse
I kind of understand what you want. If your sure it's wifi is disabled when the device wakes up / screen comes on rite then before it enables wifi then.
Try running this code below from a root terminal or actually anything that can execute commands on the target device. Like Mixplorer.apk can work.
Run Code once: 24 hour timer before wifi sleep.
Code:
settings put global wifi_idle_ms 86400000
I'll try it and report back with the result.
Ziona said:
I kind of understand what you want. If your sure it's wifi is disabled when the device wakes up / screen comes on rite then before it enables wifi then.
Try running this code below from a root terminal or actually anything that can execute commands on the target device. Like Mixplorer.apk can work.
Run Code once: 24 hour timer before wifi sleep.
Code:
settings put global wifi_idle_ms 86400000
Click to expand...
Click to collapse
Tried...
I used termux.
Typed su
settings put global wifi_idle_ms 172800000 (figured why not make it 2 days)
I got back invalid namespace.....
What am I doing wrong?
Is it because I am not in the correct directory?
Was excited to try this as the current doze settings I'm using takes 30 seconds to turn the wifi back on. Unfortunately, it messed up my tablet so badly that it needed a full wipe. It essentially defaulted my android settings and kept them from being possible to change. Oh well.

[DISCONTINUED] Samsung Galaxy One UI - Optimization Guide

THIS IS A SUGGESTED CONFIGURATION FOR SAMSUNG DEVICES​OUT OF SUPPORT/CLOSED​I - RECOMMENDED SETTINGS​To Start With​- Factory Reset before starting optimisations
- Factory Reset after every Major update (One UI/Android)
- Remove SIM before first boot
- Follow setup OFFLINE (DON'T restore anything during setup)
- NEVER use Smart Switch
- Reboot, insert SIM then continue setup online.
System Settings​- Auto-Rotate: DISABLED
- Notification Bubbles: DISABLED
- Notification History: DISABLED
- Synchronization: DISABLED (turn it off again when not in use).
- Location: DISABLED (turn it off again when not in use).
- Display Resolution: FHD/1080p
- Colour Palette: DISABLED
- Advanced features: ALL DISABLED
- Motions and Gestures: ALL DISABLED
- Auto download System Update over Wi-Fi: DISABLED
- Bluetooth Scanning (Location services): DISABLED
- Usage & Diagnostics: DISABLED
- Advertising ID: RESET & DELETE
- System Sound/Vibration feedback: OFF
- Network Mode: 2G/3G/4G
- Always On Display (AoD): DISABLED
- Dark Mode: ENABLED
- RAM PLUS: DISABLED
- Trust Agent: DISABLED
- Suggestions/Recommendations: ALL DISABLED.
Battery Settings​- Sleeping Apps: All apps except apps you need instant notifications from.
- Put unused apps to sleep: ENABLED
- Auto optimisation: DISABLED
- Adaptive Battery: DISABLED
Google Settings​- Nearby connections: DISABLED
- Devices: DISABLED
- Nearby Share: DISABLED (turn it off again when not in use).
- Nearby Share Notification: DISABLED
Accessibility Settings​- Reduce transparency & Blur: ENABLED
Developer Options:​- Background Check: DISABLED
- Suspend execution of Cached apps: ENABLED
- Animation scale (3 entries) : x0.5
- Wi-Fi Scan Throttling: Enabled
- Logger Buffer Sizes: OFF
- Predictive Back Animations: ON
Camera Settings​- Turn off location tags and location permission for the camera app.
- Move all camera modes to the "More" section.
- Face Beautification: DISABLED
- Video Stabilization: DISABLED
- Video Resolution: 4K30
- Scene optimiser ON
- Auto night mode OFF
- Auto FPS ON
- Grid ON
Camera Assistant Settings (DOWNLOAD HERE)​- Auto HDR: ENABLED
- Picture Softening: OFF
- Auto lens switching: DISABLED
- Quick Tap Shutter: ENABLED
- Capture speed: Prioritise Quality
- Video recording in Photo Mode: DISABLED
- Camera Timeout: 1 Minute
- Dim Screen While Recording: 1 Minute
Google Play Store Settings​- Google Play Protect: DISABLED
- AutoPlay: DISABLED
- Auto Update Apps: DISABLED
- App Installation Optimization: DISABLED
Google Chrome Settings​Settings
- Page Preloading: DISABLED
Chrome Flags
- Smooth Scrolling: ENABLED
- Parallel Downloading: ENABLED
Social Media Apps Settings​- Theme: AMOLED/DARK
- AutoPlay videos: DISABLED
- Log out of all Old sessions.
- Delete old logged in devices.
Spotify Settings​- Canvas: DISABLED
- Gapless: ENABLED
- Normalize volume: DISABLED
- Device broadcast status: DISABLED
- Spotify connect in the background: DISABLED
II - GENERAL FIXES​Diagnose Your Problem​- Go to Device care, battery, check your battery usage. If nothing shows, it's a battery leak.
Fix Battery Leak (IMPORTANT)​Go to Permission Manager, enable "Show system apps"
- Check for any excess permissions like Location, camera or nearby devices.
- Special Access Permissions under settings, apps like Turn Screen On.
Calibrate Your Battery​- Use your phone normally till it dies off automatically.
- Plug it into the charger and leave it charging for 2h while it's still off.
- Turn it on, calibrate the battery then unplug your phone and use it normally until it dies again.
- Plug it into the charger and leave it charging for 2h while it's still off.
- Turn it on, calibrate the battery again and unplug it, enjoy
Fix Google Apps Battery drain​Go to Settings, Apps. Enable "Show system apps" then look for each of:
- Google Play Store
- Google Services Framework
- Google Play Services
- Android System WebView"
Uninstall Updates, Clear data & Cache, Force Stop, Reboot, update and follow setup.
Fix Camera Experience​- Wipe Data & Cache, reboot to Safe mode, do it again, then reboot normally.
Fix OLED Burn-in/Ghosting​- Download LCD Burn-in Wiper
- Disable Auto-brightness & set Brightness to 100%
- Leave on for at least 1 hour
Fix Speaker crackling​- Download Speaker cleaner
- Set your volume to max
- Put your phone face down & launch
Remove Ads System-Wide​Go to settings, connections, more connections settings, look for Private DNS.
- dns.adguard-dns.com or dns.adguard.com
- Close all apps then reboot.
Apps Alternatives​- Apps list
III - SAMSUNG FIXES​Fix General Performance​- Boot into recovery
- Clear cache partition
- Repair apps.
Fix One UI Lag​Set RAM PLUS to DISABLED
Fix UI Frame Drop/Stutter​Settings, Apps, check "Show System Apps", and search:
- Gesture Set battery to "UNRESTRICTED".
- Always-on Display Clear App Data & Cache (Will clear lock-screen customisations).
Fix Refresh Rate Lag​Settings, Display, Motion Smoothness.
- Set it to Standard, reboot, Set it back to Adaptive
Fix Delayed Apps Notifications​- Add ALL APPS to the Sleeping apps list
- Add ALL APPS to the Deep sleeping apps
- Add ALL APPS to the Never sleep apps
- Remove all the apps from all the lists.
Fix Fingerprint Experience​- Fingerprint always on: ENABLED
- Show animation when unlocking: DISABLED
- Show unlock transition effect: DISABLED
- Set battery usage to "Unrestricted" for "com.samsung.android.biometrics.app.setting".
Magic Fix (Mysteriously fixes a lot of stuff)​- Settings, Apps, RESET APP PREFERENCES
Unlock More Gallery Features​- Go to Gallery App, Settings, About.
- Tap version number multiple times
- You'll find more options under "Labs"
Unlock More Wifi Features​- Go to Settings App, 3 dots, Intelligent Wifi.
- Tap version number multiple times
- You'll find more options under "Labs"
- Can't access accessibility section of the settings (caused by one accessibility app uninstalled)
I'll do my best try and localise the specific apps causing the glitches with time, feel free to contribute with more apps/side effects and tips
This is caused by delete samsung keyboard.Dont delete samsung keyboard and accesibilty menu works again
Ivixmax said:
- Can't access accessibility section of the settings (caused by one accessibility app uninstalled)
I'll do my best try and localise the specific apps causing the glitches with time, feel free to contribute with more apps/side effects and tips
This is caused by delete samsung keyboard.Dont delete samsung keyboard and accesibilty menu works again
Click to expand...
Click to collapse
Thanks a lot, I'll try it myself and edit OP.
Some of those apks on the block list just sit there and do nothing unless needed.
You need to know what you're blocking and if it really needs/should to blocked.
Dependencies, dependencies, dependencies, the app names and functions can be deceiving.
Samsung's have so many features you may never realize what you lost and for little or no gain.
The Google system and user apps are some of the worst offenders.
blackhawk said:
Some of those apks on the block list just sit there and do nothing unless needed.
You need to know what you're blocking and if it really needs/should to blocked.
Dependencies, dependencies, dependencies, the app names and functions can be deceiving.
Samsung's have so many features you may never realize what you lost and for little or no gain.
The Google system and user apps are some of the worst offenders.
Click to expand...
Click to collapse
1- I have been uninstalling apps over adb for a long time now, and from a functionality standpoint, they don't interfere with the user experience, but on the contrary, uninstalling them improves the experience.
2- There are no apps that "just sit there", they all will consume power and resources on the background, only noticeable on the long run.
3- This is an extensive, maxed out and extreme list of bloatware, you can of course choose to skip some of those apps if you need them, your use case may be different then mine.
H-banGG said:
1- I have been uninstalling apps over adb for a long time now, and from a functionality standpoint, they don't interfere with the user experience, but on the contrary, uninstalling them improves the experience.
2- There are no apps that "just sit there", they all will consume power and resources on the background, only noticeable on the long run.
3- This is an extensive, maxed out and extreme list of bloatware, you can of course choose to skip some of those apps if you need them, your use case may be different then mine.
Click to expand...
Click to collapse
Many of those never load unless called upon.
You can see what's loading Device Care>memory or Developer options>running apps, cache apps.
Example; Bixby Vision and Bixby Framework.
The other Bixby crapware is disabled on my N10+'s. Those former two are not, and not loaded in the system cache or running. No need to block them. Karma Firewall also verifies no internet activity for them.
{
"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"
}
Ivixmax said:
- Can't access accessibility section of the settings (caused by one accessibility app uninstalled)
I'll do my best try and localise the specific apps causing the glitches with time, feel free to contribute with more apps/side effects and tips
This is caused by delete samsung keyboard.Dont delete samsung keyboard and accesibilty menu works again
Click to expand...
Click to collapse
You're right, accessibility settings work now with samsung keyboard disabled but still installed. thanks, i'll move it to the "to disable" list.
Could you provide info of each app, so we know what are we going to delete \ disable?
DannyynnaD said:
Could you provide info of each app, so we know what are we going to delete \ disable?
Click to expand...
Click to collapse
You can use This app to check for package names, also, you can reinstall/download deleted apps using AppControl if you can't find them after debloating
Thank you for this - just tried this list, let's see how the battery life behaves now...
H-banGG said:
You can use This app to check for package names, also, you can reinstall/download deleted apps if you can't find them after debloating
Click to expand...
Click to collapse
Akp Export shows the same but many of the Samsung system apks are anyone's guess. Android 10 (vs my older N10+ running on 9) on my new N10+ has dozens of new apks like this. Most of those shouldn't be touched as they are why the two N10+'s look and function almost identically. PD also list proper app names; it also has a direct browser search for each apk to try and see what its function is.
My Package Disabler list was imported from the older Note to the new one almost unchanged.
Surprisingly the optimization for the Android 10 variant was almost identical to the 9 variant, it was a snap. It took about 5 minutes to setup the PD app on the new phone, plug & play, and the user license (up to 3 devices) enabled seamlessly. One of the reasons I use it.
Makes factory resets easier too. It's nice to use a PD because you can troubleshoot with it, kill user installed apps that you occasionally use but don't want always running and you can easily test unknown or known apks to see what they do. I use the PD app daily for one thing or another. My favorite paid for app. If I lost it I be doing the abd edit thing.
@H-banGG So, after running suggested ones from the first post, Lloyds Banking app stopped working (app launch failed).
Any of the services can be causing this (security, Banking, authentication)?
Ardysan said:
@H-banGG So, after running suggested ones from the first post, Lloyds Banking app stopped working (app launch failed).
Any of the services can be causing this (security, Banking, authentication)?
Click to expand...
Click to collapse
Knox... maybe Samsung pass
These don't kill my bank app, but knox is still running...
Note: com.samsung.android.knox.attestation is NOT disabled on my device.
H-banGG said:
You can use This app to check for package names, also, you can reinstall/download deleted apps if you can't find them after debloating
Click to expand...
Click to collapse
Thank you!
Ardysan said:
@H-banGG So, after running suggested ones from the first post, Lloyds Banking app stopped working (app launch failed).
Any of the services can be causing this (security, Banking, authentication)?
Click to expand...
Click to collapse
Hi, thank you for notifying the error. I don't use banking apps on my phone so i never had to face this issue, but i'd suggest first to restore all KNOX apps using ADB AppControl, restarting and trying again. Please, report back after.
Actually, kept Knox dead and just reinstalled the app itself. Works fine so far...
It probably restored whatever it needed during reinstall
Another curiousity.
Before "deep sleeping apps" - I could add apps to be put to deep sleep. No when I press + - there are none at all to choose there.
Is this because of suspend execution of cashed apps setting?
Ardysan said:
Actually, kept Knox dead and just reinstalled the app itself. Works fine so far...
It probably restored whatever it needed during reinstall
Click to expand...
Click to collapse
Yes actually, a lot needed apps are just needed installed, even if they are disabled
Ardysan said:
Another curiousity.
Before "deep sleeping apps" - I could add apps to be put to deep sleep. No when I press + - there are none at all to choose there.
Is this because of suspend execution of cashed apps setting?
View attachment 5488149
Click to expand...
Click to collapse
So, any ideas why it is not possible to put apps to deep sleep after making these changes?
In battery stats some apps have "background" activity and I'd rather they didn't . Used to work yesterday.
Ardysan said:
Another curiousity.
Before "deep sleeping apps" - I could add apps to be put to deep sleep. No when I press + - there are none at all to choose there.
Is this because of suspend execution of cashed apps setting?
View attachment 5488149
Click to expand...
Click to collapse
Hi, thanks for sharing this issue.
The "cached apps" setting in de options isn't actually the problem, there surely is a service that manages these sleeping apps that has been disabled, i'll dig deeper into that.

Categories

Resources