Huawei P9 [ROM][Android 7.0][EMUI 5.0][European Firmware b386 based]*MagicRainbow* v2

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
@zgfg Yes, for ForceDoze Root app I have achieved something remarkable.
And also for calibrate battery.
I write soon I have time... I haven't a lot time cause of my regular job - I'm very busy.
But it's on my to do list as well as other things, like Rom for c185 and so on.
To fight against battery drain I'm using:
1) native Settings / Apps - Disable
2) native Settings / Battery / Close Apps after Screenlock
3) native Settings / Apps / Settings wheel / Special access / Ignore Battery Optimizations
4) ForceDoze (from Google Play, root required) / Settings / "Doze Notification blocklist"

Before all that:
- BT and NFC turned off (I almost never need them), scanning for BT when BT disabled also switched Off
- 3G preferred (3G is usually enough fast if signal is good, no need for 4G
- Location on WiFi and Mobile Networks (not GPS) - if/when I start navigation it will ask for enabling GPS
- Location History turned and Google Play / Google Protect off (even if not emptying battery I don't like the Big Brother)
- Auto Brightness for Display also Off (saving some power on not needing the sensor, and annoying when it automatically adjusts up/down)
See also: https://forum.xda-developers.com/showpost.php?p=73534645&postcount=461

1)
By uninstalling (non-system apps) and by (1) (disabling apps not allowing uninstallation) I get rid of unwanted apps. If I don't want them and never use them, why should they eat resources.
Generally, MagicRainbow already comes (if properly installed) without a number of bloatware.
E.g., I use GBoard and I have uninstalled/disabled Swipe for Huawei and SwiftKey.
Also, I prefer BlueMaiiland hence I disabled GMail and Email.
Similarly, I disable Weather, since using Today Weather app (widget) instead.
Health is battery gasler (constantly monitoring sensors to detect physical activity), I don't need one to count my steps and I disabled it as well.

2)
Under (2) I have listed almost all apps except apps like Maps (Navigation must keep going on besides the locked screen), Mixplorer, Files, Drive, Mega (I might be up/downloading something big), WhatsApp and services like ForceDoze, Viper4Android, etc.
If using iYBT Magisk Module (playing YT in background) you can also list YouTube.
Think which for apps it make sense to be running in the background, the rest you can close (e.g., no use for Calculator to run in the background, etc). That way, less need to frantically clean apps from the background ( they will no more eat battery whenever display switches off).

3)
There are some apps that want to stay active in the background, even when display switches off. That way they basically prevent phone to go to the Doze mode, or wake it to often, resulting with eg unnecessary battery drain over night. To prevent, list these apps under (3).
As a general rule, here come mostly the same apps as listed under (2).

4)
Useful for special purposes. Eg, I receive several hundreds of Skype and Skype for Business messages a day and night - the way we communicate on the job. However, when I am at work, I use Skype (and mail) on PC. At home I don't want to be disturbed every minute - I will manually open Skype (and mail) to be briefed about what's going on few times in the evening, but with this rate of incoming Skype notifications, phone will almost never go to Doze.
To the other side, WhatsApp serves me for family and friends, and I want to be instantly notified about any incoming message.
Hence, I listed Blue Mail, Skype and Skype for Business (but not WhatsApp) under (4).
Btw, I have also listed Skype under (2) and (3) - I know there will be tens of new messages (I will nevertheless open mail and Skype when suitable for me). That way Skype remains blocked and I don't see a number of new Skype messages whenever I press Power button on the lock screen.
However, I want to see a number of unread emails, hence I don't list BlueMail under (2) and (3) - when I shortly wake up by pressing Power button on the locked screen, BlueMail will connect and notify me about the new mails - because of (4), BlueMail does not collect them during the Doze.

By disabling constant 4G, BT, NTS, GPS, etc. and by basic cleaning of bloatware and unwanted apps, you can reduce battery consumption from 2-4% per hour to cca 1.5% during the idle time (night).
By (1-3), you can further reduce to like 1% per hour.
Finally, (4) helped me to get down to acceptable < 0.7% per hour overnight - while phone, WiFi, etc, everything is still running and I can receive any urgent call or WA notification if necessary.

Of course, there is similar saving during the day, with the phone idle.

PS:

a) I was experimenting with Magisk module "Enable Doze on Google Play Services" but it was blocking me all PNS notifications (e.g., I was not receiving WhatsApp notifications on the locked screen)

b) I was also experimenting with another option in ForceDoze Settings, "Doze app blocklist", but observed an unwanted (and annoying) side-effect:
- Organize an app icon into a folder on the home screen or hide the app to the hidden screen
- If that app was on the "Doze app blocklist", every time when screen gets unlocked, app icon will be displaced (from its folder or hidden screen) to the home screen as a newly installed app
 

Attachments

Last edited:
  • Like
Reactions: ogisha and Tecalote

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233

Attachments

Last edited:
  • Like
Reactions: Tecalote

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Btw, even when Play Protect is disabled, Find my Device app (saying, based on Google Protect) locates device.

Which might be useful if you loose phone (you can ring it or even lock-didn't try the second), but it also means that BB is monitoring...

Sorry for off-topic observation

https://support.google.com/accounts...956-2280226289&p=device_manager_location&rd=1

Yes, that's right - but you can change it in Settings /Google /Security and also in settings /Advanced Settings /Security /Device Administrator
I find it good, Find my device even works if Play Protect is disabled - but its also possible to disable Find my device

An alternative App is for example: https://www.androidlost.com/
 
Last edited:

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
Experiencing intermittent problems upon upgrading to Magisk v14.0 and Magisk Manager v5.3.0:
- getting notification that Magisk v14.0 ZIP is available
- Magisk Manager shows that Magisk is not installed

I just reboot and everything is ok again, Magisk shows v14.0 was installed, and everything is green again.

Two times same Issue during the last week. No other consequences
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Experiencing intermittent problems upon upgrading to Magisk v14.0 and Magisk Manager v5.3.0:
- getting notification that Magisk v14.0 ZIP is available
- Magisk Manager shows that Magisk is not installed

I just reboot and everything is ok again, Magisk shows v14.0 was installed, and everything is green again.

Two times same Issue during the last week. No other consequences
Little bit strange...
I haven't this issue.
But I use at the moment osm0sis Busybox 1.27.2 NDK (available in Download Section of Magisk Manager) instead 1.27.1 from yashdsaraf.
Don't know if this could be related to your experience with Magisk.
 

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
Little bit strange...
I haven't this issue.
But I use at the moment osm0sis Busybox 1.27.2 NDK (available in Download Section of Magisk Manager) instead 1.27.1 from yashdsaraf.
Don't know if this could be related to your experience with Magisk.
Before upgrading Magisk (and unsuccessfully trying wit 1.27.2 yashdsaraf) I didn't have any problem with BB 1.27.1 Universal from yashdsaraf.

Maybe II'll try with 1.27.2 NDK but I'd wait for MagicRainbow update based on b396 if coming soon :)
 
  • Like
Reactions: Tecalote

Rajaasim1980

Senior Member
Jan 20, 2013
941
220
0
I have tested now Busybox 1.27.2 from recognized developer osm0sis.
You can download and install directly with Magisk Manager /Downloads

Busybox 1.27.2 for Android NDK

After flashing press Restart Button, Root Checker tells - everything okay :)
How to download Busybox as i dont see any option of download in magisk manager..when open module section then there is also no search option but instead one plus sign which take you to file manager

how to check safety net to know if its green?
 
Last edited:

Rajaasim1980

Senior Member
Jan 20, 2013
941
220
0
I cannot find the icons of google apps(google play store, gmail) and stock setting app..

oh they were disappeared after i changed the icons size to maximum and dock number to 4 and home layot to 4 in desktop setting of advanced setting

why is this?

Its number of Longitudinal icon when set to 4 instead of defaults 5 cause this issue
 
Last edited:

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
How to download Busybox as i dont see any option of download in magisk manager..when open module section then there is also no search option but instead one plus sign which take you to file manager
how to check safety net to know if its green?
Read OP on the first page, you will find instructions how to install downloaded eg YSD BusyBox ZIP by using + sign.
Things were also excessively discussed in the thread, last month or s.

Besides, you must also have Downloads tab with Search option - see my attachements. But if you changed resolution, layout or so in K-Settings, maybe they dissapeared (?)
 

Attachments

  • Like
Reactions: Rajaasim1980

Rajaasim1980

Senior Member
Jan 20, 2013
941
220
0
Read OP on the first page, you will find instructions how to install downloaded eg YSD BusyBox ZIP by using + sign.
Things were also excessively discussed in the thread, last month or s.

Besides, you must also have Downloads tab with Search option - see my attachements. But if you changed resolution, layout or so in K-Settings, maybe they dissapeared (?)
Strange this download tab don't exist in my Magisk. I have just changed few setting in notification like icon size which should not affect Magisk
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Strange this download tab don't exist in my Magisk. I have just changed few setting in notification like icon size which should not affect Magisk
Hello :)
I recommend you following steps:
1) Make sure A) ADB Debugging and B) USB Debugging is enabled.
2) Download latest Magisk and Magisk Manager:
Magisk: http://tiny.cc/latestmagisk
Magisk Manager: https://github.com/topjohnwu/MagiskManager/releases/download/v5.3.0/MagiskManager-v5.3.0.apk
3) Open Superuser section in Magisk Manager and make sure that shown Apps have Root Permission
4) Boot to TWRP and flash latest Magisk zip, reboot to system without wipe of Dalvik and Cache
5) Open Magisk Manager and on first screen you should see v14 installed. Here you can also tap on safetynet check - but don't do it right now
But check in "About" section of Magisk Manager if latest Manager is installed 5.3.0 - if not install Magisk Manager apk
6) Do following steps:
https://forum.xda-developers.com/showpost.php?p=73733872&postcount=564
7) Reboot phone after installing Busybox by osm0sis
8) Make sure in case you have installed PMPlus, Magisk Manager is in App Auto Launch in Phonemanager - but if you haven't installed PMPlus you don't need this step

And as @zgfg said, read Post #1 (OP) - but with Browser, not with XDA Labs Forum App.
It don't show the whole Thread
 
Last edited:
  • Like
Reactions: Rajaasim1980

piotriix

Senior Member
May 20, 2013
101
14
18
Very good software but the market quickly are flying bateria.Ledwie is keeping waiting for 12 h.
Description of the installation perfect.
At the moment I am waiting for alterations of the battery.
I am greeting
 
  • Like
Reactions: Tecalote

zgfg

Senior Member
Oct 10, 2016
4,419
1,899
233
Hey guys, why is there a 3g logo beside my mobile data network even though I disabled 3g and 4g because I'm on wifi. Any fix? Thanks :)
,2 ,3 or 4G are types of mobile networks. If you disable Mobile Data but still have enabled Cellular (for phone calls and SMS), phone will show to what type of Cellular is attached. Btw, it is native stuff, not Magic Rainbow specific.
Nevertheless, suggesting you not to use K-Settings, but native ones.
 

RandomQuezoPH

Senior Member
Sep 29, 2016
79
12
0
-
,2 ,3 or 4G are types of mobile networks. If you disable Mobile Data but still have enabled Cellular (for phone calls and SMS), phone will show to what type of Cellular is attached. Btw, it is native stuff, not Magic Rainbow specific.
Nevertheless, suggesting you not to use K-Settings, but native ones.
Sorry for asking but why is that when I see pictures on this thread, they don't have that 3g logo and just the network bars :(
 

RandomQuezoPH

Senior Member
Sep 29, 2016
79
12
0
-
Hello :) This is only if your mobile provider support VoLTE and you have it enabled in Network Settings.
In the time you are connected with WiFi, then you see only WLan Symbol
Well, this only happened this time when I flashed Magic Rainbow v2 with magisk. By the way, I am already a user of your rom since then and haven't got any issues with the 3g logo always there even tho it's turned off in the settings together with LTE. Sorry for asking again. It just bothers me because im not used to seing 3g logo everytime. Here's a screenshot.
 

Attachments

Marsou77

Senior Member
Feb 2, 2011
1,457
347
83
Earth
Well, this only happened this time when I flashed Magic Rainbow v2 with magisk. By the way, I am already a user of your rom since then and haven't got any issues with the 3g logo always there even tho it's turned off in the settings together with LTE. Sorry for asking again. It just bothers me because im not used to seing 3g logo everytime. Here's a screenshot.
Use this app to remove the persistent signal type icon

https://play.google.com/store/apps/details?id=com.teammt.gmanrainy.emuitweaker

You can uninstall the app after :)

Sent from my Huawei P9 powered by BlueWei ?