✭[GUIDE][26-07-2016]Extreme Battery Life Thread(Greenify+Amplify+Power Nap)✭

Did this thread help in improving your battery life?

  • Not at all!

    Votes: 288 9.6%
  • Little Bit

    Votes: 750 24.9%
  • Noticeable Improvement

    Votes: 1,250 41.5%
  • Saved my day!

    Votes: 726 24.1%

  • Total voters
    3,014
Search This thread

PamelaGirl

Senior Member
Jul 10, 2011
853
100
Hello Good People,
I went from Kitkat 4.4.4 to Nougat 6.0.1 and I see this alarm being very active
Alarms: 199, Intent: com.sec.epdg.NATT_KEEP_ALIVE_TIMER_EXPIRED

Can someone please share some insight as to what this does and if I can limit it?
T.I.A :)

---------- Post added at 07:01 PM ---------- Previous post was at 07:01 PM ----------

Hello Good People,
I went from Kitkat 4.4.4 to Nougat 6.0.1 and I see this alarm being very active
Alarms: 199, Intent: com.sec.epdg.NATT_KEEP_ALIVE_TIMER_EXPIRED

Can someone please share some insight as to what this does and if I can limit it?
T.I.A :)
 

DB126

Senior Member
Oct 15, 2013
15,298
10,068
Hello Good People,
I went from Kitkat 4.4.4 to Nougat 6.0.1 and I see this alarm being very active
Alarms: 199, Intent: com.sec.epdg.NATT_KEEP_ALIVE_TIMER_EXPIRED

Can someone please share some insight as to what this does and if I can limit it?
T.I.A :)

---------- Post added at 07:01 PM ---------- Previous post was at 07:01 PM ----------

Hello Good People,
I went from Kitkat 4.4.4 to Nougat 6.0.1 and I see this alarm being very active
Alarms: 199, Intent: com.sec.epdg.NATT_KEEP_ALIVE_TIMER_EXPIRED

Can someone please share some insight as to what this does and if I can limit it?
T.I.A :)
Does it keep the device awake or appear to be associated with some other undesirable behavior? If 'no' to both ignore it. Alarms & wakelocks w/o consequence are not evil.
 
  • Like
Reactions: PamelaGirl

PamelaGirl

Senior Member
Jul 10, 2011
853
100
Davey126 to the rescue!
Thank you kindly for the quick response. I answered no to both questions so looks like I will take your advice and leave it alone.

Wonderful to see you still active on this thread and generously helping others in need,
THANK YOU :)
 
  • Like
Reactions: DB126

bap91

New member
May 11, 2019
3
0
I have Realme 3 Pro android pie, Greenify command not working, any solution

I mean to say, when we will try to on aggressive doze mode they will ask to open certain page and page mentioned that to make features working you have to apply some permission by computer using command prompt or powershell, after I connect my mobile to pc I try to execute command mentioned in Greenify website but it's not working or executing.
 

bap91

New member
May 11, 2019
3
0
What do you mean by not working? Is it crashing?


Moto G5S Plus XT1806, AOSiP 8.1 ROM, microG (NoGapps), MultiROM, XDA Legacy


Please check above post. Sorry I forget to mentioned you there. Please help me

---------- Post added at 08:02 AM ---------- Previous post was at 07:59 AM ----------

What do you mean by not working? Is it crashing?


Moto G5S Plus XT1806, AOSiP 8.1 ROM, microG (NoGapps), MultiROM, XDA Legacy



I mean to say, when we will try to on aggressive doze mode they will ask to open certain page and page mentioned that to make features working you have to apply some permission by computer using command prompt or powershell, after I connect my mobile to pc I try to execute command mentioned in Greenify website but it's not working or executing.
 

rodken

Senior Member
Jan 11, 2010
1,652
731
@v7
Is there any way to utilize Amplify without Xposed or an alternative app that comes even close to it, excluding Greenify?
 
Last edited:

maximus81

Member
Jul 25, 2009
31
6
Melbourne
I am having huge battery drain on my S20U. Overnight it lost 20% (100% to 80%). This is with mobile data, location, NFC, AOD, Bluetooth and dolby atmos OFF. Checking on Better Battery Stats (which has been given additional access via ADB), out of 8 hours it was awake for 4h 51m. This is huge IMO. I have included screenshots below for kernel and partial wakelocks. Could anyone with more knowledge point towards whats causing the drain? its driving me mad.
https://imgur.com/a/B7KuB1o – Summary
https://imgur.com/a/fAIMeQM – partial wakelocks
https://imgur.com/a/ZbfmjGF – kernel wakelocks

Basically, in Kernel wakelock its mmc0_detect and bbd_wake_lock. Did some research on mmc0_detect and it suggests it is due to Always on Display. But in my case AOD was off the whole time.
 

githyanki

Senior Member
Mar 11, 2009
1,662
879
Edmonton
I am having huge battery drain on my S20U. Overnight it lost 20% (100% to 80%). This is with mobile data, location, NFC, AOD, Bluetooth and dolby atmos OFF. Checking on Better Battery Stats (which has been given additional access via ADB), out of 8 hours it was awake for 4h 51m. This is huge IMO. I have included screenshots below for kernel and partial wakelocks. Could anyone with more knowledge point towards whats causing the drain? its driving me mad.
https://imgur.com/a/B7KuB1o – Summary
https://imgur.com/a/fAIMeQM – partial wakelocks
https://imgur.com/a/ZbfmjGF – kernel wakelocks

Basically, in Kernel wakelock its mmc0_detect and bbd_wake_lock. Did some research on mmc0_detect and it suggests it is due to Always on Display. But in my case AOD was off the whole time.
Please post the log, not screenshots.
 

maximus81

Member
Jul 25, 2009
31
6
Melbourne
Your log does not meet the requirements for a proper idle dump. Please submit a log with over 6 hours screen off time and less than 1 minute screen on. There's detailed instructions on the first post.

Thanks, I have attached the logs based on the requirements. There are 2 logs. First - With location and AOD - OFF. This shows drain of 6% (100% to 94%) in 7h 11m, this equates to 0.8%/hr drain. Second - with Location Off but AOD On. 13% drain in 7h 39m. which is 1.7% drain per hour.
I am happy with results of first night (.8% drain per hr). However with second log, is it on acceptable level?
 

DB126

Senior Member
Oct 15, 2013
15,298
10,068
Thanks, I have attached the logs based on the requirements. There are 2 logs. First - With location and AOD - OFF. This shows drain of 6% (100% to 94%) in 7h 11m, this equates to 0.8%/hr drain. Second - with Location Off but AOD On. 13% drain in 7h 39m. which is 1.7% drain per hour.
I am happy with results of first night (.8% drain per hr). However with second log, is it on acceptable level?
Seems you have self-identified the culprit. My personal experience with AOD varies by device with Samsung gizmos biasing functionality/responsiveness over power efficiency. I typically disable AOD except on Moto phones. If you find AOD beneficial keep it on, perhaps tweaking which apps can trigger AOD (believe Samsung controls allow this). Otherwise disable. Doesn't get much simpler than that.
 
Nope - absolutely not. That said, some enthusiast with too much unstructured time will undoubtedly make a case for sticking with 2015 era methodologies on modern ROMs and devices that can manage themselves. I can hear them typing now.
Daaaammnnnnnnnnnn. You're my favorite now. Those aren't tusks. They're ****ing fangs.
 
  • Like
Reactions: DB126

Top Liked Posts

  • There are no posts matching your filters.
  • 811
    ✭[GUIDE][26-07-2016]Extreme Battery Life Thread(Greenify+Amplify+Power Nap)✭

    On the Portal News on 06-06-2015.

    Battery life has been a prime concern for all users around the world.Each day people try different methods to improve upon their battery life.
    Here I come up with a blended guide that includes the latest apps and Fixes' to help improve your android battery experience.


    This is based on my experiments on attaining a better battery life.For any queries,reply within the thread.
    Use BetterBatteryStats and Wakelock Detector to acquire stats.You can also use Ampere to measure the current and get notifications when the device gets fully charged.


    If anyone is interested in supporting my work and wants to buy me a beer,log in to your PayPal and use my donation mail to donate.Select the purpose as "Services" :) Any donation is appreciated :D
    530
    Amplify is a genius in handling wakelocks and alarms.It is also capable of blocking services.Amplify is the best battery saver I've come across.It is a must have app for all droids running Xposed.
    You'll need a donation package to block wakelocks and alarms.

    Downloads:
    Amplify

    Limit the following:

    Alarms

    Alarms(Allow every 600 seconds)

    • com.android.internal.telephony.data-stall

    Alarms(Allow every 1800 seconds)

    • com.oasisfeng.greenify.CLEAN_NOW


    Alarms(Allow every 3600 seconds)

    • android.appwidget.action.APPWIDGET_UPDATE


    Alarms(Allow every 7200 seconds)

    • android.content.syncmanager.SYNC_ALARM(delays sync)

    Alarms(Allow every 10800 seconds)

    • android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED
    • com.facebook.common.executors.WakingExecutorService.ACTION.ALARM.com.facebook.katana
    • com.google.android.apps.hangouts.CLEANUP_DB
    • com.pushbullet.android/.gcm.GcmFixReceiver
    • com.android.server.action.NETWORK_STATS_POLL
    • com.diune.pictures.intent.action.MEDIA_CHECK
    • LocationManagerService

    Alarms[LOCATION](Allow every 41400 seconds)

    • ALARM_WAKEUP_LOCATOR(com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR)
    • ALARM_WAKEUP_CACHE_UPDATER
    • ALARM_WAKEUP_BURST_COLLECTOR(com.google.android.gms.nlp.ALARM_WAKEUP_BURST_COLLECTOR)
    • com.google.android.gms.location.fused.GPS_ALARM_BALANCED_ACCURACY
    • ALARM_WAKEUP_ACTIVE_COLLECTOR
    • ALARM_WAKEUP_PASSIVE_COLLECTOR
    • ALARM_WAKEUP_BURST_COLLECTION_TRIGGER
    • com.google.android.intent.action.SEND_IDLE
    • ALARM_WAKEUP_ACTIVITY_DETECTION
    • com.google.android.location.reporting.ACTION_UPDATE_WORLD

    Alarms(Allow every 93600 seconds)

    • android.app.backup.intent.RUN
    • com.google.android.gms/.checkin.EventLogService$Receiver
    • com.google.android.gms/.checkinCheckinService%Receiver

    Wakelocks

    Wakelocks(Allow every 800 seconds)

    • WakefulIntentService[GCoreUlr-LocationReportingService]
    • RILJ
    • NetworkStats

    Wakelocks(Allow every 3600 seconds)

    • WeatherUpdateService

    Wakelocks(Allow every 10800 seconds)

    • SyncLoopWakeLock(delays sync)
    • *net_scheduler*
    • GCoreFlp
    • Icing
    • Wakeful StateMachine: GeofencerStateMachine
    • NfcService:mRoutingWakeLock
    • wake:com.pushbullet.android/.gcm.GcmService
    • SyncService(Package: Push Bullet)
    • ai(Package: Push Bullet)
    • ae(Package: Push Bullet)
    • AsyncService

    Wakelocks(Allow every 41400 seconds)

    • NlpWakeLock
    • NlpCollectorWakeLock
    • LocationManagerService
    • Config Service Fetch

    Wakelocks(Allow every 9999999 seconds)

    • *job*/com.facebook.katana/com.facebook.analytics2.logger.LollipopUploadService
    • JobSchedulerHack-com.facebook.analytics2.logger.LollipopUploadService
    • UploadServiceLogic-com.facebook.analytics2.logger.LollipopUploadService
    • *job*/com.facebook.orca/com.facebook.bugreporter.scheduler.LollipopService (com.facebook.orca.Messenger)
    • *job*/com.facebook.katana/com.facebook.bugreporter.scheduler.LollipopService (com.facebook.katana.Facebook)


    Services

    Services(Block/Deny)

    • com.google.android.gms.analytics.AnalyticsService
    • com.google.android.gms/com.google.android.location.internal.GoogleLocationManagerService(Location Service)
    • com.android.gms.Feedback.FeedbackService(Breaks Play Games)
    • com.android.gms.ads.AdRequestBrokerService
    • com.google.android.gms/com.google.android.location.network.NetworkLocationService(Location Service)
    • com.google.android.location.geofencer.service.GeofencerProviderService(GPS Service)
    • com.google.android.gms/com.google.android.location.copresence.service.ProximitySettingInjectorService
    • com.facebook.katana/com.facebook.analytics.service.AnalyticsService
    • com.facebook.orca/com.facebook.analytics.service.AnalyticsService
    • com.android.cellbroadcastreceiver/.CellBroadcastAlertService
    • com.android.cellbroadcastreceiver/.CellBroadcastConfigService


    NB:I don't use Location Service.That's why I've disabled the location Services.If your'e using Location service,do not disable the services with location and GPS tag)

    Alarms(REGEX Blocking)

    • ALARM_WAKEUPxxxxx
    • CONTEXT_MANAGER_ALARM_WAKEUP_xxxxx

    Procedure(Screens attached)

    • Open Amplify.
    • Select Alarms from the menu.
    • Tap the list icon on the top right corner
    • Tap + button on top.
    • Add the following code to 'Enter Regex to match'
      Code:
      ALARM_WAKEUP[0-9]+
      Code:
      CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,}

      [*]Set the interval to 9999999 seconds.

    Screenshots:
    Ff654y5.png

    uGLYCCs.jpg


    Regex Blocking

    TzY0nxi.jpg

    Gh3mXdq.jpg

    ZFgqRVN.png

    TXYqcMb.png

    358
    Lets Start with a few basic settings.

    Display
    Display brightness is an important factor in battery life.The more brighter the screen is,the more juice it drains.So keep the brightness under control.Using automated brightness is not adviceable.Try manually adjusting the screen brightness.Using dark wallpapers(on AMOLED display) can help you save some bit of juice.

    Cell Network
    This is simple stuff,but results in noticeable improvement in battery life.Toggle LTE/3G to 2G while not in use.(While on WiFi).You can use Smart Network to switch between networks.
    For devices that support Fast Dormancy(Read Here) can disable it to save some juice on 3G.(Link to disable Fast Dormancy for Xperia Devices)

    Wifi
    Even if your wifi is off,the phone searches for signal.To switch off this feature,go to Settings > Wifi > Options(Top right corner) > Advanced >Scanning always available(Off).

    Location
    Another juice sucker in Android-Location Services.You can turn it off while not in use.That saves a lot off juice.You can also set the location to 'Device Only" in settings.
    Navigate to Settings->Location->Menu->Scanning->Turn off "Wi-Fi Scanning" and "Bluetooth Scanning"

    These are the basic stuffs one must look into before complaining about their battery.

    Is your battery gauge lying to you?:Take a look at this link.This thread explains why you get sudden drain after waking up from sleep.Many people should've noticed that the battery drains faster after keeping the phone idle for some time.It is very informative and is worth a read.
    335
    Xposed Framework is essential as it is required fo proper working of Greenify,Amplify and PowerNap.If you're running android 4.0.3+ you'll be able to run Xposed Framework on your device.It has an initial Lollipop support.Xposed Installer is required for functioning of the apps mentioned in the guide.

    Downloads:

    Find the support for the framework in Xposed for Lollipop and Xposed for MarshMallow threads.

    Thanks to @oasisfeng for such an awesome app.The latest 2.9.2beta update brings the feature to disable the motion scanning in doze.
    You can use Greenify to hibernate apps that are not in use.You can use Donation Package of Greenify which includes lots of features.Once you have a Donation Package with you,you need to activate the Greenify Xposed Module in Xposed.Once done,enable the Boost mode and Experimental Features.See attached screenshots.

    Downloads:

    Greenify
    Donation Package


    Greenify the apps that eatup battery by running in background(Refer BBS)

    Below are some of the major drainers:

    1. Browser
    2. Facebook
    3. Facebook Messenger
    4. Google+
    5. Hangouts
    6. Hike
    7. Instagram
    8. Maps
    9. UC Browser

    Marshmallow Settings

    @oasisfeng introduced a new feature in Greenify 2.9 beta 1 which disables the "Motion Sensing" of doze.This can be achieved by turning ON the "Aggressive Doze" in Greenify settings.Unlike the default behaviour of doze,the device won't be kicked out of doze when a motion is detected.This helps in complete utilization of "doze".All you have to do is to enable the "Aggressive Doze" option in Greenify settings.See the attached screenshots.

    Apps to be whitelisted in doze are being tested.You can also contribute in testing :)

    Screenshots

    FuIRrnv.png

    xQwaZUb.png


    Aggressive Doze
    UKrvfMd.png

    UKrvfMd.png



    There's no need to hibernate all the apps.Do not Greenify Dialer or Messaging apps
    199
    Power Nap for Xposed is the SONY's stamina mod for non-Sony devices.When your screen is off, Power Nap maximizes your device's deep sleep time by stopping services, alarms and wakelocks from waking the device when the screen is off.You can get notification from the apps you've whitelisted.
    NOTE:In order to download the app you need to join the alpha testers community in Google+ here and opt to become a tester.Then you'll be able to download and run the module


    NB:XDA Thread for PowerNap is closed down due to lack of activity from the developer.



    Set the Endurance Mode to Always ON.

    You can use Power Nap along with Greenify and Amplify for a better sleep time.You have whitelist both Greenify and Amplify for proper working of both the modules.

    If you need certain apps to run in background while screen off(eg:Instant Messengers),you have to whitelist them in Power Nap.

    List of apps to be whitelisted:


    • Amplify
    • AndroidSystem
    • BetterBatteryStats
    • Cyanogenmod System
    • GooglePlayServices
    • Google Services Framework
    • Google Account Manager
    • Greenify
    • Greenify Donation Package
    • Trebuchet
    • Xposed Installer

    Screenshots:
    SbC7w9z.jpg

    M7LCYJQ.jpg



    AppOps is a permission manager in android.There are various versions of AppOps available in the PlayStore.I recommend the one linked with Xposed.(You can also use CyanogenMod Privacy Guard).

    Downloads:

    AppOpsXposed

    You can use Privacy Guard to disable some permissions of Google Play Services and Google Services Framework

    Navigate to Settings->Hacks->Check FIX OP_WAKE_LOCK
    Disable the following Permissions of Google Play Services using AppOps

    • OP_ALARM_WAKEUP/Wake Up
    • Keep Awake

    Disable the following permissons of Google Services Framework

    • Keep Awake

    Use Auto Start Permission of AppOpsXposed to disable apps on Boot.Make sure you do not disable crucial System Apps.Disable unwanted user apps that trigger on Boot.