Shell Command for enabling Ultra Power Saving Mode - Samsung Galaxy S7 Edge Guides, News, & Discussion

I have spent almost a year trying to find ways to enable UPSM without input touch simulation and other "hacks".
They don't work flawlessly all the time. Is there any way to see what happens in the OS when the UPSM is activated?
I did try the android monitor log and couldn't find anything useful. I am damn sure there must be some way to trigger UPSM using shell commands. Any help will be appreciated. I am sure there are some crazy cool programmers on this forum who can find this. :laugh:

Related

[Q] Wake Device Over USB, On Run And Otherwise.

I have been trying to figure this out on my own through searching, and when that failed experimentation, but to no avail.
What I would like is that every time I run an application from eclipse, my android device will wake (screen on and all that). Additionally I want, though this is not as important, to be able to wake my device from the command line.
The reason I want this is simple. I don't like leaving my device on as I sometimes read code and tutorials or get some food, and I end up not touching the device for a half hour at a time. I don't want to leave it on when plugged in (which is most of the day), and I end up turning it on with the power button about thirty times each day, which seems excessive.
Sorry if this is something obvious, but I can't find anyone talking about it anywhere.
Any help is greatly appreciated.
Nobody else has ever wanted to do this? Noone has looked into this? Surely soneone has an interest in this if not knowledge of how to go about making it work.
moved to QnA, not dev related.
(probably why no one answered your question)
Solved!
Well, I've solved the issue on my own. I created an application called Wakey Droid that does what I want. Then all you need to do is set the command adb shell am start -a android.intent.action.MAIN -n bdjnk.android.wakeydroid/.Wakey to some convenient shortcut, and life is good.

[how to] disable wifi power saving mode

Having trouble with your wifi dropping out? I was, until i found the 'service mode' dialer code using *#0011#: once you access the field, push the menu button for options and select 'wifi' from the dropdown(popup?) list. In there is an option to disable 'wifi power-saving mode'. It doesn't seem to be a solution for everybody, but it sure helped me! Also, I don't believe this sticks through a reboot. I didn't discover this by accident, I found it on the s3 forum posted by Robalboa, go here and thank him if it helps you as much as it helped me: http://forum.xda-developers.com/showthread.php?t=2271751&page=2
*this in absolutely no way implies i know anything more than reposting a link, use this feature at your own risk.
won't help me cause this phone rocks, but nice find man! :thumbup::beer:

notification fix

OK guys I hope this hasn't already been covered but here goes anyway. I have found this fix for notifications not arriving when doze is enabled. Iff you go into the particular app e.g what's app then into data usage you must select the following settings see pic below. then all the notifications will arrive straight away regardless of doze state.
sam00561 said:
OK guys I hope this hasn't already been covered but here goes anyway. I have found this fix for notifications not arriving when doze is enabled. Iff you go into the particular app e.g what's app then into data usage you must select the following settings see pic below. then all the notifications will arrive straight away regardless of doze state.
Click to expand...
Click to collapse
Yes that seems to be the problem. I had made a post months ago. It's very hidden feature by Lenovo and I think it's wrong to pre-restrict all background data. User should decide what to do.
I think they lenovo did it to block unnecessary data usage but i agree it is not needed and people are thinking their is something wrong with their phones.
Thanks for the tip
Thanks Sam, I saw this on the JJ review of Nougat. Is this for Nougat as my MM P2 settings don't look like the screenshot.
Sent from my Lenovo P2a42 using Tapatalk
Hi yes it is for Nougat the comment posted on JJs review regarding this fix was posted by me also.
Confusing settings these as the first one makes it look like enabling the "Restrict background data" option will disable background data, when in fact it does the opposite. You need to have both of these options enabled so the sliders are green, then you need to open Settings > Power Manager > Battery Optimization
Then you need to search for the apps that you need to fix notifications and change the option so it says "Don't optimize". Then the phone won't 'helpfully' close the app when the phone has been unused for a long time. This is why notifications are stopping.
precisely i agree quite confusing it took me a while i had to get a friend to send me whats app messages continuously untill i figured all this out but im glad i finally did.
If you make the changes to fix the notifications, shut down and power the phone back on rather than do a reboot. The settings don't seem to work until the phone has properly rebooted.
Is it worth noting that elsewhere it's stated that turning off doze altogether (using ADB) might be a saner option? Consensus seems to indicate it's basically a curse with little value, and that would certainly hold water in light of the battery capacity of the P2.
https://forum.xda-developers.com/lenovo-p2/help/regretting-purchase-t3611968
I think the following helps. Credit goes to JasonMR and manototh (Taken from oneplus.net forum)
JasonMR
KitKat
JasonMR, Nov 2, 2016 :
Guys, to avoid having to run the ADB command after each reboot follow these instructions (please note, the files should be downloaded to a PC and then transferred to your phone via USB otherwise they mess up sometimes):
You need to enable USB debugging mode in Developer options first
Download and install this apk and transfer it to your phones storage - https://drive.google.com/file/d/0BxD...w?usp=drivesdk
Then connect phone to PC and allow the drivers to install
Download and install ADB here - https://drive.google.com/file/d/0B0M...ljU2NPR0k/view
Go into the ADB folder, hold shift, right click and select "Open command prompt here"
Type the command: adb devices (now hit enter)
It should return your phones serial number is connected correctly
Run this command in ADB: adb -d shell pm grant com.adamioan.scriptrunner android.permission.DUMP (now hit enter)
Download this file and transfer it to your phones storage - https://drive.google.com/open?id=0Bx...VA4YmxGTS1OX3c
Open the SH Script runner app and tap the three dots in the top right corner, select "Load" and locate the file from teh previous step
Click the Circle button with the play sign at the top of the screen
You should see the message "Idle mode disabled" which means that Doze has now been disabled.
Whenever you reboot your phone, open the SH Script runner and the command will still be there, just click the play button to run the script again.
And that is it, two clicks to disable Doze after each reboot.
Full credit to manototh for putting this together originally.
Doze does not need disabling iff you follow my advice in the initial post i have tried and tested this and can confirm it works fully.
This is really frustrating. No matter what settings I use I still don't get notifications after a while. I don't want to go modifying my phone, can someone post a step by step if they have it working properly?
Spacedog79 said:
This is really frustrating. No matter what settings I use I still don't get notifications after a while. I don't want to go modifying my phone, can someone post a step by step if they have it working properly?
Click to expand...
Click to collapse
Follow my ordinal post and also go into battery optimisation and disable optimization for things like sms eggs what's app Facebook etc all the things you need notifications for should be disabled from sleep mode under battery optimization.
Like this
sam00561 said:
Like this
Click to expand...
Click to collapse
Yes thats exactly how I've done it. I've also tried every combination of settings under Apps for Unrestricted data usage.
And also the setting here
sam00561 said:
And also the setting here
Click to expand...
Click to collapse
Yep doesn't work either.
Perhaps your only option left is to try the disable doze app which has worked for many people but it's a paid app.
Just to update it does seem to be working properly now. I'm not 100% sure but I think turning the phone all the way off and on again instead of rebooting with the settings correct had the desired effect.

I need help from anyone with some scripting knowledge.

Hello, i am the new guy haha. The thing is short.
I want to make some automation that deactivate battery saver mode in Android marshmallow once it is activated. I'm using Macrodroid to do simple actions for example remote commands to delete apps data, toggle and share location, wifi, lock, unlock screen, etc. if i accidently lose my phone or someone take it forever. But the funcion that should do it, doesn't work. So i will try run script with rom toolbox. If someone guide me to do it apreciate it so much.

System wide immersive mode possible on Android 11

Currently using Android 11 beta and it's brilliant, only problem I can find is I can't set a system wide immersive mode and I'm worried about screen burn, just wondered if anyone has found a way to activate immersive mode. ADB commands don't seem to work.
faybarn said:
Currently using Android 11 beta and it's brilliant, only problem I can find is I can't set a system wide immersive mode and I'm worried about screen burn, just wondered if anyone has found a way to activate immersive mode. ADB commands don't seem to work.
Click to expand...
Click to collapse
Unfortunately as of this writing there's no solution to this. I am considering switching to iOS if my phone will no longer allow me the choice to hide the navbar. Samsung allows this. I don't understand why Google can't give a simple option in settings. This problem needs more attention. Here are links discussing this issue:
https://www.reddit.com/r/GooglePixe...immersive_mode_working_for_anyone_on_android/
https://www.reddit.com/r/android_be...can_hiding_nav_bar_adb_command_removed_in_11/
https://forum.xda-developers.com/pixel-4-xl/help/hiding-navigation-bar-beta-1-t4113443/
https://9to5google.com/2020/02/24/android-11-navigation-bar-modify-broken/amp/
Any update?

Categories

Resources