Well it's easy for you goofs to laugh, but I had a story like this too. A couple of days ago, I departed my home base for some hour and half flight. Turned on my main tablet - it was showing a factory reset. Stupid piece of garbage Huawei, it was working fine in the morning when I got the weather. I pulled out the backup - the subscription for Garmin Pilot on it expired or otherwise disappeared. It did not have any storage left for something like Avare. In fact, there seriously was no space, so the GP install there was used without any charts: only had airport data for emergencies.
My destination was too far away and I wasn't sure what course to follow, so I decided to land at a field that I knew had WiFi. Of course the factory reset on the Huawei wiped the saved logins, but by a miracle I remembered the password. I was unable to remember how to get into the lounge, so we camped outside. Fortunately, there was a shade. Also, the restroom was accessible from the outside.
By another miracle, I remembered my Google password, which the Huawei required to proceed after reset. Well, I needed it to get Garmin Pilot downloaded. I had the password for my Garmin account recorded in my flight notebook, but it didn't occur to me that I might be in a danger of forgetting my Google password. I entered that password into the GP on the backup device, too.
BTW, I asked my daughter to get Avare installed. The stupid thing was hanging on the registration. Oh well, Garmin it is.
If I didn't know the WiFi password, I guess I'd need to land at a nearby Class C field and march into their snazzy FBO.
Well, it wasn't as criminal as printing out a screencap from Skyvector at an FBO 2,000 miles from home and using that for a chart.