12

Development - [RECOVERY][UNOFFICIAL] TWRP for Galaxy S23 Ultra | Page 4 | XDA Fo...

 1 year ago
source link: https://forum.xda-developers.com/t/recovery-unofficial-twrp-for-galaxy-s23-ultra.4551215/page-4#post-88623441
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Development [RECOVERY][UNOFFICIAL] TWRP for Galaxy S23 Ultra

All programs that need to change files in the system partition. For example, Adway.

Could you try this one 👇 and see if AdAway works with it?

Magisk has a “Systemless hosts” feature that should add support for AdAway and similar apps.

View attachment 5854483

afaneh92

Senior Member
Jul 31, 2012 3,767 5,151
This bug might be caused by the mount point set in init.recovery.qcom.rc for keymint to work. Unmounting the partition once the data partition is decrypted should fix the issue

Yes because we mounted it ro, will fix it later. not a big deal

Reactions: tiho5

Master255

Account currently disabled
Aug 20, 2018
Could you try this one 👇 and see if AdAway works with it?

What do I need to check? I've already checked. On my S23 Ultra Adway gets SU rights with Magisk. But nothing works beyond that. The rights are there, but the file does not change.
I was advised to change the host file manually through the Magisk module. But for me, it is easier to go back to the S22 with its Android 12, where Adway works exactly.

Brava27

Senior Member
Sep 7, 2012 3,655 Toronto
What do I need to check? I've already checked. On my S23 Ultra Adway gets SU rights with Magisk. But nothing works beyond that. The rights are there, but the file does not change.
I was advised to change the host file manually through the Magisk module. But for me, it is easier to go back to the S22 with its Android 12, where Adway works exactly.

Wrong forum. Go back to S22 please

So because this TWRP is not R/W (yet)
are we missing (crucial) things? Or does it do mostly things what it should do?

afaneh92

Senior Member
Jul 31, 2012 3,767 5,151
So because this TWRP is not R/W (yet)
are we missing (crucial) things? Or does it do mostly things what it should do?

TWRP is almost complete, the device is ro and its not TWRP issue.

Reactions: Mozie

JazonX

Senior Member
Dec 16, 2009 2,336 Xiaomi Mi 11 Ultra
I just updated to the new April - 2023 Firmware (AWC8) without losing any data.

Sharing my Steps below for anyone who needs it. Don't blame me if you dont read the whole thing / miss a step or something, as it may not necessarily work for you just because it worked for me.

You need a USB-OTG since Decryption is not working.


* Download the latest matching firmware from Sammobile / SamFirm Tool

* Extract the contents to reveal the BL/AP/CSC/CP files

* As a habit - to avoid mistakes - I delete the CSC_OSM file - and keep only the Home_CSC in the folder (So I don't mistakenly flash it and wipe my Data)

* Copy AP.TAR.MD5 from the downloaded package to the Phone memory via MTP / OTG (8GB+ Bigger files fail via MTP)

* Open Magisk in Phone (I use latest Canary of Delta by Husky) - (Top Section) - Install - Select and Patch File - And Locate the TAR MD5 File you copied earlier

* Hit Install and Magisk will patch the new AP.TAR.MD5 and generate a Magisk_*****.TAR file on the same location

* Copy the new Magisk_*****.TAR file to the PC again

* Make a backup of the device / Apps / Settings / Root Mods in System - SmartSwitch and Backup watchfaces in the watch as well. Titanium doesn't work anymore, so You can switch to Swift. Google Authenticator cannot be backed up, so transfer the accounts to another Android Phone. This is in case if you miss a step, or reboot at a wrong time and wipe your data

* Turn off Phone / Reboot to download Mode / Start Odin and Connect Phone to PC (Use a shorter better Cable)

* In Odin - From Stock firmware - Browse and load files as follows
BL - BL file from Stock Firmware
CP - CP file from Stock Firmware
CSC - Home_CSC from Stock Firmware

* For the AP Slot - Select the new Magisk_*****.TAR file which you generated in Phone earlier

* In Odin Option (In Left Pane) - Untick "Auto Reboot"

* Hit Start and Wait Patiently for Flashing to Finish

* Once the Process is completed and says Reset in Blue Colour - Exit Odin - (While keeping the phone connected in USB) - Press and Hold Power Button + Volume Down Until the screen goes black, and as soon as it goes black immediately leave all keys and hold Volume Up + Down and keep holding it till the phone goes into Download Mode

* Once You're back in Download mode - Start Odin again and Load Latest TWRP (12-2 from Androidhost as of the time of writing this) - TWRP.TAR in Odin's AP Slot and VBMETA_Disabled_R.TAR in UserData Slot.

* In Odin Option (In Left Pane) - Untick "Auto Reboot"

* Hit Start and Wait Patiently for Flashing to Finish

* Once the Process is completed and says Reset in Blue Colour - Exit Odin - (While keeping the phone connected in USB) - Press and Hold Power Key + Volume Down Until the screen goes black, and as soon as it goes black immediately leave all keys and hold Power Key + Volume Up button. Keep Holding it until you enter Afaneh's TWRP

* As soon as TWRP Boots - it will ask for Decryption key. Press Cancel at this point as it doesnt work. It will take you to TWRP Main Menu as usual, and the only drawback will be that it cannot read your userdata partition (Download Folders, Documents Folders)

* Copy the neccesary Root mods to a USB-OTG (Magisk.zip, Boot_Repack.zip, RO22RW.Zip)

* Insert the USB OTG, Go to Install in TWRP Menu, Select Storage and Select USB-OTG.

* Install Boot_Repack first, then Magisk.zip (I use Delta by Husky) and reboot to recovery again

* Once you're back in Recovery - Cancel Encryption key and now you can install the RO2RW file if you're using it or at this point you can just reboot to system.

* Once in system, Unlock from the reboot and Give it good 2 - 3 minutes to intiailise everything, then open Magisk and it may ask to reboot setting it up again, hence reboot once more and then you can proceed to delete Digital Key / CID manager in Priv-App if those are pestering you.
I just updated to the new April - 2023 Firmware (AWC8) without losing any data.

Sharing my Steps below for anyone who needs it. Don't blame me if you dont read the whole thing / miss a step or something, as it may not necessarily work for you just because it worked for me.

You need a USB-OTG since Decryption is not working.


* Download the latest matching firmware from Sammobile / SamFirm Tool

* Extract the contents to reveal the BL/AP/CSC/CP files

* As a habit - to avoid mistakes - I delete the CSC_OSM file - and keep only the Home_CSC in the folder (So I don't mistakenly flash it and wipe my Data)

* Copy AP.TAR.MD5 from the downloaded package to the Phone memory via MTP / OTG (8GB+ Bigger files fail via MTP)

* Open Magisk in Phone (I use latest Canary of Delta by Husky) - (Top Section) - Install - Select and Patch File - And Locate the TAR MD5 File you copied earlier

* Hit Install and Magisk will patch the new AP.TAR.MD5 and generate a Magisk_*****.TAR file on the same location

* Copy the new Magisk_*****.TAR file to the PC again

* Make a backup of the device / Apps / Settings / Root Mods in System - SmartSwitch and Backup watchfaces in the watch as well. Titanium doesn't work anymore, so You can switch to Swift. Google Authenticator cannot be backed up, so transfer the accounts to another Android Phone. This is in case if you miss a step, or reboot at a wrong time and wipe your data

* Turn off Phone / Reboot to download Mode / Start Odin and Connect Phone to PC (Use a shorter better Cable)

* In Odin - From Stock firmware - Browse and load files as follows
BL - BL file from Stock Firmware
CP - CP file from Stock Firmware
CSC - Home_CSC from Stock Firmware

* For the AP Slot - Select the new Magisk_*****.TAR file which you generated in Phone earlier

* In Odin Option (In Left Pane) - Untick "Auto Reboot"

* Hit Start and Wait Patiently for Flashing to Finish

* Once the Process is completed and says Reset in Blue Colour - Exit Odin - (While keeping the phone connected in USB) - Press and Hold Power Button + Volume Down Until the screen goes black, and as soon as it goes black immediately leave all keys and hold Volume Up + Down and keep holding it till the phone goes into Download Mode

* Once You're back in Download mode - Start Odin again and Load Latest TWRP (12-2 from Androidhost as of the time of writing this) - TWRP.TAR in Odin's AP Slot and VBMETA_Disabled_R.TAR in UserData Slot.

* In Odin Option (In Left Pane) - Untick "Auto Reboot"

* Hit Start and Wait Patiently for Flashing to Finish

* Once the Process is completed and says Reset in Blue Colour - Exit Odin - (While keeping the phone connected in USB) - Press and Hold Power Key + Volume Down Until the screen goes black, and as soon as it goes black immediately leave all keys and hold Power Key + Volume Up button. Keep Holding it until you enter Afaneh's TWRP

* As soon as TWRP Boots - it will ask for Decryption key. Press Cancel at this point as it doesnt work. It will take you to TWRP Main Menu as usual, and the only drawback will be that it cannot read your userdata partition (Download Folders, Documents Folders)

* Copy the neccesary Root mods to a USB-OTG (Magisk.zip, Boot_Repack.zip, RO22RW.Zip)

* Insert the USB OTG, Go to Install in TWRP Menu, Select Storage and Select USB-OTG.

* Install Boot_Repack first, then Magisk.zip (I use Delta by Husky) and reboot to recovery again

* Once you're back in Recovery - Cancel Encryption key and now you can install the RO2RW file if you're using it or at this point you can just reboot to system.

* Once in system, Unlock from the reboot and Give it good 2 - 3 minutes to intiailise everything, then open Magisk and it may ask to reboot setting it up again, hence reboot once more and then you can proceed to delete Digital Key / CID manager in Priv-App if those are pestering you.

Thanks alot for the detailed instructions.
Do you have a source for "RO22RW.Zip"

JazonX

Senior Member
Dec 16, 2009 2,336 Xiaomi Mi 11 Ultra
Thanks alot for the detailed instructions.
Do you have a source for "RO22RW.Zip"
Files are on Sourceforge

Multi Functions Program - Browse /RO2RW at SourceForge.net

Read Only to Read Write for android…
sourceforge.net
And discussion over here
Which version worked for you 3.7.2.1 or 3.7.3.0?

JazonX

Senior Member
Dec 16, 2009 2,336 Xiaomi Mi 11 Ultra
Which version worked for you 3.7.2.1 or 3.7.3.0?
The Latest (3.7.3 - Test Version)

Also, remember. It's quite fast in the TWRP, you got to answer quickly.
Otherwise the script times out and exits.

If it time outs, just run it again. Volume up is the select key and down the accept key.

Sting1971

Senior Member
Jun 22, 2011 Piazza d'Armi
I just updated to the new April - 2023 Firmware (AWC8) without losing any data.

Sharing my Steps below for anyone who needs it. Don't blame me if you dont read the whole thing / miss a step or something, as it may not necessarily work for you just because it worked for me.

You need a USB-OTG since Decryption is not working.


* Download the latest matching firmware from Sammobile / SamFirm Tool

* Extract the contents to reveal the BL/AP/CSC/CP files

* As a habit - to avoid mistakes - I delete the CSC_OSM file - and keep only the Home_CSC in the folder (So I don't mistakenly flash it and wipe my Data)

* Copy AP.TAR.MD5 from the downloaded package to the Phone memory via MTP / OTG (8GB+ Bigger files fail via MTP)

* Open Magisk in Phone (I use latest Canary of Delta by Husky) - (Top Section) - Install - Select and Patch File - And Locate the TAR MD5 File you copied earlier

* Hit Install and Magisk will patch the new AP.TAR.MD5 and generate a Magisk_*****.TAR file on the same location

* Copy the new Magisk_*****.TAR file to the PC again

* Make a backup of the device / Apps / Settings / Root Mods in System - SmartSwitch and Backup watchfaces in the watch as well. Titanium doesn't work anymore, so You can switch to Swift. Google Authenticator cannot be backed up, so transfer the accounts to another Android Phone. This is in case if you miss a step, or reboot at a wrong time and wipe your data

* Turn off Phone / Reboot to download Mode / Start Odin and Connect Phone to PC (Use a shorter better Cable)

* In Odin - From Stock firmware - Browse and load files as follows
BL - BL file from Stock Firmware
CP - CP file from Stock Firmware
CSC - Home_CSC from Stock Firmware

* For the AP Slot - Select the new Magisk_*****.TAR file which you generated in Phone earlier

* In Odin Option (In Left Pane) - Untick "Auto Reboot"

* Hit Start and Wait Patiently for Flashing to Finish

* Once the Process is completed and says Reset in Blue Colour - Exit Odin - (While keeping the phone connected in USB) - Press and Hold Power Button + Volume Down Until the screen goes black, and as soon as it goes black immediately leave all keys and hold Volume Up + Down and keep holding it till the phone goes into Download Mode

* Once You're back in Download mode - Start Odin again and Load Latest TWRP (12-2 from Androidhost as of the time of writing this) - TWRP.TAR in Odin's AP Slot and VBMETA_Disabled_R.TAR in UserData Slot.

* In Odin Option (In Left Pane) - Untick "Auto Reboot"

* Hit Start and Wait Patiently for Flashing to Finish

* Once the Process is completed and says Reset in Blue Colour - Exit Odin - (While keeping the phone connected in USB) - Press and Hold Power Key + Volume Down Until the screen goes black, and as soon as it goes black immediately leave all keys and hold Power Key + Volume Up button. Keep Holding it until you enter Afaneh's TWRP

* As soon as TWRP Boots - it will ask for Decryption key. Press Cancel at this point as it doesnt work. It will take you to TWRP Main Menu as usual, and the only drawback will be that it cannot read your userdata partition (Download Folders, Documents Folders)

* Copy the neccesary Root mods to a USB-OTG (Magisk.zip, Boot_Repack.zip, RO22RW.Zip)

* Insert the USB OTG, Go to Install in TWRP Menu, Select Storage and Select USB-OTG.

* Install Boot_Repack first, then Magisk.zip (I use Delta by Husky) and reboot to recovery again

* Once you're back in Recovery - Cancel Encryption key and now you can install the RO2RW file if you're using it or at this point you can just reboot to system.

* Once in system, Unlock from the reboot and Give it good 2 - 3 minutes to intiailise everything, then open Magisk and it may ask to reboot setting it up again, hence reboot once more and then you can proceed to delete Digital Key / CID manager in Priv-App if those are pestering you.

Thank you for sharing this, i tried this method on a normal S23 and it works!

elevatorguy

Senior Member
Jun 23, 2010 Northern VA
This TWRP seems different than I'm used too with encryption being a bit wonky. What is the proper procedure to make a backup do I need to erase password/pin before I backup? Then what parts should be selected ? Thanks for the help

afaneh92

Senior Member
Jul 31, 2012 3,767 5,151
This TWRP seems different than I'm used too with encryption being a bit wonky. What is the proper procedure to make a backup do I need to erase password/pin before I backup? Then what parts should be selected ? Thanks for the help

Yes need to remove pass/pin every time you want to use data, or you can use USB OTG
You can backup what you want from the list

elevatorguy

Senior Member
Jun 23, 2010 Northern VA
Yes need to remove pass/pin every time you want to use data, or you can use USB OTG
You can backup what you want from the list
OK cool one problem down. To make a backup to be able to fix a big f#ck up and just use backup to go back to before I messed up it used to be boot, system, data vendor what would be the equivalent with the new/different options? Do I need to do anything special like mount anything additional? Kinda feeling like an idiot here thanks for answering my questions
Last edited: May 1, 2023

afaneh92

Senior Member
Jul 31, 2012 3,767 5,151
OK cool one problem down. To make a backup to be able to fix a big f#ck up and just use backup to go back to before I messed up it used to be boot, system, data vendor what would be the equivalent with the new/different options? Do I need to do anything special like mount anything additional? Kinda feeling like an idiot here thanks for answering my questions

Data, boot and super (has system, vendor, product, odm and other logical partitions) and whatever you need extra

Reactions: elevatorguy

GoJo ^^

Senior Member
Dec 2, 2011 3,432
Hello, i'm not sure which version Samsung sells on its EU website, i just ordered. Is this for US only or EU as well?
Hello, i'm not sure which version Samsung sells on its EU website, i just ordered. Is this for US only or EU as well?

It's for ANY model as long as the BL is unlockable.

Hey afaneh92, maybe too early to ask. But what are we missing to make custom roms to our device? I come to this question at the moment I entered your github when I was looking for kernel source and device tree.

I have the pc to compile something but not the knowledge.
Hey afaneh92, maybe too early to ask. But what are we missing to make custom roms to our device? I come to this question at the moment I entered your github when I was looking for kernel source and device tree.

I have the pc to compile something but not the knowledge.
Both AOSP device trees and a Kernel.

Top Liked Posts

  • home.png
    backupname.png
    Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
    Code:
     * Your warranty is now void.
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or your getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    Supported Models:
    Galaxy S23 Ultra S918B/S918N/S9180.

    Download & Guide:
    1. Unlock your bootloader.
    2. Downloads for S23 Ultra: AFH: dm3q twrp
    3. Reboot to download mode
    4. Uncheck auto reboot in Odin and flash TWRP in AP slot and vbmeta_disabled_R.tar in USERDATA slot.
    5. Hold volume down and power until the screen goes black then immediately switch to holding volume up and power to reboot into TWRP.
    6. Go to wipe, format data, and type "yes" to confirm.
    7. Reboot to TWRP
    8. Flash boot_repack.zip (To fix stock recovery restoration)
    9. Flash magisk canary (Optional)
    10. Reboot to system, Enjoy.

    Support:
    Live support is available via #twrp on Freenode with your IRC client or just click this link.

    Telegram group

    Bugs:
    - Decryption will only work if no password/PIN/pattern is set in Android.
    - No erofs r/w support yet.

    Thanks:
    TWRP team
    @BlackMesa123 for helping me to add encryption support

    @dr.ketan for supporting me​

    Donators

    Sources:
    Kernel tree
    Device tree
    I just updated to the new April - 2023 Firmware (AWC8) without losing any data.

    Sharing my Steps below for anyone who needs it. Don't blame me if you dont read the whole thing / miss a step or something, as it may not necessarily work for you just because it worked for me.

    You need a USB-OTG since Decryption is not working.


    * Download the latest matching firmware from Sammobile / SamFirm Tool

    * Extract the contents to reveal the BL/AP/CSC/CP files

    * As a habit - to avoid mistakes - I delete the CSC_OSM file - and keep only the Home_CSC in the folder (So I don't mistakenly flash it and wipe my Data)

    * Copy AP.TAR.MD5 from the downloaded package to the Phone memory via MTP / OTG (8GB+ Bigger files fail via MTP)

    * Open Magisk in Phone (I use latest Canary of Delta by Husky) - (Top Section) - Install - Select and Patch File - And Locate the TAR MD5 File you copied earlier

    * Hit Install and Magisk will patch the new AP.TAR.MD5 and generate a Magisk_*****.TAR file on the same location

    * Copy the new Magisk_*****.TAR file to the PC again

    * Make a backup of the device / Apps / Settings / Root Mods in System - SmartSwitch and Backup watchfaces in the watch as well. Titanium doesn't work anymore, so You can switch to Swift. Google Authenticator cannot be backed up, so transfer the accounts to another Android Phone. This is in case if you miss a step, or reboot at a wrong time and wipe your data

    * Turn off Phone / Reboot to download Mode / Start Odin and Connect Phone to PC (Use a shorter better Cable)

    * In Odin - From Stock firmware - Browse and load files as follows
    BL - BL file from Stock Firmware
    CP - CP file from Stock Firmware
    CSC - Home_CSC from Stock Firmware

    * For the AP Slot - Select the new Magisk_*****.TAR file which you generated in Phone earlier

    * In Odin Option (In Left Pane) - Untick "Auto Reboot"

    * Hit Start and Wait Patiently for Flashing to Finish

    * Once the Process is completed and says Reset in Blue Colour - Exit Odin - (While keeping the phone connected in USB) - Press and Hold Power Button + Volume Down Until the screen goes black, and as soon as it goes black immediately leave all keys and hold Volume Up + Down and keep holding it till the phone goes into Download Mode

    * Once You're back in Download mode - Start Odin again and Load Latest TWRP (12-2 from Androidhost as of the time of writing this) - TWRP.TAR in Odin's AP Slot and VBMETA_Disabled_R.TAR in UserData Slot.

    * In Odin Option (In Left Pane) - Untick "Auto Reboot"

    * Hit Start and Wait Patiently for Flashing to Finish

    * Once the Process is completed and says Reset in Blue Colour - Exit Odin - (While keeping the phone connected in USB) - Press and Hold Power Key + Volume Down Until the screen goes black, and as soon as it goes black immediately leave all keys and hold Power Key + Volume Up button. Keep Holding it until you enter Afaneh's TWRP

    * As soon as TWRP Boots - it will ask for Decryption key. Press Cancel at this point as it doesnt work. It will take you to TWRP Main Menu as usual, and the only drawback will be that it cannot read your userdata partition (Download Folders, Documents Folders)

    * Copy the neccesary Root mods to a USB-OTG (Magisk.zip, Boot_Repack.zip, RO22RW.Zip)

    * Insert the USB OTG, Go to Install in TWRP Menu, Select Storage and Select USB-OTG.

    * Install Boot_Repack first, then Magisk.zip (I use Delta by Husky) and reboot to recovery again

    * Once you're back in Recovery - Cancel Encryption key and now you can install the RO2RW file if you're using it or at this point you can just reboot to system.

    * Once in system, Unlock from the reboot and Give it good 2 - 3 minutes to intiailise everything, then open Magisk and it may ask to reboot setting it up again, hence reboot once more and then you can proceed to delete Digital Key / CID manager in Priv-App if those are pestering you.
    Hey @afaneh92 ;
    I'm here to disturb you on this side now.. Sorry!

    Quick Question - No Kernel ?
    So no R/W access on the S23 , yeah ?

    EDIT: Nevermind, Just saw the Bugs at OP
    No erofs r/w support yet.

    A test build on telegram with encryption working. Thanks to Blackmesa123
    I will release them when I get positive feedback.

    I was referring to snapdragon, and never worked. I used your implementation and device wasn't able to decrypt data. S22 was harder since data wasn't able to mount. I will wait for device, thanks again.
    We can surely work it out to fix it😉

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK