PhotoMath: A Math Beginner’s Dream App

more

Leaked Galaxy S6 Apps Hit the Forums

more

Fix Untinted Recent Panels on Lollipop

more

Console OS Brings Android to Your PC

more
Post Reply

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

OP willGalaxys5

30th January 2015, 12:45 AM   |  #11  
Junior Member
Thanks Meter: 2
 
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:	124
Size:	63.4 KB
ID:	3140496   Click image for larger version

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

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

Name:	7.png
Views:	120
Size:	79.6 KB
ID:	3140499  
Last edited by flaviofire; 30th January 2015 at 01:18 AM.
The Following User Says Thank You to flaviofire For This Useful Post: [ View ]
30th January 2015, 03:06 PM   |  #12  
Junior Member
Thanks Meter: 2
 
27 posts
Join Date:Joined: May 2007
Quote:
Originally Posted by flaviofire

Try this :
. . .

I will try it for sure thx mate
But one more question. I own Galaxy Alpha and I'm using finger to unlock my phone.
Which file shoud I move to Unlock device ? is it /data/system/fingerprintpassword.key ?

And can you please explain a little bit more what this will do:
"input keyevent 26 ; input swipe 71 500 636 500"
does those numbers 71 500 636 500 are important ? I'm wondering because it might differ in different phones
30th January 2015, 07:10 PM   |  #13  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Jan 2013
Thank you :thumbup: I'm looking for this.
1st February 2015, 07:26 PM   |  #14  
Member
Thanks Meter: 3
 
51 posts
Join Date:Joined: Apr 2009
This is good but can we do it so it starts at a specific battery level instead of time?
Thanks.
No idea how to do it that is why I asked.
Quote:
Originally Posted by flaviofire

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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes