Remove eSim in recovery mode or fastboot?

Hi
I recently got a 2nd hand Fairphone 4 and flashed it with Ubuntu Touch. It has an eSim installed and wasn’t able to remove it before flashing Ubuntu Touch. UT doesn’t have a way to manage eSim yet. Is there a way to remove the eSim in recovery mode or fastboot without deleting my data? I’m having an issue with mobile data which doesn’t work most of the time so I want to eliminate the eSim as cause of the issue. As much as possible, I don’t want to reflash Android again because I’m always anxious when backing up and restoring data :sweat_smile:

I found this command fastboot oem reset esim but not sure if it’ll work in FP4 and if it doesn’t delete data and factory reset.

I never deleted eSim so I cannot help you for that.

But I did switch several times between Ubuntu Touch and Android and I found an easy way to restore UT data, with TWRP recovery.

To backup Ubuntu Touch:

  • flash TWRP as recovery
  • backup only the /Data partition, on external SD

To restore Ubuntu Touch:

  • Fresh install of UT
  • TWRP restore of /Data partition, and reboot :slight_smile:

I never had issues flashing different operating systems. Remember to NOT relock the bootloader because with this action you have risks of bricking…

2 Likes

Yeah, I already do that when backing up and restoring my data. I’m just an anxious person and I’m always worried something wrong would happen or unknowingly lose data :sweat_smile:
If I can’t find a way to remove the eSim then I would definitely just reflash Android.
Thanks anyway :+1:

1 Like

I dont have experience on this, but I have read that there are eSIM management utils for linux. cant find my notes right now, but check these:

1 Like

In the last Q&A 161, Marius spoke about LPAC implementation :slight_smile:

In yet more big news, Marius has now succeeded in getting an eSIM to work. At the moment it functions only in command line but he is working on a UI for it. The fix used the Lpac library. A big shout out to the developers of that because it contains resources which we have used for lots of different things.

3 Likes