yashsingh1/xdaforums huggingface dataset:
[Redmi Note 12 4G] Ahmad_Karimi:
When should you use the manual and tedious method of Patching Boot Images for the initial installation of Magisk?

1- Don't have a custom recovery (we must use fastboot)

2- The Rom of the phone does not have an independent ramdisk file.

......

Redmi note 12 has a ramdisk file (located in the init_boot partition) and we installed Twrp (or any other up-to-date custom recovery).

...

So when we want to install the latest version of Magisk in Redmi note 12, we install it easily and without problems by changing the extension of the installation file to zip through recovery.

....

The contents of the unpacked file of the boot partition (extracted from the recovery file miui-blockota-tapas_global-V14.0.14)

View attachment 6017413

The contents of the unpacked file of the init_boot partition (extracted from the recovery file miui-blockota-tapas_global-V14.0.14)

View attachment 6017415

.....

PS:

I downloaded the latest Magisk installation file (version 26.3) and checked it a bit. I was wondering how the installation script recognizes that to find the ramdisk file, it should go to the boot partition or init_boot.

In short, the whole operation of unpack, patch/repatch, pack and flash is done in the following command:

boot_patch.sh "$BOOTIMAGE"

The BOOTIMAGE variable is set by the find_boot_image function (a line of function code that is executed):

...
BOOTIMAGE=$(find_block "ramdisk$SLOT" "recovery_ramdisk$SLOT" "init_boot$SLOT" "boot$SLOT")
...

SLOT variable is the current active slot (_a or _b)

Part of the find_block function code that is executed:

...
for BLOCK in "$@"; do
DEVICE=$(find /dev/block \( -type b -o -type c -o -type l \) -iname $BLOCK | head -n 1) 2>/dev/null
if [ ! -z $DEVICE ]; then
readlink -f $DEVICE
return 0
fi
done
...

init_boot precedes boot

and in the if block, as soon as its existence is confirmed, it is translated to the canonical file name with the readlink command and returned.

Finally, the output of this command in my phone is the setting of the BOOTIMAGE variable with /dev/block/sde22 (init_boot_a partition).

.....

There are enough controls in the Magisk installation script to avoid mistakes
[Redmi Note 12 4G] ComradeWave:
It could, if a device has a particular partition scheme! Also yes, using this method without a ramdisk could in the best of outcomes bootloop your device.
[Redmi Note 12 4G] ComradeWave:
Indeed it is controlled, but as the wiki says, it's maintained with very low effort, if a phone has a slightly different partition scheme, or the ramdisk is organized in a different way, it could be quite harmful i think!
[Redmi Note 12 4G] Ahmad_Karimi:
DISCLAIMER, THIS GUIDE ONLY APPLIES TO TOPAZ/TAPAS, THERE ISN'T AN UNIVERSAL METHOD FOR ALL DEVICES
[Redmi Note 12 4G] smudgy:
Have you tested TWRP with RN12 Topaz?

Which 'custom recovery' did you install successfully?

I've unlocked bootloader (patched init_boot) ok. But a year back there were warnings about TWRP with Android 11 and newer. Maybe that's been solved?
[Redmi Note 12 4G] Ahmad_Karimi:
At first I used orangefox-tapas/topaz-A13

But now I use Pitchblack recovery.

All custom unofficial recoveries are located in one place in this link, it will be updated as soon as the new version is released.
[Redmi Note 12 4G] ComradeWave:
I tried TWRP, Orangefox and Pitchblack, everything works, i think the warning you're referring to is when the Devs discontinued partition based decryption? (I honestly do not know, but I've never had issues with recoveries on the device).
[Redmi Note 12 4G] smudgy:
Thanks for reply. Can you give a few more specifics? It was definitely the Redmi Note 12 4G that you tested? Which TWRP download did you test?

Forgive me my caution.

I've done a factory reset with official Rom and everything is now a lot smoother as I carried over minimal data from my other phone. Rooted w/ Titanium Backup. So custom recovery not absolutely essential, though of course it's handy.
[Redmi Note 12 4G] ComradeWave:
All recovers listed here on the Redmi Note 12 forum are working, also do not worry, TOPAZ and TAPAS recoveries are compatible one another.
[Redmi Note 12 4G] maniImaster:
dd if=/dev/block/by-name/init_boot of=/sdcard/init_boot.img

you failed to mentioned the by-name block

this command does not work as it does not find any init_boot.img
[Redmi Note 12 4G] maniImaster:
Don't try this on tapas it will brick your device mine is bricked now flashing stock rom by fastboot mode
[Redmi Note 12 4G] ComradeWave:
"if" is the input file, and i did mention by-block, since you're writing a copy of that partition, you use "of" (output file) and you put it in an accessible storage like /sdcard/namefile.img, I don't know what point you're trying to make?
[Redmi Note 12 4G] galaxys8fan877:
I'm stuck in step 4

When I type su and hit enter it says this:

/system/bin/sh: su: inaccesible or not found

And I can't go past this step

Can someone help me please?
[Redmi Note 12 4G] ComradeWave:
My bad, you don't need to use "su" if you're on a custom recovery, ignore that command. Thanks for pointing it out!
[Redmi Note 12 4G] ComradeWave:
I edited the guide, i realized that ADB is useless as long as you have a custom recovery installed, all the steps are the same though! Feel free to ask from help.
[Redmi Note 12 4G] ComradeWave:
That's strange, it didn't brick mine. Are you sure you did everything correctly? Sorry for the late reply.
[Redmi Note 12 4G] Perry2547:
Got my Redmi Note 12 unlocked. Now I'm trying to root it. What is the next step, please.
[Redmi Note 12 4G] ComradeWave:
You need to install a custom recovery.
[Redmi Note 12 4G] DARK7BEAST:
i want to root my rerdmi note 12,

are these steps complete?

and bro, i am doing root for thhe first, i need help to know if root is what i need,

please can you tell me what is root, superuser, twrp, magisk, custom rom, xposed, adb, fastboot,OEM unlocking, etc.
[Redmi Note 12 4G] blobbdobb:
In TWRP terminal when I enter: dd if=/dev/block/by-name/init_boot of=/sdcard/init_boot.img

I get 'No such file or directory'

I have followed the previous steps correctly, bootloader is definitely unlocked and magisk is installed. I am on the stock ROM.
[Redmi Note 12 4G] Moinul Hossain:
is the twrp for topaz and tapas ? the page from the link seems to say its for topaz

edit: it does work. didnt read all the comments
[Redmi Note 12 4G] 306bobby:
As Ahmad found above, if the script does not find a ramdisk, it stops and fails. No, it won't bootloop your device or brick it?
[Redmi Note 12 4G] Moinul Hossain:
the terminal line doesnt work. says "no such file or directory". no brick though. there seems to 2 init boot files

init_boot_a

init_boot_b

maybe something to do with that?
[Redmi Note 12 4G] ComradeWave:
Ah! Thanks for pointing out, i forgot writing the block, init_boot_a is fine.
[Redmi Note 12 4G] ComradeWave:
Yup, my bad, init_boot_a is the one though
[Redmi Note 12 4G] blobbdobb:
Thanks yep I took a look at the file path and could see those two files so I used them. Thanks again for the guide was really helpful 👏😁 This is my first time rooting a phone since around 2009 so I was very glad to have something to step me through it.
[Redmi Note 12 4G] pierasso:
Hey guys, Im following this guide and rn Im at step 7, trying to find the .img but its nowhere to be found. What am I missing here?

Nevermind, I had a brainlapse. Phone is rooted, thank you very much brother!
[Redmi Note 12 4G] ComradeWave:
I'm glad to be of help!
[Redmi Note 12 4G] smudgy:
Great thread 👍

Most users will root after flashing a Rom.

And the advantages of custom Recovery like official TWRP (tapas/topaz) and OFox have been mentioned.

So I sure would appreciate educating about backing up and restoring Data partition in custom recovery!

Are there any guidelines on when to restore it or not restore it after clean flash when:

a) reflashing exactly same rom and version

b) flashing updated version of same rom

c) upgrading same rom eg A13 to A14

d) changing Rom completely eg LineageOS to PixelOS or CrDroid-based or vice versa

Any more informed suggestions than mine (it's a low bar) would be welcome
[Samsung Galaxy Z Fold 4] greenbat:
Update 5.1.1 roll-out started!

The One UI 5.1.1 update for the Galaxy Z Fold 4 comes with firmware version F936BXXU4DWH5. The update has a file size of around 2.76GB, and it includes the August 2023 security patch. The update is currently rolling out in some European countries, and it could reach more countries and regions worldwide within the next few days.

If you have a Galaxy Z Fold 4 and live in Europe, you can now check for the One UI 5.1.1 update by heading to Settings » Software update and tapping Download and install.

Please let me know if you got the update and which country

source:

BREAKING: Galaxy Z Fold 4 gets One UI 5.1.1 update with improved multitasking

Yesterday, Samsung announced it will soon release the One UI 5.1.1 update to foldable phones and tablets. Today, the company ...

www.sammobile.com
[Samsung Galaxy Z Fold 4] JazonX:
* Unlocking the screen is kinda slow for some reason.

Apart from that, not much of an issue.
[Samsung Galaxy Z Fold 4] namura:
Updated to this version today. Indeed there is some slowness when unlocking.

There is a bug in the fingerprint unlock. The fingerprint always on will always be on even if you set it to off. Going to settings and toggling it on and then off again seems to resolve the issue and seems to also eliminate the slowness when unlocking on my device.

Also the bug causes the fingerprint scanner to be disabled due to constant contact between it and my hands when in my pocket causing the fingerprint reader to be disabled eventually.
[Samsung Galaxy Z Fold 4] JazonX:
Thank you so much!

Saved a messy hassle.
[Samsung Galaxy Z Fold 4] greenbat:
Which country did you receive the update?
[Samsung Galaxy Z Fold 4] Beefheart:
Nothing in the UK yet on my unbranded Fold 4, but reading some comments about issues it has, it's probably best waiting until the next update anyway.
[Samsung Galaxy Z Fold 4] namura:
Malaysia
[Samsung Galaxy Z Fold 4] cooldude20000:
Im in the UK I sideloaded it with Odin

It seems to be smoother battery life also seems to be better

The fingerprint always on bug is no longer happening to me anyway its stopped I've got mine set to off so it only unlocks after pressing the power button
[Samsung Galaxy Z Fold 4] cooldude20000:
I've already sideloaded it so far I've seen no bugs besides the fingerprint one but it's gone away
[Samsung Galaxy Z Fold 4] elio321:
I am in the UK, can you provide step by step instructions on how to side load please ? By side loading don't loose any data and can continue to get OTA updates in future ? thank you
[Samsung Galaxy Z Fold 4] JazonX:
You need to download the firmware from Frija or Samfirmware and Flash it over ODIN (To preserve data - use Home_CSC). I would suggest to look at a few YouTube videos before attempting it if it's your first time.
[Samsung Galaxy Z Fold 4] cooldude20000:
Use Frija

Download it https://github.com/SlackingVeteran/frija/releases/download/v1.4.4/Frija-v1.4.4.zip

Extract it

Run it

Put the model in SM-F936B and CSC is SLK

Click check for update then download

Once downloaded extract the file

Inside you should see 5 files

Download odin next and extract it

https://technastic.com/wp-content/uploads/2020/02/Odin3_v3.14.4.zip

Put your phone in download mode so turn it off

Plug the USB into the PC and phone

Hold volume up and volume down

You should enter download mode press volume up

si=9GTWEIDXXKIypu87

Open odin

I

Your phone should be detected

Now

Select BL and select the file NAMED BL

Select AP and select the file named AP

CP SELECT FILE CALLED CP

CSC select HOME CSC TO KEEP DATA

select start

It should start updating when done it will reboot
[Samsung Galaxy Z Fold 4] greenbat:
Do you have the downloadlink of the UK firmware?
[Samsung Galaxy Z Fold 4] cooldude20000:
It's not out in the UK yet doesn't matter if u flash the firmware for the different region it changes nothing on the phone so OTA updates will still work
[Samsung Galaxy Z Fold 4] greenbat:
Tried it, and it works great, thanks
[Samsung Galaxy Z Fold 4] csw7171:
Just downloading OTA 5.1.1 update in UK as we speak
[Samsung Galaxy Z Fold 4] Conan179:
frija and samobile, dont found eux and euy.
[Samsung Galaxy Z Fold 4] csw7171:
OTA now installing as we speak
[Samsung Galaxy Z Fold 4] sbcdk:
Yup. Downloading EUX here in Denmark too
[Samsung Galaxy Z Fold 4] Maxr1998:
Is absolute volume finally fixed?
[Samsung Galaxy Z Fold 4] Maxr1998:
Oh my, Samsung.. let's hope they finally fix it with Android 14.
[Samsung Galaxy Z Fold 4] cooldude20000:
Only seems to be my buds 2 pro that it doesn't work on I've got bose and Sony earphones it works fine for them
[Samsung Galaxy Z Fold 4] Maxr1998:
Ah ok, I wonder if I should risk to update then. It's getting a bit tiring to be months behind on updates.
[Samsung Galaxy Z Fold 4] cooldude20000:
I even asked the guy at my local samsung repair centre why is absolute volume not working he said it seems to be a bug in the OS. But another member of staff said its a safety feature on Samsung phones.thing I'd my brother has a s23 ultra and it works fine
[Samsung Galaxy Z Fold 4] Cyrax-001:
I have the same issue. not only slow, but also the scanner stays on even if you turn it off. Annoying af.

Update, it got repaired by its own. so strange
[Samsung Galaxy Z Fold 4] elio321:
ok..so I was about to side load it when I got the notification yesterday OTA...all downloaded and installed..what's new ?..of more interest is going to be UI6 Android 14 Beta...any indication when that will be hitting the Fold 4 guys ?
[Samsung Galaxy Z Fold 4] Maxr1998:
Did anyone manage to get the full EUX image? Bifrost still returns a 400 error.
[Samsung Galaxy Z Fold 4] Conan179:
@Maxr1998

No :(
[Samsung Galaxy Z Fold 4] Maxr1998:
Looks like it isn't rolled out yet then. I'll continue waiting.
[Samsung Galaxy Z Fold 4] Conan179:
I haven't been able to download FW with FW downloader apps for months, whether it's frija, samdownload, ssamdownloadreborn. I'm still on May 1st patch level.
[Samsung Galaxy Z Fold 4] Conan179:
Samsung Galaxy Z Fold4 Firmware Download SM-F936B EUX Free Download

Samsung Galaxy Z Fold4 Firmware Download SM-F936B Free Download ⭐ Official and fast update ⭐ Max speed and free download ⭐ Best Samsung Galaxy website

samfw.com

"SM-F936B / Galaxy Z Fold4 EUX F936BXXS2CWD9 2 2023-05-01 Full Files T(Android 13) 20230427081240"
[Samsung Galaxy Z Fold 4] pvillasuso:
You can use another one , like EUY

These are OXM files Multi CSC
[Samsung Galaxy Z Fold 4] omniphil:
I'm in the US on a non rooted phone, I haven't seen any updates for at least a year, I'm still on 4.1.1, any idea why I'm not getting updated?
[Samsung Galaxy Z Fold 4] iron@ss:
Could you post a screenshot of your Software information, (see my screenshot).
[Samsung Galaxy Z Fold 4] omniphil:
Looks like I found the special way to update.... I used Samsung Smart Switch on Windows and that did all the updates.....
[Samsung Galaxy Z Fold 4] iron@ss:
Not that special really. I quote that method in every update post...

"It is a FOTA, (Firmware Over The Air), update and you can check... Settings > Software update... to see if it is available for you. Alternatively, you can connect to the Samsung PC suite, Smart Switch and check via that."

See... Fold4-SEPTEMBER update
[Samsung Galaxy Z Fold 4] cooldude20000:
Just got the September security patch on the EUX fold 4 F936BXXS4DWHA
[Samsung Galaxy Z Fold 4] Conan179:
For owners who have root, you can download the fw at https://www.sammobile.com/samsung/galaxy-z-fold-4/firmware/SM-F936B/EUX/#SM-F936B
[Samsung Galaxy Z Fold 4] Maxr1998:
I wonder how they got the update package, Bifrost doesn't work for me anymore..

EDIT: Well, the sammobile download was not just incredibly slow, but also failed multiple times, in the end I managed to download it from samfw. Installed it, and am finally on the latest version again. Neat.

I wish Samsung would be more like Google and just provide official firmware binaries on their site..
[Samsung Galaxy Z Fold 4] RedSpikeJr:
And here I was getting desperate because the absolute volume wasn't working in my device even after several factory resets. Damn

I'll go back to the previous build then. In some of my prevoius attempt of getting that working, going back to One UI 5 did not solved the absolute volume inmediately, but in one of my restarts it fixed itself. Silly me, thought that updating to 5.1.1 would be fine again, and nope

(For me it's important to have the absolute volume disabled because for some reason my Samsung earbuds have more sound quality)
[Samsung Galaxy Z Flip 5] nikjensie:
I find it frustrating that the customization seem quite limited on the cover screen...

I would like a combo of the pre- installed ones with for instance the notifications in the top left and add weather to the screen, but that seems impossible🙁
[Samsung Galaxy Z Flip 5] NullZeroNull:
Yes, it is. I am guessing that One UI 6 probably will have more stuff. I guess Samsung didn't want to put resources for this version beyond the minimum....
[Samsung Galaxy Z Flip 5] twistedumbrella:
Unfortunately, Samsung has been treating the cover screen as a glorified Galaxy Watch and this is unlikely to change any time soon. The problem with simply opening the floodgate and allowing any app to run on the cover is with the dimensions of the screen.

If you look at some of the more obscure Android watches, such as the LEMFO and TICWRIS 2.7" versions, the one thing they have in common is that everything is scaled down. The first thing you may notice about all of the native widgets is that they tried to make everything just as large as it is on the main screen, but slimmed down to fit on the cover. Since they can't force every app to do the same, the next best thing is to simply lock them out.

One of the core features of Good Lock and TooUI that currently bypasses the restriction is some variation of the code that has evolved from developers of third-party ROMs and Xposed extensions to dynamically scale an app without having to modify the build.prop

The fact remains that it is essentially a hack and it's less about Samsung wanting to control what you can use, but trying to prevent being blamed for what doesn't work as intended until they can figure out a way to make sure that isn't a concern.
[Samsung Galaxy Z Flip 5] diejuse:
You can use the coverscreen with a launcher like Nova or Apex, remove the dock and put all kinds of widgets, one widget per page.

My example video:
[Samsung Galaxy Z Flip 5] Noodles317:
Is there anywhere with instructions on how to achieve the video, i can't get this to work by simply installing the launcher?
[Samsung Galaxy Z Flip 5] Jakub.Stefan:
Double the previous comment - how?
[Samsung Galaxy Z Flip 5] diejuse:
@Noodles317 @Jakub.Stefan

You need some tricks to get it.

First. Force to open your third-party launcher when your Z Flip5 is closed and you unlock with your fingerprint, do this:

1, Go to "GoodLock" app. Install "Routines +"

2. Go to Setting -> Modes and Routines -> Routines. Add (+) a routine: IF "Folding Status (Completeley closed)" "Unlock with fingerprint" THEN "Open an app or do an app action (the launcher you choose, my launcher is Apex Launcher Classic)".

Second. To go back to home in your launcher at any time you have to remap a virtual button (home or back), but you can only remap double tap or long tap. Do this:

1. Go to "GoodLock" app. Install "Routines +"

2. Go to Setting -> Modes and Routines -> Routines. Add (+) a routine: IF "Button action (Double tap Home button)" "Folding status (Completely closed)" THEN "Open an app or do an app action (the launcher you choose, my launcher is Apex Launcher Classic) ".
[Samsung Galaxy Z Flip 5] Jakub.Stefan:
Thank you 😁
[Samsung Galaxy Z Flip 5] Alifirdaus:
Hi. I've tried every steps but none is working. When unlocking, nothing happen. Its stays on the home widget. Are you sure that is all to do?
[Samsung Galaxy Z Flip 5] diejuse:
The key question is whether you are certain that what you are doing is right. In the video I uploaded, you can see that it works, and you can also see the likes from other users for whom it has worked. It's simply a matter of using Bixby routines.
[Samsung Galaxy Z Flip 5] Alifirdaus:
Nope. Doesn't work. Try every steps from beginning to end nothing work.
[Samsung Galaxy Z Flip 5] al czervik:
Agreed. Cannot get it to work despite several attempts, reboots, clear cache, etc.
[Samsung Galaxy Z Flip 5] oranginasprite:
I did it this morning in about an hour with Nova Launcher.

It works fine, did not even reboot once, no cache clear or anything.

I have found a few issues I believe might explain why some people are having difficulties. I'll try to write up a tutorial for everyone and my future self in case I need to reset my phone.

EDIT: the biggest hurdle for me in why it would not consistently open the launcher was that if you have registered more than one fingerprint, you need to duplicate the following routine for each fingerprint, elseway the launcher won't always start

IF "Folding Status (Completeley closed)" "Unlock with fingerprint" THEN "Open an app or do an app action (the launcher you choose)

I have not found any way to bring up a recents menu even with routines, seems not to work on coverscreen. Same goes for pop-ups.
[Samsung Galaxy Z Flip 5] nikjensie:
Actually, just solved my own issue by realizing the problem was that it caught my facial recognition before fingerprint.... Works great with Niagara Laubcher.
[Samsung Galaxy Z Flip 5] echodun:
I couldn't get this to work. I installed Routines+, but I'm wondering what's the point? The above-referenced "if-then" commands are already available in Modes and Routines in Settings. Also, when loading the Goodlock app the Routines+ icon keeps swirling around like it's loading something, but nothing happens. Trying to use this with Nova launcher.
[Samsung Galaxy A52 5G] AndroidFan16:
Hello all!

I'm not sure if we're even close to rooting, unlocking this bootloader, or even sideboot to TWRP via Fastboot on this phone, But I'm not sure how close I am to breaking the security barrier to gain root access to this phone.

I was able to go to Fastboot via ADB "reboot bootloader" and I got like 1/8th of the commands to work. However, "fastboot boot twrp.img" does not work. I always get an "unknown command" error. Even when sending the "fastboot reboot" command, it shows "unknown command". Online it shows that I have to enable "OEM Unlock" which I don't have in the developer options. Not even "fastboot OEM unlock" works in fastboot. Especially "fastboot flashing unlock". Shows the error "unknown command"

Haven't updated my A52. Still on One UI 4.1. USB Debugging is enabled. Tried to remove all security on this phone. Nada.

Anyone decided to get at least ADB shell root to work? or at least boot TWRP on this variant? I'm still digging around my phone to get at least something. Fastboot was the closest I've got. It did show a "reboot qmmi" and another option I saw on there......
[Samsung Galaxy A52 5G] Zdrawko0o:
This model is locked.

You can't unlock the bootloader or root it.

Sorry.
[Samsung Galaxy A52 5G] AndroidFan16:
Bummer.

I guess has others tried to inject root into the firmware? Not sure if staying on One UI 4.1 then upgrading to One UI 5.0 but root was injected to the upgrade, will trick the phone's security, since it's a "new update"

I want to try that, if that hasn't been tried already.....

There has to be some progress within finding vulnerabilities to the phone that would give us root access or unlocking the bootloader...
[OnePlus 11] cahir1495:
Edit: SOLVED
[Android Software/Hacking General [Developers Only]] fabiospark:
I'm still using an S4 mini GT-i9195 with Android 4.4.2 and I would like to install a newer Android version, if possible.

Which is the most recent one I can safely put on the S4 mini?

Iis there any place where I can look for the needed files and for directions on how to procede?

Please bear with me because the last time I messed up with a phone was a few years ago, at Symbian times, with a Nokia 5800...

Thank you.

fabio