You need a program
BatchApkToolThat parses / collects apk files.
Unpack the archive in a convenient place and run it.
In the window that appears, you need to set the desired level API (for android 9 level API - 28)
Everything else in my opinion is the default.
To folder
_framework We throw a few files from the firmware required for kompillyatsii.
framework-ext-res.apk
framework-res.apk
miuisystem.apk
miui.apkTo folder
_INPUT_APK we put a file which we will investigate. This file
InCalUI.apk (It is in the phone system \ priv-app folder)
Produce dekompillyatsiyu (press 1)
After successful dekmpillyatsii folder
_INPUT_APK a folder should appear
InCallUI Unwrap the resource files, which we can easily edit.
For the location of the image when an incoming call is responsible file
res \ layout \ call_card.xml parameter
android: scaleType It has several options:
android: scaleType = "fitStart" The picture fills the upper portion of the screen
android: scaleType = "fitCenter" The picture fills the middle of the screen
android: scaleType = "fitEnd" The picture fills the screen bottom
android: scaleType = "center" The picture is displayed in the center of the screen without stretching
android: scaleType = "centerCrop" The picture is stretched evenly on the entire screen, cut off the excess
android: scaleType = "fitXY" The picture fills the entire screen, in this case stretched / compressed
android: scaleType = "matrix" The picture is displayed in the upper left corner of the unchanged
After editing the file
call_card.xml collect apk file again (press 3)
and it appears when assembled in a folder
_OUTPUT_APK Install it on your phone (this can be done directly from the program, but needs some tweaking)
As you can see, everything is simple. Dare, edit, experiment.