Note 4 CM12 Nightlies, Microsoft Investing in Cyanogen – XDA TV

CyanogenMod 12 Nightlies are now available for the Samsung Galaxy Note … more

Stylish Black Azure Theme for CM12

This black, grey and blue goodness will make your CM12 pop with cold contrast and neat transparencies. If … more

Smart Lock for Chrome Now Available for Chromebooks

Android 5.0 Lollipop introduced a useful feature titled Smart Lock, which kept your … more

Alibaba Breathes New Life Into Game-Console Maker Ouya

After asuccessful KickStarter campaign, Android console Ouya failed to become a … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Auto enable ultra power saving mode??? at %

OP willGalaxys5

Today, 12:45 AM   |  #11  
Junior Member
Thanks Meter: 1
 
18 posts
Join Date:Joined: Apr 2014
Quote:
Originally Posted by ciechom

This is really nice solution to automatically enable UPSM but one remark ... screen has to be turned on and screen locker must be unlocked ... so is we are already watching on phone why shouldn't we just manually start UPSM ?
Do you have any idea how to enable UPSM fully automatically ? without even touching phone ? my idea is to forget about power problems and every time when my phone will reach 5% it will automatically turn on UPSM completely without me.

ROOT REQUIRED
Try this :
this will unlock and run UltraPowerMode at the specified time (00:50)
On shell code :
Code:
mount -o rw,remount /system ; mv /data/system/gesture.key /data/system/oldgesture.key ; input keyevent 26 ; input swipe 71 500 636 500  ; mv /data/system/oldgesture.key /data/system/gesture.key ; mount -o ro,remount /system ; am start -n com.android.settings/.Settings\$UltraPowerSavingModeActivity ; input tap 670 103 ; input tap 520 1150
#change ro(readonly) to rw(read/write) and add the remount option
mount -o rw,remount /system

#Unlock device-- 1-PATTERN
mv /data/system/gesture.key /data/system/oldgesture.key
OR
#Unlock device-- 2-PIN LOCK
mv /data/system/password.key /data/system/oldpassword.key


#wakeup device
input keyevent 26 ; input swipe 71 500 636 500

#turn on original lock pattern
mv /data/system/oldgesture.key /data/system/gesture.key
OR
#turn on original lock PIN CODE
mv /data/system/oldpassword.key /data/system/password.key


#remount with the original readonly.
mount -o ro,remount /system

#start ultra power save menu
am start -n com.android.settings/.Settings\$UltraPowerSavingModeActivity

#command to touch the buttons
input tap 670 103 ; input tap 520 1150
Attached Thumbnails
Click image for larger version

Name:	1-1.jpg
Views:	40
Size:	63.4 KB
ID:	3140496   Click image for larger version

Name:	2-2.jpg
Views:	36
Size:	44.9 KB
ID:	3140497   Click image for larger version

Name:	3-3.jpg
Views:	44
Size:	78.7 KB
ID:	3140498   Click image for larger version

Name:	7.png
Views:	42
Size:	79.6 KB
ID:	3140499  
Last edited by flaviofire; Today at 01:18 AM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes