FORUMS

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by … more

How To Port Fully Featured Sony Xperia Z4 Camera

Xperia Z4’s hardware may not impress, but its software is definitely … more

Experimental TWRP Available For Moto G 2015

XDA Senior Member squid2 has posted experimental builds of TWRP for the Moto G … more

Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and … more

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

5 posts
Thanks Meter: 0
 
By willGalaxys5, Junior Member on 4th July 2014, 11:55 PM
Post Reply Subscribe to Thread Email Thread
29th January 2015, 11:45 PM |#11  
Junior Member
Thanks Meter: 2
 
More
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:	342
Size:	63.4 KB
ID:	3140496   Click image for larger version

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

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

Name:	7.png
Views:	340
Size:	79.6 KB
ID:	3140499  
Last edited by flaviofire; 30th January 2015 at 12:18 AM.
The Following User Says Thank You to flaviofire For This Useful Post: [ View ]
 
 
30th January 2015, 02:06 PM |#12  
Junior Member
Thanks Meter: 2
 
More
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, 06:10 PM |#13  
Junior Member
Thanks Meter: 0
 
More
Thank you :thumbup: I'm looking for this.
1st February 2015, 06:26 PM |#14  
Member
Thanks Meter: 3
 
More
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