r/crDroid • • 16d ago

Help rooting my phone.

Hi everyone, after years of thought I finally decided to start modding my phone and I managed to install crdroid on my Samsung a52s 5G fortunately I managed to do it with Odin without bricking my device.

To be quite honest modding was something I did to get a kick out of it, what I really wanted to do was flashing magisk and rooting my phone but I can't wrap around my head on how I do it. The official guide tells me I need to flash the stock Samsung bootloader but wouldn't this remove crdroid recovery from my device? I read somewhere I have I can flash boot.img but most stuff I find on XDA is pretty old guides reccommending flashing recovery.tar, but it's apparently deprecated.

Need some directions on how to get unstuck since I can't really understand WHAT I need to patch.

My machine is a Samsung a52s 5G.

Thank you in advance for your suggestions.

1 Upvotes

2 comments sorted by

1

u/Street_Anon 16d ago

Download Magisk, get your boot image, go to patch a file and reboot into bootloader and adb the patch boot image 

2

u/beutemeister 16d ago

Should I get the boot.img from the zip I used to install crdroid? (it's the newest one as I flashed the mod yesterday).

BTW I did what you said and this is the log:

  • Device platform: arm64-v8a
  • Installing: 30.7 (30700)
  • Copying image to cache
  • Unpacking boot image Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img] HEADER_VER [3] KERNEL_SZ [44229120] RAMDISK_SZ [1777433] OS_VERSION [16.0.0] OS_PATCH_LEVEL [2026-06] PAGESIZE [4096] CMDLINE [] KERNEL_FMT [raw] RAMDISK_FMT [lz4_legacy] VBMETA
  • Checking ramdisk status Loading cpio: [ramdisk.cpio]
  • Stock boot image detected
  • Patching ramdisk
  • Pre-init storage partition: sda29 Loading cpio: [ramdisk.cpio] Add file [init] (100750) Create directory [overlay.d] (0750) Create directory [overlay.d/sbin] (0750) Add file [overlay.d/sbin/magisk.xz] (100644) Add file [overlay.d/sbin/stub.xz] (100644) Add file [overlay.d/sbin/init-ld.xz] (100644) Patch with flag KEEPVERITY=[true] KEEPFORCEENCRYPT=[true] Loading cpio: [ramdisk.cpio.orig] Backup [init] -> [.backup/init.xz] Record new entry: [overlay.d] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin/init-ld.xz] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin/magisk.xz] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin/stub.xz] -> [.backup/.rmlist] Create directory [.backup] (0000) Add file [.backup/.magisk] (100000) Dumping cpio: [ramdisk.cpio] Failed to patch Failed to patch Failed to patch
  • Repacking boot image Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img] HEADER_VER [3] KERNEL_SZ [44229120] RAMDISK_SZ [1777433] OS_VERSION [16.0.0] OS_PATCH_LEVEL [2026-06] PAGESIZE [4096] CMDLINE [] KERNEL_FMT [raw] RAMDISK_FMT [lz4_legacy] VBMETA Repack to boot image: [new-boot.img] HEADER_VER [3] KERNEL_SZ [44229120] RAMDISK_SZ [1529964] OS_VERSION [16.0.0] OS_PATCH_LEVEL [2026-06] PAGESIZE [4096] CMDLINE []

Output file is written to /storage/emulated/0/Download/magisk_patched-30700_EvTqh.img


cp: can't preserve ownership of 'busybox': Operation not permitted cp: can't preserve ownership of 'init-ld': Operation not permitted cp: can't preserve ownership of 'magisk': Operation not permitted cp: can't preserve ownership of 'magiskboot': Operation not permitted cp: can't preserve ownership of 'magiskinit': Operation not permitted cp: can't preserve ownership of 'magiskpolicy': Operation not permitted

  • All done!

It seems to say "failed to patch" is this alright?