yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S23 Plus] lukeisduke:
UPDATE: the VZW phone is the only one with a physical SIM (using slot 1 / IMEI#1). The zip successfully changed CSC to VZW. However the other 2 phones (TMB / ATT) are using eSIM (using IMEI#2) are still stuck on their old CSC (XSG and EUX)

Perhaps these zip don't update the CSC for use with eSIM?

So far only the VZW is working for me. If I run "mount -o remount,rw /efs" in TWRP recovery ADB shell before flashing the ATT or TMB, and that makes the RED error go away. however my "Sale CSC" remains stuck on EUX and XSG. is there a file I can manually take a peek at in /efs that would show it?
[Samsung Galaxy S23 Plus] jrkruse:
You didn’t answer my question are they tmobile sims and are they in the phone

Start phone use root explore goto efs/imei and if using 2 sims change omc-code.dat 1 to sim 1 carrier and omc-code.dat2 to second sim or esim. Set mps code.dat to main carrier of phone If using a Verizon sim with another carrier always set mps-code.dat to VZW

Edit: if just using esim and nothing else no other sims set mps both omc and cid all to your esim carrier code
[Samsung Galaxy S23 Plus] jrkruse:
Follow instructions here to manually change csc code

S918B/S916B/S911B Convert CSC To US Or Canadian Carriers Change CSC Codes Odin Flashable

Downloads Odin Flashable S91XBOYNUSCSC_S23_SERIES_UNIVERSAL_US_CARRIERS_CSC.7z -- Extract For USA CSC Odin Files S91XBOYVCACSC_S23_SERIES_UNIVERSAL_CA_CARRIERS_CSC.7z -- Extract For Canada CSC Odin Files TWRP Flashable CSC Code Changer...

xdaforums.com
[Samsung Galaxy S23 Plus] jrkruse:
My suggestion is when using international phones use physical sims its alot easier to manipulate the csc stuff using physical sims
[Samsung Galaxy S23 Plus] lukeisduke:
Apparently Verizon has Mystery Magic that allowed them, presumably over the air, to put Binary Version 2 and non-model-matching CSC onto my Binary Version 3 phone when ODIN can't.

Note the S916U CSC v2 with S916B v3 AP/CP

How is this even possible?:)

I'm trying to reproduce this absolute magic on another phone now, so far it hasn't happened again.
[Samsung Galaxy S23 Plus] jrkruse:
Should I laugh now. You really think Verizon did that. You don’t think it might be my csc zip you flash in twrp lol
[Samsung Galaxy S23 Plus] lukeisduke:
Thank you for your patience with me lol.

I figured out what's going on. your zips DO INDEED update /prism/etc and are very thorough. the only thing they don't alter is /prism/etc/sales_code.dat (which is maybe just cosmetic).

The problem is Clearly TWRP has a bug or there is some daemon running in the background putting a file lock on /EFS, causing your CSC zips to intermittently not work.

Even more interestingly, after you check the checkbox in TWRP Mount for /efs, and go Advanced > Terminal > mount -o remount,rw /efs, you only have a SMALL WINDOW OF TIME / SMALL OPPORTUNITY to QUICKLY go back and flash your CSC zips, otherwise /prism/etc doesn't get updated.
[Samsung Galaxy S23 Plus] jrkruse:
changing efs like I told you is only way to do it or look at getting a physical sim
[Samsung Galaxy S23 Plus] lukeisduke:
TMB error is now gone after reflashing and "massaging" the EFS mount as described below and echo'ing TMB into /prism/etc/sales_code.dat (after mounting it in TWRP)

Summary: your zips are fine and very thorough, but they work intermittently due to some TWRP bug with /EFS. I am finding myself having to "massage" mounting /EFS with "mount -o remount,rw /efs" in TWRP then quickly go back and flash your CSC zip. If you wait too long, something is causing the mount to get crusty again, and the files in /prism/etc don't get updated properly.

I found that on my devices, I can mount /prism in TWRP by running "mount /dev/block/sda31 /prism". it seems to always be sda31 on mine. I found this by cat'ing /dev/block/by-name

So I was using this to check and verify if your zips were able to update /prism/etc or not
[Samsung Galaxy S23 Plus] lukeisduke:
My TMB and VZW are perfect now, no errors even without nuking /system/priv-app/SDMConfig but ATT keeps getting stuck at WiFi setup. If I hit "skip", it loops. and if I connect to WiFi it loops. I am also getting errors that the setup has crashed "Android Setup keeps stopping". have you seen this before in your testing?

I'm not sure why only 1 out of my 3 phones is doing this. I flashed stock BTE (setup wizard passes fine), wiped all eSIM from the phone, did a factory reset from inside stock BTE, then tried flashing the BTE BL/AP/CP/CSC with your AIO UserData Force Wipe again, and same setup wizard issue. I must admit I'm stumped.

UPDATE: flashing TMB fixes the setup wizard, however in "wetacsc" when I try to change back to ATT I'm getting an error "no space left on device" when it tries to DD the modemts1 / modemts2
[Samsung Galaxy S23 Plus] jrkruse:
that error is normal
[Samsung Galaxy S23 Plus] lukeisduke:
What do you suppose would cause only ATT to not work with the setup wizard? I tried XAA and TMB and they both allow working setup wizard.

I am about to clear out /data/log, I guess I will run wizard and try to analyze the logs?
[Samsung Galaxy S23 Plus] jrkruse:
its probably missing something needed thats in US rom but is not in the international. I would just flash TMB csc zip then go through setup and then reboot back to twrp and flash ATT csc zip
[Samsung Galaxy S23 Plus] lukeisduke:
Working great using TMB first to pass wizard.

Being that the S926B is exynos, have you considered making your next "AIO" for the SM-S928B? I wish I could contribute or give back somehow to this.

Its strange that the issue with ATT appears intermittent / transient, at one point I had the ATT CSC playing nice with the setup wizard by copying the /sec_efs (adb pull / push) from another phone from UAE, but then later, same issue again. Can't make completely sense of it.
[Samsung Galaxy S23 Plus] jrkruse:
you mean this

SM-S928B/0 Userdata_AIO Odin Flashable To Automatically Remove Encryption Make Rom RW Install TWRP & Root Use On Stock Firmware Unlocked Bootloaders

This is a file that can be flashed with full stock firmware or stand alone on stock firmware in odin. It automatically installs patched Vbmeta Image and Twrp Recovery Image plus removes encryption and makes rom RW Warnings Please Read Before...

xdaforums.com
[Samsung Galaxy S23 Plus] jrkruse:
Added RW Twrp to Userdata recovery file. Below is file so you dont have to do the USERDATA process all over

recovery_s916.img

Flash image in twrp to recovery partition
[Samsung Galaxy S23 Plus] lukeisduke:
One observation, the link name in OP says V8, but file downloaded say V7
[Samsung Galaxy S23 Plus] jrkruse:
Something wrong with the OP I edit it and it just reverts back so I just but the url of the file in OP here it is also

https://www.mediafire.com/file_premium/w0lns8uxyk6jhxp/USERDATA_AIO_S916B_SYS_RW_NO_ENCRYPTION_V8.7z/file
[Samsung Galaxy S23 Plus] lukeisduke:
Do you think this will help with the need to "massage remount" the /efs sometimes before applying CSC zip? or this is more of a TWRP bug? I wonder what daemon is repeatedly snagging up the efs when in recovery, whatever it is, it must be a slow one such that it allows the short "window of opportunity" after the massage remount
[Samsung Galaxy S23 Plus] jrkruse:
flash the recovery I posted a few post back and its fixed
[Samsung Galaxy S23 Plus] SilverMist1:
Hello, thank you for your work.

Is there a file that I can use to install twrp without removing the encryption and sideload whatever I will flash from the computer?

Many thanks.
[Samsung Galaxy S23 Plus] jrkruse:
If you have encrypted data and ro system what really what’s the point in having twrp
[Samsung Galaxy S23 Plus] YMatrix:
Even if you lose your phone won't your data be safe since it's encrypted?
[Samsung Galaxy S23 Plus] jrkruse:
Once again I will ask the question. What would be your reasoning for wanting twrp? You can’t read data so you can’t make data backups. Your system is ro so you can flash zips or delete anything. I guess you could flash images in twrp if you have an otg device but you can do that with Odin. Pm if you want old file that just installs recovery and magisk
[Samsung Galaxy S23 Plus] YMatrix:
True, but it sucks that twrp can't decrypt encryption with Samsung stock like with other firmwares.

I am still encrypted, use twrp just to flash magisk and kernels.

Guess next firmware upgrade I'll go disabling encryption.
[Samsung Galaxy S23 Plus] jrkruse:
Afaneh had decryption working in twrp on a13 on s23 series but it unfortunately doesn’t work on a14 and he is no longer making twrp so removing encryption from rom is only alternative for now.
[Samsung Galaxy S23 Plus] jrkruse:
Pm me if you want the old file that just installs twrp and magisk and boot patch zip so you don’t loose twrp
[Samsung Galaxy S23 Plus] jrkruse:
I updated OP with latest USERDATA_AIO. I also add US CSC odin files to flash if you are US carriers take note in instructions. I am working on making Canadian CSC files as well. The csc mods module now has samsung health fix added to it as well
[Samsung Galaxy S23 Plus] jrkruse:
Canada CSC stuff added
[Samsung Galaxy S23 Plus] aribrimyer:
Will this work on the SM-S9160 Hong Kong variant?
[Samsung Galaxy S23 Plus] jrkruse:
If it fails to flash in odin it will be because the cache img might be smaller on your device so if you want to test let me know if it fails and I will make one with smaller cache image
[Samsung Galaxy S23 Plus] aribrimyer:
Thank you. I tried flashing, it failed. Here's the output:

<ID:0/006> Odin engine v(ID:3.1401)..

<ID:0/006> File analysis..

<ID:0/006> Total Binary size: 297 M

<ID:0/006> SetupConnection..

<ID:0/006> Initialzation..

<ID:0/006> Get PIT for mapping..

<ID:0/006> Firmware update start..

<ID:0/006> NAND Write Start!!

<ID:0/006> SingleDownload.

<ID:0/006> cache.img

<ID:0/006> omr.img

<ID:0/006> FAIL!

<ID:0/006>

<ID:0/006> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)
[Samsung Galaxy S23 Plus] jrkruse:
Give me a few days and I will build you one
[Samsung Galaxy S23 Plus] jrkruse:
try this

https://www.mediafire.com/file/g185ik34c9vp573/USERDATA_AIO_S916B_SYS_RW_NO_ENCRYPTION_V13.7z/file
[Samsung Galaxy S23 Plus] jrkruse:
Added S9160 model support
[Samsung Galaxy S23 Plus] aribrimyer:
Thank you very much! I tried it with the US_CSC you included and it failed so I tried it again with the CSC that comes with the ROM and it worked. Do you think you can get the US_CSC to work on my model?
[Samsung Galaxy S23 Plus] jrkruse:
Redownload the US csc and try again I updated it late last night
[Samsung Galaxy S23 Plus] aribrimyer:
Can this be flashed on OneUI 5.1 firmware or only on 6.1?
[Samsung Galaxy S23 Plus] jrkruse:
Should work on a13
[Samsung Galaxy S23 Plus] zxspectrun:
I just tried this version "USERDATA_AIO_S916B_SYS_RW_NO_ENCRYPTION_V13.7z" on this version "SM-S916B S916BXXS3AWF7" and I was not able to get RW permissions, I did all the steps as mentioned, even check the storage and it is ok with 256.

Also tried later with the "NO WIPE" file and anything

Edit#:

I was able to delete files on TWRP right after the process finished but I was not able to do it once it boots and used MIXplorer (I change the option to make it RW)

Also my Bluetooth tethering is not working, it forces closed when I try to enable it

Edit#2:

I just confirm the csc_mods_afaneh92_v2.7.zip zip is giving me issues with Bluetooth tethering, so, modified the zip file deleting this line and works:

# add_csc_feature CscFeature_Setting_ConfigMobileHotspotProvisionApp FALSE
[Samsung Galaxy S23 Plus] jrkruse:
If you are getting a Configuration message 'Service provide update: Couldn't set up service provider feature

Delete /system/priv-app/SDMConfig

You can flash below zip in twrp to remove it

Remove_SDMConfig.zip
[Samsung Galaxy S23] jrkruse:
Special Note For US Carriers And Canada Carriers

First of all I recommend using a physical sim. I also recommend setting sim up in a US phone

and make sure all features are working before moving sim over to International model

Use below odin CSC files in place of stock CSC files for USA and Canada carriers

Each zip will contain the regular and home_csc odin files

S91XBOYNUSCSC_S23_SERIES_UNIVERSAL_US_CARRIERS_CSC.7z -- Extract For USA CSC Odin Files

S91XBOYVCACSC_S23_SERIES_UNIVERSAL_CA_CARRIERS_CSC.7z -- Extract For Canada CSC Odin Files

If you are using a US or Canada sim then use the zips to change your CSC code are placed on your sdcard Inside appropriate folder. This are twrp flashable zips needed to make the make above odin CSC files work on your device.

USA_CSC folder will contain US CSC files to flash

CANADA_CSC folder will contain Canada files to flash

choose your carrier csc zip and flash

Special Instructions For ATT Users

When flashing USERDATA_AIO choose TMB_CSC.zip or you will get stuck on setup

After through setup reboot back to TWRP and Flash ATT_CSC.zip

After Setup

Below are Magisk module to be able to use wificalling and mobile hotspot and are needed Verizon and ATT but optional on other carriers. Install after magisk is setup. For Verizon Install the visual voice mail apk (vvm.apk) that will be on your internal storage after you flash the module manually install it as a user app for visual voice mail to function

US_CSC_Extensions_Module.zip

CA_CSC_Extensions_Module.zip

Fix And Enhance Signal
[Samsung Galaxy S23] CrashTestDroid:
Has anybody flashed this successfully with Heimdall?
[Samsung Galaxy S23] jrkruse:
Added No Wipe files to use when updating firmware to preserve data
[Samsung Galaxy S23] Phantom Thief:
This is awesome! I might give it a go and report back. What magisk version does it install?
[Samsung Galaxy S23] Xceeder:
Thank you so much , I installed the file through the patched odin and it works flawlessly, great job pal....
[Samsung Galaxy S23] jrkruse:
Thanks for the feedback.
[Samsung Galaxy S23] pRo_lama:
Which firmware version is it?
[Samsung Galaxy S23] funiewski:
no firmware version, you can flash it as it is or with firmware in odin, see first post
[Samsung Galaxy S23] Phantom Thief:
Just tried this tool. Worked flawlessly. Good job! :)
[Samsung Galaxy S23] pRo_lama:
Do I understand it correctly when I say that if I want to update the firmware to the newest version and still have root, I should flash AP, BL, CP and HOME_CSC + your Userdata file (no wipe) via ODIN? Does that mean I don't need to have a patched AP?

Does this method actually replace patching the AP file via Magisk and then flash via ODIN?

Thanks
[Samsung Galaxy S23] jrkruse:
You don’t need to patch anything. You just do what you said load stock firmware in odin and the userdata AIO in the userdata slot in Odin and flash. It will automatically install magisk and oatch the boot img so you don’t loose twrp
[Samsung Galaxy S23] albert legris:
thanks a lot for this easy way to root (and more...)

it worked perfectly !!! 👍🙂👏
[Samsung Galaxy S23] shpitz461:
Worked great, only thing I had to do is open Magisk manager, then it asked for a reflash for some reason, so I just selected 'Direct Install' and after a reboot Magisk is working.
[Samsung Galaxy S23] Chevve:
Just wanted to let you know I successfully rooted my S23 after experiencing some trouble with other methods. Thanks a lot for your efforts!
[Samsung Galaxy S23] funiewski:
I've a question, don't know if it is proper place to do it but I can't find better. Asked it in another thread with no answers.

When I try to install kernelSU I got error message: No ramdisk to unpack. Installation aborted.

I've uninstalled Magisk completely before kernelSU installation, but no luck. S23 is supported by kernelSU developers. My knowledge is very limited about nowadays development, what I wonder is if easy root method could have something to do with my problem? Grateful for answer.
[Samsung Galaxy S23] shoeb_v:
Hi. I just want to root my s23 to recover some deleted data. Do i flash with only nowipe?? without any firmware added
[Samsung Galaxy S23] jrkruse:
you have to format data when you first root so you are not recovering any files that way

plus unlocking bootloader wipes data as well
[Samsung Galaxy S23] jrkruse:
https://xdaforums.com/t/kernelsu-gu...e-magisk-functionality.4620991/#post-88934837
[Samsung Galaxy S23] funiewski:
Yes, sorry for not updating my post. I misunderstood which kernel I should flash. I thought it was anykernel3 but it was android.img. So problem solved.
[Samsung Galaxy S23] fozzy056:
Hi, i have an already rooted (with patched AP method) S911B EUX with S1AWD1 may patch

I want to jump to U3AWGJ august patch (no patches between may and august available for EUX)

Can i simply add NO WIPE userdata_AIO at the same time i flash my update in Odin and keep the root ?

Thanks 👍
[Samsung Galaxy S23] jrkruse:
Yes but don’t patch the AP file its not necessary just use full stock firmware

Also if you get the files from the s23 ultra thread they are updated with latest magisk. My computer conked out before I got the s23 and s23 plus threads updated
[Samsung Galaxy S23] fozzy056:
So i was on rooted S1AWD1 EUX (may) and i flashed U3AWGJ (sept.) but THL one as we don't have EUX update available at download since may

I flashed BL, AP, CP, HOME CSC from THL update together with your no wipe userdata_AIO

Flash success

The phone booted in TWRP and asked me the password for decryption, i entered it and now it is stuck like trying to decrypt saying "Attempting to decrypt FBE for user 0..." looping/stuck at this state

What can i do ? I think it didn't like the Thailand rom, but i read that there were multi CSC and no problem to update with

I don't care which version to flash as long as i can keep my data safe

Should i flash back the S1AWD1 EUX i was on before ?
[Samsung Galaxy S23] jrkruse:
You have to format data most likely because of the jump in bootloader versions
[Samsung Galaxy S23] fozzy056:
I managed to make it done without formatting :D

I first tested the exact same thing, THL update + CSC home + userdata_AIO but this time with patched/modded Odin but without success

Then I patched AP on my OP10pro as my GF s23 was down, and flashed with the old method (THL update + magisk patched AP + CSC home) with success

THL (over EUX) was not the faulty one, I assume that this method with userdata_AIO don't liked the big jump between may and september update

So all good !
[Samsung Galaxy S23] amains:
Thank you for creating easy root package. Works very nice. 🙏
[Samsung Galaxy S23] Git226:
This was indeed the easiest root I've ever done; however... once I set a lockscreen password, TWRP asks me for a password to decrypt my data (and using the lockscreen password doesn't work). After rebooting to system and removing the lockscreen password in settings, TWRP works as expected. I initially considered this a minor inconvenience (i.e., having to remove the password whenever I wanted to use TWRP), but what I wasn't considering (and what happened to me) is I got stuck in a boot loop. I therefore had no way to remove the lockscreen password and no way to reinstall a TWRP backup because it is telling me I need to decrypt.

Unsurprisingly, flashing the NO WIPE userdata file didn't help. I've resigned myself that I'm going to have to re-wipe and start all over, but not sure I want to do that if I'm going to have to leave my lockscreen unprotected if I want to use TWRP. Am I missing something here?
[Samsung Galaxy S23] funiewski:
Things are som how complicated, twrp is not what it was a few years ago. If you are playing with your device, installing Magisk modules or kernelSu dito or debloating, it is best not setting pin until everything is working and you are done. For backup, make twrp backup for essential partitions, but I recommend swift for data.
[Samsung Galaxy S23] Git226:
Yes, you guessed it. I was trying to get the Safetynet modules set up in Magisk when I went into the bootloop. I still thought I would be able to boot into safe mode and disable the Magisk modules, but safe mode made no difference. Still stuck on "Phone is starting..." I've been using Titanium for backups since back in the Chainfire days, and it still seems to work fine, though I no its no longer supported. I'll have to look at Swift, which I hadn't heard of before. ...Rooting is getting to be such a chore that I've considered bailing on the whole exercise. But then I use a phone that doesn't have Adaway installed, and realize that one app alone makes it worth the hassle!
[Samsung Galaxy S23] funiewski:
There is a Magisk module - bootloop protector. Search for it. I think this one is integrated in DrKetan module rom(free xda version). Furthermore you can delete faulty magisk modules from twrp.
[Samsung Galaxy S23] Ramme:
i should read the beginning better. ^^

Done
[Samsung Galaxy S23] ggkameleon:
Hi ! That work for One ui 6 Android 14
[Samsung Galaxy S23] ggkameleon:
Hi ! I have a big mistake !!! I have unlock my bootloader and after use your thread all wok fine and finish ok but my S23 stop and can't start it !? black screen.

My phone is dead ? please help me.

I can start it but message This phone is not running Samsung official software You may have problems with features or security and you won't able to install software update !!! Oh ! no my S23
[Samsung Galaxy S23] badaas:
What is patched Odin?

Sorry coming from a pixel 😁
[Samsung Galaxy S23] ggkameleon:
Me too. But at the moment there is no custom rom. Twrp for what do use odin for flash Firmware.

I have mistake with it. Test it if you want. But for unlock bootloader and root use this method is more safe.

Root One UI 6

Hi ! I have just buy a Samsung Galaxy S23 S911B/DS and make all update and now it run on One UI 6. I want to unlock bootloader install Twrp and root it. But I'm noob on Samsung Galaxy phone my last phone are OnePlus, Xiaomi and Pixel. Every...

xdaforums.com
[Samsung Galaxy S23] Xceeder:
What is patched Odin? Sorry coming from a pixel
[Samsung Galaxy S23] Xceeder:
Odin is a program .exe used to flash samsungs firmware , there are 5 slots where you put your data but these days you only use 4 slots its very easy to use , just remember to install all drivers on your pc / laptop by plugging in your phone in data transfer mode then pictures mode then USB debugging and grant it access also make sure you enable developer options to enable oem unlock and you'll be fine it's easy honestly
[Samsung Galaxy S23] kinclong01:
Is This work on latest one ui 6 android 14 ?
[Samsung Galaxy S23] JJMoura:
It works. Everything went well here
[Samsung Galaxy S23] skysurfer1111:
I'm just finished, quick installation, all works fine. Thx for the work.

The only thing is, that the data partition is still encrypted, so I can't use TWRP for backup.
[Samsung Galaxy S23] infernal77:
I unlocked the bootloader and then went on to use the patched Odin to flash the nowipe version in userdata (standalone). TWRP did not throw any errors or flash anything after rebooting. The phone will now only boot to recovery. Rebooting to system from TWRP just goes to recovery. What can I do ?
[Samsung Galaxy S23] funiewski:
If you haven't had twrp before you need to use csc(not home_csc) and force wipe version, than format data in twrp. You will still have encryption on A14 firmware and cannot flash files from internal storage in twrp.
[Samsung Galaxy S23] infernal77:
Thanks, I solved it by flashing the entire stock ROM in Odin. After that, I just put DrKetan on it and it works as I need it to. Too bad to not see much development or custom ROM's for a flagship phone though. I had the S10 before splurging on this S23 and it was almost as snappy running LineageOS 20
[Samsung Galaxy S23] impactor:
Does rooting that way trip KNOX? If so, can It be reversed? If not, is there any rooting method that does not trip KNOX hence voiding warranty?