[GUIDE]Rooting, EDXposed and SafetyNet for Realme C12 - Realme C12 Guides, News, & Discussion

Before doing anything to device, keep a copy of Stock ROM from here in your PC or SD Card.
Rooting with Magisk
Tutorial:
The procedure is the same whether you're on the stock RealmeUI Rom or on a custom GSI (treble) one or on a custom ROM.
Step 0 - Go to extracted platform tools folder in your PC and Shift + Right Click and choose Open Command Window here and connect the device to PC.
Step 1 - Boot to Recovery with adb reboot recovery and run below commands in command prompt by connecting the device to PC
Code:
adb root
adb pull /dev/block/by-name/boot boot.img
adb reboot
After running after commands you will get boot.img in your platform tools folder of PC. Copy the boot.img to mobile.
Note:- Above commands won't work if you are on GSI/custom ROM rom with stock recovery. So flash TWRP and follow above to get boot.img or use root debugging in ROM if available.
Step 2 - Download and install the latest Magisk app from here on your phone.
Click on the latest Magisk-vX.Y.apk you see in the list to start the download, open the file and install.
Step 3 - On your phone, open up Magisk app.
Click the Magisk Install button as shown below.
Then Select and Patch a File.
Go look for your boot.img you previously copied to your phone and pick it.
Click Let's go! and wait for Magisk to complete the process!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 4 - Link your phone to your PC, and grab the file the Magisk app created. It's located in your downloads folder, called magisk_patched_blAh.img.
Step 5 - Paste it where your ADB & Fastboot (Platform Tools) are located, along with the vbmeta.img by downloading from here.
You should now have a folder like this with:
adb(.exe)
fastboot(.exe)
magisk_patched.img
vbmeta.img
Extra files from the platform tools
Step 6 - Link your phone to your PC with the USB cable if not done already.
Step 7 - Shift + Right click in an empty space inside the folder we prepared in Step 7, and click Open Command window here.
Inside the Command window, input the following commands line by line, in order.
Code:
adb reboot bootloader
fastboot devices
And make sure your device shows up, should be a bunch of numbers and letters, a couple spaces, and fastboot.
If nothing does, go back to Step 7 and try again.
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot flash boot magisk_patched_blAh.img
fastboot reboot
You're done! Your phone will reboot, hopefully, without a hitch! Open up Magisk app, and check that it's installed.
That said, you will have issues leaving it like this. You need to hide the fact that your phone is rooted, there's no downside to doing it.
Check out the Passing SafetyNet tutorial further down below, it's quick and easy.
For more info, see official Magisk installation instructions at https://topjohnwu.github.io/Magisk/install.html
Passing SafetyNet (Only possible with Magisk. Not with SuperUser on GSI's)
Tutorial:
Enable Magisk Hide inside Magisk app's settings and Install Universal SafetyNet Fix module.
Reboot and enjoy! You're all set and SafetyNet should pass just fine.
Q: Hey, I rooted/edXposed my phone, and now Netflix won't even open, or doesn't work properly, what's up with that?
A:
Well, fortunately, there's an easy fix if you have Magisk. Install the liboemcrypto disabler Magisk module, activate it and reboot.​
Credits:-
@Akitake for his guide at here

Now we have root.
We can uninstall system apps with below command in Termux
Code:
su
pm uninstall --user 0 <package_name>
We can use Package Viewer app to know package names.
Getting EDXposed
Spoiler: Click to Show content
Tutorial:
I very much discourage to EdXposed your phone unless you have a very good reason for it.
It's a pain to pass SafetyNet.
It doesn't get updated often.
It has very niche use cases for which it's actually worth it.
That said, I explain it here for people who know what they're getting into and want instructions on how to do it.
This procedure requires to be rooted with Magisk.
Step 1
Inside Magisk app, go to the Modules tab.
Click the search button (bottom right) and search Riru.
Install the Riru module by Rikka.
Activate it and Reboot.
Step 2
Download and install the latest EdXposed Manager, the same way you did with Magisk app when rooting.
Step 3
Open it up, go to the ALPHA tab and click install/update.
It'll start a file download.
Step 4
Go back to Magisk app, Modules tab, except this time click Install from Storage.
Point to the .zip file you just got, located in the Downloads folder of your phone.
At the end of the installation, click reboot.
Step 5
Let's double check your installation is operational.
Go to EdXposed Manager, first tab.
It should say EdXposed Framework is active.
You're done!
You should now be able to install EdXposed modules.
That said, you will have issues with certain apps leaving it like this.
You should to hide the fact that your phone is EdXposed.
Check out the Passing SafetyNet tutorial further down below!
For more info, see https://forum.xda-developers.com/t/...or-of-xposed-oreo-pie-q-r-2020-07-19.4070199/
Passing SafetyNet With EDXposed installed
Tutorial:
Again, I highly recommend not EdXposing your phone and sticking to just Magisk if you can help it.
You should also know that this method will show you're passing SafetyNet inside Magisk but it's a pain to do and isn't as well hidden as Magisk alone.
Step 1 - Do the step for Rooted phones listed above if not done already.
Step 2 - In EdXposed Manager, get the HiddenCore Module and activate it.
Step 3 - Now, in the side-menu: Compat List > tick HiddenCore Module.
Step 4 - Then, go to Settings > Framework > Enable "App List mode".
Step 5 - Finally, Applications(Black List) and tick: Android Services Library, Chrome, Google Play services, Google Play Store, Google Services Framework
Reboot and enjoy! You're all set and SafetyNet should pass.

Sir thank you so much for the instruction i want to a custom rom for My realme C12 how to installed it thank you for Response

Randymem said:
Sir thank you so much for the instruction i want to a custom rom for My realme C12 how to installed it thank you for Response
Click to expand...
Click to collapse
For now, custom ROMs have some issues.
Try flashing GSI using https://forum.xda-developers.com/t/gsi-phh-q-r-gsi-flashing-for-realme-c12.4244979/
Thanks

HemanthJabalpuri said:
For now, custom ROMs have some issues.
Try flashing GSI using https://forum.xda-developers.com/t/gsi-phh-q-r-gsi-flashing-for-realme-c12.4244979/
Thanks
Click to expand...
Click to collapse
Thank you sir

How do you update to latest firmware without losing root, data, settings?

immortal_jerk said:
How do you update to latest firmware without losing root, data, settings?
Click to expand...
Click to collapse
I didn't tried this before, but flashing Magisk-patched boot.img after update may revive root with all previous modules.
If you got any other method, then let me know here.
Thanks

sir newbie here when i enter command (adb root)
it say access denied you dont have confimation.

wow thanks dude i succesfully rooted my phone.

Will this work for realme ui 2.0 android 11?

immortal_jerk said:
Will this work for realme ui 2.0 android 11?
Click to expand...
Click to collapse
Yes, but see the note in red colour of Step 2.
Thanks

HemanthJabalpuri said:
Yes, but see the note in red colour of Step 2.
Thanks
Click to expand...
Click to collapse
i installed THAT magisk and rooted my phone ui2.0.. but theres no magisk hide option in settings and i cant install safetynetfix module, it asks for a file called riru... and also i cant search for modules in the magisk app

immortal_jerk said:
i installed THAT magisk and rooted my phone ui2.0.. but theres no magisk hide option in settings and i cant install safetynetfix module, it asks for a file called riru... and also i cant search for modules in the magisk app
Click to expand...
Click to collapse
Can you please send screenshots of settings screen and module section of Magisk app so that I can better understand what's going wrong.

HemanthJabalpuri said:
Can you please send screenshots of settings screen and module section of Magisk app so that I can better understand what's going wrong.
Click to expand...
Click to collapse
as you can see theres no magisk hide option in settings, only the option to hide the app, tried that too but nothing works, turning Enforce DenyList on/off dont work neither... and nothing comes up when i search for modules

HemanthJabalpuri said:
Can you please send screenshots of settings screen and module section of Magisk app so that I can better understand what's going wrong.
Click to expand...
Click to collapse
i was able to manually install riru and safetynet fix modules in magisk, but i still cant pass safetynet

immortal_jerk said:
as you can see theres no magisk hide option in settings, only the option to hide the app, tried that too but nothing works, turning Enforce DenyList on/off dont work neither... and nothing comes up when i search for modules
Click to expand...
Click to collapse
Ah, got the culprit.
Magisk hide and Official Modules Repo are no longer part of Magisk from the developer.
To get those back, we can use older version of Magisk.
I have updated the Magisk apk link for UI 2.0. Uninstall Magisk by choosing 'Uninstall Magisk' in main screen and root again with the updated link.
Also, Universal SafetyNet fix older versions will just work without Riru. You can try https://github.com/kdrag0n/safetynet-fix/releases/download/v1.2.0/safetynet-fix-v1.2.0.zip
Thanks

HemanthJabalpuri said:
Ah, got the culprit.
Magisk hide and Official Modules Repo are no longer part of Magisk from the developer.
To get those back, we can use older version of Magisk.
I have updated the Magisk apk link for UI 2.0. Uninstall Magisk by choosing 'Uninstall Magisk' in main screen and root again with the updated link.
Also, Universal SafetyNet fix older versions will just work without Riru. You can try https://github.com/kdrag0n/safetynet-fix/releases/download/v1.2.0/safetynet-fix-v1.2.0.zip
Thanks
Click to expand...
Click to collapse
magisk worked but i couldn't pass CTSprofile so i installed safetynet fix v2.1.0 and Riru, now everything's fine.. thank you again Sir

i have a question. The vbmeta is "empty" or you extract it from fastboot file?

GoldenEye17 said:
i have a question. The vbmeta is "empty" or you extract it from fastboot file?
Click to expand...
Click to collapse
I took that from our device stock rom ozip

Related

[GUIDE] Install Any ROM, GApps, Magisk, TWRP, DolbyAtmos and more for Mi A1

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello, I've seen a lot of community members struggling to install custom ROMs, GApps, Magisk or DolbyAtmos, so I've created a guide. So did I, this took me around 15 tries without bootlooping or breaking my OS. Yes, I was really new at this. Some guides had broken English that I couldn't understand, others were too complicated.
However, now I am presenting you a fully working, detailed (and easy) guide. Hopefully, it'll help at least someone to avoid potential mistakes when flashing or using root. Good luck!
(If you don't install TWRP, the GApps version will mismatch!)
(Probably not anymore, needs a confirmation.)
All-in-One installation .7z package: (NOW ONLY INCLUDES MAGISK, ADB DRIVERS, RECOVERY AND GCAM MOD. CHOOSE THE ROM YOURSELF.)
GDrive: https://drive.google.com/open?id=1tkkVyuGfv2UYvehsV7cmGi9BQ2msodKY
Mediafire: http://www.mediafire.com/file/y146i4satahiper/updatedFiles-Magisk-Recovery-GCam-ADB.7z
Mega: https://mega.nz/#!B34XmbLD!GzZuJthLWrJbsHqRd_r-wxMKOwvi3fQdGOmWmW0Mtlo
(Extract with 7zip or WinRar before using)
Enabled developer options with ADB debugging enabled (Settings->System->About Phone->Tap 7 times on Build Number, go back, Developer Options, scroll a bit down, Android Debugging - Enabled)
Backup any photos or videos, if needed.
Unlocked bootloader (Open a cmd in the folder->adb reboot bootloader->press Yes if your phone asks for a confirmation->fastboot oem unlock)
1. Open a command prompt in the provided folder
2. Use the command adb reboot bootloader
3. Use the command fastboot boot recovery-3.2.1-2-oreo.img
(Press Keep Read Only)
4. Go to Wipe->Advanced Wipe->Select: Dalvik / ART Cache, System, Data, Internal Storage and wipe by swiping right
5. Copy all files to your SD card/Internal Storage: Twrp-recoveryInstaller-3.2.1-2-oreo.zip, Google_Cam_Fix_for_LineageOS_v1.0.zip (not needed for other ROMs other than LineageOS, or at all), lineage-15.1-20180313-UNOFFICIAL-tissot.zip (or any other ROM file), Magisk-v16.4(1642).zip, open_gapps-arm64-8.1-micro-20180526.zip (Download the newest one at https://opengapps.org, ARM64, Android 8.1, micro)
6. Go to Install->and select lineage-15.1-20180313-UNOFFICIAL-tissot.zip (or any other ROM file) and install the zip file by selecting the file and swiping right
7. Reboot->Switch to the other slot (A->B or B->A) (Not needed on the latest ROMs)
8. DO NOT REBOOT (Just press the Back button)
9. Install Twrp-recoveryInstaller-3.2.1-2-oreo.zip by selecting the file and swiping right
10. Go to Reboot->Recovery and swipe
11. Install->Flash open_gapps-arm64-8.1-micro-20180526.zip by selecting the file and swiping right
12. Reboot or continue to the Magisk installation procedure below to get root access
12.5 IMPORTANT! Press Do Not Install
Your device can take a few minutes to boot
1. Reboot to recovery
1. Install->Flash Magisk-v16.4(1642).zip by selecting the file and swiping right
2. Reboot->System
3. Go to Magisk Manager->Modules->Add->Top right corner, three dots, Show internal storage and find the Google_Cam_Fix_for_LineageOS_v1.0.zip and flash it by clicking on it, reboot your device. (Not needed for other ROMs other than LineageOS, or at all)
(If you can't see your SD card because it is formatted as an adoptable storage, copy the file to the Internal Storage again)​
NOTE: MAY NOT WORK ON MOST ROMS ANYMORE, I USE VIPERFX FROM MAGISK REPOSITORY OR DIRECTLY FROM XDALABS HERE INSTEAD.
1. Copy DolbyAtmos_for_Oreo_20180218.zip and magisk-permissive-script_v1.2.zip to your SD card/Internal Storage (Currently only downloadable from the link below, please check the note just above the step 1)
(Please note that if you have your SD card formatted as an adoptable SD card, you'll have to copy your files to the Internal storage, nowhere else.)
2. Go to Magisk Manager, update it (you might need to install the latest apk by clicking on the INSTALL button, let it update before doing anything else)->Modules->Press the + button, top right corner, three dots, Show internal storage and find the magisk-permissive-script_v1.2.zip, tap on it.
3. Reboot
4. Reboot to recovery (Go to Settings->System->About Phone->Tap 7 times on Build Number, go back, Developer Options, Enable Advanced restart. Now you can simply hold the power button, press restart, tap on Recovery.)
5. Install->Flash DolbyAtmos_for_Oreo_20180218.zip by selecting the file and swiping right
(IF IT ENDS UP WITH AN ERROR->Back, go to Mount and check System) Then try flashing it again.
6. Reboot->System
(OPTIONAL STEPS, USE ONLY IF YOU DON'T SEE DOLBYATMOS AFTER REBOOT)
(In recovery)
7. Reboot->Select the other partition (A->B or B->A)
8. Back->Reboot->Recovery (Swipe to Reboot)
9. Install->Flash DolbyAtmos_for_Oreo_20180218.zip by selecting the file and swiping right
10. Reboot->Select the other partition (A->B or B->A)
11. Reboot System
1. Open Magisk Manager->Downloads->Search for GCam Mi A1 Fix->Tap, install, reboot (Please note that this is already enabled in most ROMs out here)
2. Copy the GoogleCamera-Pixel2Mod-Arnova8G2-V7beta-test-9.apk (from the Bonus folder) to your internal storage
3. Use any third-party file manager, (I recommend total commander) and install the .apk
4. Use the recommended settings:
Open the camera app->Settings->Advanced:
Config Camera HDR+: Nexus 6 Auto (This setting might not be neccesary in the provided GCam version anymore)
HDR+ parameters: Super High
Enable Zero Shutter Lag (ZSL): Enabled
Improve in low light: Enabled
5. Restart the app
1. Open Magisk Manager->Downloads->Modded Pixel2 Launcher->Tap, install, reboot (Optionally, you can install other Pixel launchers. I personally prefer Ruthless Pixel Launcher)
2. Tap on Pixel 2 Launcher
3. Press the home button
4. Always
(This sets the Pixel 2 Launcher as your default launcher.)
At this point - MAKE A BACKUP in TWRP (Boot into Recovery, select Backup, Select all partitions (except storage), Backup)
1. Download the OREO_MAGISK_Xiaomi_mi_A1_DualSpeaker.zip file from the attachment section
2. Open Magisk Manager->Modules->The + button->Find the OREO_MAGISK_Xiaomi_mi_A1_DualSpeaker.zip file->Flash it
3. Reboot
1. Download and install XposedInstaller_3.1.5.apk from the attachment section
2. Open it and click on the Xposed version 90-beta3 (or a newer version) in the INSTALL/UPDATE section
3. Install
4. You'll get an error saying that the device is busy
5. Restart to TWRP recovery
6. Install->Find the Xposed_Framework_(SDK_27)-90.1-beta3_(Systemless).zip (or a newer version) in the MagiskManager folder in the root of your internal storage (/storage/emulated/0/MagiskManager)->Flash the .zip file by swiping right
7. Reboot to system
@abhishek987 - the guide has been inspired by his guide
@mohancm - used his recovery
@talk2indrajit - used his Google Cam fix, used some steps from his guide
@Rajeev - for providing link to the latest LineageOS
@Arnova8G2 - his camera mod has been used in this guide
@sad96 - his fps fix has been used in this guide
@guitardedhero - his DolbyAtmos port has been used in this guide
@lelozerien - for letting me know about the DualSpeaker mod
@ydd0ras - for guiding me through the installation of Xposed
@coda00 - for letting me know about the version mismatch when not installing TWRP
@ravinder0003
OpenGApps taken from: http://opengapps.org
LineageOS taken from: https://forum.xda-developers.com/mi-a1/development/rom-lineageos-15-1-t3757938
GCamMod taken from: https://www.celsoazevedo.com/files/android/google-camera/dev-arnova8G2/
TWRP taken from: https://forum.xda-developers.com/mi-a1/development/recovery-twrp-3-1-1-0-touch-recovery-t3688472
DolbyAtmos taken from: https://forum.xda-developers.com/android/software/app-dolby-atmos-axon-7-oreo-port-t3740508 (I've used an older version in this guide. If you are confident enough, you can try the latest one.)
Xposed taken from: https://forum.xda-developers.com/showthread.php?t=3034811
I was writing these steps while actually installing the ROM, so it should work for sure.
I might add guides for installation of other ROMs too.
If you have any issues or questions, feel free to reply to this post.
A newbie tip: If you can't see your internal storage, swipe down the notification bar and change USB Charging to Transfer Files.
Coming from stock Android 8.0? Coming from Android Nougat, 7.1.2? Do you need to reflash your TWRP?
Take a look​
If is anyone interested about the design:
HTML:
https://cooltext.com
Changelog:
HTML:
27/05/18 - Updated the guide and separated the main installation procedure.
Great work!
Thank you for your effort!
@SmallTarzan
Very nice guide. Appreciate it...
I want to ask something.. I am not a LOS fan. I won't flash too. Asking this question for some of my whatsapp friends... My question is...
They have already permanent TWRP installed. So do they need to install twrp installer again? With that A/B slot trick?
Rajeev said:
@SmallTarzan
Very nice guide. Appreciate it...
I want to ask something.. I am not a LOS fan. I won't flash too. Asking this question for some of my whatsapp friends... My question is...
They have already permanent TWRP installed. So do they need to install twrp installer again? With that A/B slot trick?
Click to expand...
Click to collapse
I'm not a developer but I'll try to answer your question as well as I can. By logical thinking and my personal experience, I've came to this conclusion: (Don't take me by word, I might not be totally right!)
If you are coming from stock, Android 8.0, you shouldn't need to flash TWRP again.
If you are coming from Nougat, 7.1.2, you'll need to reflash TWRP again.
If you are coming from other custom ROMs, you shouldn't need to flash TWRP again.
With that said,
I've always reflashed my TWRP with the latest one provided for the ROM I was installing at the moment, just in case.
About that A/B trick, when I was flashing the first LineageOS version, I needed to use the A/B partition trick.
However, in the latest one released on 13/03, I needn't. (I didn't try the version released on 8th March.)
wiping internal storage is necessary?
surajsun22 said:
wiping internal storage is necessary?
Click to expand...
Click to collapse
That depends. First, check if is your internal storage encrypted. If it is, you'll need to wipe it.
There might be workarounds on the forum, but I, personally, haven't tried those, yet.
Thanks for the guide
Sorry, what is bonus folder? And where i can find it?
arjiyunandar said:
Sorry, what is bonus folder? And where i can find it?
Click to expand...
Click to collapse
It's inside the All-in-One package. You can find the download link in the requirements section.
SmallTarzan said:
It's inside the All-in-One package. You can find the download link in the requirements section.
Click to expand...
Click to collapse
Can i download what i need? Without download the whole package? Because the size so big, ?
arjiyunandar said:
Can i download what i need? Without download the whole package? Because the size so big, ?
Click to expand...
Click to collapse
What do you need?
SmallTarzan said:
It's inside the All-in-One package. You can find the download link in the requirements section.
Click to expand...
Click to collapse
SmallTarzan said:
What do you need?
Click to expand...
Click to collapse
Google_Cam_Fix_for_LineageOS_v1.0.zip
fixed_30_60_120fps module_v2.zip
Just that,
arjiyunandar said:
Google_Cam_Fix_for_LineageOS_v1.0.zip
fixed_30_60_120fps module_v2.zip
Just that,
Click to expand...
Click to collapse
Have fun.
SmallTarzan said:
Have fun.
Click to expand...
Click to collapse
Thanks so much ?
Not sure if permissive script is needed for dolby atmos, dolby works well on my MiA1 without this script because this rom is already with permissive sellinux... Thank you for your help, it will sure be helpfull. You should try Dual Speaker mod if you haven't got it on your phone.
Is it alright to flash LOS15.1 from stock Nougat or is it a prerequisite to upgrade to stock Oreo before flashing LOS15.1?
Thanks.
lelozerien said:
Not sure if permissive script is needed for dolby atmos, dolby works well on my MiA1 without this script because this rom is already with permissive sellinux... Thank you for your help, it will sure be helpfull. You should try Dual Speaker mod if you haven't got it on your phone.
Click to expand...
Click to collapse
The magisk's permissive script isn't needed, since LOS 15.1 is already in the permissive state. However, if you'd accidentally/purposely change your SELinux status, the DolbyAtmos would break and you'd possibly face audio issues.
TheMadRuffian said:
Is it alright to flash LOS15.1 from stock Nougat or is it a prerequisite to upgrade to stock Oreo before flashing LOS15.1?
Thanks.
Click to expand...
Click to collapse
There's no need to upgrade to Android 8.0 Oreo first, you delete all files in /system anyway. You can directly flash to 8.1. Don't forget to reflash your TWRP!
I m on LOS 13-03-18 how to install Dolby Atmos separately. Can u please guide me
Rzts said:
I m on LOS 13-03-18 how to install Dolby Atmos separately. Can u please guide me
Click to expand...
Click to collapse
Follow the steps in the DOLBY ATMOS section. Copy required files to your device and start from step 4.
Download the Dolby Atmos and magisk's permissive script here: https://drive.google.com/open?id=1NL_Sq2q05L6RyZQSGsPam3HrGoEoOesY
Be carefull with dualspeaker mod if you use it with dolby atmos.
You must change the volume value manually to 80 maxi (default is 84) in the file...
Read carefully thze original post: https://forum.xda-developers.com/mi-a1/themes/mod-xiaomi-mi-a1-soundmod-dualspeaker-t3741675
You should mention it in order to prevent problems...

[Guide][EdXposed][GPay] Discussion

Get Edxposed, Magisk, and GPay to work together.
1. Install or make sure you are on latest Magisk Manger (7.5.1 or newer)
2. Install or make sure you are on latest Magisk (20.3 or newer)
3. Hide the following in Magisk Hide
-Google Pay
-Google Play services, only select the following
-com.google.android.gms
-com.google.android.gms.unstable​-Google Play Services for AR
-Google Play Store, select everything but com.android.vending
-Google Services Framework
-Nfc Service​
4. Install the following modules
-GPay SQLite Fix (Full Edition)
https://forum.xda-developers.com/showpost.php?p=79643248&postcount=176​-SQLite for Arm aarch64 devices via Magisk Manager
-hardwareoff by @Displax (Thanks to @Kris Chen for making me aware of it) or use MagiskHide Props to set check to basic and fingerprint to Pixel 3a​
5. Reboot
At this point make sure you have GPay working before installing edxposed. If for some reason you are unable to use GPay try deleting data for Google Play Services/Google Play Store/Google Pay
After you confirm that GPay is working then move on to installing edxposed
1. Download and install Riru - Core via Magisk Manager
2. Download Edxposed Manager (4.5.4 or newer) (Don't Install Yet!)
https://github.com/ElderDrivers/EdXposedManager/releases/​3. Download Edxposed (4563) (Don't Install Yet!)
I'm personally using the YAHFA version.
https://ci.appveyor.com/project/ElderDrivers/edxposed/history​
4. Once you have all these files downloaded turn on Airplane Mode and install the Edxposed Magisk Module (Magisk -> Modules and press the + sign, find the downloaded zip and select it, Magisk will install it) and Edxposed Manager APK and reboot
5. Once booted up remain in Airplane Mode
6. Open Edxposed Manger and go to Settings and turn on "App List mode"
7. Exit and reopen Edxposed Manager
8. Go to Applications on the side menu (should say "Black List" on top) and select the following apps
-Google Pay (may not be needed)
-com.android.nfc.auto_generated_rro_product_
-com.android.nfc.auto_generated_rro_vendor_
-Nfc Service
-pixelnfc (new in Android 11)​9. Go to Settings on the side menu, at the bottom of settings find and enabled "Pass SafetyNet"
10. Reboot and turn off Airplane Mode
11. Optional* Hide Magisk Manager
Note. Steps 4-9 should be done in Airplane Mode, this will keep anything tripping safety net during the setup process.
eg1122 said:
When phone detects update
1. Disable any desired Magisk modules, ex. Edxposed
2. Reboot
3. In Magisk, select Uninstall, press Restore Images
4. Do NOT Reboot
5. Install OTA Update via Settings -> System -> System Updates
6. When prompted to reboot, Do NOT Reboot
7. In Magisk Manager press Install
8. Select Install to Inactive Slot
9. Reboot
10. Enable the Magisk modules one by one
In case of bootloop after enabling a module there are 2 ways that I know of on how to retain root and fix bootloop.
One requires ADB
While phone is stuck in bootloop, connect phone to PC and run this commands via ADB.
adb wait-for-device shell magisk --remove-modules
adb reboot
This will remove all modules and you should be able to boot.
The second way is via fastboot. More information in this thread.
https://forum.xda-developers.com/pixel-4-xl/themes/magisk-modules-disabler-booting-magisk-t3990557
Click to expand...
Click to collapse
Here are some screen shots of it working
Thanks for this @eg1122.
After soft-bricking on my first try, I've been wondering what the working version combination is.
The one that is available to me is an older version maybe that's what caused my bootloop? Why does my screenshot look like crap?
Sent from my Pixel 4 XL using Tapatalk
View attachment 4858559
Finally got exposed/gravitybox installed.
Anyone know any tweaks for the home screen grid size?
Sent from my Pixel 4 XL using Tapatalk
xdeslitx said:
Finally got exposed/gravitybox installed.
Anyone know any tweaks for the home screen grid size?
Click to expand...
Click to collapse
Check my thread in Themes and Apps section
https://forum.xda-developers.com/pixel-4-xl/themes/substratum-pixel-launcher-editor-t3990687
xdeslitx said:
The one that is available to me is an older version maybe that's what caused my bootloop? Why does my screenshot look like crap?
Click to expand...
Click to collapse
Use the link I posted to get 0.4.5.5
eg1122 said:
Check my thread in Themes and Apps section
https://forum.xda-developers.com/pixel-4-xl/themes/substratum-pixel-launcher-editor-t3990687
Click to expand...
Click to collapse
That looks pretty nice...thanks
Sent from my Pixel 4 XL using Tapatalk
eg1122 said:
I've been reading a lot of our forums and many are asking about Xposed. Decided to make this thread to try to keep all discussion in one place and make it easy to find information.
I am currently running Xposed and I'll lay out the steps I took to get it working.
1. In Magisk Manager find and install Riru - Core v19.5
2. Reboot
3. Download and install Riru - EdXposed v0.4.5.5_beta (YAHFA) via Magisk
https://github.com/ElderDrivers/EdXposed/pull/354
4. Install EdXposed Installer
https://github.com/solohsu/XposedIn...d_v2.2.5/EdXposedInstaller_v2.2.5-release.apk
5. Reboot
6. Enjoy
Click to expand...
Click to collapse
This won't trip Safety net right i assume?
varun.gid said:
This won't trip Safety net right i assume?
Click to expand...
Click to collapse
Nope
Disregard...
How does using Xposed affect monthly security updates? Do you have to disable or whatever? I'm not sure I want to do this, I'd rather not cause problems.
Got xposed installed and running thanks to this thread, but the module download screen is empty - just shows the refreshing icon and "module list will be loaded in a few seconds" forever. Anyone else seeing this?
gettinwicked said:
How does using Xposed affect monthly security updates? Do you have to disable or whatever? I'm not sure I want to do this, I'd rather not cause problems.
Click to expand...
Click to collapse
I disable big modules like Xposed when I update. Then re-enable them once update is completed. I'll put a step by step here.
When phone detects update
1. Disable any desired Magisk modules, ex. Edxposed
2. Reboot
3. In Magisk, select Uninstall, press Restore Images
4. Do NOT Reboot
5. Install OTA Update via Settings -> System -> System Updates
6. When prompted to reboot, Do NOT Reboot
7. In Magisk Manager press Install
8. Select Install to Inactive Slot
9. Reboot
10. Enable the Magisk modules one by one
In case of bootloop after enabling a module there are 2 ways that I know of on how to retain root and fix bootloop.
One requires ADB
While phone is stuck in bootloop, connect phone to PC and run this commands via ADB.
adb wait-for-device shell magisk --remove-modules
adb reboot
This will remove all modules and you should be able to boot.
The second way is via fastboot. More information in this thread.
https://forum.xda-developers.com/pixel-4-xl/themes/magisk-modules-disabler-booting-magisk-t3990557
tardis_42 said:
Got xposed installed and running thanks to this thread, but the module download screen is empty - just shows the refreshing icon and "module list will be loaded in a few seconds" forever. Anyone else seeing this?
Click to expand...
Click to collapse
Try the following
Try clearing app data and cache for edxposed.
Uninstall Edxposed installer and reinstall
Reinstall any Xposed modules not showing up
eg1122 said:
Try the following
Try clearing app data and cache for edxposed.
Uninstall Edxposed installer and reinstall
Reinstall any Xposed modules not showing up
Click to expand...
Click to collapse
Clearing data did it, thanks!
How do you install edexposed via magisk? I haven't rooted since the P1 so I'm out of the loop here sorry.
madgooner2810 said:
How do you install edexposed via magisk? I haven't rooted since the P1 so I'm out of the loop here sorry.
Click to expand...
Click to collapse
In Magisk, go to Modules and press the + button, then find the zip and select it.
Thanks...
FYI, Riru - EdXposed v0.4.6.0_beta (YAHFA) via Magisk also works.
@eg1122 great instructions worked perfectly. Thanks!

Help with Securitynet and play protect

I am unable to download some apps, especially banking apps due to CTS profile and basic integrity failing securitynet...also, my device (oneplus 6) is showing the Google play protect certificate is invalid.
I have never rooted my device or installed Magisk (or any other rooting software) ... the max I had done was open the Developer Options (and hardly used any). I dont know how to go about this without having to do a hard factory reset... even then, I am not sure if the required apps will function on the phone.
Any help with this will be much appreciated.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
SafetyNet appears to fail on some bootloader-unlocked devices, even if the device has not been modified in any other way. Your phone seems to be one of these.
jwoegerbauer said:
SafetyNet appears to fail on some bootloader-unlocked devices, even if the device has not been modified in any other way. Your phone seems to be one of these.
Click to expand...
Click to collapse
Thanks for the reply..but how do I work around this? Do I have to do a factory reset or get a new phone?
There is a solution but you are gonna need magisk manager and framework installed. If you already have it then skip this step, if you don't say it here I'll help
1) What model is your phone?
gabtit7 said:
There is a solution but you are gonna need magisk manager and framework installed. If you already have it then skip this step, if you don't say it here I'll help
1) What model is your phone?
Click to expand...
Click to collapse
No I dont have magisk manager and framework installed.
Phone model is - Oneplus 6 (A6003), with the latest OS version 10.3.7
Tell me your android version before getting started
for failing the safetynet test i will suppose you have twrp install as recovery, if you dont go here
How to install TWRP recovery on Android smartphones
Installing TWRP on an Android device is the first step towards custom development.
www.xda-developers.com
then from your mobile phone go here
How to Install and Download Magisk Manager APK v26.1 [Guide]
Download Magisk Manager APK Latest Version and How to Install Magisk 24 via TWRP to Root, use Magisk Hide and Uninstall Magisk Complete Guide in 2023
magiskroot.net
and download the magisk manager, you need to have unknown sources enabled
On the top of the screen you will see info about magisk manager and the framework
install the framework
FROM NOW ON YOU CONTINUE ON YOUR OWN RISK, THERE IS A CHANCE YOUR PHONE GETS BRICKED
even if it does get bricked contact me here i'll still try to help
Now here is the weird part
once you click the install button it will prompt you with some options
1) disable the "Recovery Mode" option
2) select direct install (if possible), else select download zip file only
if you selected direct install then you should ust reboot and the magisk part is ready
If you selected the "only zip file" option:
1) check the "Downloads" folder in your file manager and you should find a magisk21.x.zip file
2) boot in twrp
3) after you enter password go from main menu to install
4) navigate to the folder with the zip
5) select the zip and disable the "Zip signature verification" option and swipe the bar on the bottom. Just let the process finish and reboot
2 options at this part
1) your phone booted up normally
2) your phone got bricked
I'll continue to help but tell me how did it go till this part to get around any problems occured till now
gabtit7 said:
Tell me your android version before getting started
for failing the safetynet test i will suppose you have twrp install as recovery, if you dont go here
How to install TWRP recovery on Android smartphones
Installing TWRP on an Android device is the first step towards custom development.
www.xda-developers.com
then from your mobile phone go here
How to Install and Download Magisk Manager APK v26.1 [Guide]
Download Magisk Manager APK Latest Version and How to Install Magisk 24 via TWRP to Root, use Magisk Hide and Uninstall Magisk Complete Guide in 2023
magiskroot.net
and download the magisk manager, you need to have unknown sources enabled
On the top of the screen you will see info about magisk manager and the framework
install the framework
FROM NOW ON YOU CONTINUE ON YOUR OWN RISK, THERE IS A CHANCE YOUR PHONE GETS BRICKED
even if it does get bricked contact me here i'll still try to help
Now here is the weird part
once you click the install button it will prompt you with some options
1) disable the "Recovery Mode" option
2) select direct install (if possible), else select download zip file only
if you selected direct install then you should ust reboot and the magisk part is ready
If you selected the "only zip file" option:
1) check the "Downloads" folder in your file manager and you should find a magisk21.x.zip file
2) boot in twrp
3) after you enter password go from main menu to install
4) navigate to the folder with the zip
5) select the zip and disable the "Zip signature verification" option and swipe the bar on the bottom. Just let the process finish and reboot
2 options at this part
1) your phone booted up normally
2) your phone got bricked
I'll continue to help but tell me how did it go till this part to get around any problems occured till now
Click to expand...
Click to collapse
Is it safe to install TWRP to backup all apps, docs, pics and videos?
shahz19 said:
Is it safe to install TWRP to backup all apps, docs, pics and videos?
Click to expand...
Click to collapse
Android version is 10
gabtit7 said:
Tell me your android version before getting started
for failing the safetynet test i will suppose you have twrp install as recovery, if you dont go here
How to install TWRP recovery on Android smartphones
Installing TWRP on an Android device is the first step towards custom development.
www.xda-developers.com
then from your mobile phone go here
How to Install and Download Magisk Manager APK v26.1 [Guide]
Download Magisk Manager APK Latest Version and How to Install Magisk 24 via TWRP to Root, use Magisk Hide and Uninstall Magisk Complete Guide in 2023
magiskroot.net
and download the magisk manager, you need to have unknown sources enabled
On the top of the screen you will see info about magisk manager and the framework
install the framework
FROM NOW ON YOU CONTINUE ON YOUR OWN RISK, THERE IS A CHANCE YOUR PHONE GETS BRICKED
even if it does get bricked contact me here i'll still try to help
Now here is the weird part
once you click the install button it will prompt you with some options
1) disable the "Recovery Mode" option
2) select direct install (if possible), else select download zip file only
if you selected direct install then you should ust reboot and the magisk part is ready
If you selected the "only zip file" option:
1) check the "Downloads" folder in your file manager and you should find a magisk21.x.zip file
2) boot in twrp
3) after you enter password go from main menu to install
4) navigate to the folder with the zip
5) select the zip and disable the "Zip signature verification" option and swipe the bar on the bottom. Just let the process finish and reboot
2 options at this part
1) your phone booted up normally
2) your phone got bricked
I'll continue to help but tell me how did it go till this part to get around any problems occured till now
Click to expand...
Click to collapse
Android version is 10
shahz19 said:
Android version is 10
Click to expand...
Click to collapse
For backing up you could use twrp but if rooted i recommend migrate-GPE
2) android version is ok you can do the steps i wrote on the first reply
gabtit7 said:
For backing up you could use twrp but if rooted i recommend migrate-GPE
2) android version is ok you can do the steps i wrote on the first reply
Click to expand...
Click to collapse
Is all of this safe? I dont want to brick my phone as i use it quite extensively for work... dont have the money to spend on a new phone...
google play works on my phone, i can access my gmail accounts, but my device shows as uncertified... I have even registered by device ID on Google
If you use your phone a lot, especially for business, i recommend to back off and dont root with magisk (thats what magisk does)
btw rooting is the only way to bypass the safetynet
The only reason im telling you to not continue is because i dont know much about the phone's model
I have a Xiaomi Redmi Note 8, the older versions of magiks bricked it (v20), now (v21) there is no problem
Also, i saw on the safetynet test you failed both ctsprofile and basicIntegrity, which i dont know if the solution i told would fix it
A Much easier solution is to search around these forums
OnePlus 6
OnePlus has consistently made the fastest phones on the market. They continue that trend with the OnePlus 6. The OnePlus 6 has a 6.28" display with a 1080x2280p resolution. The Snapdragon 845 chipset is paired with 6/8GB of RAM and 64/128GB of storage. The main camera is 16+20MP and the selfie...
forum.xda-developers.com
and either find a thread to help you or create one
somebidy will Definitely help you as they use the same phone model
Sorry for any inconvenience
shahz19 said:
google play works on my phone, i can access my gmail accounts, but my device shows as uncertified... I have even registered by device ID on Google
Click to expand...
Click to collapse
About this go to google playstore and search for netflix, you will not find it
gabtit7 said:
If you use your phone a lot, especially for business, i recommend to back off and dont root with magisk (thats what magisk does)
btw rooting is the only way to bypass the safetynet
The only reason im telling you to not continue is because i dont know much about the phone's model
I have a Xiaomi Redmi Note 8, the older versions of magiks bricked it (v20), now (v21) there is no problem
Also, i saw on the safetynet test you failed both ctsprofile and basicIntegrity, which i dont know if the solution i told would fix it
A Much easier solution is to search around these forums
OnePlus 6
OnePlus has consistently made the fastest phones on the market. They continue that trend with the OnePlus 6. The OnePlus 6 has a 6.28" display with a 1080x2280p resolution. The Snapdragon 845 chipset is paired with 6/8GB of RAM and 64/128GB of storage. The main camera is 16+20MP and the selfie...
forum.xda-developers.com
and either find a thread to help you or create one
somebidy will Definitely help you as they use the same phone model
Sorry for any inconvenience
Click to expand...
Click to collapse
thanks... will do
gabtit7 said:
About this go to google playstore and search for netflix, you will not find it
Click to expand...
Click to collapse
you are right..its not there...luckily, I have Netflix installed from before but am not updating it for fear it may not work after updating it.
So how do i go about certifying my device even after registering it with Google?
@shahz19
STOP LISTENING TO @gabtit7
IT'S ABSOLUTE NONSENSE WHAT HE/SHE TELLS YOU HERE / SEDUCES YOU TO DO: IT'S A VERY OUTDATED KNOWLEDGE HE/SHE HAS FROM THE STATE OF THINGS.
THE SAFETYNET API NOW NO LONGER QUERIES CTS PROFILE ON ANDROID DEVICE BUT SUCH ONE STORED ON GOOGLE SERVERS: MAGISK CAN'T PREVENT THIS. THE DEVELOPER OF MAGISK HAS ALREADY ADMITTED THAT! THE CAT-AND-MOUSE GAME HAS ENDED!
Nah, this still works
MAGISK MODULE ❯ Universal SafetyNet Fix 2.4.0
Universal SafetyNet Fix Magisk module Magisk module to work around Google's SafetyNet attestation. This module works around hardware attestation and recent updates to SafetyNet CTS profile checks. You must already be able to pass basic CTS...
forum.xda-developers.com
Release v1.1.1 · kdrag0n/safetynet-fix
Changes Removed security patch fixup to fix CTS profile mismatches on some devices Some devices will now need to use MagiskHide Props Config in addition to this module in order to pass CTS profil...
github.com
As long as they don't remove the fall back to basic check
shahz19 said:
Thanks for the reply..but how do I work around this? Do I have to do a factory reset or get a new phone?
Click to expand...
Click to collapse
If you are rooted via Magisk even if you do factory reset you will fail SafetyNet Test ...
Try downloading Magisk Module or Xposed Module that "fix" SafetyNet
Hi. I have the same phone and exectly the same issue. Any fix?

Question Trying to root my Moto Stylus 5G XT2131-1 without TWRP, how did you guys root this phone? How did you get the boot.img file?

I have seen some of you guys successfully rooted this phone. How did you do that since TWRP doesn't have this model yet. I heard that I need to have the boot.img file but I don't even know where to get that. Please help me in getting that. Thank you.
First unlock your bootloader, I don't remember the exact procedure but there's a toggle in developer options, and a website you have to use, this also requires resetting your phone unfortunately
After that, get the Motorola (Lenovo) smart assistant from support.motorola.com, and "rescue" your device,
This is done for a few reasons, 1. It downloads the boot.img you need, and 2. it updates your phone, this is important because you can't do system updates anymore.
Once it's "rescued", install the magisk apk, copy the boot.img from C:\ProgramData\RSA\ROM Files\etc to your phone, use the magisk app to patch it, and it will create a patched file
Then download and extract the android sdk platform tools (fastboot/adb), and copy the patched boot.img to that folder
Plug your phone in and put it in bootloader mode (same as the rescue required, Vol - & plug in)
Then "fastboot flash boot patched_boot.img"
This is possible without all of this, using some third party website that collects firmware files, but I prefer this way because I want to make sure I have the latest updates, having an update popup every time I turn my screen on is very annoying.
Also a tip, when you set your phone up, make sure you turn off any auto updating when it asks you, and turn it off in developer options too, if you never check for updates automatically or manually it will never know there's updates to apply and never annoy you, to update you'd have to do another rescue and patch/flash
Smart assistant is also how you unbrick, if you happen to do that like I did with some random commands for a different phone
ShayBox said:
First unlock your bootloader, I don't remember the exact procedure but there's a toggle in developer options, and a website you have to use, this also requires resetting your phone unfortunately
After that, get the Motorola (Lenovo) smart assistant from support.motorola.com, and "rescue" your device,
This is done for a few reasons, 1. It downloads the boot.img you need, and 2. it updates your phone, this is important because you can't do system updates anymore.
Once it's "rescued", install the magisk apk, copy the boot.img from C:\ProgramData\RSA\ROM Files\etc to your phone, use the magisk app to patch it, and it will create a patched file
Then download and extract the android sdk platform tools (fastboot/adb), and copy the patched boot.img to that folder
Plug your phone in and put it in bootloader mode (same as the rescue required, Vol - & plug in)
Then "fastboot flash boot patched_boot.img"
This is possible without all of this, using some third party website that collects firmware files, but I prefer this way because I want to make sure I have the latest updates, having an update popup every time I turn my screen on is very annoying.
Also a tip, when you set your phone up, make sure you turn off any auto updating when it asks you, and turn it off in developer options too, if you never check for updates automatically or manually it will never know there's updates to apply and never annoy you, to update you'd have to do another rescue and patch/flash
Click to expand...
Click to collapse
Thank you for that detailed response. I was reading some posts on here and some people are saying that rooting this phone isn't a full root since they are not able to go Read/Write, is that true? Should I just wait indefinitely for a TWRP root?
cwgzz said:
Thank you for that detailed response. I was reading some posts on here and some people are saying that rooting this phone isn't a full root since they are not able to go Read/Write, is that true? Should I just wait indefinitely for a TWRP root?
Click to expand...
Click to collapse
This is true, and depending on what you want to do with root that may be a deal breaker, but I don't care for changing boot animation and stuff, I haven't run into any problems with read only system, root still works just fine, magisk modules work, etc
ShayBox said:
This is true, and depending on what you want to do with root that may be a deal breaker, but I don't care for changing boot animation and stuff, I haven't run into any problems with read only system, root still works just fine, magisk modules work, etc
Click to expand...
Click to collapse
What exactly is that though? To be able to Read/Write? I basically want to root my device so I can change the language of certain apps and not all apps and I need Xposed or something in order to do that. Also, I want to be able to change my location withouth having to use "mock location" under the developer settings.
cwgzz said:
What exactly is that though? To be able to Read/Write? I basically want to root my device so I can change the language of certain apps and not all apps and I need Xposed or something in order to do that. Also, I want to be able to change my location withouth having to use "mock location" under the developer settings.
Click to expand...
Click to collapse
I don't know anything about fake locations, I've only ever used mock location a couple times
To get xposed afaik you get the Riru and Riru - LSPosed magisk modules, reboot and you get an LSPosed shortcut, which is your xposed control that lets you manage your xposed modules
For adblock, adaway works great, for theming you can get substratum (not substratum lite) from the playstore, and themes from the playstore, that works off a substratum magisk module and will theme the entire UI
If you need busybox for anything get the magisk module and app because of the read only system, you have to use the magisk module that loads it every boot
ShayBox said:
I don't know anything about fake locations, I've only ever used mock location a couple times
To get xposed afaik you get the Riru and Riru - LSPosed magisk modules, reboot and you get an LSPosed shortcut, which is your xposed control that lets you manage your xposed modules
For adblock, adaway works great, for theming you can get substratum (not substratum lite) from the playstore, and themes from the playstore, that works off a substratum magisk module and will theme the entire UI
If you need busybox for anything get the magisk module and app because of the read only system, you have to use the magisk module that loads it every boot
Click to expand...
Click to collapse
Thank you again, hey, I don't understand one of the steps that you said.
"Then download and extract the android sdk platform tools (fastboot/adb), and copy the patched boot.img to that folder"
I have the platform tools folder on my computer already, do you mean put the patched file in the entire platform tools folder?
cwgzz said:
Thank you again, hey, I don't understand one of the steps that you said.
"Then download and extract the android sdk platform tools (fastboot/adb), and copy the patched boot.img to that folder"
I have the platform tools folder on my computer already, do you mean put the patched file in the entire platform tools folder?
Click to expand...
Click to collapse
Yes, it can be anywhere but you'll have to provide the path to it in the fastboot flash command
such as "fastboot flash boot patched_boot.img" or "fastboot flash boot C:\Users\Admin\Desktop\patched_boot.img"
putting it in the folder makes it easier to type
ShayBox said:
Yes, it can be anywhere but you'll have to provide the path to it in the fastboot flash command
such as "fastboot flash boot patched_boot.img" or "fastboot flash boot C:\Users\Admin\Desktop\patched_boot.img"
putting it in the folder makes it easier to type
Click to expand...
Click to collapse
Okay I am not finding how the phone will find the file when I am recovery mode... I patched the rom now and I can't figure out how to load the patched rom. The only options I have is reboot to bootloader, enter fastboot, apply update from adb/sd card, wide data, mount system,
Going into fastboot, the only options are reboot system now, enter recovery, reboot to bootloader, power off
Download the Android SDK Platform Tools from Google here https://developer.android.com/studio/releases/platform-tools
Extract that, then copy the patched boot img to that extracted folder
Turn off your phone, then hold volume down and plug it into your computer, this should boot it into bootloader mode
Then open a command prompt, powershell, or windows terminal inside the extracted folder
This is most easily done by holding shift and rightclicking in the empty area of the folder, and a new option will show in the rightclick menu for a command prompt, powershell, or windows terminal (depending on your version of windows)
Once you have that open, type "fastboot" and press tab, it should autocomplete the .exe part, which means you have the correct window open and it's in the correct folder
after that, add "flash boot <filename_patched_boot.img>", the file name may start with magisk, or you can rename it to something easier to type like "boot.img"
Press enter and it should start flashing it to the phone, if there's any problems please post a screenshot of the window
ShayBox said:
Download the Android SDK Platform Tools from Google here https://developer.android.com/studio/releases/platform-tools
Extract that, then copy the patched boot img to that extracted folder
Turn off your phone, then hold volume down and plug it into your computer, this should boot it into bootloader mode
Then open a command prompt, powershell, or windows terminal inside the extracted folder
This is most easily done by holding shift and rightclicking in the empty area of the folder, and a new option will show in the rightclick menu for a command prompt, powershell, or windows terminal (depending on your version of windows)
Once you have that open, type "fastboot" and press tab, it should autocomplete the .exe part, which means you have the correct window open and it's in the correct folder
after that, add "flash boot <filename_patched_boot.img>", the file name may start with magisk, or you can rename it to something easier to type like "boot.img"
Press enter and it should start flashing it to the phone, if there's any problems please post a screenshot of the window
Click to expand...
Click to collapse
It keeps saying fastboot: usage: no command (This is so complicated...)
ShayBox said:
Download the Android SDK Platform Tools from Google here https://developer.android.com/studio/releases/platform-tools
Extract that, then copy the patched boot img to that extracted folder
Turn off your phone, then hold volume down and plug it into your computer, this should boot it into bootloader mode
Then open a command prompt, powershell, or windows terminal inside the extracted folder
This is most easily done by holding shift and rightclicking in the empty area of the folder, and a new option will show in the rightclick menu for a command prompt, powershell, or windows terminal (depending on your version of windows)
Once you have that open, type "fastboot" and press tab, it should autocomplete the .exe part, which means you have the correct window open and it's in the correct folder
after that, add "flash boot <filename_patched_boot.img>", the file name may start with magisk, or you can rename it to something easier to type like "boot.img"
Press enter and it should start flashing it to the phone, if there's any problems please post a screenshot of the window
Click to expand...
Click to collapse
Okay I understand what you mean. Now it is saying cannot load boot.img, no such file or directory. It did autocomplete to .exe like you said.
cwgzz said:
It keeps saying fastboot: usage: no command (This is so complicated...)
Click to expand...
Click to collapse
cwgzz said:
Okay I understand what you mean. Now it is saying cannot load boot.img, no such file or directory. It did autocomplete to .exe like you said.
Click to expand...
Click to collapse
You're missing the end of the filename (.img)
ShayBox said:
You're missing the end of the filename (.img)
Click to expand...
Click to collapse
Oh... duh... what an idiot... hahah thank you so much for spending your time helping me out, I sincerely appreciate it so much. Alright so it's done flashing, am I good to turn on my phone and it's now rooted?
Yes you're now rooted, you can check with any root checker app or any app that uses root
Inside the magisk app settings make sure to click the "Hide Magisk app" button, then install this safetynet fix magisk module
GitHub - kdrag0n/safetynet-fix: Google SafetyNet attestation workarounds for Magisk
Google SafetyNet attestation workarounds for Magisk - GitHub - kdrag0n/safetynet-fix: Google SafetyNet attestation workarounds for Magisk
github.com
This is the direct link to the version you need https://github.com/kdrag0n/safetynet-fix/releases/download/v2.1.2/safetynet-fix-v2.1.2.zip
This requires the Riru magisk module, available in the magisk app, and then you can install this zip in the magisk app on the same page
After both Riru and Safetynet fix are installed and you reboot, the safetynet check button in magisk should pass and be blue
For xposed support also install the Riru - LSPosed magisk module, or the older Riru - EdXposed magisk module (I recommend LSPosed)
ShayBox said:
Yes you're now rooted, you can check with any root checker app or any app that uses root
Inside the magisk app settings make sure to click the "Hide Magisk app" button, then install this safetynet fix magisk module
GitHub - kdrag0n/safetynet-fix: Google SafetyNet attestation workarounds for Magisk
Google SafetyNet attestation workarounds for Magisk - GitHub - kdrag0n/safetynet-fix: Google SafetyNet attestation workarounds for Magisk
github.com
This is the direct link to the version you need https://github.com/kdrag0n/safetynet-fix/releases/download/v2.1.2/safetynet-fix-v2.1.2.zip
This requires the Riru magisk module, available in the magisk app, and then you can install this zip in the magisk app on the same page
After both Riru and Safetynet fix are installed and you reboot the safetynet check button in magisk should pass and be green
For xposed support also install the Riru - LSPosed magisk module, or the older Riru - EdXposed magisk module (I recommend LSPosed)
Click to expand...
Click to collapse
Man you are so helpful, thank you so much for all of your help!!! Do I do all of this on my phone? Do I still need to use my computer?
You shouldn't need your computer anymore, everything is done, you just have to install all your apps now
Hopefully this helps other people in the future
ShayBox said:
Yes you're now rooted, you can check with any root checker app or any app that uses root
Inside the magisk app settings make sure to click the "Hide Magisk app" button, then install this safetynet fix magisk module
GitHub - kdrag0n/safetynet-fix: Google SafetyNet attestation workarounds for Magisk
Google SafetyNet attestation workarounds for Magisk - GitHub - kdrag0n/safetynet-fix: Google SafetyNet attestation workarounds for Magisk
github.com
This is the direct link to the version you need https://github.com/kdrag0n/safetynet-fix/releases/download/v2.1.2/safetynet-fix-v2.1.2.zip
This requires the Riru magisk module, available in the magisk app, and then you can install this zip in the magisk app on the same page
After both Riru and Safetynet fix are installed and you reboot, the safetynet check button in magisk should pass and be blue
For xposed support also install the Riru - LSPosed magisk module, or the older Riru - EdXposed magisk module (I recommend LSPosed)
Click to expand...
Click to collapse
It shows that safetynet is installed, I don't see the blue, lol what exactly is safetynet?
cwgzz said:
It shows that safetynet is installed, I don't see the blue, lol what exactly is safetynet?
Click to expand...
Click to collapse
There's apps that google will mark as "not compatible" if you have root, such as all nintendo games like mario run, this is for that I believe, what does the checker say for the 3 sections
ShayBox said:
There's apps that google will mark as "not compatible" if you have root, such as all nintendo games like mario run, this is for that I believe, what does the checker say for the 3 sections
Click to expand...
Click to collapse
Oh wow, would this also fix banking apps as well? I know my bank checks for root and won't work. And I am sorry, I don't know what you mean about the checker and 3 sections.

[GUIDE] Xiaomi Qin F21 Pro mt6761 Global — Rooted with Play store

This is intended to be a guide on how to root and add play store to a Qin F21 PRO with a MTK6761 processor and 4GB/64GB. The phone I bought came with android 11 and firmware version 1.0.3 (I was dumb enough to not buy the cracked version). I will come back to this to improve the guide as I have more time, but wanted to share some broad strokes here as a way to thank all of you for the help I got from this forum, from 4pda and from various devs that did great work with tools and modules I used.
-------------------------
DISCLAIMER: I have no f****** idea of what I'm doing. My experience with Android rooting is only 2 days (REALLY!), so take this into consideration and proceed with caution.
-------------------------
I'm running a MAC (Big Sur 11.6), so I can't say for the validity of these steps on other OS, but Linux should be quite similar, and Windows too given that all tools have versions for them.
-------------------------
REQUIREMENTS
A factory reset Qin f21 pro on firmware 1.0.3 — Can't say that I recommend doing this without wiping it clean, but you could try
Python 3.9+ — I used homebrew to install (Python 3.9.12), but google is your friend here
MTK client — I used this tool to flash magisk patched boot image and to revert my bricked phone
Android Debug Bridge (adb) — I installed android-platform-tools via homebrew, but you probably already have this
Magisk 24.2 — would probably work with 24.3 but again, I DON'T KNOW WHAT I AM DOING
Android Developer options enabled and USB debugging enabled — if this is what stops you, big red flag
A Brain — goes without saying, things will go wrong and you will probably have to be creative
Magisk modules I used
MagiskHide Props Config — used to "pass as" a OnePlus N10 on google's eyes
Magisk Gapps Core — this is what installs google play store and services
Universal SafetyNet Fix (ended up not using because had to disable Zygisk, but it's worth knowing about it)
-------------------------
WHAT YOU WILL PROBABLY GET IF THINGS GO RIGHT
Rooted ROM
Play store
Happiness (this one is tricky though)
-------------------------
1. Install everything you need on you machine
Go to MTK client github page and follow the instructions to install it on your machine, do the same for android debug bridge. Downlaod Magisk apk and the modules from the links above too.
2. Backup your phone
First, we are going to backup the current state of the phone. CD into the MTK client folder and with your phone OFF and disconnected from the USB run this command
Bash:
python3 mtk_gui
This will open a GUI and prompt you to connect your phone. You should hold the OWL and RETURN keys on the keyboard while connecting it to the USB. The app will now detect your phone and do its magic.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now that your phone is connected you should be able to dump all the partitions you need to recover it if things go wrong. I did it by selecting all partitions except "userdata" and then clicked "Read partitions". It should take a while, and when it's done you should see various .bin files for all partitions saved somewhere in your computer. Make sure you keep them safe. You can also read the readme from MTKClient on other ways to back your phone (specially for what the "Flash tools" tab is supposed to mean, but this is what worked for me).
Tip: Make sure you don't move the usb cable too much, as I noticed this may cause it to disconnect mid-way and you will need to try again.
3. PUSH THE ZIPS TO YOUR PHONE DOWNLOADS FOLDER
With that out of the way, grab all the zips and move them to your phone.
Open your terminal tool on your computer, cd to where you downloaded Magisk.apk and the 3 modules, and push the files to your phone via ADB USB with this command
Bash:
adb push /path/to/magsik.apk /sdcard/Download
Bash:
adb push /path/to/module.zip /sdcard/Download
You should have all files now on your Downloads folder — you can check by using the native files app.
4. PUSH A BOOT.img TO YOUR PHONE DOWNLOADS FOLDER
Make a copy of the boot_a.bin you just dumped, rename it to boot.img, and push it to your Downloads folder (we will use magisk on it to patch and root your device).
Bash:
adb push path/to/boot.img /sdcard/Download
5. INSTALL MAGISK AND PATCH THE BOOT.IMG
Now, on your phone, go to the Downloads folder and install magisk by clicking the apk, go through all the steps to get it running.
Open the magisk app and on the first card click the install button. On the next screen select the method "Select and patch a file". Magisk will ask you to find the boot.img file. Now you just have to wait for it to finish patching the img.
On the log you will see that Magisk has a path to where it saved the patched img. On your computer run
Bash:
adb pull path/to/magisk/patched/boot.img
This will move the patched boot to your computer which will be helpful in the next step.
6. UNLOCK AND ROOT PHONE
Before we do this, we will need to create an empty vbmeta bin file. On a mac you can do this on your terminal by running
Bash:
touch vbmeta.bin
Now, turn off your phone and disconnect from USB, run this command, and then connect the phone to the USB clicking the buttons from step 2 (this is needed everytime you connect to mtk client, so I won't repeat going forward).
Bash:
python3 mtk da seccfg unlock
Then, after you unlock it, reset the phone by running
Bash:
python3 mtk reset
Now run
Bash:
python3 mtk_gui
With the phone connected to the MTK Client GUI, you will go to the "write partitions" tab:
Find boot_a and set it to the patched boot bin file magisk generated
Find vbmeta_a and set it to the empty vbmeta.bin file you create
Click "write partitions" and wait for it to do its thing.
Bash:
python3 mtk reset
You should now be able to disconnect from USB, start your phone and see "orange state" message on top of the duoqin logo on boot.
Note about partitions: I have little understanding of how the partitions structure are supposed to work on android 11 with MTK processor, but that being said, I had to touch these partitions along the way: seccfg, boot_a, vbmeta_a, vbmeta_b, and super (these last 2, because I bricked my phone). Proceed with caution when writing to them, and with even more caution when writing to other partitions.
7. HIDE MAGISK AND DISABLE ZYGISK (BETA)
Open magisk and hide it by going to settings and click "Hide the Magisk app" — I called mine Houdini, but you can call it whatever you want.
Also, make sure you disable Zygisk on the settings (Reboot if needed).
8. Install MagiskHide Props config
Open magisk again, go to the modules tab and click "install from storage". Find the MagiskHide props config .zip file and install it. Reboot the device.
Now, on your computer, and with USB debugging connected, run:
Bash:
adb shell
This will give you access to your phones shell. Make sure you have internet access on your phone, you can then run:
Bash:
props
(su might be needed here, if so, you can allow it via magisk superuser tab)
Follow the steps from the tool to get your phone fingerprint to be OnePlus N10 5G Global BE2026. This means you will need to navigate the tool on menu options 1 and 2 to do this. Menu option 4 is defined as active by default. You will probably have to reboot a few of times along the way. Just follow what the tool says and check its docs if needed.
Docs: https://github.com/Magisk-Modules-Repo/MagiskHidePropsConf
Here is what I have:
9. Install Magisk GApps Core and hope for the best
Open magisk again, go to the modules folder and click "install from storage". Find the magisk gapps core.zip module and install it. Reboot. That's it.
Your browser is not able to display this video.
Tip: If play store keeps crashing try clearing its cache and storage by going to settings > apps > play store and clear storage
If it doesn't work, play around a bit, try different settings, maybe install Universal SafetyNet Fix, add google play store and services to Magisk's denylist and enable Zygisk, google stuff, poke around. What I described above is what worked for me.
reserved for updates — probably will never happen
wow thanks worked great.
Thank you so much for your hard work!! This works perfectly, I appreciate it!
I followed your guide through step 6, but now when I try to turn on my phone it says:
"dm-verity corruption
Your device is corrupt.
It can't be trusted and may not work properly
Press power button to continue.
Or, device will power off in 5s"
It powers off after 5 seconds, even when I press the power button.
I tried flashing the original firmware, and I'm still getting the same message.
The solution to "dm-verity corruption" on the F21 Pro is: (after following the tutorial through step 6)
1. boot into fastboot by running "python mtk payload --metamode FASTBOOT"
2. using fastboot, flash vbmeta_a.bin with the --disable-verity flag and the --disable-verification flag:
"fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta_a.bin"
3. wait until it finishes (it should be pretty quick), and then hold down the power button to reboot.
4. the device should now boot without the "dm-verity corruption" message
Sources:
I used part of method 2 from this tutorial: https://www.droidwin.com/disable-dm-verity-without-twrp/
Instructions to get to fastboot are from the README.md from https://github.com/bkerler/mtkclient
Note: In the guide, the link to download Magisk is from magiskmanager.com. This is not the official website of Magisk. The official place to download it is from https://github.com/topjohnwu/Magisk.
Edit: The link in the guide was fixed.
As per https://www.xda-developers.com/psa-magiskmanager-com-not-official-website-magisk/
Information on how to do this stuff is scarce it seems with the exception of you and some Russian website. Hopefully someone can help (I am a complete Android novice) - My device is the 3gb/32gb version and I'm not entirely sure which configuration I purchased. It was from eBay and the description gave no information other than storage and RAM. If it helps, when turned on it had Amazon App Store installed and I have the ability to download apps from browser and install directly on the phone. It shows version 1.1.1. Any chance you could advise if this ticks the boxes as it were so that I'm not walking in to bricking my phone with no knowledge or skill of how to fix it? Appreciate the help
Should also mention - It doesn't seem to have any root apps or anything like that and no google play store/services etc.
thanks for this
Hi! If anyone has the backup with partitions and doesn't mind sharing it, let me know. Thank you!
Hello, there has been an update. Now the company Duoqin itself provides its devices with official Google Play Services. Could someone who has this updated device help us get such an update?
I was also stuck after the 6th step. What solved it for me was using the `vbmeta_a` partition from this post. Thanks to @Jbazt_katuforzs
my phone bricked
I have MagiskHide Props Config, Universal SafetyNet Fix, and Magisk Gapps Core installed, but it's saying "This device isn't Play Protect Certified". Any ideas?

Categories

Resources