[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] cyttorak:
Hello,

I have two Sony Xperia Mini Pro SK17i devices, which I'll refer to as model A and model B.

Model A data:

Android Version: 4.0.4

Kernel Version: 2.6.32.9-perf BuildUser@BuildHost #1

Build Number: 4.1.B.0.587

Battery Label Number: 11W44

Unlockable Bootloader: NO

Second-hand purchase in Spain

View attachment 6085560

Initially, model B data were:

Android Version: 2.3.4

Kernel Version: 2.6.32.9-perf SEMCUser@SEMCHost #1

Build Number: 4.0.2.A.0.62

Battery Label Number: 11W43

Unlockable Bootloader: YES

Second-hand purchase in Spain

But then I unlocked the bootloader and installed lineage-14.1-20170514-UNOFFICIAL-LegacyXperia-mango.zip and open_gapps-arm-7.1-pico, so its current data are:

Android Version: 7.1.2

Kernel Version: 3.4.0-LX+ adriandc@BuildServer #1

Build Number: lineage_mango-userdebug 7.1.2 N2G47O 081199fc61 test-keys

Battery Label Number: 11W43

Unlockable Bootloader: YES

View attachment 6085561

To install open_gapps-arm-7.1-pico, I have utilized advanced options and created the following gapps-config.txt:

Include

CalSync # Install Google Calendar Sync (if Google Calendar is being installed)
DialerFramework # Install Dialer Framework (Android 6.0+)
PackageInstallerGoogle # Install Package Installer (Android 6.0 only & Android 8.0+)

(LegacyXperiaCenter)
CMAccount # Remove CM Account
CMAudioFX # Remove CM AudioFX
CMMusic # Remove CM Music
CMBugReport # Remove CM Bug Report
CMSetupWizard # Remove CM Setup Wizard (see Notes for CMSetupWizard)
CMUpdater # Remove CM Updater
CMWallpapers # Remove CM Wallpapers
CMWeatherProvider # Remove CM Weather Underground
DashClock # Remove DashClock Widget (found in certain ROMs)
Hexo # Remove Hexo Libre CM Theme
LRecorder # Remove LineageOS Recorder
LSetupWizard # Remove LineageOS Setup Wizard
LUpdater # Remove LineageOS Updater
LiveWallpapers # Remove Stock Live Wallpapers
Studio # Remove Stock Movie Studio
(Gello) # CM WebBrowser
(BasicDreams) # Basic Dreams Wallpaper
(Galaxy) # Galaxy (also known as BlackHole) Wallpaper
(Hexo) # Hexo Libre Theme
(HoloSpiral) # Holo Spiral Wallpaper
(NoiseField) # Noise Field Wallpaper
(Phasebeam) # Phasebeam Wallpaper
(PhotoPhase) # Photo Phase Wallpaper
(PhotoTable) # Photo Table Wallpaper
(LiveWallpapers) # Stock Live Wallpapers

After restarting the phone, I kept encountering the error "Android Keyboard (AOSP) has stopped." Upon investigation, I found it might be related to this bug https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/469478 but couldn't find a solution. The only workaround I found was to install another virtual keyboard and disable "Android Keyboard (AOSP)."

Hence, my 1º question: Is there a way to modify lineage-14.1-20170514-UNOFFICIAL-LegacyXperia-mango.zip and open_gapps-arm-7.1-pico to resolve this error from the beginning?

Additionally, observing gapps-config.txt, you'll notice I remove some default applications in lineage-14.1-20170514-UNOFFICIAL-LegacyXperia-mango.zip and open_gapps-arm-7.1-pico such as LegacyXperiaCenter, which forces me to install open_gapps-arm-7.1-pico if I want to remove default applications because I don't know how to do it otherwise.

Therefore, my 2º question: Is there a way to remove them directly in lineage-14.1-20170514-UNOFFICIAL-LegacyXperia-mango.zip so I don't need to do it in gapps-config.txt?

Moreover, as seen in the photos, mobile A and mobile B do not have the same key layout on the physical keyboard. For example, the fn key for @ on model A is &, and on model B, it's ?. However, something very strange occurs:

On model A, when I press fn key for @, it types ?, and on model B, pressing fn key for @ types &. The same applies to all other special keys. That is, the keyboard on model A works as the keyboard on model B should work, and vice versa.

I've tried different physical keyboard configurations on model B, but it seems to ignore all of them. It doesn't matter what I select in Settings -> Language & input -> Physical keyboard, the keyboard always behaves the same.

Therefore, my 3º question: How do you properly configure the physical keyboard?

Thank you.