ElegantNotch-X01BD [Magisk]

Search This thread

lscambo13

Senior Member
Nov 13, 2013
185
173
Xiaomi Redmi 3S
Xiaomi Redmi 5A
ElegantNotch for Asus (Zenfone) Max Pro M2
Latest version: 2.0 (22/09/2019)
Author: lscambo13

------------------------------------------------------------------------------------------------------------------------

Description:

This module enables anti-aliasing around the ugly hardware notch on Asus (Zenfone) Max Pro M2 to provide an elegant look; the way it should've been.

  • Requires latest Magisk installed!
  • Not available on Magisk repo
  • See attached photos
------------------------------------------------------------------------------------------------------------------------

Installation:

1. Install the module via Magisk
2. Reboot

Tested roms include Stock Pie, Stock Q and Havoc though it should be compatible with most roms.

When reporting any bug or issue, make sure to mention:
a. Logs or Steps to reproduce
b. Your Rom details
------------------------------------------------------------------------------------------------------------------------

Update: v2.0

Changelog:
  • Switched to RRO, meaning more compatibility
  • No need to change any setting now, just reboot
  • +Bonus version for Max M2 (X01AD)
------------------------------------------------------------------------------------------------------------------------

Update: v1.2

Changelog:
  • Reworked the complete mask to allow space for more icons
    (Please do note that every rom is different, and it wouldn't be possible to accommodate every icon)
  • Updated translations
------------------------------------------------------------------------------------------------------------------------

Update: v1.1

Changelog:
  • Initial public release
------------------------------------------------------------------------------------------------------------------------

For developers:

v1.2 (05/07/2019)
overlay/frameworks/base/core/res/res/values/config.xml
Code:
    [COLOR="DeepSkyBlue"]<string [/COLOR][COLOR="DarkOrchid"]translatable[/COLOR]="[COLOR="seagreen"]false[/COLOR]" [COLOR="darkorchid"]name[/COLOR]="[COLOR="SeaGreen"]config_mainBuiltInDisplayCutout[/COLOR]">M -204.49219 0.00390625 C -188.47266 0.00390625 -178.82296 8.8348878 -177.21875 10.197266 C -171.2688 15.250266 -169.66752 18.090631 -167.36133 20.574219 C -165.05514 23.057808 -160.48531 30.837561 -159.10547 33.158203 C -157.72563 35.478846 -155.3646 41.471828 -154.00195 44.294922 C -152.49377 47.419541 -151.27921 50.743725 -147.14258 58.044922 C -142.93118 65.478087 -137.2207 70.349609 -137.2207 70.349609 C -137.2207 70.349609 -134.21406 73.479699 -128.37891 76.384766 C -120.72687 80.194388 -105.43555 80.910156 -105.43555 80.910156 L 0.0078125 80.910156 L 105.45117 80.910156 C 105.45117 80.910156 120.74249 80.194388 128.39453 76.384766 C 134.22968 73.479699 137.23828 70.349609 137.23828 70.349609 C 137.23828 70.349609 142.9468 65.478087 147.1582 58.044922 C 151.29483 50.743725 152.5094 47.419541 154.01758 44.294922 C 155.38023 41.471828 157.74125 35.478846 159.12109 33.158203 C 160.50093 30.837561 165.07076 23.057808 167.37695 20.574219 C 169.68314 18.090631 171.28443 15.250266 177.23438 10.197266 C 178.83858 8.834888 188.48828 0.00390625 204.50781 0.00390625 L 0.015625 0.00390625 L 0 0.00390625 L -204.49219 0.00390625 z  [COLOR="deepskyblue"]</string>[/COLOR]

    [COLOR="deepskyblue"]<bool [/COLOR][COLOR="darkorchid"]name[/COLOR]="[COLOR="seagreen"]config_fillMainBuiltInDisplayCutout[/COLOR]">true[COLOR="deepskyblue"]</bool>[/COLOR]

For more information read the official documentation here.
------------------------------------------------------------------------------------------------------------------------

Download Link:
[Latest: for X01BD v2.0]
https://mega.nz/#!dXAFmCaT!SdVD8pjolYCSgC0BULKRTEFe-SBMgcLJ8ZS6uX5g2dw

[Bonus: for X01AD v1.0-internal]
https://mega.nz/#!cOpzTARa!fVfzHn9euGaPL0lZbaHFy3Sy1AlFTWNd3yd6GxX65H8

Feeling generous?
Buy me a pizza or a coffee

Google Pay UPI: ls.cambo13@okaxis

Credits:
asus (for not fixing the notch)
@lscambo13 (for fixing it :p)
 

Attachments

  • ElegantNotch-X01BD-v1.2.jpg
    ElegantNotch-X01BD-v1.2.jpg
    267.7 KB · Views: 6,019
  • ElegantNotch-X01AD-v1.0-internal.zip
    17.9 KB · Views: 359
  • ElegantNotch-X01BD-v2.0.zip
    32.2 KB · Views: 524
  • ElegantNotch-X01BD-v1.2.zip
    41.1 KB · Views: 73
Last edited:

lscambo13

Senior Member
Nov 13, 2013
185
173
Xiaomi Redmi 3S
Xiaomi Redmi 5A
Thanks for the fix. Is there a fix for bottom corners in stock Pie rom? Asus used some png image files in stock Oreo instead of overlay method to round the display corners and the notch that disables 5 rows of pixels at the bottom of the screen.

It might be possible by modifying SystemUI or Framework but I haven't had time to play with that.

However, I'm hopeful that Asus will fix this in the next update. If not, we'll find a way ?.
 

pkm37

Senior Member
Aug 17, 2017
94
21
Unable to install through twrp
 

Attachments

  • Screenshot_PBRP_2019-07-03-00-30-33.png
    Screenshot_PBRP_2019-07-03-00-30-33.png
    117.9 KB · Views: 999

pkm37

Senior Member
Aug 17, 2017
94
21
Redownload or try to install from Magisk.
- Copying zip to temp directory
- Installing ElegantNotch-X01BD-v1.1.zip
+----------------------------------------+
+ Please install the latest Magisk! +
+----------------------------------------+
! Installation failed



Btw.. i am on magisk 17.3
 

pkm37

Senior Member
Aug 17, 2017
94
21
Hi,

Applied changes as cutout is good but icons are hiding.

rechecked with default setting.. icon not hiding. But while applying these change icons are hide.

Simply you can check with and without.

Thanks
 

lscambo13

Senior Member
Nov 13, 2013
185
173
Xiaomi Redmi 3S
Xiaomi Redmi 5A
05/07/2019

Update: v1.2 [Recommended]

Changelog:
  • Reworked the complete mask to allow space for more icons
    (Please do note that every rom is different, and it wouldn't be possible to accommodate every icon)
  • Updated translations
 

Attachments

  • ElegantNotch-X01BD-v1.2-cover.jpg
    ElegantNotch-X01BD-v1.2-cover.jpg
    262.5 KB · Views: 283
Last edited:
  • Like
Reactions: pkm37 and mauam

lscambo13

Senior Member
Nov 13, 2013
185
173
Xiaomi Redmi 3S
Xiaomi Redmi 5A
Hi,

Applied changes as cutout is good but icons are hiding.

rechecked with default setting.. icon not hiding. But while applying these change icons are hide.

Simply you can check with and without.

Thanks

Please update your module, the issue has been addressed.
However, it's the normal Android behavior, some space will still be unused due to the way our notch is designed.
 
  • Like
Reactions: pkm37

Akib Raj

Member
Jun 4, 2014
34
4
it's a very good work indeed but I can't use this feature on Pixel Exp CAF latest. Does anyone know where is the notch option. I couldn't fine any :/
 

Akib Raj

Member
Jun 4, 2014
34
4
First enable Developer Options
You can find the Display cutout option under Drawing tab (possibly the last option).
actually PE CAF rom don't have that option visible. Anyway, I'm now in Lineage OS. I did find that option and enabled it but sadly it's just like anyother rom's corner cutout. I wish it could fix the notch area's corner also. Hope you will.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    ElegantNotch for Asus (Zenfone) Max Pro M2
    Latest version: 2.0 (22/09/2019)
    Author: lscambo13

    ------------------------------------------------------------------------------------------------------------------------

    Description:

    This module enables anti-aliasing around the ugly hardware notch on Asus (Zenfone) Max Pro M2 to provide an elegant look; the way it should've been.

    • Requires latest Magisk installed!
    • Not available on Magisk repo
    • See attached photos
    ------------------------------------------------------------------------------------------------------------------------

    Installation:

    1. Install the module via Magisk
    2. Reboot

    Tested roms include Stock Pie, Stock Q and Havoc though it should be compatible with most roms.

    When reporting any bug or issue, make sure to mention:
    a. Logs or Steps to reproduce
    b. Your Rom details
    ------------------------------------------------------------------------------------------------------------------------

    Update: v2.0

    Changelog:
    • Switched to RRO, meaning more compatibility
    • No need to change any setting now, just reboot
    • +Bonus version for Max M2 (X01AD)
    ------------------------------------------------------------------------------------------------------------------------

    Update: v1.2

    Changelog:
    • Reworked the complete mask to allow space for more icons
      (Please do note that every rom is different, and it wouldn't be possible to accommodate every icon)
    • Updated translations
    ------------------------------------------------------------------------------------------------------------------------

    Update: v1.1

    Changelog:
    • Initial public release
    ------------------------------------------------------------------------------------------------------------------------

    For developers:

    v1.2 (05/07/2019)
    overlay/frameworks/base/core/res/res/values/config.xml
    Code:
        [COLOR="DeepSkyBlue"]<string [/COLOR][COLOR="DarkOrchid"]translatable[/COLOR]="[COLOR="seagreen"]false[/COLOR]" [COLOR="darkorchid"]name[/COLOR]="[COLOR="SeaGreen"]config_mainBuiltInDisplayCutout[/COLOR]">M -204.49219 0.00390625 C -188.47266 0.00390625 -178.82296 8.8348878 -177.21875 10.197266 C -171.2688 15.250266 -169.66752 18.090631 -167.36133 20.574219 C -165.05514 23.057808 -160.48531 30.837561 -159.10547 33.158203 C -157.72563 35.478846 -155.3646 41.471828 -154.00195 44.294922 C -152.49377 47.419541 -151.27921 50.743725 -147.14258 58.044922 C -142.93118 65.478087 -137.2207 70.349609 -137.2207 70.349609 C -137.2207 70.349609 -134.21406 73.479699 -128.37891 76.384766 C -120.72687 80.194388 -105.43555 80.910156 -105.43555 80.910156 L 0.0078125 80.910156 L 105.45117 80.910156 C 105.45117 80.910156 120.74249 80.194388 128.39453 76.384766 C 134.22968 73.479699 137.23828 70.349609 137.23828 70.349609 C 137.23828 70.349609 142.9468 65.478087 147.1582 58.044922 C 151.29483 50.743725 152.5094 47.419541 154.01758 44.294922 C 155.38023 41.471828 157.74125 35.478846 159.12109 33.158203 C 160.50093 30.837561 165.07076 23.057808 167.37695 20.574219 C 169.68314 18.090631 171.28443 15.250266 177.23438 10.197266 C 178.83858 8.834888 188.48828 0.00390625 204.50781 0.00390625 L 0.015625 0.00390625 L 0 0.00390625 L -204.49219 0.00390625 z  [COLOR="deepskyblue"]</string>[/COLOR]
    
        [COLOR="deepskyblue"]<bool [/COLOR][COLOR="darkorchid"]name[/COLOR]="[COLOR="seagreen"]config_fillMainBuiltInDisplayCutout[/COLOR]">true[COLOR="deepskyblue"]</bool>[/COLOR]

    For more information read the official documentation here.
    ------------------------------------------------------------------------------------------------------------------------

    Download Link:
    [Latest: for X01BD v2.0]
    https://mega.nz/#!dXAFmCaT!SdVD8pjolYCSgC0BULKRTEFe-SBMgcLJ8ZS6uX5g2dw

    [Bonus: for X01AD v1.0-internal]
    https://mega.nz/#!cOpzTARa!fVfzHn9euGaPL0lZbaHFy3Sy1AlFTWNd3yd6GxX65H8

    Feeling generous?
    Buy me a pizza or a coffee

    Google Pay UPI: ls.cambo13@okaxis

    Credits:
    asus (for not fixing the notch)
    @lscambo13 (for fixing it :p)
    2
    Module re-uploaded.
    2
    Not visible in Display cutout settings on AOSP Pixel Experience :(

    Rom: PixelExperience_X01BD-9.0-20190725-0545-OFFICIAL
    Magisk: 19.3

    Steps:
    1. Install ElegantNotch1.2 as Magisk Module
    2. Reboot to system
    3. Goto Developer options
    4. Press "Display cutout"
    5. ElegantNotch-X01BD is not visible



    kRf3ZeU.png
    eFMevjm.png
    Check what happens when you tap on Tall Cutout.
    If still not working, you can ask the rom maintainer to add support for ElegantNotch.
    2
    Thanks for the fix. Is there a fix for bottom corners in stock Pie rom? Asus used some png image files in stock Oreo instead of overlay method to round the display corners and the notch that disables 5 rows of pixels at the bottom of the screen.

    It might be possible by modifying SystemUI or Framework but I haven't had time to play with that.

    However, I'm hopeful that Asus will fix this in the next update. If not, we'll find a way ?.
    2
    05/07/2019

    Update: v1.2 [Recommended]

    Changelog:
    • Reworked the complete mask to allow space for more icons
      (Please do note that every rom is different, and it wouldn't be possible to accommodate every icon)
    • Updated translations