There's laptops or X86 tablets with soldered RAM but those are rare and vanish immediately if they show up at a good price.
If you really need GPIO then add a USB-C OTG MCU board like a ESP32, or even the ancient Arduino works via USB and serial TTY on Android.
Adafruit FT232H Breakout - General Purpose USB to GPIO, SPI, I2C https://www.adafruit.com/product/2264
(or even more cheaply a CH347T board which are dirt cheap on Aliexpress)
Both have decent Python support.
Slightly more expensive but you won't have to deal with battery health and the new ones come with a 1GB NIC and USB 3 ports!
They currently go for ~60 USD which steep compared to the pre-ram crisis prices but nothing crazy.
For comparison sake, you can find a few really high-end routers that are faster but most are a lot less powerful than this.
The CPU/GPU actually allows you to emulate a fair amount, up to N64, PSP and Dreamcast (but definitely with some compromise) so they function great as retroboxes as well.
They sip power and run great as a small homeserver. You can even use them as a NAS for media (that you're willing to lose since you won't be running any form of RAID with 1 USB 3.0 port).
Rooting with a completely melted screen would be a little harder, but hey, maybe rooting could be done by following the instructions step-by-step with a little faith, and then post-root the USB might work with an external portable monitor? I'm sure it's a solvable problem.
There is Android TalkBack (for poor vision) which is available on first boot/factory reset that narrates the menu. Even with a completely broken screen you can get ADB set up.
>The only thing I'm not a big fan of is the charging. Non-removable battery, already 8 or so years old, obviously the phone needs power to work. So I'm a bit worried about the fire hazard.
My family (n=3) owned the Huawei P20 (acquired at the same time in the same promo, perhaps the same batch?). This product line seems to have serious issues with battery swelling. Each phone had spicy pillows at some point within 2.5 years of ownership. Even outside the warranty period, Huawei was willing to replace the battery for free at their cost at their contracted Toronto repair centre. Each of the repaired phones had their spicy pillows return within 6-9 months. I strongly suspect Huawei was avoiding doing a voluntary recall.
Sometimes there are pretty good deals on laptops, especially off lease. I've seen some $400-500 w/ 32GB RAM pop up on Slickdeals every few months.
The battery is a free built-in UPS and isn't a fire hazard unless the charging electronics were designed spectacularly poorly. The BMS knows to stop charging the battery when it's full. All of these phones probably use the same set of well-known BMS chips, I would imagine.
Secondly, using a device on a battery to run 24/24 is nonsense, you are Puting a lot of work on the battery by constantly getting it at 100% and eventually it will break and with it your data.
Thirdly, these devices have just a usb port. Sometimes usb 2.0. What you gonna do when the 128gb is filled up ?
For example I got several broken screen Huawei P20s from 2018, they were 10€ each. 128GB storage with 4GB RAM https://www.gsmarena.com/huawei_p20-9107.php
They boot up, you can install termux and then whatever is your choice of Linux software. I run several copyparty instances for friends and family
https://f-droid.org/en/packages/com.termux/
https://github.com/9001/copyparty