[BUG] DE is wrong on android.
Read the FAQ first
- [x] I have checked the FAQ but the issue is not covered
Description
i haven't read the code for fastfetch for this specific thing yet, but i've experimented on several devices, on each device i've tried it on it's been the same, the DE on android seems to be fetched from ro.build.display.id from build.prop, that is however NOT the desktop environment nor the android UI flavor. that is the identifier for the built in display, it usually just looks like garbage noise on most devices.
Version used
fastfetch 2.67.1 (aarch64) && fastfetch 2.67.1 (arm)
Bug prevalence
Always
Regression
Not sure
Installation
Package manager
Package manager
pacman(termux), apt(termux), pkg(termux)
Screenshots
No response
Configuration
System information
not relevant, should be reproducible anywhere if its android
Features built-in
linux-headers 6.12.0
threads
vulkan
xcb-randr
xrandr
gio
dbus
imagemagick7
chafa
zlib
egl
glx
opencl
freetype
libpulse
libelf
libzfs
Embedded wcwidth
small correction: its completely wrong in pure termux/tmux and missing in xfce (x11)
i haven't read the code for fastfetch for this specific thing
But you should.
https://github.com/fastfetch-cli/fastfetch/blob/dev/src/detection/displayserver/displayserver_android.c#L138-L187
i've experimented on several devices, on each device i've tried it on it's been the same
What are the several devices?
This is what i found:
- The ro.build.display.id just is a fallback which happened also on my smartphone (asus zenphone 9).
- The launcher is not visible on termux(where i was reproducing your bug) and my device, it says:
pm list packages | grep -i launcher
1 activities found:
Activity #0:
priority=-1000 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=true
com.android.settings/.FallbackHome
Some other output on my device:
ro.product.brand = asus ro.product.manufacturer = asus ro.build.version.incremental = 34.0304.2004.145 ro.build.display.id = UKQ1.230924.001.34.0304.2004.145 release-keys
I could fix this for my manufactore-type (e.g adding a asus branch before the catch-all, like other's already did(xiami, huawei...), maybe the best way is to make a table something like samsung->one UI etc. . Hope that help's, what do you think?
Please test
What are the several devices? an armv7 android tv, an armv7 generic android tablet, not surprised those have the fallback, but a modern samsung phone shouldnt have a fallback, especially when that fallback is complete garbage, i havent yet tested the patch, as it is not yet packaged for termux pacman nor termux apt, so im not sure if its patched yet.
@cerealdevv if you wanted your device to be fixed you have to post your getprops ro.build.version.oneui output and your ro.product.brand output on every device you encounter the issue as I did, then @CarterLi could fix it; the patch should not do anything on your device, only my device should be supported now something like: DE: 34.0304.2004.14; and not something like DE: ZenUI 34.0304.2004.14; is this by design?
on samsung phones, you could rely on the following factors to detect OneUI version as a proper DE detection:
and then to get the version you simply check [ro.build.version.oneui]: [90000] <-- this is OneUI 9.0, they consistently use this format.
on oneui 7.0 itd be 70000 and 8.5 itd be 85000, i think you get it by now, the general rule of thumb is divide by 10000.
as of version 2.68.1 the detection is still wrong for samsung devices specifically, and im not confident it works for other devices, while its a lost cause on generic chinese tablets, you still should not fall back on ro.build.display.id because thats the id for the screen, not the "desktop", i feel itd be better to just leave the DE field out entirely, rather than to just display a random ID.
@CarterLi