This mod is for devices with a cutout camera in the display. Use the big beautiful display fully in landscape while respecting the cutout in portrait (no more clock behind camera)
For android 11 only, install on 10 at your own risk!
- Full screen apps on landscape
- It maintains the contents of your status bar in portrait respecting the cameras position
Presets for the following devices, but you can create a custom cutout for any device running AOSP based android 11. The presets below should work for most scenarios on other phones with a cutout on the left
- Oneplus
- 8 Pro QHD+ (cant get around the resolution change atm)
- 8, 8 Pro FHD+, 8T
- Google
- Pixel 5
- know how to recover device safely after failed magisk module!
- install module via zip or magisk repo
- select your presets
- select if you want custom cutouts
- reboot
- go to settings and change
Display Cutout
from default to any of theN3O
cutouts
- first installation will ask if you want custom files
- select yes if you wish to alter the cutout width OR if the presets above dont match your device and DO NOT REBOOT (this just saves time)
- files will be located in
/sdcard/com.logmd.n3o/
use a file editor like "root explorer" or "es explorer" to edit them- for top left cutouts there are 2 files
custom1left.txt
andcustom2left.txt
- for top right cutouts there are 2 files named like above, but
right
- for center cutouts there is 1 file with
center
in its name, this is experimental and may not work
- for top left cutouts there are 2 files
- only enter whole numbers e.g. 1, 3, 100.
- this number is in pixels
- reinstall the module then reboot :)
warning: Take care here, incorrect values can cause systemui failures, or worse bootloops. know how to get out of this BEFORE you try to install
Should work on AOSP based android 11
HAS ISSUES!
- some bootloops/sysui crash (TRY AT YOUR OWN RISK)
- please test a backup method of removing magisk or restoring via adb before trying
Within each devices framework code, there are xml values for "drawing" the cutout location using svg draw paths. now what i currently do is remove the camera cutout portion but leave a line of 1px at the top of the screen above the camera
e.g. for the 8T
M -407 68.5 A 34 34 0 0 1 -475 68.5 A 34 34 0 0 1 -407 68.5 Z M -475,0 L -407,0 Z M -540,0 L -540,102.5 Z
becomes
M -475 1 L -407 1 Z M -540 0 L -540 0 Z
i have simplified the above process but the gist is the same :)
- Gnonymous7 for Script base and install logic
- Zackptg5 for MMT-Ex template.
- topjohnwu for entire Magisk universe.
- skittles9823 for helping me.
- All the testers and xda for providing a platform to test on