{Universal}ForceDoze+DeepSleep+Google_DNS

How is this Mod ??

  • Awsome ?

    Votes: 7 33.3%
  • Nice ?

    Votes: 5 23.8%
  • Not BaD ?

    Votes: 9 42.9%

  • Total voters
    21

Ramakrishnan ?

Senior Member
Oct 20, 2017
446
457
0
Tirunelveli
www.google.com



After Some Deep Research on google about Doze i got some usefull Real information about Doze and how to activate it systematically without any help of third-party Doze applications.



Doze is Freez Apps and other unwanted sensors when device is idle. It will put your Mobile Deep Sleep Mod when idle. This is the Usefull feature for Android. You can see the above image if Doze is Active On your Mobile then you can avoid battery drains when your mobile is idle. OK its enough for User to know about Doze. Now i can explain what are the features have this Mod. . .

***** Features *****

* This Mod enable Force Doze Systematically with help of init.d Script.
* Added Some build.prop Tweaks For DeepSleep and Power Saving.
* Doze service added for Extra Support to Doze.
* This Mod Enable Battery Optimizations to Google Play service. So Doze will be Applying on Google play service also.
* This Mod disable Unlimited data usage to GooglePlayService. So you can avoid the background data leaks by Google play service.
* This Mod disable unthrottled locattion access to Google Play service. So it will not get acces when device idle.
* This Mod Enable Google_DNS server For Faster and Secure Internet.


Users Script For Enable ForceDoze :p !!

#!/Users:)/watch:eek:/Read:eek:/execute:D
# This Script Will Help Users To Activate ForceDoze


If [ You have Kernel Auditor ]; then

Open Kernel Auditor and go to init.d tab then select "ForceDoze" Script and click Execute. After Execute One Message will Popup then click back button Twice and exit from Kernel Auditor. Now ForceDoze is activated Successfully On Your Device !!!


else

If you don't have kernel auditor then Copy the Script from /system/etc/init.d/ForceDoze to your internel storage then execute via other Script Runner. If u don't have any script Runner then open Terminal type " su " hit enter after open ForceDoze by using any text editor. It have Two commands so copy and paste it and hit Enter on Terminal Emulator One by One before Doing this . Now ForceDoze is activated Successfully On Your Device !!!
fi

(NOTE:- You Need to Do this On Every Reboot because ForceDoze will disable After Reboot. So U need to Execute the Script Manually on Every reboot for Enable Force Doze)​

*** Downloads ***

Universal ForeceDoze + Deep Sleep + Google_DNS

https://www.androidfilehost.com/?fid=818070582850503953

Universal ForeceDoze + Deep Sleep + Google_DNS Uninstaller

https://www.androidfilehost.com/?fid=673956719939830908

Flashing Procedure :-

* Go to TWRP
* Flash This Mod
* Wipe Cache and Dalvik cache then Reboot !
* (Must Do) After Reboot U need to do One Thing Manually for Enable ForceDoze. Read the above Users script and Execute.

*** Credits ***

@Ramakrishnan ? (For Making This Mod)
Cyanogenmod (For Doze App)
Google (For Informations)

*** Enjoy :D ***

*** If its Usefull For You jusy Hit Like Button :good: ***
 
Last edited:

Ramakrishnan ?

Senior Member
Oct 20, 2017
446
457
0
Tirunelveli
www.google.com
FAQ :-

How can i know ForceDoze is Active on my Device ??

Open Terminal type " su " command hit enter then copy and paste this command on Terminal " dumpsys deviceidle " and hit enter and check the line mForceIdle=true. If its Value is true then ForceDoze is Enabled on your Device :).

How to disable ForceDoze ??

Open Terminal type " su " and hit enter. Then copy and paste this command to terminal " dumpsys deviceidle unforce " hit Enter !

Is Any Gapps for Battery Saving ? Is Any AudioMod With Latest Dolby and Viper ??

Click the Link :- https://forum.xda-developers.com/redmi-note-4/themes/rootkk-oreofire-audiofire-gapps-t3759530

Some Real Screenshots taked from my Mobile With ForceDoze Enabled !!
 

Attachments

Sectorian

Senior Member
Apr 27, 2013
1,239
335
103
So man.
Thia future is avaible on every custom rom even on the new Miui 9.
What thia mode do?
Whit what ia different from the implented doze?
Do you meen forse deep doze sleep?
My doze is working fine.
Why do i need this?
Maybe this mode will afect on the slow notification recieve.
 

Attachments

Ramakrishnan ?

Senior Member
Oct 20, 2017
446
457
0
Tirunelveli
www.google.com
So man.
Thia future is avaible on every custom rom even on the new Miui 9.
What thia mode do?
Whit what ia different from the implented doze?
Do you meen forse deep doze sleep?
My doze is working fine.
Why do i need this?
Maybe this mode will afect on the slow notification recieve.
What thia mode do?
U can check the features to know what is this mod do.

Whit what ia different from the implented doze?
Its not implented doze. Every Roms have Doze but Light and Deep Mod only activated Default. This Mod enable Force Doze its more powerfull than light and Deep.

Do you meen forse deep doze sleep?
I did't get you !

Why do i need this?
This mod enable ForceDoze, Enable Google_DNS Server, Enable battery optimization to Google play service . . etc check the Features !

Maybe this mode will afect on the slow notification recieve
It will not affect any notification services !

Thia future is avaible on every custom rom even on the new Miui 9.
Is Every custom Roms have ForceDoze default enabled ??
Is Every custom Rom have Google_DNS Server enabled Default ??
Is Every Custom Roms have enabled battery Optimization to Google play service Default ???

( Note :- Read the Thread Fully before Posting !! )
 
  • Like
Reactions: sahil.blz

brunin25

Member
Jan 30, 2015
26
16
0
nice bro, I'm going to load my cell phone and test this mod, I already have a good battery backup, but, it's always good to improve, lol, thanks for the work. I'll test it on MIUI 9.5.4.0.
 

DarthJabba9

Senior Member
May 5, 2014
3,601
3,345
253
Greater London
1. Instead of making entries into google.xml, why not just do this in your ForceDoze script?
Code:
dumpsys deviceidle whitelist +com.google.android.gms
By the way, this is already enabled in my Oreo ROM (Atomic-OS)

2. What does "Universal Doze.apk" do?
 

eduardo579

Senior Member
Oct 30, 2014
263
71
58
22
Soria
Making some tests in CosmicOS, small battery drain while idle but I didn't receive some notifications from telegram. Is there some kind of whitelist for specific apps?
 

Ramakrishnan ?

Senior Member
Oct 20, 2017
446
457
0
Tirunelveli
www.google.com
1. Instead of making entries into google.xml, why not just do this in your ForceDoze script?
Code:
dumpsys deviceidle whitelist +com.google.android.gms
By the way, this is already enabled in my Oreo ROM (Atomic-OS)

2. What does "Universal Doze.apk" do?
1. U can't do it with dumpsys command ! And battery optimization for google play service needs to be enabled on gapps side Not Rom so don't make funny.... :laugh:
2. I am already told on OP why i am added dozeservie on this mod !
 
Last edited:

DarthJabba9

Senior Member
May 5, 2014
3,601
3,345
253
Greater London
1. U can't do it with dumpsys command !
Tell that to my phone, which has done it with dumpsys command.
Edit: your view seems to be supported by some posts that I have read. Nevertheless, I am still successful (or so it seems) in adding this to the whitelist via dumpsys. I am going to investigate how my Atomic-OS ROM has done it.
Edit2: It was not done by Atomic-OS at all. It is already in OpenGapps!. This means that the following lines in your DeepSleep.sh actually accomplish nothing;
Code:
sed -i '/<allow-in-power-save package="com.google.android.gms"/d' /system/etc/sysconfig/google.xml
sed -i '/<allow-in-data-usage-save package="com.google.android.gms"/d' /system/etc/sysconfig/google.xml
sed -i '/<allow-unthrottled-location package="com.google.android.gms"/d' /system/etc/sysconfig/google.xml
OpenGapps already implements them.

2. I am already told on OP why i am added dozeservie on this mod !
No, you did not explain exactly what role the apk is meant to play. AFAICS, everything that you claim to do in your mod can be done without the presence of the apk. And you say that you are doing things without "any help of third-party Doze applications". So what exactly does the apk do? Does it just provide a UI for your scripts? Does it do something else? This is a perfectly legitimate question. And, if it was already answered, I would not be spamming the thread by asking it.
 
Last edited:

Ramakrishnan ?

Senior Member
Oct 20, 2017
446
457
0
Tirunelveli
www.google.com
Tell that to my phone, which has done it with dumpsys command.
Edit: your view seems to be supported by some posts that I have read. Nevertheless, I am still successful (or so it seems) in adding this to the whitelist via dumpsys. I am going to investigate how my Atomic-OS ROM has done it.
Edit2: It was not done by Atomic-OS at all. It is already in OpenGapps!. This means that the following lines in your DeepSleep.sh actually accomplish nothing;
Code:
sed -i '/<allow-in-power-save package="com.google.android.gms"/d' /system/etc/sysconfig/google.xml
sed -i '/<allow-in-data-usage-save package="com.google.android.gms"/d' /system/etc/sysconfig/google.xml
sed -i '/<allow-unthrottled-location package="com.google.android.gms"/d' /system/etc/sysconfig/google.xml
OpenGapps already implements them.

No, you did not explain exactly what role the apk is meant to play. AFAICS, everything that you claim to do in your mod can be done without the presence of the apk. And you say that you are doing things without "any help of third-party Doze applications". So what exactly does the apk do? Does it just provide a UI for your scripts? Does it do something else? This is a perfectly legitimate question. And, if it was already answered, I would not be spamming the thread by asking it.
If u use dumpsys command u need to execute that on every reboot deleteing permission is simple ! And if u want know more about Doze.apk search on google what is doze ?? And what is the use ?? Hope U" ll get deeeeep anwser about doze apk on google .:laugh:
 

DarthJabba9

Senior Member
May 5, 2014
3,601
3,345
253
Greater London
If u use dumpsys command u need to execute that on every reboot
Quite straightforward in an initd script.
And if u want know more about Doze.apk search on google what is doze ?? And what is the use ?? Hope U" ll get deeeeep anwser about doze apk on google .:laugh:
Very funny - you release a mod with an embedded apk, but you are unwilling (or unable) to explain what it does or why it is there; you expect people to go and search on google for the purpose of an apk that you are distributing. Do you also expect people to disassemble your apk to verify that it does not contain anything dodgy, and that it is the same as any number of ForceDoze apks that are out there.? :rolleyes: Good luck to anyone who installs your mod.
 

Ramakrishnan ?

Senior Member
Oct 20, 2017
446
457
0
Tirunelveli
www.google.com
Quite straightforward in an initd script.
Very funny - you release a mod with an embedded apk, but you are unwilling (or unable) to explain what it does or why it is there; you expect people to go and search on google for the purpose of an apk that you are distributing. Do you also expect people to disassemble your apk to verify that it does not contain anything dodgy, and that it is the same as any number of ForceDoze apks that are out there.? :rolleyes: Good luck to anyone who installs your mod.
Haha i know about doze apk whats doing but i don't want explain to you (useless) . . If ur too genius and ur thinking doze.apk is waste ur the too smart and if ur roms comes with support for battery optimization to googleplay ? and if u don't want google dns server then make ur own mod with ur too smart brain and use it as ur own . . don't waste the thread with useless messages its not usable to anyone ! (U think ur know everythink about doze then make new thread and help users otherwise go away from thread lot of users shared his good experience with this mod so don't spoil my thread with useless suggestions and comments)
 
Last edited:

Ramakrishnan ?

Senior Member
Oct 20, 2017
446
457
0
Tirunelveli
www.google.com
Why would you want to fob off people who has ask penetrating questions? Why the defensiveness? What are you hiding? Just answer the questions! It would have taken far less time, far less energy, and would have produced less noise on the thread.
First ask questions with reality . . such silly fack questions u asking and none of one is true . . u are told atomic os is have battery optimization for googleplay is enabled on Atomic OS (But the truth is its enable and disable only via gapps) and ur saying doze.apk is waste is u think cyanogenmod team is mad to create apk for Doze purpose?? (But the truth is doze app is help the system to Deepsleep ) and u said open gapps is enabled battery optimization to google play service after i said rom not do that (but that is 100% Fake not real) and ur said i am not clearly replying for ur messages (ya because ur trying to say this mod not do anythink :eek: but the truth is my mod have enough thinks to get deepsleep and battery saving so u can't hide the reality with ur fake replies :laugh:)

(Note :- These above Fake information says you are have ghaaaand with my mod idk why :p anyway i"ll not respond to ur messages because of ur Fake ghaand Replies)
 
Last edited: