[Android General] djb77:
Always On Display Mods

Always On Display Mods

Tested on Oreo and Pie versions of AOD

You can find it for Oreo in system/priv-app/AODService_v30/AODService_v30.apk, or on Pie in system/priv-app/AODService_v40/AODService_v40.apk

Changing the image for the AOD Home Button Icon

The image you need to change lives at res/drawable/ic_home_button.png (for Oreo) or res/drawable/ic_sysbar_home_button.bmp (for Pie)

You can easily just replace the image with your desired AOD Home Button.

If you were previously using .png files (for example updating from Oreo to Pie) just rename to .png to .bmp and it will work fine.

SMALL NOTE: The stock Home Button image is 66 x 66 pixels. You don't have to necessarily have to resize the image to this size.

It MUST be a square image (100 x 100, 200 x 200 etc), otherwise the image will be stretched out of proper proportion.

Changing the size of the AOD Home Button Icon

Before we mod AOD, we're going to perform a similar method applied to SystemUI, SecSettings etc.

For Pie use AODService_v40.apk instead of AODService_v30.apk.

- Make a copy of AODService_v30.apk and call it AODService_v30_ORIG.apk

- Copy files from res/anim-v21 folder from AODService_v30_ORIG.apk to res/anim in AODService_v30.apk

- Copy files from res/color-v11 and color-v23 folders from AODService_v30_ORIG.apk to res/color in AODService_v30.apk

- Copy files from res/drawable-v11 and drawable-v23 folders from AODService_v30_ORIG.apk to res/drawable in AODService_v30.apk

- Copy files from res/layout-v11 and layout-v21 folders from AODService_v30_ORIG.apk to res/layout in AODService_v30.apk

- Decompile and Recompile AODService_v30.apk. Rename the newly compiled APK as AODService_v30_MOD.apk

- Make a copy of AODService_v30_ORIG.apk and call it AODService_v30_FINAL.apk

- Copy resources.arsc from AODService_v30_MOD.apk into AODService_v30_FINAL.apk, use no compression

- Copy res folder from AODService_v30_MOD.apk into AODService_v30_FINAL.apk, use best compresion

- Finished, now use the your newly created AODService_v30_FINAL.apk file to Decompile / Recompile without issues

The code you need to change can be found in res/layout/aod_layout_home_key.xml

Look for this line of code (for Oreo):

<ImageView android:layout_gravity="center" android:id="@id/aod_home_icon" android:layout_width="[COLOR="Navy"]@dimen/aod_home_icon_size[/COLOR]" android:layout_height="[COLOR="navy"]@dimen/aod_home_icon_size[/COLOR]" android:src="@drawable/ic_home_button" android:scaleType="fitXY" android:tint="#ff969696" />

We will be looking at changing the values for android:layout_width and android:layout_height which is @dimen/aod_home_icon_size by default.

<ImageView android:layout_gravity="center" android:id="@id/aod_home_icon" android:layout_width="[COLOR="navy"]22.0dip[/COLOR]" android:layout_height="[COLOR="navy"]22.0dip[/COLOR]" android:src="@drawable/ic_home_button" android:scaleType="fitXY" android:tint="#ff969696" />

Look for this line of code (for Pie)

<ImageView android:layout_gravity="center" android:id="@id/aod_home_icon" android:layout_width="[COLOR="navy"]@dimen/aod_home_icon_size[/COLOR]" android:layout_height="[COLOR="navy"]@dimen/aod_home_icon_size[/COLOR]" android:src="@drawable/ic_sysbar_home_aod" android:scaleType="fitXY" android:tint="#ff969696" />

We will be looking at changing the values for android:layout_width and android:layout_height which is @dimen/aod_home_icon_size by default.

<ImageView android:layout_gravity="center" android:id="@id/aod_home_icon" android:layout_width="[COLOR="navy"]22.0dip[/COLOR]" android:layout_height="[COLOR="navy"]22.0dip[/COLOR]" android:src="@drawable/ic_home_button" android:scaleType="fitXY" android:tint="#ff969696" />

In the screenshot I attached below, I ended up resizing the image from 22.0 to 33.0, not a huge increase but enough to show a little bit more detail.