Development [RECOVERY][UNOFFICIAL] TWRP for Galaxy S22 (Exynos)

Search This thread

afaneh92

Senior Member
Jul 31, 2012
3,664
5,098
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 S22 S901B

Download & Guide:
1. Unlock your bootloader.
2. Downloads for S22: AFH: r0s twrp and kernel / Drive: r0s twrp and kernel
3. Reboot to download mode
4. Put the TWRP TAR for your device with Odin in the AP slot, vbmeta_disabled_R.tar in USERDATA slot and click start.
5. Reboot to recovery via recovery key combo (Vol up + power + USB connected).
6. Disable encryption:
- Go to Advanced > Terminal, type: multidisabler.​
If vendor complain about free space left on device, will attempt to resize vendor. and it ask to - Run multidisabler again!.​
- Type: multidisabler again. will see - Finished. when done.​
- Go back to Wipe > Format Data > type yes.​
- Reboot to recovery.​
7. Flash custom kernel and magisk apk in twrp.
8. 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:
- Encryption not fully working.

Thanks:
TWRP team
@ianmacd for multidisabler
@Dan_FFM (David Dean) for helping with convert readonly f2fs vendor to readwrite
Donators

Sources:
Kernel tree
Device tree
 
Last edited:

afaneh92

Senior Member
Jul 31, 2012
3,664
5,098
Note1: You need a custom permissive kernel to boot with R/W vendor.
Note2: If you got bootloop on Samsung logo, reboot to TWRP and wipe metadata from Advanced Wipe section.
 
Last edited:

NaiimAb10

New member
Jun 17, 2022
3
0
Hi, thank you for twrp. Can this make system R/W ? I need to modify some files in system image. Thanks
 

mattsasa

Member
Jun 22, 2022
12
0
Step 4 fails for me because of Knox Guard. Custom binaries blocked.

There is no way around this right?
 

majo11x1

Member
Mar 13, 2017
20
3
Hi, noob question here...
Can I update firmware and retain root and TWRP without losing data? If yes - how to do it?
 

lowowly

Member
Nov 14, 2022
11
0
Worked perfectly with given guide! (y)

1. TWRP recovery running
2. Could flash custom kernel from afaneh92
3. Also I downloaded Kernel tree and used build_menu to compile the same kernel with arch/arm64/configs/afaneh_r0s_defconfig
4. Could flash custom kernel self compiled as mentioned from (3.)



Next step was to adjust the defconfig from afaneh92 with some other features, but everytime I stuck in bootloop if I try. My approach was the following:
1. Load env variables from build_menu
2. make menuconfig load afaneh_r0s_defconfig
3. activate features from =n to =y (i.e. CONFIG_IP_VS=y)
4. copy newly created .config settings into afaneh_r0s_defconfig
5. start build_menu -> build kernel -> r0s
6. make flashable zip
7. boot into TWRP recovery and install custom kernel
8. Result: stuck in bootloop
my config still has CONFIG_SECURITY_ALWAYS_PERMISSIVE=y

Is this the right approach to add features to my kernel, or I am totally wrong with this? Here are some features I need for my kernel:

BLK_CGROUPDUMMY
BLK_DEV_THROTTLINGEXT3_FS_POSIX_ACL
BRIDGEIP_VS
BRIDGE_NETFILTERIP_VS_NFCT
VLAN_8021QIP_VS_PROTO_TCP
BRIDGE_VLAN_FILTERINGIP_VS_PROTO_UDP
BTRFS_FSIP_VS_RR
BTRFS_FS_POSIX_ACLIPC_NS
CFQ_GROUP_IOSCHEDNET_L3_MASTER_DEV
HUGETLBFSIPVLAN
CGROUP_HUGETLBMACVLAN
CGROUP_NET_PRIONETFILTER_XT_MATCH_ADDRTYPE
CGROUP_PERFNETFILTER_XT_MATCH_IPVS
DM_THIN_PROVISIONINGSECURITY_APPARMOR
VXLANUSER_NS
 

afaneh92

Senior Member
Jul 31, 2012
3,664
5,098
Worked perfectly with given guide! (y)

1. TWRP recovery running
2. Could flash custom kernel from afaneh92
3. Also I downloaded Kernel tree and used build_menu to compile the same kernel with arch/arm64/configs/afaneh_r0s_defconfig
4. Could flash custom kernel self compiled as mentioned from (3.)



Next step was to adjust the defconfig from afaneh92 with some other features, but everytime I stuck in bootloop if I try. My approach was the following:
1. Load env variables from build_menu
2. make menuconfig load afaneh_r0s_defconfig
3. activate features from =n to =y (i.e. CONFIG_IP_VS=y)
4. copy newly created .config settings into afaneh_r0s_defconfig
5. start build_menu -> build kernel -> r0s
6. make flashable zip
7. boot into TWRP recovery and install custom kernel
8. Result: stuck in bootloop
my config still has CONFIG_SECURITY_ALWAYS_PERMISSIVE=y

Is this the right approach to add features to my kernel, or I am totally wrong with this? Here are some features I need for my kernel:

BLK_CGROUPDUMMY
BLK_DEV_THROTTLINGEXT3_FS_POSIX_ACL
BRIDGEIP_VS
BRIDGE_NETFILTERIP_VS_NFCT
VLAN_8021QIP_VS_PROTO_TCP
BRIDGE_VLAN_FILTERINGIP_VS_PROTO_UDP
BTRFS_FSIP_VS_RR
BTRFS_FS_POSIX_ACLIPC_NS
CFQ_GROUP_IOSCHEDNET_L3_MASTER_DEV
HUGETLBFSIPVLAN
CGROUP_HUGETLBMACVLAN
CGROUP_NET_PRIONETFILTER_XT_MATCH_ADDRTYPE
CGROUP_PERFNETFILTER_XT_MATCH_IPVS
DM_THIN_PROVISIONINGSECURITY_APPARMOR
VXLANUSER_NS
you can simply edit afaneh_r0s_defconfig
 

lowowly

Member
Nov 14, 2022
11
0
I did. I.e. I changed

# CONFIG_IP_VS is not set
to
CONFIG_IP_VS=y

then compiled, flashed and tried to boot into system but stuck in bootloop.

I started to create the config with menuconfig because sometimes activating some of the CONFIG_ features additionally dependencies come in place or are not even available to activate.

Like activating CONFIG_IP_VS with menuconfig result in following:
CONFIG_IP_VS=y
# CONFIG_IP_VS_IPV6 is not set
# CONFIG_IP_VS_DEBUG is not set
CONFIG_IP_VS_TAB_BITS=12

Or if you want to use CONFIG_BRIDGE_VLAN_FILTERING you first need to activate CONFIG_VLAN_8021Q because of the dependencie.

So I thought doing with menuconfig is the "saver" solution. But anyway, got the same problem.
 

afaneh92

Senior Member
Jul 31, 2012
3,664
5,098
I did. I.e. I changed

# CONFIG_IP_VS is not set
to
CONFIG_IP_VS=y

then compiled, flashed and tried to boot into system but stuck in bootloop.

I started to create the config with menuconfig because sometimes activating some of the CONFIG_ features additionally dependencies come in place or are not even available to activate.

Like activating CONFIG_IP_VS with menuconfig result in following:
CONFIG_IP_VS=y
# CONFIG_IP_VS_IPV6 is not set
# CONFIG_IP_VS_DEBUG is not set
CONFIG_IP_VS_TAB_BITS=12

Or if you want to use CONFIG_BRIDGE_VLAN_FILTERING you first need to activate CONFIG_VLAN_8021Q because of the dependencie.

So I thought doing with menuconfig is the "saver" solution. But anyway, got the same problem.
Anyway this is twrp thread, and I don't support kernel edit, mine is stock permissive
 

lowowly

Member
Nov 14, 2022
11
0
Thank you so far. Then I need some help in kernel edit. I start a new topic in questions section.
 

neo2k12

Senior Member
Feb 17, 2012
446
107
I'm getting bootloops on Android 13 BWA2, ADB doesn't work either. There's no possibility to install ROMs since the data partition is wiped when you flash TWRP and you can't copy files from windows to the device because it's not recognized.
 
Last edited:

afaneh92

Senior Member
Jul 31, 2012
3,664
5,098
I'm getting bootloops on Android 13 BWA2, ADB doesn't work either. There's no possibility to install ROMs since the data partition is wiped when you flash TWRP and you can't copy files from windows to the device because it's not recognized.
You flashed the kernel!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    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 S22 S901B

    Download & Guide:
    1. Unlock your bootloader.
    2. Downloads for S22: AFH: r0s twrp and kernel / Drive: r0s twrp and kernel
    3. Reboot to download mode
    4. Put the TWRP TAR for your device with Odin in the AP slot, vbmeta_disabled_R.tar in USERDATA slot and click start.
    5. Reboot to recovery via recovery key combo (Vol up + power + USB connected).
    6. Disable encryption:
    - Go to Advanced > Terminal, type: multidisabler.​
    If vendor complain about free space left on device, will attempt to resize vendor. and it ask to - Run multidisabler again!.​
    - Type: multidisabler again. will see - Finished. when done.​
    - Go back to Wipe > Format Data > type yes.​
    - Reboot to recovery.​
    7. Flash custom kernel and magisk apk in twrp.
    8. 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:
    - Encryption not fully working.

    Thanks:
    TWRP team
    @ianmacd for multidisabler
    @Dan_FFM (David Dean) for helping with convert readonly f2fs vendor to readwrite
    Donators

    Sources:
    Kernel tree
    Device tree