07-05-2020, 11:25 PM
(07-05-2020, 08:40 AM)Grouxho escribió: Add-On for Onfly change from Dual to Single StatusBar and Viceverse without Rebooting, flashing and / or changing buildprop properties. Fully On-fly (05/07/2020)
Great addition on an allready superb mod Grouxho.
I have made this mod on a Galaxy a40 with a Center notch. everything works fine, but obviously you can not use Center top, Center full Center and Center Bottom container because of the Center notch.
Here is a litte Addition for Center notch devices to get back the Center Bottom container.
1. Go to your Settings app and in Developer Options Change: Simulate Display with cotout from Default to Tall cutout
This will increase the size of the statusbar, but you have a big cutout overlay, which has to be removed to make the Center Bottom container visible.
2. Go to System/vendor/overlay/DisplayCutoutEmulationTall and copy DisplayCutoutEmulationTall .apk to your computer and decompile.
a. Go to res/values/bools and change <bool name="config_fillMainBuiltInDisplayCutout"> from true to false, this hides the mask.
b. Go to res/values/dimerns and change <dimen name="status_bar_height_landscape">to 44.0dip, this fixes the landscape view for dual statusbar.
c. In GrxDualOverlay.apk change <dimen name="status_bar_height_portrait"> to 48.0dip.
Done. Now you have increased the size and can use the Center Bottom container under your Camera cutout.