Related
Hello!
I am trying to find a way, to swap out the widget icon and text on my "Advanced Task Killer" app. I would like to use minimalistic text, to trigger the autokill action the widget normally does, but under activities there is no such activity, only the option to LAUNCH the task killer app.
How can I do this? I've found an application called xShorcut, that allows me to launch applications with a string/command, so does anybody know what the "kill" command is for the Advanced Task Killer? Is there a way to grab said activity, via an app or so?
No wise heads, that is able to shed some lights on this matter?
Maybe this helps?.. Sorry I can't contribute more.
As far as I can understand, this app can trigger the widget at specific times (e.g. 2 pm), but it doesn't allow my to create another widget, so I can have another design on it
Still nobody?
To be honest I think it would help if you posted in a general or q&a forum in your phone's section... Themes isn't really the best spot to post about these things.
Sent from my Nexus One using XDA App
Hi all,
Abstract:
I present a way to easily toggle GPS on/off in CM7-based ROMs using Tasker and Locale Execute plugin. It is a little less cumbersome to use than the toggle available in Trigger Redux, and introduces the ability entirely in other CM7 based ROMs. It also leaves a permanent notification on boot if GPS drivers are enabled, so you're not wondering if it worked or not. You can download and import the profiles, tasks, and scripts required in the attached zip, below. See installation instructions.
NOTE: I cannot guarantee that your GPS will get a lock! I can only guarantee that the GPS driver will be correctly loaded/unloaded. Getting a lock is a whole different story!
Overview:
I'm running Trigger Redux build#14 and got a little annoyed with having to go into EDT Tweaks to toggle on/off GPS. There also isn't a naive way to do it in vanilla CM7 (that I know of). However, it's as simple as getting rid of /system/vendor/bin/gpsd (Roman renames it "disabled_gps".) I wanted to write a Tasker widget to do the following:
When I want GPS on:
rename /system/vendor/bin/disabled_gps to [..]/gpsd
Automatically toggle GPS on before reboot
Reboot for me, to reload the GPS driver
Create a permanent notification after reboot
When I want GPS off:
rename /system/vendor/bin/gpsd to [..]/disabled_gps
Automatically toggle GPS off before reboot
Reboot for me; on reboot, phone won't find GPS driver
Using Tasker and the Locale Execute plugin, this is all pretty easy. I wanted to share this with you all because I know how annoying the GPS battery drain is, and toggling the driver on and off isn't natively available in CM7.
Installation Instructions
In the attached zip file, there are 6 files:
CM7_GPS.sh <---- used to only have to approve one Superuser request, rather than several; renames GPS driver correctly and causes a hard reboot
CM7_GPS.tsk.xml <---- toggle widget, this lives on the home screen
CM7_GPS_su.tsk.xml <---- get superuser request - run one time, then you can delete it if you really wanted to
CM7_GPSToggle.tsk.xml <---- toggles GPS on/off, runs CM7_GPS.sh to rename the GPS driver
CM7_GPSNotify.prf.xml <---- leaves a permanent notification that CM7 GPS is enabled on boot
CM7_GPSNotifyClick.prf.xml <---- allows you to click the previously set permanent notification to disable CM7 GPS
You'll need Tasker 1.1 (latest version) and the free Locale Execute Plugin.[/color]
Open the zip and place all *.prf.xml in /mnt/sdcard/Tasker/profiles . Place all *.tsk.xml in /mnt/sdcard/Tasker/tasks . Place CM7_GPS.sh in /mnt/sdcard .
Open Tasker; hit Menu->Profile Data->Import One Profile. Import all profiles that you just installed.
Same as above step, but with tasks.
Hit Tasks, then open "CM7-GPS_su", and hit "Test". Approve the Superuser request. Exit Tasker.
Create a Tasker widget on your home screen - look for the task "CM7 GPS".
Enjoy the ability to toggle the GPS driver on and off, quickly and easily
THAT'S ALL YOU NEED! Download the profile scheme, and hit the Thanks button
If you ever wonder if the Tasker widget actually worked, just look for the "CM7 GPS Enabled" permanent notification. I explicitly check if the file "/system/vendor/bin/gpsd" exists to create that notification. There have been a *couple* of instances where the notification didn't come when it should have; I put in a Wait 20 seconds before checking for file existence in the CM7-GPSNotify task, and that seems to have fixed my problem.
I've been testing, debugging, and refining this profile scheme all day. I've not always been able to get locks, but I've been able to load/unload the GPS driver every time.
If you have issues, please let me know ASAP so I can fix and re-upload. Like I said though, I've been using this GPS toggler without fail for the better part of a day now.
Changelog
Code:
v1: initial release - should hopefully be the only one!
where you can find TASKER 1.1b4
i only find Version: 1.0.21 in offical website
BTW, why don't just turn off gps, i don't think this can drain battery.
yeah i dont think it does i leave mine on and i get good battery life
roffee said:
where you can find TASKER 1.1b4
i only find Version: 1.0.21 in offical website
BTW, why don't just turn off gps, i don't think this can drain battery.
Click to expand...
Click to collapse
Check the link I posted.
Disable/enable for the GPS driver itself was based on a conversation in the CM7 nightlies thread (can't find it because there are WAY too many posts in that thread). In Trigger Redux#13, Roman introduced an "Enable GPS" checkbox in his EDT Tweaks that loads or unloads the GPS driver. This Tasker widget just emulates that functionality, but with a few more bells and whistles.
It may or may not impact battery life; I haven't run enough tests to truly understand the impact of leaving the GPS driver enabled, but GPS functionality disabled. I do know that at the time of the original fix (nightly #54 or thereabouts?) it was, correctly or incorrectly, associated with moderate to heavy battery drain. I've always used EDT Tweaks to load/unload the driver ever since; I just wanted to share something that made my life easier, and might make others' lives easier too.
Yes I confirm, GPS enabled does not actually waste your baterry life, it only uses it when the gps icon is blinking. I keep my gps on all the time, but this is a nice profile nevertheless.
Hello guys, I want to try to help everyone who has problems with battery life and performance.
First of all, I want to say that you shouldnt have any problems if you use your device in a normal way(calling ,social networking apps, playing light games etc)
A SOT of around 4-5h on mobile network or a SOT of 5-6h on WiFi is really good and in my opinion normal and you shouldnt need to worry about. Over night while you are sleeping (8h for example) your battery shouldnt drain more than 3-5%.
If you have much less SOT or much more battery drain over night, you should read the following steps and try them.
(I can tell you that my OP3 never drains more than 3-4% over night and I have no problem getting 4-5h SOT on mobile network or 5-6h or even more on WiFi use only. I have to say I dont use Facebook or twitter for example, but I have my Bluetooth always turned on because i use a mi band)
Please try the following steps and tell me if it did help you. (Please choose one option in the pool)
1. Activate doze mode and aggressive doze mode in developer options and change the animation scale
- Go into settings -> developer options -> Doze mode -> activate it
- Go into Settings ->Battery ->3 Dots Menu ->Agressive doze & app hibernation ->Tap the slider and activate for apps
- Go into settings -> developer Options -> Window Animation scale/Transitions Animation scale/Animator duration scale -> set them to .5x or even off
2. Install Greenify from Google Play Store and activate it
Activate it for every app you can, except for apps with a little blue cloud as they need to work in background to sync data. (WhatsApp for example)
3. Wipe cache after every update and from time to time (I recommend once a week)
Turn off your phone -> hold power button and volume down button -> release the power when your phone turns on -> select english by pressing the volume down button and then the power button -> go to wipe cache and data -> select cache (and nothing else!) and press the power button -> reboot now
4. Turn off potential power hogs you dont necessarily need
- For example turn off Bluetooth, GPS Location and Location history, Mobile Data if not in use, WiFi if not in use and NFC -> you can find them in settings under their name
- Also turn off things like gestures in settings: Go into settings -> Gestures -> turn them off
5. Use pocket mode
Settings -> Advanced -> Pocket Mode
6. Turn off Android Device Manager and Google Now Cards
- Settings -> Security & Fingerprint -> Device Administrators -> Android Device-Manager -> turn it off
- Open your Google App -> Settings -> Your Feed -> Turn off Feed
7. Configure your WiFi
- Settings -> Wifi -> tap the gear symbol -> turn off "Scanning always available"
- You can also turn off "Keep wifi on during sleep" but i dont recommend it as apps like WhatsApp will only receive messages when you turn your screen back on!
8. Use adaptive brightness
Use the little "A" in the dropdown settings menu next to your screen brigthness bar
9. Use a Browser that is developed for Snapdragon devices
I recommend using Gello Mod or TugaBrowser as they are developed especaily for using with a device with a snapdragon CPU to save battery -> just search for them in Google
10. Disable permissions of apps
Try disabling permissions of apps if possible. This should prevent apps from using your internet connection and staying in background keeping your CPU awake. Please be aware that some specific apps need some specific rights to work properly. Use the try and error method here.
11. If u have custom recovery installed you can use custom kernels such as ex kernel ,boeffla kernel, blu spark etc for better battery and performance.
Link to ex kernel
https://forum.xda-developers.com/oneplus-3/development/kernel-elementalx-op3-0-01-t3404879
Link to boeffla kernel
https://forum.xda-developers.com/oneplus-3/development/kernel-boeffla-kernel-xx-09-2016-t3455467
Link to blu spark kernel
https://forum.xda-developers.com/oneplus-3/development/kernel-t3404970
12.AKT are is another way to save battery and performance tweaks.(requires root)
Link to thread of AKT
https://forum.xda-developers.com/oneplus-3/how-to/advanced-interactive-governor-tweaks-t3476589
13.Have a look at this thread too
https://forum.xda-developers.com/oneplus-3/how-to/potential-fix-cpu-battery-drain-aosp-t3543369
If you follow these 10(Normal everyone can do)+3(require twrp/root) simple steps you should not have any problems with battery life or performance.
If you need any further help please ask and please share your suggestions and results!
Source one plus forums , XDA and me
This is a big guide and it's worth reading
Hit the thanks button if this helps:good:
These tips are like from 2010 which you come across random articles from web.. I thought you would post something new...
Also 3h sot on mobile network... I have used couple of phones past year never got such a bad backup on any of them..
Really stupid article.
For OB9 and above, what i have found that if you are using both greenify and aggressive doze, battery would drain like hell, Android System used to be always on top of stats with 25-30% of drain. Disabling aggressive doze and just using greenify solved this issue, and now Android System is back to normal.
pls guys, he trying to help .
if it works thanks him, if not find other tips
dont be so rude :fingers-crossed:
Sent from my OnePlus3 using XDA Labs
Wipeing is not necessary if not dump cause the phone has to build it up again and will use resources for that.
Thanks man, in my opinion, it's a good guide for beginners I'm not a beginner, I've just created a new user name
Thanks for sharing all these tips and references. As some mentioned I'd refrain or at least keep greenify as a last resort. Cheers
Device Settings Menu Guide, Tips & Discussions
Part 4 - Advanced features, Device maintenance, Apps
If you're new to this series or want to see the index, please read the Introductory Post first.
Advanced features > S Pen
This section is exclusive to Note series so you should definitely give some time exploring it.
S Pen remote: Displays availability of the S Pen and its charging level. Configure Pen button actions for each compatible App and master control. I've tweaked it a little bit to make 'Scroll up/down' for Chrome and 'Single press' to 'Skip' while 'Double press' to 'Play/Pause' for Music. You can always tap 'Reset S Pen' in Menu in case you want to get back the default settings.
Unlock with S Pen remote: If enabled, you can unlock your phone with your S Pen in case it was taken out while the device was unlocked. In case you've enabled it, please keep an eye on your S Pen.
Screen off memo: Very useful when enabled. Here you can change the colour from the signature colour to classical white. I like the golden colour that comes with the Ocean Blue. However, this golden colour may seem weird to you when you open S Notes with the white background so you can force display Black text in S Note app itself that keeps the golden colour while writing.
Air view; Direct pen input; Pointer; Shortcuts: Very useful features. Review them. 'Learn about S Pen features' on the bottom or watch this 30-min video.
Floating icon: I don't like any over-the-screen icons so have disabled it. You can always open the Shortcuts menu by tapping the S Pen button while it's near the screen. I've also set 'Do nothing' 'when S Pen is removed'.
Alarm: Works when the screen is off since if it's on, you probably be using the remote feature.
Power saver: Although it's enabled for me, internet says it has negligible battery effects. If disabled, the device won't allow you to use another S Pen if your device's one is inside.
Sound; Vibration: Enabled since I don't like accidents. 'Oper Air command' in 'Removal' also helps in this case.
Advanced features
Accessories: Enable 'Fast wireless charging' here.
Smart stay: Too many ideal conditions required for it to work and may take a lot of battery power. Disabled.
Games: Explore 'Game Launcher' after enabling it from here. You can also hide your games from appearing in the menu while they are categorized by Game Launcher.
One-handed mode: A much-needed feature when you're OTG (on-the-go). I had changed the 'Gesture' to 'Button' after accidentally enabling this mode many times. On Pie, if you hide the navigation bar, you cannot check 'Button' mode anymore. OHM is also a shortcut in my Edge panel that is easily accessible from one hand.
Finger sensor gestures: Open/close notification panel or launch Samsung Pay using the fingerprint sensor. Make this a habit. Looks cool.
Device assistance app: Set to Google. Explore settings for the DAA - it was really cool to see Hindi (India) as an option there. Analyzing on-screen text/images is a very useful feature. Read the guide here and here on how to use Google Assistant like a pro.
Multi window: One of the best features and legacy of Samsung and for Note, it's a must-use one. By default, you can use SSV (Split screen view) by selecting it for the required app in recents. 'Use Recents button' is much faster. 'Pop-up view action' can interfere if you generally drag down the notification panel from near the corners (enabled for me).
Smart capture: Very useful screenshot features that you may need just after capturing one. Enabled.
Palm swipe to capture: I never bothered about it but with Note9, I started using it to save presses on my hardware buttons as well not needing to pick up the device in case I want a screenshot.
Direct call; Smart alert; Easy mute; Swipe to call or send messages: Tradional and useful Samsung features. All enabled.
Dual Messenger: You can use two seperate accounts for compatible apps (WhatsApp, Facebook) and restrict your contacts for the second ones. Suggested in case you have multiple accounts. For more James Bond feel, use 'Secure Folder'.
Panic mode: Can be helpful before you try show your Ninja Skills. However, I have accidently triggered it many times and since sending photos is enabled, it's kinda wierd! Still Enabled.
Direct Share: Helps you save an extra tap while sharing something. Ninja guide here.
Video Enhancer: Helps you flaunt the best screen more. In case you are not the natural-colours kind of, Enabled.
Touch sensitivity: In case you use screen protectors or live in Antarctica (gloves), Enabled. Disabled for me.
Device Care
Info: Add a home screen or edge panel shortcut to it as it's gonna be really useful. Tap 'Optimize Now' once in a while. It includes the virus scanning, memory cleaning, storage cleaning and battery optimization. Read below for more on these.
Battery:
Battery Usage: Do review this once in a while in order to identify culprits. 'Refresh' for real-time monitoring. In ideal case, all of your compatible apps should be set to 'Optimise battery usage'. In case any of them not working fine in the background and you need them to, disable the optimization for the app.
Power saving mode: Try all the modes (MID/MAX) once before you get into the Bear Grylls mode. MID will help you while you're travelling while MAX when you want to extend that last single digit juice. Do you want me share my settings?
App power monitor: When you tap 'Save Power', you manually make the apps 'Sleep'. They may wake themselves up again.
Unmonitored apps; Always sleeping apps: Select the apps you want always/never be able to run in the background.
Menu > Advanced Settings:
Notification settings: Get notified for 'unused apps' for days you specify in 'App power monitor' (disabled), 'Battery-draining apps' (enabled) and 'Unstable apps' (enabled).
App power monitor: Monitors apps to prevent excessive usage. You can 'Put unused apps to sleep' and specify the 'sleep delay' to let the feature automatically sleepify your apps (enabled, 1 day).
Fast cable/wireless charging: Enable or disable fast charging. You can disable 'Fast cable charging' in case you more often charge it overnight.
Performance Mode: Customize profiles for phone's performance (Screen resolution, Video Enhancer, UHQ upscaler, Game Launcher). You can then toggle these modes from the notification panel.
Storage: Love to see 512 GB here but only when it's the denominator. You can clean unnecessary data here by tapping 'Clean' or you can use apps like Files Go or SD Maid. User Data is also categorized so you can review and remove files of different types. 'Storage settings' summarizes device storage and you can tap the items to get to respective apps or apps settings. 'Get more space' helps you to delete Large, Unused, Duplicate and Unnecessary files.
Memory: Tap 'Clean Now' to clear your RAM. Likewise, for battery, these apps may appear here again.
Device Security: The virus scanning is powered by McAfee. Since it's disabled by default, enabling it never hurts.
Apps
All of your apps settings including Usage, Battery, Storage (Clear Data/Cache), Uninstalling and Force stopping, Notifications settings, Permissions, Defaults and Version/App details in store. I use 'Sort by size' with 'Show system apps' to occasionally review the apps taking the most storage. Change your 'Default apps', 'App permissions' and 'Special access' in the Menu. You can set 'set default apps automatically' as well. In 'Set as default', I've disabled 'Open links in app' even if they're not installed since I get annoyed when I have not installed an app because I want to browse on Chrome only (reduce usage of separate apps whenever possible). Read about 'Instant Apps' here (you can use these even without installing them). In case you mess up with the defaults and notifications, tap 'Reset app preferences'.
-- Reserved for FAQs --
Why are you posting this? ?
There's a very good "USER MANUAL" on the "Samsung"-site available:
User Manual Samsung Galaxy Note9
henklbr said:
Why are you posting this? ?
There's a very good "USER MANUAL" on the "Samsung"-site available:
User Manual Samsung Galaxy Note9
Click to expand...
Click to collapse
You have commented the same query on each of my parts. I have already answered you here where the similar discussion is already going on. Let's discuss there and keep this thread clean. Also, the 'why am I posting this' is already described in the Introductory Post.
Paras Lehana said:
You have commented the same query on each of my parts. I have already answered you here where the similar discussion is already going on. Let's discuss there and keep this thread clean. Also, the 'why am I posting this' is already described in the Introductory Post.
Click to expand...
Click to collapse
But this many different threads? Consider consolidating them?
dottat said:
But this many different threads? Consider consolidating them?
Click to expand...
Click to collapse
Talk about consolidation...... Have you counted how many battery life/issue threads exist?
Sent from my SM-N960U using XDA Labs
dottat said:
But this many different threads? Consider consolidating them?
Click to expand...
Click to collapse
Sir, 5 separate threads for almost everything you could discuss about the device!
I was also skeptical about this and even started in my mind with writing only one thread. But I wanted these kind of threads to be a contribution of the community not only the original post. The original post is only intended to be a reference post that will grow more with participation. And if this would be the case, I think it would add to the clutter if everyone is going to discuss variety of stuff in single thread. Anyways, need recommendation on this and I can consider consolidation as well.
...and to set the brightness to a specific value? I can do this easily in Windows, but not in Android.
Perhaps you figured it out by now, but just in case, the answer is definitely yes, I use that very functionality for brightness on my phone:
1. Create a new task
2. Add a "Display Brightness" action to this task (the value in this action doesn't represent percentage, so you might need to experiment with the number to get the desired brightness)
3. Add a "Tasker Shortcut" widget to your home screen. It will lead you to select the name of the task you created.
-It will also require you to select an icon for the widget, which you will do with the 9 squares at the bottom of the task edit screen (I already selected an Android robot icon in the picture).
-When adding the widget, you may also encounter an error message requiring you to open Tasker and exit with the back button to close it out properly in order for the widget to work.
There would be a similar process for volume, but you'd have to choose the appropriate action for which volume you want to adjust: ringer/system/media, etc.
Yes, I did figure it out, but thanks for posting that clear explanation, which is rare. It will probably help someone.
My most interesting program so far is a reliable way to turn the display off and on automatically to save battery power and, more importantly, to extend the lifetime of the power button.
Even with a reliable program, though, Tasker sometimes delays responding when it is closed and the display is off, so I've found that Tasker must be left running all the time. This is easy to arrange: in Android task viewing mode, click the lock icon at the top right of the screen view pane so that it becomes solid.
Such locks persist forever, I think, and are therefore quite confusing to newcomers to Adenoid, I mean Android.
You're welcome. Hopefully it might. I sympathize with the new user, since often it's difficult to get a solid, helpful answer from an advanced user regarding a beginner's topic.
As for Tasker being killed on occasion, unfortunately the circumstances surrounding that vary dramatically between devices. For example, whatever lock icon you're talking about to fix the issue on your device is not on my phone at all, so it would not work as a solution for me.
Do you have the option to "Use reliable alarms" in Tasker? I'm not sure if its presence varies between Android versions. I have that option set to "always"*, and I've never had a single time where Tasker fired late or was killed. It uses a persistent system alarm to keep tasker "in mind" all the time.
*And battery optimization for Tasker turned off, of course
david0001 said:
Yes, I did figure it out, but thanks for posting that clear explanation, which is rare. It will probably help someone.
My most interesting program so far is a reliable way to turn the display off and on automatically to save battery power and, more importantly, to extend the lifetime of the power button.
Even with a reliable program, though, Tasker sometimes delays responding when it is closed and the display is off, so I've found that Tasker must be left running all the time. This is easy to arrange: in Android task viewing mode, click the lock icon at the top right of the screen view pane so that it becomes solid.
Such locks persist forever, I think, and are therefore quite confusing to newcomers to Adenoid, I mean Android.
Click to expand...
Click to collapse
Enabling Use Reliable Alarms doesn't help. I think at this point I would say that getting Tasker to work when the display is locked is not obvious. Perhaps it is documented somewhere.
Basically, the bad symptom is as follows: after the display has been locked for a few minutes, moving the device fails to turn the display on again. Something kicks or locks Tasker out, but only after more than just a few seconds.
Sorry about not realizing that locking an app in memory is not part of Android. I'm using an inexpensive TCL A3 device sold by Tracfone. Locking is nice when you want to avoid startup delays for a task.