yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] portsample:
What is the best and most assured method for a complete and low level backup of the entire device?
[Android Q&A, Help & Troubleshooting] glhydroco:
First I would download the flash tools in post 18, Then follow the backup steps under the USERDEBUG Flash. Stoping after Step 3. So....

1. Boot to EDL mode and load firehose programmer

QSaharaServer.exe -p \\.\COM<#> -s 13:prog_emmc_ufs_firehose_Sdm660_ddr.elf

2. Generate rawprogram0.xml - Run GPTConsole <COM Number>

Example:

GPTConsole <#>

3. Initiate backup

fh_loader.exe --port=\\.\COM<#> --convertprogram2read --sendxml=rawprogram0.xml --lun=0 --memoryname=emmc --noprompt --reset

This will fill the folder with all of the partitions / .img files you would need to restore a full image of that device. Just be careful when in the fh_loader as this is direct access to the memory.
[Android Q&A, Help & Troubleshooting] a_petrov303:
glad to see some discussion here again.

So, (after some reading) ESN is something similar to what providers in Europe call IMEI - now I understand why my question was delicately ignored))

I am afraid I bought a waterproof music player :D if ESN is related to IMEI - I now have started to suppose it is
[Android Q&A, Help & Troubleshooting] glhydroco:
They are the same ESN / IMEI. We seem to be in the same boat, unless someone knows how to bring back the original settings the phone came with. If I load the Dev Image will this restore function to my phone?? As far as recognizing the sim card.

What makes the ESN Bad?? Did the seller state that the phone was compromised / lost / stolen? You may want to contact the original carrier there are ways to fix bad ESN's.
[Android Q&A, Help & Troubleshooting] a_petrov303:
to be honest, I didn't ask, because I purchased the phone from a ebay store so I assumed it can't be something illegal. Moreover, I knew that ESN is something American, therefore not applicable here in Europe, so I thought I am good.
[Android Q&A, Help & Troubleshooting] glhydroco:
Verizon backup

To Keep this thread going I do have a full backup of Verizon, Not sure where to upload it as like the other images it is Large. Anyone that knows please advise as I would like to get it uploaded if anyone needs it.
[Android Q&A, Help & Troubleshooting] a_petrov303:
Mega, GDrive?....
[Android Q&A, Help & Troubleshooting] portsample:
There are at least three of us in this boat. My "guinea pig" phone has lost IMEI and baseband. Using QFIL-->Tools-->QCN Backup-Restore I was able to pull a good .qcn file from my "daily driver" and install in guinea pig. Now guinea pig shows baseband and IMEI, but will not detect the SIM card.

Suspecting that the fsg, modem_a, and modem_b may be corrupted I deleted the partitions those files were on using their addresses from here: /dev/block/platform/soc/c0c4000.sdhci/by-name

This was done via adb as follows:

dd if=/dev/zero of=/dev/block/mmcblk0p11

dd if=/dev/zero of=/dev/block/mmcblk0p30

dd if=/dev/zero of=/dev/block/mmcblk0p31

reboot

This was followed by a fresh install of an 8.1 image using fh_loader. Following this, (as expected) I had no IMEI and no baseband. Re-rooted, and used QFIL to reinstall my good .qcn backup. While my phone now shows an IMEI as well as a baseband, it still does not recognize my SIM card.

Thoughts from anyone in the group regarding what is going on here, as well as possible solutions?

Thanks in advance.
[Android Q&A, Help & Troubleshooting] a_petrov303:
is it possible at all that we have a physical malfunction, not a software one? Are there cases when the phone "lost SIM card" while at the same owner - this would rules one bad esn story told by some (my) sellers .

The reason i ask is because if I am not mistaken, XP8 uses a very classical way of securing the SIM - so damage could be done by the user when not knowing how to properly secure the sim, phone returned to the seller/manufacturer/insurance company, they test it, sim not recognised, they sell it as a bad ESN? :confused:
[Android Q&A, Help & Troubleshooting] portsample:
The phone worked fine previously. This is a phone that I only use for programming and testing purposes.

Further note: I had updated the .qcn file that I loaded into my test phone ("guinea pig") with the original IMEI number for that phone. The .qcn file itself came from my daily driver phone. In addition, I have tried two SIM cards in either slot of the XP8 with no luck for either.

Thanks for your insight.
[Android Q&A, Help & Troubleshooting] glhydroco:
I do not think this is " a physical malfunction", This has to be the software.

I can confirm this as well, my "Brick" worked before I tried to flash the full Verizon image on it, Then after I restored the At&t image from my daily, as well, the sim is not recognized. I also restored the qcn file with the original imei number just as you have - portsample. This is exactly the same situation that I am in and have done, I did also upgrade to 8.1 and restore the correct qcn file but still no sim recognized.
[Android Q&A, Help & Troubleshooting] portsample:
Reproducibility is important in problem solving.
[Android Q&A, Help & Troubleshooting] glhydroco:
It is crazy that you posted this regarding what has been done to your phone, This is exactly the same other than mem blocks I deleted mmcblk055 and 56. I go into the phone testing *#*#4636#*#* I am able to see LTE signal, If I change the radio to cdma, I can see signal. I know the base bands work it is just getting the sim to be recognized.
[Android Q&A, Help & Troubleshooting] a_petrov303:
I finally took delivery of my "new bad esn" phone )))

I am still confused about what bad ESN means, as the phone looks new, has the original box, manuals, charger, cable, screwdriver... Moreover, the seller is an ebay shop, looks legit, has over 10 "bad ESN" phones like mine..

I am charging it now, will want to root it too of course, is there anything specific I should do before inserting my SIM? Like don't ugrade, or DO NOT insert sim until I have root etc - these type of advice.

Many thanks!

P.S. using USB-C cable is a pain in the back (open cover, poke around to insert the cable...) - anyone is using charging pins on the back?
[Android Q&A, Help & Troubleshooting] a_petrov303:
I could not wait for reply here and turned the phone on. Straight away it asks for a SIM network unlock code, so it seems the device is locked to AT&T.

Would rooting with the method described here help unlock the phone please? If yes, could someone familiar with the process provide some some directions, links or anything to help with this?
[Android Q&A, Help & Troubleshooting] darkphoenix2012:
I just got an update to android 10 wow this is like a brand new phone now. Much has improved.
[Android Q&A, Help & Troubleshooting] a_petrov303:
Wow, this is good news!

I like how the phone looks and feels so much, unfortunately AT&T has refused to unlock it, so can only look at it at the moment. Hopefully, will find a solution to this, maybe the global ROM will became available here and this will solve the issue?
[Android Q&A, Help & Troubleshooting] glhydroco:
carrier

What Carrier pushed this update? I have ATT and they have not yet.
[Android Q&A, Help & Troubleshooting] darkphoenix2012:
Verizon
[Android Q&A, Help & Troubleshooting] a_petrov303:
I don't think it is worth a new thread, so i will ask here:

Anyone knows a verified provider of unlock codes for this phone? A google search offers a variety, I have tried a couple and they refused or did not answer at all...so if anyone used one successfully, please let me know.
[Android Q&A, Help & Troubleshooting] glhydroco:
I repair these phones and have only used ATT to unlock them through their unlock web site request URL.
[Android Q&A, Help & Troubleshooting] a_petrov303:
Perhaps do you know if the SIM cover metal door (the one that presses the SIM down) is replaceable? Mine is bent in a barbaric way (previous owner put the battery in with one of the metal sim doors vertical open), so i need to find a new one as well as a method on how to put it back
[Android Q&A, Help & Troubleshooting] portsample:
The sdcard carrier in my "guinea pig" phone was similarly bent. I removed the door, set the card in it's appropriate position, covered it with a strip of black electrical tape approximately 2 cm long, then put a 1 cm x 1 cm square of adhesive backed velcro (loopy portion, not hooks) directly above the sdcard on the electrical tape to provide direct pressure on the card when the battery is in place. This seemed to work fine.

Perhaps something similar would work for the SIM card? Good luck.
[Android Q&A, Help & Troubleshooting] a_petrov303:
Thank you, it is encouraging. I looked online, the covers are dirt cheap, however I am still to identify the correct one for our phone. And I am still not sure how to put it back in case I procure the correct one. The old one is out now, I tried to put it back (for the exercise sake), but failed.

If nothing else works, I will do your trick, many thanks. For the moment I have the second SIm tray. And the phone is locked to ATT, while I am in Europe
[Android Q&A, Help & Troubleshooting] glhydroco:
This piece is replaceable, You would need to find one, The ones that I have replaced were removed from a dead phone, You will need some fine tip tweezers, The side close to the side of the phone has two nobs where the Sim cover metal door swings, This is where you will need to push twards the center of the door, I can take a picture of this when I get to work if you would like, It is easy to figure out when you see the Sim cover metal door not installed in the phone. If you only need one sim card you can just remove the Sim 2 cover and place in on the Sim 1 spot.
[Android Q&A, Help & Troubleshooting] a_petrov303:
Thank you, i will try that when I find replacement. Wouldn't SIM2 work if SIM1 is faulty? Why swapping covers from SIM2 to SIM1?
[Android Q&A, Help & Troubleshooting] glhydroco:
Sim2 does work, it would just be for the aesthetics.
[Android Q&A, Help & Troubleshooting] a_petrov303:
Yes, please do make some pictures!
[Android Q&A, Help & Troubleshooting] glhydroco:
[IMG="Sim Holder"]https://ibb.co/86DhhxK[/IMG]

I have attached the image of the Sim holder Clip, Looking at the image you will see some small nipples on the bottom side, These are what needs to be pressed in to install back into the sim reader. They are located on the hinged end and act as the pivot. These fit into a slot. I hope this helps.
[Android Q&A, Help & Troubleshooting] a_petrov303:
I does help a lot! Many thanks!

Worse case scenario, if I won't be able to do it, I will ask someone with better eyes (and smaller fingers) to do it. It is quite clear now what I am to do, thank you!
[Android Q&A, Help & Troubleshooting] a_petrov303:
and it worked!!! Many thanks!
[Android Q&A, Help & Troubleshooting] sahaqq:
UBERdUDE420

ARE YOU STILL WITH THIS THREAD?

TRY 2 pm ME , I GOT THE CHRISTMAS SPIRIT MOVIN DOWN SOUTH.

LMK!
[Android Q&A, Help & Troubleshooting] SergP2008:
Please upload a backup from verizon
[Android Q&A, Help & Troubleshooting] m11c3:
hello anyone have trick to reset the safeguard PIN by sonim?

i buy 1 device, all good, except, safeguard PIN left in the phone
[Android Q&A, Help & Troubleshooting] apetrov1x5:
what safeguard PIN, please explain, I am new to this phone
[Android Q&A, Help & Troubleshooting] SergP2008:
ATT?
[Android Q&A, Help & Troubleshooting] thenatti:
Good morning everyone took me days to figure out how to flash this device with a userdebug build I have created a TWRP recovery with magisk patched built in from port tutorials on youtube ported from a nokia 7 8.1 build it works the only thing is partitions aren't fully mapped out I'm no developer more of a tinkerer I can upload the boot image I find it easier to flash with the sonim XP8 tool the goal was to create a recovery and change the boot image as I do on most of my devices it boots TWRP we have a working TWRP just needs some tlc anyone up for the task ? We are one step closer to a custom rom I can also upload a video for proof currently on ATT user debug build from the android file host backup
[Android Q&A, Help & Troubleshooting] koehn19:
I am very interested in what you've done!

I am a mechanic / contractor and I really like the Xp8!

I am interested because I want to

de-Google this device

Years ago I custom ROM'd some Samsung Galaxy S2 S3 and S4's. However now I am a 46 year old guy with a family and business to run in the Middle of a Global reset and don't have the luxury of time right now. But I am going to continue to follow this thread 😉😇👍🏻.

Before I can try breaking🤣 this device I have to get one of my old S4's up and running. Maybe I'll get some time....

I I appreciate your post! there are still a few of us out here interested in development on the xp8👍🏻
[Android Q&A, Help & Troubleshooting] thenatti:
So what I've found once you flash the rom with the sonim xp8 flashing tool with the custom boot.img I'll upload it I patched with magisk and twrp so it's built in once you adb reboot bootloader ( it will say encryption unsuccessful adb will still work ) select recovery mode once you adb reboot bootloader , you need to select recovery mode boot into twrp , select adb sideload then cancel it the phone should mount storage , adb push dm-verity force encryption .zip /etc " sources online " then adb push magisk .zip to /etc , go to install on twrp locate /etc flash verity , then flash magisk , and you will have a fully rooted rom with twrp will upload the boot.img later on today it can flash with above instructions no errors , I do need someone to modify so the partitions fstab so they work out of the box
[Android Q&A, Help & Troubleshooting] koehn19:
Hey, thanks for all of this work! I've bookmarked it and I will definitely put it to use as soon as I get a chance to. !! And I'll try to post an update for the benefit of anyone else that has one of these too 👍🏻👍🏻✨✨
[Android Q&A, Help & Troubleshooting] thenatti:
No problem I love. Being apart of this community of all great minds proof if we all come together we shall prevail , here. Is the MEGA link to the files mentioned

MEGA
[Android Q&A, Help & Troubleshooting] thenatti:
Fastboot -w , or fastboot erase userdata
[Android Q&A, Help & Troubleshooting] thenatti:
Is it possible to create our own official thread I've ported twrp boot img info on page 14? Maybe we can get some development going the partitions for this device is rather odd I couldn't locate the media folder that contains bootanimation.zip
[Android Q&A, Help & Troubleshooting] ytagger:
@thenatti Thanks for all the great work! I'd like to try to help.

Can you please post the decryption password for the MEGA upload (or post the files publicly)? Thanks
[Android Q&A, Help & Troubleshooting] thenatti:
ll-v80DXFnkJlVEMyBrXqg twrp boot image - ive flashed 7.1.1 and 8.1 boot image works on both so it doesnt matter what firmware your on
[Android Q&A, Help & Troubleshooting] thenatti:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

xxxxxx

Sonim XP8 is officially Rooted with TWRP

replace downloaded boot.img with your boot.img in firmware folder from the link below

tested on android 7x-8x USERDEBUG builds.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

=======================================================================

Bugs -

cant flash system.img

wipe/format data wipes phone completely

ive tested both functions its the way this phone is setup its pretty weird.

=======================================================================

Updates -

will be working on figuring out how to build a custom OS

any help would be greatly appreciated

=======================================================================

NEW LINK with sonim flash tool , boot.img , magisk , and no verity

I dont ! take any credit for the mentioned applications just the TWRP port

==========

Thank you to all who kept this thread in motion lets keep it going !!

========================================================================

ADB -

adb reboot bootloader - takes you to fastboot where you can select recovery mode

adb reboot edl - takes you to flash mode.

adb reboot recovery doesnt work !

========================================================================

NEW LINK - GDRIVE ​
[Android Q&A, Help & Troubleshooting] thenatti:
Does anyone have the android 10 Verizon firmware update ? Or userdebug ? Where did y’all source the updates from ?
[Android Q&A, Help & Troubleshooting] thenatti:
Hey Has anyone flashed a user build with the sonim tool? I was able to edit the system.img but it won’t flash to the phone using the sonim tool it says rawprogram file doesn’t exist but it is in the folder a modified user build could be a start to an AOSP build if anyone has some files I could use that would help , since the files are a/b files copies of system files once edited should be superb I just can’t flash it only userdebug builds
[Android Q&A, Help & Troubleshooting] haikkk:
Any ideas, how to root XP5S 5800? I have tried everything. :(
[Android Q&A, Help & Troubleshooting] ytagger:
Did you try with QFIL?
[Android Q&A, Help & Troubleshooting] thenatti:
i did but it boots and reboots once it hits the att logo i getvar all and it shows both slots unbootable
[Android Q&A, Help & Troubleshooting] thenatti:
would anybody be kind to share an att emmc dump to hopefully unbrick my device?
[Android Q&A, Help & Troubleshooting] apetrov1x5:
Hi, first of all thank you for all the work you are doing for our great phone!

I have no knowledge to help unfortunately, but here is a a back-up of an AT&T phone, Android 8.1 - is this a "dump" you are looking for?

https://4pda.ru/pages/go/?u=https%3A%2F%2Fyadi.sk%2Fd%2FmqL2NnsVvR8OKw&e=94919157

Link taken from a Russian thread on this phone which I am also following in the hope to get a Custom rooted ROM for our phone. ( https://4pda.ru/forum/index.php?showtopic=984475 )
[Android Q&A, Help & Troubleshooting] thenatti:
It says link non existent 😭😭😭😭 I ordered another one just wanted to see if I could revive this it works on usc firmware 7.1.1 but won't let me flash 8.1 I logcat the boot and it ekpt flagging an error with a lib I formatted userdata the first time it boot but stayed on the boot logo , the second time cut off as soon as it hit the boot animation
[Android Q&A, Help & Troubleshooting] apetrov1x5:
sorry, I see that too. I wrote in that thread telling the user that link expired. If/when I get a reply, will update you of course.
[Android Q&A, Help & Troubleshooting] ytagger:
Try this https://drive.google.com/drive/folders/1bJJODJMcnnBZbKOqJTHAi-yWB224LrhN
[Android Q&A, Help & Troubleshooting] ytagger:
However, be warned that it does seem to be a backup of a Russified phone
[Android Q&A, Help & Troubleshooting] thenatti:
Thank you is this for att ? Also have the phone booted had to flash a blank vbmeta for gsi's to boot which kind of makes sense now back on 8.1 userdebug wanted to know if anyone had an att unlocked .qcn backup they could share I could change my imei in the file to restore radio imei with qpst write to nvram successful but I'ma not registered and everything else says unknown
[Android Q&A, Help & Troubleshooting] ytagger:
I don't really know anything about this link, just giving you a valid version of the link @apetrov1x5 posted.

I'm glad to hear you got the phone booted.
[Android Q&A, Help & Troubleshooting] thenatti:
Would you happen to have a qcn. Backup file I can edit to hopefully get the radio working again ? , And thank you yeah this phone is a pain in the ass to modify never seen one like it I guess they took the word rugged literally 🤣🤣
[Android Q&A, Help & Troubleshooting] ytagger:
No sorry I don't have one.
[Android Q&A, Help & Troubleshooting] ytagger:
Does anyone have the Sprint Image for the XP5s? The link is down and I can't find it in the androidfilehost respository either
[Android Q&A, Help & Troubleshooting] haikkk:
i need xp5s image too
[Android Q&A, Help & Troubleshooting] ytagger:
Here is one for the Sprint model

5SA.0.4-05-8.1.0-29.33.00_USER_PST.zip
[Android Q&A, Help & Troubleshooting] haikkk:
Can you please, upload to better place? I can not download here, speed is very limited here and unstable.
[Android Q&A, Help & Troubleshooting] eleotk:
ACG-userdebughttps://drive.google.com/file/d/1SOsRGiGE9D0dDKKsaTc0WzJ-saRmrlXb/view?usp=sharing

ATT-userdebug https://drive.google.com/file/d/1pCz7ezXFGuskZE2aPCcdb73UDBGK8WaA/view?usp=sharing

Sprint-userdebughttps://drive.google.com/file/d/1HlYtc1ZGCyrweeYGUFahT9iV2xLFkuls/view?usp=sharing

USC-userdebughttps://drive.google.com/file/d/1EQrpCMLrL-xeapcEVHJsxCE0hlbxV3j3/view?usp=sharing

XP8 Drivers & Flashing Procedure https://drive.google.com/file/d/1KlROryanwettg0UZeorVDmUtPiQCTyec/view?usp=sharing

sim unlocked

testlogin.txt

{"status":"success","message":"1 successfully logged in","name":"1","activetabs":["sim_lock","download_tool","qcn_backup_restore"],"carriers":["00"],"multi_carrier":true,"phone_model":["8A"],"edl_user":"Yes","emc":"Yes","carrier_list":{"00":"Generic","10":"AT&T","11":"Bell","12":"Telus","13":"Sasktel","14":"Harris","15":"Verizon","16":"Ecom","17":"NAM","18":"Rogers","19":"T-Mobile","20":"EU Generic","21":"MSI","22":"CISCO","23":"NAM Public Safety","24":"Vodafone Global","25":"Orange","26":"Southern Linc","27":"OPTIO","28":"India","29":"SPRINT","30":"JVCK","31":"AUSTRALIA","32":"ACG","33":"CSPHIRE","34":"US-Cellular","multi_carrier":"Multi Carrier"}}

XP5800 Sprint enable Diagnostic (DIAG) mode code *#*#0701#*#*

The dual card dual standby theoretical solution:

enable Diagnostic (DIAG) mode.

Backup QCN

Modify QCN IMEI 2 to be consistent with IMEI1

Write qcn

xp5s userdebug tool

XP5s_Write_IMEI_tool_Tes

https://drive.google.com/file/d/1dI-CkSR5PTg80eBxe8L_kU-GJFo_DX7E/view?usp=sharing
[Android Q&A, Help & Troubleshooting] eleotk:
sim unlocked

1.Install Sonim XP8 Software update tool

2.Copy testlogin.txt to main program directory

3. Add following entry to hosts file

sonimexperiance.com 127.0.0.1

4. Launch app and login with Username 1 Password 1

testlogin.txt

{"status":"success","message":"1 successfully logged in","name":"1","activetabs":["sim_lock","download_tool","qcn_backup_restore"],"carriers":["00"],"multi_carrier":true,"phone_model":["8A"],"edl_user":"Yes","emc":"Yes","carrier_list":{"00":"Generic","10":"AT&T","11":"Bell","12":"Telus","13":"Sasktel","14":"Harris","15":"Verizon","16":"Ecom","17":"NAM","18":"Rogers","19":"T-Mobile","20":"EU Generic","21":"MSI","22":"CISCO","23":"NAM Public Safety","24":"Vodafone Global","25":"Orange","26":"Southern Linc","27":"OPTIO","28":"India","29":"SPRINT","30":"JVCK","31":"AUSTRALIA","32":"ACG","33":"CSPHIRE","34":"US-Cellular","multi_carrier":"Multi Carrier"}}
[Android Q&A, Help & Troubleshooting] ytagger:
Thank you thank you @eleotk! You're amazing! This works with other models too if you just change "phone_model" appropriately!
[Android Q&A, Help & Troubleshooting] ytagger:
See if this is any better https://mega.nz/file/v8N3GaIa#sCGm11cB9-JymahTX-F1oWBNHf2kKIK8jEiPb3W3GrE
[Android Q&A, Help & Troubleshooting] haikkk:
Please, help. I got errors when trying to flash XP5S. Is there any full manual? I got sahara error every time.
[Android Q&A, Help & Troubleshooting] ytagger:
I could try to help, if you'll describe what you're trying and the issues you're having

It's pretty simple really.

WARNING: This will WIPE your phone!

Unzip the image file. Put the phone in download mode by pulling the battery, replacing and holding onto END+both volume buttons.

Open the QFIL tool and make sure you see the port. Click Browse next to Programmer path and select the rawprogram0.xml, then select the patch0.xml

Click Download content and pray!
[Android Q&A, Help & Troubleshooting] haikkk:
I flashed, but after showing desktop, phone is restarting every time. Phone is brand new.
[Android Q&A, Help & Troubleshooting] haikkk:
Hi. After this firmware, my brand new XP5800 from sprint endless restarting. I flashed wit QPST and sonim software downloader tool. I can put it to EDL mode, but can not switch to DIAG mode and my phone restarts endless after few secs showing desktop.
[Android Q&A, Help & Troubleshooting] ytagger:
Try doing a factory reset from recovery (power + volume up)