• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Statusbar Size Fix

Search This thread

alexmeo

Member
Feb 12, 2008
35
4

Attachments

  • Screenshot_20210921-222134_Trebuchet.png
    Screenshot_20210921-222134_Trebuchet.png
    9.5 KB · Views: 21

Tulsadiver

Recognized Contributor
Jul 11, 2013
8,541
6,059
Last edited:

file2mail

Member
Dec 20, 2010
18
0
Hi, looking to do this for a Samsung s10...
Would you or someone be able to just provide a tutorial in generating our own? I'm fairly capable, and love to be able to build my own updates
 

Tulsadiver

Recognized Contributor
Jul 11, 2013
8,541
6,059
Hi, looking to do this for a Samsung s10...
Would you or someone be able to just provide a tutorial in generating our own? I'm fairly capable, and love to be able to build my own updates
You need to modify your DisplayCutoutEmulationWaterfallOverlay.apk from your system/product/overlay folder.

Decompile and edit:

in res/values/dimens.xml

1. Change these two from whatever their original codes are, to whatever size you want your statusbar to be:
From: <dimen name="status_bar_height_landscape">48.0dip</dimen>
To: <dimen name="status_bar_height_landscape">36.0dip</dimen>

From: <dimen name="status_bar_height_portrait">28.0dip</dimen>
To: <dimen name="status_bar_height_portrait">36.0dip</dimen>

Also in res/values/dimens.xml

2. Change these two to zero dip
From: <dimen name="waterfall_display_left_edge_size">20.0dip</dimen>
To: <dimen name="waterfall_display_left_edge_size">0.0dip</dimen>

From: <dimen name="waterfall_display_right_edge_size">20.0dip</dimen>
To: <dimen name="waterfall_display_right_edge_size">0.0dip</dimen>

Recompile and put into a Module and flash. Then, in settings/system/developer options, select Waterfall cutout option in the Display cutout options menu.
 
  • Like
Reactions: file2mail

file2mail

Member
Dec 20, 2010
18
0
You need to modify your DisplayCutoutEmulationWaterfallOverlay.apk from your system/product/overlay folder.

Decompile and edit:

in res/values/dimens.xml

1. Change these two from whatever their original codes are, to whatever size you want your statusbar to be:
From: <dimen name="status_bar_height_landscape">48.0dip</dimen>
To: <dimen name="status_bar_height_landscape">36.0dip</dimen>

From: <dimen name="status_bar_height_portrait">28.0dip</dimen>
To: <dimen name="status_bar_height_portrait">36.0dip</dimen>

Also in res/values/dimens.xml

2. Change these two to zero dip
From: <dimen name="waterfall_display_left_edge_size">20.0dip</dimen>
To: <dimen name="waterfall_display_left_edge_size">0.0dip</dimen>

From: <dimen name="waterfall_display_right_edge_size">20.0dip</dimen>
To: <dimen name="waterfall_display_right_edge_size">0.0dip</dimen>

Recompile and put into a Module and flash. Then, in settings/system/developer options, select Waterfall cutout option in the Display cutout options menu.
Thanks for that!
Does the recompiled apk need to be signed?
 

alexmeo

Member
Feb 12, 2008
35
4
Unzip this onto your "c" drive. Drop your framework-res.apk, SystemUI.apk, and Displaycutoutemulationwaterfalloverlay.apk into folder. Open a bash script terminal from within the folder and copy the script from the readme.txt and run it. You need to have java jdk installed as well. Results will be in the done folder.

Before you run this each time, delete the framework-3Custom11script folder so that the new framework is installed.

Here is the new module.
Hi, could you please correct this module for pixel 5a? Or maybe it is not necessary and i can compile with this script? Ive attached files if they are needed.
 

Attachments

  • framework-res.apk
    46.3 MB · Views: 0
  • SystemUI.apk
    25 MB · Views: 0
  • DisplayCutoutEmulationWaterfallOverlay.apk
    24.3 KB · Views: 0

Tulsadiver

Recognized Contributor
Jul 11, 2013
8,541
6,059
Hi, could you please correct this moudule for pixel 5a? Or maybe it is not necessary and i can compile with this script? Ive attached files if they are needed.
Yes, you can use this script as long ss your SystemUI.apk is named as such and not SystemUIGoogle.apk stock Pixels are. You must delete the other apk's and framework_3Custom11script folder (where 1.apk is installed).
 

Top Liked Posts