[Root] Doze Settings Editor (Android Marshmallow Only) - X Style (Pure) Themes and Apps

Just to inform you all with Marshmallow there is an app to edit the default doze settings and get better battery life
Thanks to @p0isonra1n
p0isonra1n said:
[Root] Doze Settings Editor (Android Marshmallow Only)
Requires Root
This app is a simple editor of the settings or parameters which affect the operation of Doze.
If no root is available then it will offer an ADB command that will modify the doze settings.
Because there is no root on open it will always load the default settings.
Click to expand...
Click to collapse

I had problem activating Doze new settings via app so I had to use the adb (even though my device is rooted)
here is how :
1- enable usb debugging from settings> developer options
2- There are plenty guides on how to install and run adb, you can google it or use this or this or ...
3- connect your device
4 - in terminal run
Code:
adb start-server
adb shell dumpsys deviceidle
if the values shown are same as default , then you have my problem, go to step 5. if values are what you set in the app profiles ... then you dont need to proceed
5- revoke "Doze Settings" su permissions from super su app
6- run the app , su permission will be denied and it give u a command to copy, copy it to a text file and send the file to your pc
7- open the file in your pc and copy the text
8- paste the copied line in the adb terminal and hit enter
reboot device and run the "adb shell dumpsys deviceidle" from terminal again, it should show new values.

It helps! Thanks!

Related

Does Titanium Backup have to be side loaded?

Was running FROYO 2.2. Rooted using z4root.1.3.0 following the video instructions at Mobile.Tech.Videos.com, a great site. In the video, he talks about side loading Titanium Backup. I installed it straight from the Market without side loading. Do I need to un-install it and re-install it by side loading?
thanks
retnuh
no. you will just want sideloading enabled on your phone
retnuh said:
Was running FROYO 2.2. Rooted using z4root.1.3.0 following the video instructions at Mobile.Tech.Videos.com, a great site. In the video, he talks about side loading Titanium Backup. I installed it straight from the Market without side loading. Do I need to un-install it and re-install it by side loading?
thanks
retnuh
Click to expand...
Click to collapse
Any app loaded outside of market is considered "side loaded".
Enabling side loading is done typically by setting the appropriate option in the database file. This could be done manually at command prompt or through any of the programs available.
For TB to install apps from backup, it needs side loading to be enabled.
"For TB to install apps from backup, it needs side loading to be enabled."
Does TB automatically enable "side loading" when you select to restore apps?
retnuh said:
"For TB to install apps from backup, it needs side loading to be enabled."
Does TB automatically enable "side loading" when you select to restore apps?
Click to expand...
Click to collapse
Nope. Its a process u need to do.
Steps to enable side loading using adb
What you’ll need:
* Android SDK
* BusyBox
o If you don’t have BusyBox, go search “BusyBox” on the Android Market
o Once installed, open up the BusyBox app and follow the full installation directions to enable it
* Samsung Captivate with root
* SQL Database Manager
o We suggest trying the SQLite plugin for Firefox, you can find it here.
Process:
1. Turn on USB debugging: Settings >> Applications >> Development
2. Plug in your Samsung Captivate
3. Open up Command Prompt on your computer (Windows: start, search, type “cmd”, right click cmd, Run as Administrator)
4. Type in: cd _____PATH TO ANDROID SDK FOLDER______\tools
Example:
cd C:\Users\USERNAME\Desktop\android-sdk-windows\tools
Press ENTER
5. Type in: adb shell
Press ENTER
6. Type in: su
Press ENTER
7. Type in: cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db
Press ENTER
8. Type in: cp /dbdata/databases/com.android.providers.settings/settings.db /sdcard/settings.db.backup
Press ENTER
9. Type in: exit
Press ENTER
10. Type in: exit
Press ENTER
11. Type in: adb pull /sdcard/settings.db %userprofile%\desktop
Press ENTER
Leave Command Prompt open
12. Open SQLite Manager in Firefox by pressing Tools >> SQLite Manager
13. Click “Database”
14. Then click “Connect Database”
15. Navigate to “settings.db” on your Desktop
16. Expand the tables
17. Click “Secure” on the panel
18. Scroll down to ID 6, “install_non_market_apps”
19. Double click it and change “value” from 0 to 1.
20. Close SQLite Manager
21. Go back to the command prompt window, type in: adb push %userprofile%\desktop\settings.db /sdcard
Press ENTER
22. Type in: adb shell
Press ENTER
23. Type in: su
Press ENTER
24. Type in: cp /sdcard/settings.db /dbdata/databases/com.android.providers.settings
Press ENTER
25. Type in: chmod 777 /dbdata/databases/com.android.providers.settings/settings.db
Press ENTER
26. Type in: reboot
Press ENTER
27. Disconnect your Captivate from your computer while your phone reboots.
Congratulations! You can now sideload non-market applications on your Samsung Captivate.
Excellent sideloading advice. Question, once you have sideloading enabled...do you lose this functionality if you flash a new ROM?
NISMOFO said:
Excellent sideloading advice. Question, once you have sideloading enabled...do you lose this functionality if you flash a new ROM?
Click to expand...
Click to collapse
Yes. Most i9000 based roms have this option enabled by default. If not, u would need do this anytime u flash a new rom.
diablo009 said:
Yes. Most i9000 based roms have this option enabled by default. If not, u would need do this anytime u flash a new rom.
Click to expand...
Click to collapse
Last question, can I used the AC Sideload Wonder Machine instead without messing with any code?

[Q] Help Please :((((

Help
soundmaker- said:
Help
Click to expand...
Click to collapse
Factory mode is enabled
do this:
you must be rooted.
using root explorer or file explorer or what else,
open file "factorymode" in efs/factoryApp directory, it probabely says "off", change to "on" (yes "on" is the correct setting to turn it off), then save
reboot
or
Download the android terminal emulator from the playstore and enter the following commands:
Code:
su
echo -n ON > /efs/FactoryApp/factorymode
sync
reboot

systemUI tunner

How can use without root I download the app but it says adb something
From the xda thread here:
Device Setup
Go to Settings >> Developer Options and enable USB Debugging.
Enable Developer Options by going to Settings >> About, finding the Build Number item and tapping it 7 times.​Plug your device into your computer and accept the authorization request on it.
(Windows) You may need to install your device's drivers, available from the manufacturer's website.​
Windows Setup
Download the ADB ZIP for Windows: https://dl.google.com/android/repository/platform-tools-latest-windows.zip.
Extract the ZIP to an easily-accessible location (ie Desktop).
Open CMD.
Enter cd C:\path\to\extracted\folder\ to get to the folder you extracted ADB into. For instance, C:\Users\Zachary\Desktop\platform-tools\​
Running the Commands
In CMD/Terminal, run adb devices to make sure your device is seen.
Run these commands:
adb shell pm grant com.zacharee1.systemuituner android.permission.WRITE_SECURE_SETTINGS
adb shell pm grant com.zacharee1.systemuituner android.permission.DUMP
If neither of those commands has any output, then everything was successful and you can use the app.​
Teknick said:
From the xda thread here:
Device Setup
Go to Settings >> Developer Options and enable USB Debugging.
Enable Developer Options by going to Settings >> About, finding the Build Number item and tapping it 7 times.
Plug your device into your computer and accept the authorization request on it.
(Windows) You may need to install your device's drivers, available from the manufacturer's website.
Windows Setup
Download the ADB ZIP for Windows: https://dl.google.com/android/repository/platform-tools-latest-windows.zip.
Extract the ZIP to an easily-accessible location (ie Desktop).
Open CMD.
Enter cd C:\path\to\extracted\folder\ to get to the folder you extracted ADB into. For instance, C:\Users\Zachary\Desktop\platform-tools​
Running the Commands
In CMD/Terminal, run adb devices to make sure your device is seen.
Run these commands:
adb shell pm grant com.zacharee1.systemuituner android.permission.WRITE_SECURE_SETTINGS
adb shell pm grant com.zacharee1.systemuituner android.permission.DUMP
If neither of those commands has any output, then everything was successful and you can use the app.
Click to expand...
Click to collapse
Dont have a pc in access at the moment
egren58 said:
Dont have a pc in access at the moment
Click to expand...
Click to collapse
Sounds like you'll be waiting for a bit

{GUIDE} How to change system language in chinese firmware without root.

0. Prerequirements:
- a PC with adb installed (I prefer linux) follow these tutorial https://www.xda-developers.com/install-adb-windows-macos-linux/
- you must to enable developer options in your smartphone and activate usb debugging (`About emulated device` click ten times on build number and then go to Settings-Accessibility-Developer options and activate usb debugging).
1. Install ADB Change Language on your phone https://play.google.com/store/apps/details?id=net.sanapeli.adbchangelanguage&hl=ro
2. Connect your Phone to PC via usb and check adb with
Code:
adb devices
3. Open a terminal or console and input
Code:
adb shell pm grant net.sanapeli.adbchangelanguage android.permission.CHANGE_CONFIGURATION
command,
4. Open ADB Change Language app on your phone, search your language code (xx-XX or xx ex. pt or pt-rBR etc), press on it and per system/all apps language is changed in that language.
5. It can use from PC console adb commands>
Code:
adb shell am start -n net.sanapeli.adbchangelanguage/.AdbChangeLanguage -e language pt-rBR
6. PS. Not all system settings/apps are fully translated.
Good luck!
Greaaaaaatt!! Working for me on Meizu M6T (Chineese).. Many thanks bro!

Control superuser permissions with adb

Hello
I need to perform a broken screen recovery with adb, on a phone that is rooted and adb authenticated, but:
adb shell su .
gives me permission denied - probably because magisk manager did not grant superuser permissions to adb bridge ?
Is there any possibility to give superuser permissions by command line instead of gui?
If you haven't previously given superuser access to adb shell you're not going to be able to do it without the prompt from Magisk. I guess you could build your own Magisk Manager with the default "Automatic Response" setting set to "Grant" and install it through adb.
Thanks for the clue, I've located su_auto_reponse in Config.kt file
I am going to try it... wish me luck
Did that work out? This would be exactly what I need!

Categories

Resources