hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.24k stars 96 forks source link

(undetermined) Newer Android has same behaviour as PC, which breaks hyfetch's detection #120

Open saeziae opened 1 year ago

saeziae commented 1 year ago

Device: Samsung Galaxy S23, official ROM Kernel: 5.15-android13

There is no "Hardware: xxx" in /proc/cpuinfo, instead it gives binary code to identify vendor and core, same to Linux on PC. In this case, it is supposed to read lscpu.

Screenshot_20230428_033415_Termux.png

Screenshot_20230428_034208_Termux.png

Screenshot_20230428_033918_Termux.png

note: my lscpu didn't recognise names of all cores, it's probably termux's util-linux is old, but it shows it is capable to decode the binary code, we can suppose the behaviour is standard.

saeziae commented 1 year ago

Please reply with your phone model, OS version, kernel version if you encounter the same issue.

leo60228 commented 11 months ago

Google Pixel 7a, LineageOS 20, 5.10.157-ga10cc6d10517

hykilpikonna commented 11 months ago

On my MIUI 14 Android 13 device, the Hardware field still exists. Maybe it's because of the old kernel. We might need to detect whether the Hardware field exists instead of detecting if the device is Android.

Screenshot_2023-09-29-03-02-59-488_com termux