The apkruntime-start.sh must specify the appropriate screen dimensions for the APK runtime to use to render its applications.
At system startup, System Launch and Monitor (SLM) launches the APK runtime by invoking a script named /scripts/apkruntime-start.sh. This script sets a number of properties for the APK runtime, including adaptive partitions (see "Adaptive partitioning for the APK runtime") and the screen resolution.
For example, on the QNX CAR platform, the usable screen size for an APK application is less than the physical screen size. This is because the default HMI divides the screen into three areas: the status (or information) bar, the application area, and the tab (or navigation) bar.
When an application is launched, its viewable area is contained within the application area. Different vendors may decide to use different heights for the status bar or tab bar, or even remove the status bar entirely.
Due to the variability of the application area on the screen, the apkruntime-start.sh startup script must specify the appropriate screen dimensions for the APK runtime to use to render its applications. The script specifies values for the WIDTH and HEIGHT variables that it sends to the PPS control object (found at /pps/services/launcher/control). The apkruntime-start.sh script contains the following line, which sends the PPS message to set the variables and start the APK runtime:
echo "msg::start\ndat::$AP_APP,ORIENTATION=0,WIDTH=800,HEIGHT=395\nid:n:3080\nmsg::start\n" >> /pps/services/launcher/control
You should ensure that these are the correct dimensions for your screen and its components, and then adjust them as needed.
The set-resolution.sh script automatically adjusts the apkruntime-start.sh script (for example, if you change the resolution with a set-resolution.sh 720p command).