Related
I see many people here who dont really are sure how to root there phone and install xposed framework. Yes it feels bad when you see people talking about ti and you dont know what they are talking about. Had this feeling during my classes in schools though. So I thought of creating this thread for their help.
This guide will be in three stages. (I hope you can bear with me for that long)
Stage 1: Rooting your phone
Stage 2: Installing Xposed (WSM)
Stage 3: Useful Xposed Modules
But first thing first. I need to put things off my chest. Well, if something goes wrong with your device, Please Please dont sue me. I will not be held responsible for anything you do to your device. In war there are casualities. And I will not be responsible for them. If you are brave heart, or can see your phone exploe without tossing a tear in your eye, then only read below. You still have time to leave this thread. You will be the one responsible for what happens next. Enough of scaring you lets read on.
ROOTING
First step to do is root your Mi3. Every fight begans with first step. Or may be first attack I should say.
Advantages of Rooting :-
Well, rooting an Android phone simply means to gain administrative privilages on the system (that sounds exciting). When you buy a new phone, you are just a guest user on the phone. You can use the phone, just as a guest would use Windows, but you will not be able to make any changes to the system files.
However, after you have a root access over your phone, you could browse your root folder and make any changes to the system files on your phone. And that means the ability to make all kinds of changes and install more powerful apps that you cant use on a non-rooted phone.
Uninstall Bloatwares (Yeah those apps that you want remove but you cant find an uninstall button for them)
Modify system files (for good use offcourse)
Use special apps designed to work on rooted phones and make full use of your phone
Does rooting void warranty ?
Yes and No. You can root your Mi3 using two methods. One is to root the stable ROM. That will void your warranty. Other method is to install Developer ROM. That will not void your warranty.
How to ROOT :-
Method 1 ( Install Developer Version of ROM ) :- This is the safest method to gain ROOT access on your phone. You have to install developer version of MiUi ROM on phone. But it has few problems :
a) There is no developer version ROM for Indian Mi3. So you have to flash Chinese version. It means there will be no GApps (PlayStore etc). Also, some of the apps will be in Chinese. Also, developer version of ROM is little unstable and buggy.
But it has its advantages also :
a) Your warranty does not get void
b) You get ROM updates every week.
So those who want to go this way may follow these instructions to install Develop Version ROM on their Mi3
1) Download the latest Developer Rom (TD) from Download Developer ROM (It will be in zip format)
2) Copy & paste the zip file you downloaded to "downloaded_rom" folder on your phone memory
3) Go to Settings -> About phone -> System update -> Press Menu Button -> select update package -> Select the zip file copied to phone.
4) Install it and reboot your phone when asked to
5) Now you are on Dev ro. Go to "Security" app. In this app go to "Permission Manager" and enable "Root Access".
6) Voila !! You are now rooted !!!
Method 2 (ROOT Stable ROM) :- This method works only for Indian version on Mi3 running on stable MiUi5 v 34. For rest you can follow this thread : This method will possibly void your warranty. So think before you proceede.
1) Download the zip file from "http://forum.xda-developers.com/attachment.php?attachmentid=2979259&d=1413879720"
2) Copy & paste the zip file you downloaded to "downloaded_rom" folder on your phone memory
2) Go to Settings -> About phone -> System update -> Press Menu Button -> select update package -> Select the zip file copied to phone.
3) Install it and reboot your phone when asked to
4) Go to "Security" app. In this app go to "Permission Manager" and enable "Root Access".
5) Voila !! You are now rooted !!!
XPOSED Framework
After you root your phone you open a world of possiblities on your phone. You can remove pre-installed apps from your phone using root app remover apps in play store. Just search for "Root" in play store and you will se many apps that are really really cool. Some of them are :
1) Titanium Backup : Backups your whole phone inculding apps and there data
2) Greenify : Puts unused apps in hibernation mode so that they dont start automatically.
3) AdAway : This app cannot be downloaded from Play Store. Search for it on google and install it and say goodbye to ads in your apps.
4) Xposed Framework : This is the big one we are talking about.
Does Xposed work on MiUi ROM ?
MiUi have a thing called dexspy that kind of uses the same code as Xposed framework. So they might conflict with each other and your phone may not boot again. But in latest versions on MiUi they have deactivated dexspy, so Xposed will install fine. Still, I am not reponsible if your phone does not boot again or explode or anything.
So the other way round is to install WSM Tool. It is Xposed framework for Miui. Works exactly like Xposed framework. No harm in using it instead of Xposed. So why not go for it.
Install WSM Tools :-
1) Download WSM Tools from WSM Tool Download
2) Copy the file to internal memory of your phone
3) Install it.
4) Open WSM Tools from apps list.
5) Go To Settings - Manage WSM.
6) Press The Install / Update Button
7) After Installation, Reboot
8) Update WSM Tool from Download section.
9) Voila !! Now you have Xposed Framework running on uor phone.
Now go to "Online" Tab inside WSM tool to see a list of modules that are available for you to download. Well, WSM tools have its on list of modules (and thats pretty short). If you want to install modules compatible with Xposed then you have to one more thing:
Diffrence between WSM & Xposed Modules :-
a) Click "Repository" button inside "Online" tab. Put a check on "Xposed". And now you can see all the modules that you can install. Remember those modules that are compatible with MiUi WSM Tools have a little M just below their names. So you can know they are definetly compatible.
b) Xposed modules might not be compatible with MiUi. So you phone might not start after installing them. So be carefull. I'll list some good ones that are compatible though so that you can try them.
c) WSM Modules are compatible with MiUi. So you can try them out. But due to recent changs in MiUi ROM some functions of these modules are not working anyomre. We will look into them in detail.
USEFULL XPOSED & WSM MODULES
This brings us to the last part of the guide. Here I list some very useful modules that works with MiUi. I will keep updating this list frequently as soon as I try more modules.
1) Mi-Tools : This is the first module that you will want to install. It is a WSM module so its relatively safe. What it does ? Well it has loads of options. Some of them are :
a) Modify Power Menu (Advanced Reboot options, Screenshot option in power menu)
b) Modify diffrent parts of your status bar. (Sadly, you cant center your clock with this module now). Add date to statusbar, hide AM/PM etc etc
c) Modify diffrent properties of MiUi default launcher
d) Disable safe volume warning (yeah that annoyed me a lot)
e) Remap hardware capacitive buttons (Menu, Home, Back)
2) Greenify: This module is awesome. It works with Greenify Donation App and lets you put system apps into hibernation mode. That means, less RAM usage, more battery life.
3) XHaloFloatingWindow : Who does not love floating windows. Note 3 users flaunt it. Now you can too. Install this module and you can use all of your apps in windows mode. You can minimise windows, maximise windows, snap windows etc etc. Options are endless.
4) Flat Style Colored Bars : I love it when my status bar changes its color according to opened app. This module helps in achieving it. There is one more module just like this called "Tinted Status Bar" but it does not work with material design apps. But this one works. So now your status bar will have the same color just like the color of action bar of your app. Beautiful !!!
5) App Settings : This one is a must use module. It lets to modify the following properties on per apps basis
a) Rotation (yes now you can auto rotate those apps that dont rotate normally, like wechat, Phone app of Miui, etc)
b) Change DPI of apps. So now you can change DPI of any app to make it look small or large resolution wise
c) Change language of any app to your local language
d) Change font size of apps, keep screen ON while running certain apps etc etc etc
Try it for sure. It works
6) Anuer :- This module is listed under Xposed modules but its actually made for MiUi. It lets you change the position of clock, signal cluster, notifications on your status bar. YES !!! Finally !!! Raise your hands for Center Clock !!!!
I will keep updating this list as and when I find more useful plugins
THATS IT !!!
I hope you find my guide useful. If not, than sorry for wasting your time. I really wanted it to be easy to understand. There might be some spelling mistakes here and there. Report them and I will correct them. Also if you find any mistake in my Guidem then please do let me know. Also help me find some more modules that works with MiUi and I will update them here.
Thanks a lot. And enjoy your brand new Rooted and Xposed Mi3 !!!
Installed WSM Tools.
But cannot download any frameworks.
It force closes just after I press download.
Sent from my MI 3W using XDA Free mobile app
appupd said:
Installed WSM Tools.
But cannot download any frameworks.
It force closes just after I press download.
Sent from my MI 3W using XDA Free mobile app
Click to expand...
Click to collapse
you are using the developer version of the rom??
if it's not downloading download from repository
appupd said:
Installed WSM Tools.
But cannot download any frameworks.
It force closes just after I press download.
Sent from my MI 3W using XDA Free mobile app
Click to expand...
Click to collapse
Same here On Developer ROM.
Developer version 4.11.21
Sent from my MI 3W using XDA Free mobile app
Thanks - a.broken.star
This is the best guide for people who want to install xposed framework on their mi3.
Sent from my MI 3W using XDA Premium 4 mobile app
Can I use this module in miui v6 4.11.28 ?development build?
thx friend for this tutorial.
I'm using xposed framework on latest miui v6 dev rom, works fine, no error or random reboot,
I have my old reliable Optimus G sitting around and had given it to my kid as a WiFi Pokemon Go Device. A few updates ago, it stopped working with Pokemon Go. I've tried flashing a bunch of different ROMs from the this forum on it and I can't get it to work with Pokemon Go now for him, so he's been using my current phone.
Anyone know of any roms and the tweaks needed to get this working again?
So, I finally got this working just a few minutes ago. There's a few steps, but I should be able to get you going.
Note: Any time something asks for su privileges, grant them. Especially if it's asking for 'Forever'.
1) You will want to use the latest Dirty Unicorns rom. So, flash that, with the GApps they recommend, etc. Make sure you do a factory wipe.
2) Update all the apps, including SuperSU (don't worry about the out of date su binary.)
3) Install Magisk Manager. Go to the Install section, and attempt to install (this will fail, but it will save the magisk zip on the internal storage.
4) Reboot into recovery, and install the magisk v11.6 zip. (It should be under /storage/emulated/0/MagiskManager/Magisk-v11.6.zip) Reboot.
5) Go into Magisk Manager -> Settings, and toggle 'Magisk Hide'.
6) Go into SuperSU (Settings -> SuperSU in this rom) and then go to Settings -> Full Unroot. Wait for this to finish. Reboot.
7) Got back into Magisk Manager, and then run the SafetyNet check. This will fail, but it should say, 'Basic Integrity: true'. (Previously that was false.)
8) Install Pokemon Go, login, and you're golden! :highfive:
For anyone looking to be able to use an old phone to GPS Spoof, the additional steps require are below. :angel:
9) Install Fake GPS Joystick. Once it installs, tap 'start' in the upper right. This will ask if you want to enable Mock Locations in the Developer Settings. Click the link, and do what it said to do.
Voila, you're all set.
Now, a note. I've notice there's some real lag on this phone playing pokemon go, compared to the Nexus 5 my wife has. It's not unplayable but it is a little annoying.
Warning: I am not responsible if following this guide sends your phone into bootloops, summons demons from the 7th levels of hell, etc. Understand that I am fairly noob, and I spent several days, read fifty guides, and performed a hundred firmware flashes back to stock to finally get V4A working on my J510GN.
UPDATE 10/01/17: Added steps for disabling SoundAlive / Adaptsound (not sure if necessary but it probably is so do it)
THIS IS FOR STOCK MARSHMALLOW 6.0.1
Requirements:
1: A stock rom of your device if something goes wrong (save it on your PC)
2: (Optional, but freaking do it) a backup of your apps/settings BEFORE YOU CONTINUE (I use TWRP backup and just choose "Data")
2: TWRP (I used TWRP_3.0.2_SM_J510_2016_Recovery.tar, found here: http://www.mediafire.com/file/aqxjqor6bllaorh/Root+Files+SM-J510-2016-Android+6.0.1.rar )
3: Magisk-v10.2 (XDA thread: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) (I used the flashable .zip)
4: Viper4Android APK **THAT MATCHES THE V4A MAGISK MODULE VERSION** (Link below)
5: An app to disable/freeze system apps, like Titanium Backup or Rom Toolbox.
Notes:
If you are already rooted with SuperSU and not phh SuperUser, this guide may or may not work if you follow the steps completely. I personally went into a recovery loop when trying to flash Magisk while SuperSU was already installed on my phone, even though the Magisk XDA thread says that it is possible to do this. If you already have SuperSU root, you can continue following my guide, but you'll probably get best results if you just un-root SuperSU, do a clean factory restore, and continue with Magisk + phh SuperUser only.
Steps:
1: Use Odin to install TWRP on your device. Read a guide on using Odin if you've never used it, but basically just connect your phone to your PC via USB, boot your phone into download mode (volume down+home+power on my J510), open Odin on your PC, click the AP button, choose the TWRP tar, disable "Auto-Reboot" in Odin options, then click Start. Wait for it to finish, then exit Odin, pull the battery out of your phone for about 10 seconds, and pop the battery back in.
2: Reboot into TWRP recovery (volume up+home+power on my J510). Go to Install, then find the Magisk zip on your phone (because you transferred it to your SDcard earlier, right?). Flash that shiz! Optional: Wipe dalvik/cache, but not always necessary. Reboot your phone when its done.
3: Open Magisk app on your phone, and update from the Google Play Store if prompted.
4: Download phh SuperUser from Google Play Store (https://play.google.com/store/apps/details?id=me.phh.superuser&hl=en). We are doing this because Magisk already rooted your phone with a built-in phh SuperUser, but now you need the official phh SuperUser app on your phone. Because.
5: Go to Magisk > Settings, and check "Enable BusyBox" (I'm not 100% positive if this is necessary, but do it because I did it and my V4A works now)
6: Reboot your phone
7: Open your app to disable system apps (Titanium Backup or Rom Toolbox). Do an app search for "AdaptSound" and "SoundAlive". Freeze and/or uninstall any apps associated with those. "SplitSound" is okay, its not relevant. SOME guides recommend going into your /system/audio/ and renaming audio.conf to audio.conf.bak, but this is not necessary because we are systemlessly rooted and installing a systemless version of V4A.
8: Go to Magisk > Downloads, scroll down until you find the Viper4Android FX module. Download/install it with Magisk, and reboot your phone.
9: Download the Viper4Android .apk THAT IS COMPATIBLE WITH THE MAGISK V4A MODULE. THIS IS VERY IMPORTANT!!! If you touch the module after its downloaded and check the Information button, it should automatically open your device browser to the correct download link, but here it is just incase you want the .apk ready: https://www.androidfilehost.com/?fid=31297853226564193
10: Install the .apk, DO NOT OPEN VIPER4ANDROID YET. Go to your phones settings > apps > app permissions, and allow Viper4Android to access your storage.
11: Open Viper4Android, check driver status. It should say "Normal", because the Magisk V4A module already installed the correct drivers for you.
12: The V4A UI is extremely easy and a monkey could understand it, so just play with the settings while you are playing your favourite songs.
IF SOMETHING GOES WRONG
If something goes wrong during any of the steps, I have no clue what happened. The best advice I can give is to: Reboot into recovery (which your phone is probably already doing), wipe your data/cache/system, Odin back to your stock firmware, re-install TWRP with Odin, reboot into TWRP, and recover your data backup to re-install all your apps/phone settings.
How to use V4A with PowerAmp
PowerAmp is personally my favorite music player for Android, because it has an amazing equalizer and sound settings, but if you want to use V4A sound processing while playing songs in PowerAmp, do this:
Go to PowerAmp Settings > Audio > Advanced Tweaks
Disable Direct Volume Control
(For some devices): Disable OR enable MusicFX. Some people say that disabling OR enabling MusicFX makes V4A start processing audio from PowerAmp. Personally, I did not notice any audio difference whether MusicFX was enabled or disabled.
Just to be safe, not sure if it makes a difference:
Go to PowerAmp Settings > Audio > Output > (Your output choen, whether Java based or OpenSL ES) > Headset
Enable "No DVC", "No Headroom Gain", and "No Equ/Tone"
Possible Problems with PowerAmp:
"I started playing a song in PowerAmp, with V4A power enabled, and I don't hear a difference in my music"
Check the Driver Status in V4A. Does it say "Abnormal" and/or "Processing: No" ? Don't worry, your drivers aren't corrupted. Try exiting V4A with PowerAmp still open, pause your song, re-open V4A, and start playing your song in PowerAmp. Now check Driver status in V4A, it should say normal. If no, try rebooting your phone, then open V4A and make sure power is "on". Then open PowerAmp and start playing a song. Check back in V4A under driver status, it should say "Processing: Yes" and "Driver: Normal". Try switching to FX Compatible mode, reboot your phone, switch to FX Normal mode, and reboot again. Make sure you disabled DVC in PowerAmp. Basically, just keep closing and turning things on/off again until it works, I dunno.
Using V4A with Spotify
If you want Viper4Android to process music from Spotify, you need to go into Viper's Settings > FX Compatible Mode > Compatible. Compatible mode will process STREAMING audio, Normal mode will process LOCAL audio.
Akti88 said:
Warning: I am not responsible if following this guide sends your phone into bootloops, summons demons from the 7th levels of hell, etc. Understand that I am fairly noob, and I spent several days, read fifty guides, and performed a hundred firmware flashes back to stock to finally get V4A working on my J510GN.
UPDATE 10/01/17: Added steps for disabling SoundAlive / Adaptsound (not sure if necessary but it probably is so do it)
THIS IS FOR STOCK MARSHMALLOW 6.0.1
Requirements:
1: A stock rom of your device if something goes wrong (save it on your PC)
2: (Optional, but freaking do it) a backup of your apps/settings BEFORE YOU CONTINUE (I use TWRP backup and just choose "Data")
2: TWRP (I used TWRP_3.0.2_SM_J510_2016_Recovery.tar, found here: http://www.mediafire.com/file/aqxjqor6bllaorh/Root+Files+SM-J510-2016-Android+6.0.1.rar )
3: Magisk-v10.2 (XDA thread: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) (I used the flashable .zip)
4: Viper4Android APK **THAT MATCHES THE V4A MAGISK MODULE VERSION** (Link below)
5: An app to disable/freeze system apps, like Titanium Backup or Rom Toolbox.
Notes:
If you are already rooted with SuperSU and not phh SuperUser, this guide may or may not work if you follow the steps completely. I personally went into a recovery loop when trying to flash Magisk while SuperSU was already installed on my phone, even though the Magisk XDA thread says that it is possible to do this. If you already have SuperSU root, you can continue following my guide, but you'll probably get best results if you just un-root SuperSU, do a clean factory restore, and continue with Magisk + phh SuperUser only.
Steps:
1: Use Odin to install TWRP on your device. Read a guide on using Odin if you've never used it, but basically just connect your phone to your PC via USB, boot your phone into download mode (volume down+home+power on my J510), open Odin on your PC, click the AP button, choose the TWRP tar, disable "Auto-Reboot" in Odin options, then click Start. Wait for it to finish, then exit Odin, pull the battery out of your phone for about 10 seconds, and pop the battery back in.
2: Reboot into TWRP recovery (volume up+home+power on my J510). Go to Install, then find the Magisk zip on your phone (because you transferred it to your SDcard earlier, right?). Flash that shiz! Optional: Wipe dalvik/cache, but not always necessary. Reboot your phone when its done.
3: Open Magisk app on your phone, and update from the Google Play Store if prompted.
4: Download phh SuperUser from Google Play Store (https://play.google.com/store/apps/details?id=me.phh.superuser&hl=en). We are doing this because Magisk already rooted your phone with a built-in phh SuperUser, but now you need the official phh SuperUser app on your phone. Because.
5: Go to Magisk > Settings, and check "Enable BusyBox" (I'm not 100% positive if this is necessary, but do it because I did it and my V4A works now)
6: Reboot your phone
7: Open your app to disable system apps (Titanium Backup or Rom Toolbox). Do an app search for "AdaptSound" and "SoundAlive". Freeze and/or uninstall any apps associated with those. "SplitSound" is okay, its not relevant. SOME guides recommend going into your /system/audio/ and renaming audio.conf to audio.conf.bak, but this is not necessary because we are systemlessly rooted and installing a systemless version of V4A.
8: Go to Magisk > Downloads, scroll down until you find the Viper4Android FX module. Download/install it with Magisk, and reboot your phone.
9: Download the Viper4Android .apk THAT IS COMPATIBLE WITH THE MAGISK V4A MODULE. THIS IS VERY IMPORTANT!!! If you touch the module after its downloaded and check the Information button, it should automatically open your device browser to the correct download link, but here it is just incase you want the .apk ready: https://www.androidfilehost.com/?fid=31297853226564193
10: Install the .apk, DO NOT OPEN VIPER4ANDROID YET. Go to your phones settings > apps > app permissions, and allow Viper4Android to access your storage.
11: Open Viper4Android, check driver status. It should say "Normal", because the Magisk V4A module already installed the correct drivers for you.
12: The V4A UI is extremely easy and a monkey could understand it, so just play with the settings while you are playing your favourite songs.
IF SOMETHING GOES WRONG
If something goes wrong during any of the steps, I have no clue what happened. The best advice I can give is to: Reboot into recovery (which your phone is probably already doing), wipe your data/cache/system, Odin back to your stock firmware, re-install TWRP with Odin, reboot into TWRP, and recover your data backup to re-install all your apps/phone settings.
How to use V4A with PowerAmp
PowerAmp is personally my favorite music player for Android, because it has an amazing equalizer and sound settings, but if you want to use V4A sound processing while playing songs in PowerAmp, do this:
Go to PowerAmp Settings > Audio > Advanced Tweaks
Disable Direct Volume Control
(For some devices): Disable OR enable MusicFX. Some people say that disabling OR enabling MusicFX makes V4A start processing audio from PowerAmp. Personally, I did not notice any audio difference whether MusicFX was enabled or disabled.
Just to be safe, not sure if it makes a difference:
Go to PowerAmp Settings > Audio > Output > (Your output choen, whether Java based or OpenSL ES) > Headset
Enable "No DVC", "No Headroom Gain", and "No Equ/Tone"
Possible Problems with PowerAmp:
"I started playing a song in PowerAmp, with V4A power enabled, and I don't hear a difference in my music"
Check the Driver Status in V4A. Does it say "Abnormal" and/or "Processing: No" ? Don't worry, your drivers aren't corrupted. Try exiting V4A with PowerAmp still open, pause your song, re-open V4A, and start playing your song in PowerAmp. Now check Driver status in V4A, it should say normal. If no, try rebooting your phone, then open V4A and make sure power is "on". Then open PowerAmp and start playing a song. Check back in V4A under driver status, it should say "Processing: Yes" and "Driver: Normal". Try switching to FX Compatible mode, reboot your phone, switch to FX Normal mode, and reboot again. Make sure you disabled DVC in PowerAmp. Basically, just keep closing and turning things on/off again until it works, I dunno.
Using V4A with Spotify
If you want Viper4Android to process music from Spotify, you need to go into Viper's Settings > FX Compatible Mode > Compatible. Compatible mode will process STREAMING audio, Normal mode will process LOCAL audio.
Click to expand...
Click to collapse
My phone processes all the sound in any application, only disadvantage with magisk is that viper4 2.5 does not detect the library, ask to install it on the system partition.
J510FN ☺
Viper ---> Normal state
Enforce
Do you know if this works with Stock Marshmallow on J510FN? Sat for eight hours yesterday with all methods and just want to check if anyone has tried it with this?
Hello friends. Yesterday my redmi note 4x snapdragon (mido) showed a strange problem. I was using phone normally and then a notification popped out from magisk. It was about the updates available for both - magisk manager and magisk. I first updated the manager from the app itself by clicking on 'install'.
But after it finished installing the magisk manager, when it reopened it showed that magisk was not installed!
Then I check my root applications (greenify, mixplorer) and they also were not getting root access. Neither There was a prompt for granting root acess.
I checked my root status from the root checker app from playstore and it showed - 'root access available but not properly installed'
Please suggest me what should I do to update magisk or get magisk working back.
Other details-
Rom - aosp extended official 6.3 pie treble
Kernel - Franco kernel r20
Previous magisk installed- 18.00
New available magisk - 20.3
New magisk manger that I updated - 7.5.1
Everything was working fine on my device previously.
Please help me guys.
Thanks in advance.
Solved the issue!
AviralSri said:
Hello friends. Yesterday my redmi note 4x snapdragon (mido) showed a strange problem. I was using phone normally and then a notification popped out from magisk. It was about the updates available for both - magisk manager and magisk. I first updated the manager from the app itself by clicking on 'install'.
But after it finished installing the magisk manager, when it reopened it showed that magisk was not installed!
Then I check my root applications (greenify, mixplorer) and they also were not getting root access. Neither There was a prompt for granting root acess.
I checked my root status from the root checker app from playstore and it showed - 'root access available but not properly installed'
Please suggest me what should I do to update magisk or get magisk working back.
Other details-
Rom - aosp extended official 6.3 pie treble
Kernel - Franco kernel r20
Previous magisk installed- 18.00
New available magisk - 20.3
New magisk manger that I updated - 7.5.1
Everything was working fine on my device previously.
Please help me guys.
Thanks in advance.
Click to expand...
Click to collapse
So friends, i figured out the solution myself. And I am describing it here in case anyone faces such a problem.
First of all, i forgot to mention one strange thing - while i was updating the magisk manager to new 7.5.1 version from the manager itself, during its installation, i got 2 prompts from google play store which said that i should not install this app as it is not a trusted application. But i clicked on "Install Anyway" both the times and it installed.
After then, when i opened the updated maanger, it showed that magisk is not installed (the new manager app also took some time greator than usual, on its first launch). And then the root access went from everywhere on my device.
Then i thought of uninstalling the magisk from flashing the Magisk-uninstaller-zip-file and then installing the magisk-v-18.zip again, but after searching for some time about uninstalling the magisk, i came to know that there are greater chances of my device going into a bootloop.
For one last time, i tried this - uninstalled magisk manager 7.5.1. Then installed MagiskManger 7.4.0 again. And when i launched it, it showed me Magisk-v18 installed!. Also the app showed me that updates are available for both - manager and magisk. App also showed the superuser menu, Magisk Hide menu. I thought that the problem was solved. But quickly i found that still other root apps were not working. When i reopened the Magisk-Manger-7.4.0, it displayed a message - "A addition setup is needed for root to work". But i did not update from there. Instead i followed a safe path -
Solution - 1. Download official Magisk-20.3 and copy in your phone's internal storage.
2. Then copy the original unaltered boot.img of the rom you're using in your internal storage.
3. Boot into TWRP recovery. Go into "install", and select "install image". Then select your boot.img and swipe to flash.
(Here, i did not wipe anything before flashing. Just flashed the img file over)
4. Reboot to your system. Now your android be cleanly unrooted.
5. Again reboot to TWRP. Select "install", and select and flash the Magisk20.3.zip file and reboot to your system.
Voila!!! Here you go! Your system is now properly rooted with latest magisk!
Thanks!
--->This is a working method as of May 2023 to have root on any rom version for redmi k20pro.
--->This will help you root and keep root hidden along with using lsposed modules.
--->These steps work on any device and any rom
You can find extra guides for the steps you dont understand by searching on xda forums. Some of these guides are linked to at the bottom of this post
Your bootloader needs to be unlocked to follow this guide. See link at bottom for guides to do the same.
****************************
I am not responsible for any data loss or damage. Follow at your own Risk
****************************
1. Install twrp or orangefox recovery on your phone.
2. Flash Magisk 25.2 (Version 26 has many issues. This version is better to use)
3. Reboot, install magisk apk(rename magisk.zip file to magisk.apk and install)
4. In magisk modules, install shamiko
5. In magisk modules, install safetynet 2.4.0
6. Add any app you want to hide root from in denylist of magisk. Additionally add Google play Services, Google play store, google services framework and google play protect to denylist(enable show system apps option in menu available on top right of denylist)
(IMP: Do not enable enforce denylist, Shamiko does this function)
7. If you have already logged into google play store and it shows device not certified in about section of play store -remove google account from phone and clear data of play store, play services, google services framework. Reboot amd try again. It will show certified status after about 10 minutes of logging in
8. Some custom roms may have device fingerprints which will get detected as custom rom. If that happens, use hide user debug and lineage props magisk module. Note: This version from github can only be flashed in Androidacy Fox Module Manager due to issue in zip packaging. Download this file which is just a properly repackaged version that can be flashed in any magisk manager.
Next install Reset Sensitive props magisk module. A combination of simply installing these modules will fix custom rom detection on any custom rom.(Example on opening whatsapp or GPay for first time)
Additional step(not necessary): Your rom may have additional build.prop entries that indicate a custom rom. Look for such build properties by opening build.prop in root browser on your device, then change any that have a custom rom name in them using magiskhideprops(Refer instructions to use magiskhideprops in the link)
9. Now, hide the magisk app in magisk app settings(set name to something like setting or app)
10. Freeze magisk manager app using link2sd/swift backup/ airfrozen or any other similar app. You can enable app when you need to install or disable modules or grant superuser access to new apps. You can also use Androidacy Fox MMM manager to find, install and remove magisk modules
_____________________________________________________________________________
Done, you can stop at this stage if you dont need lsposed.
Be warned that youw ill need to re-add any app you uninstall and reinstall in denylist.
If you want to use lsposed, continue with below steps after skipping step 10.
_____________________________________________________________________________
11. Install lsposed module 1.8.6 zygisk version
12. Install hide my appslist. Follow instructions in this link to learn how to correctly configure and hide magisk manager, lsposed and any other root apps you have.
You will need dataisolation enable magisk module if using android 10 and below for hidemyapplist to fully work.
13. Install Ruru and 'Play Integirty API Checker'.
Run Ruru and watch it pass all tests.(almost no banking app uses the level of detection used by ruru) Use play integrity api checker to check safetynet status - should pass basic integrity and cts profile.
Momo shows some messages like abnormal environement and TEE but that is ok.
Remember that you should enable denylist and Hide my applist for Ruru/Momo similar to how you enable for banking apps to hide.
Your root access is perfectly hidden now.
_____________________________________________________________________________
If you want to hide Developer Options_____________________________________________________________________________
You have a few options for this.
1. I personally turn usb debugging off in settings and use WADB app to enable wireless adb. I am using this on android 11 as other options dont fully hide or trigger xposed hook detection(which does not cause issues with the banking apps I have tested so far)This is not detected by any apps.
2. If on android 10 or lower, you can use hide user debug magisk module by huskydg which you can get from this telegram channel. I dont know if it can be linked here .
This effectively hides user debug without trigerring any root/xposed detection. Ruru may show 1 entry for usb debugging enabled but that is fine. If it doesnt work, it will show 2-3 detected entries for debugging mode.
I have uploaded the file here but dont know if it will last
3. If above options dont work,use devoptshide app, enable it in lsposed for apps you want to hide user debug from.This method will trigger xposed hook detection in Ruru but none of the banking apps i tested so far have an issue with that. Ruru may show 1 entry for usb debugging enabled but that is fine. If it doesnt work, it will show 2-3 detected entries for debugging mode.
4. I have not personally tested this but this module is an updated version of hide userdebug module by huskydg and it might help hide usb debugging on android 11 and up.You will have to try it yourself for now.I expect it to work.
GitHub - Magisk-Modules-Alt-Repo/ezme-nodebug: Change some props and "remove" LineageOS ones.
Change some props and "remove" LineageOS ones. Contribute to Magisk-Modules-Alt-Repo/ezme-nodebug development by creating an account on GitHub.
github.com
_____________________________________________________________________________
If an app detects root accidentally and refuses to run on your device again even if root is not detected again/ Spoof device ID for apps_____________________________________________________________________________
1. Now you need to use android faker lsposed module to randomize imei, max adress, android device id,hardware id.
Enable android faker in lsposed only for the app you want to change id for. Dont enable it for android system or android framework(Goal is to change id for a single app).Before doing these steps you need to clear data of play store, play services and google services framework, remove your google account from device settings and reboot. This will reset your gsf id.
This will give xposed hook detection in butbank apps dont seem to look for it.
2. If the above method does not work, use Xprivacylua. Enable for the app you want to change id, only use setting for device identifiers,use tracking, telephony data, analytics, get applications. Xprivacylua is not properly hidden even by Hide My Applist but apps dont look for it.So use this if above options does not work.
_____________________________________________________________________________
If you need to disable Widevine L1 DRM protection to use scrcpy screen mirroring etc
_____________________________________________________________________________
Install the liboemcryptodisabler module in magisk.Do note that widevine will drop to L3 but uninstallation brings it back to L1.
NOTE: Drm content cannot be mirrored on scrcpy if you are using android 12 or 13. Use roms with android version upto 11 if you need to watch drm protected content through scrcpy.(at your own risk. I do not advise illegal activity.)
Spoiler: liboemcryptodisabler
Magisk Modules Repository By Androidacy - Androidacy
This is the Androidacy Magisk Modules Repository, where you can search, browse, and download your favorite Magisk modules right now.
www.androidacy.com
Enjoy your properly hidden rooted device with all functionalities.
___________________________________________________________________________________________________________________________________
___________________________________________________________________________________________________________________________________
I have added a few useful posts by other members if you dont know how to do any of the above mentioned steps. Any others steps can be learned with guides from XDA -Use search
1. Simple guide to flashing on K20 Pro
His advice on not using orangefox for custom roms other than stock miui/ xiaomi.eu roms may be right, I have not tried it. Orangefox personally works best for me.
2. Guide to flashing custom roms, changing between miui and custom roms
3. Bootloader unlock, twrp, root instructions and rom links
4. Common issues with Redmi K20 Pro | fingerprint unlock | ghost touch | Dim display | sensor issues | bluetooth and calling
Confirmed working in May 2023.
Guide will be eventually updated with Magisk Delta which is better for root hiding
I am amazed how smoothly my update went from old magisk version that started having issues. I followed first part of this tutorial (without lsposed), I downloaded newest versions of everything (magisk 26.1 - had to directly install magisk in magisk too, Shamiko-v0.7.1-166-release, rest same as in tutorial) and it just worked. No more problems with old magisk. Deny list is working flawlessly!, safetynet is passing, Google Play Store says that device is certified. Thank you so much for this tutorial!
czacha994 said:
I am amazed how smoothly my update went from old magisk version that started having issues. I followed first part of this tutorial (without lsposed), I downloaded newest versions of everything (magisk 26.1 - had to directly install magisk in magisk too, Shamiko-v0.7.1-166-release, rest same as in tutorial) and it just worked. No more problems with old magisk. Deny list is working flawlessly!, safetynet is passing, Google Play Store says that device is certified. Thank you so much for this tutorial!
Click to expand...
Click to collapse
As of right now, magisk 25.2 works much better than magisk 26.1. You can continue to use it if you dont face any issues.
I believe I followed all the steps correctly including downgrading to magisk 25.2, the only step that I might not have followed correctly would be using hidemyapplist, but I'm getting CTS profile mismatch in microG safetynet attestation test. I have an LE2115 with lineageos 20 (specifically lineage-20.0-20230514-nightly-lemonade-signed.zip). I do get the "orange state" warning when I turn on my phone, I could make that go away by flashing an older version something (I forgot what but I've done it before) in TWRP but I wanted to avoid that since the only APPARENT effect is the orange state warning and I don't know if it will break later in LOS as they keep updating. I'd appreciate any help you could give me to fix this.
EDIT: just used magiskhidepropsconf and edit fingerprint and set it to htc exodus and now I pass all tests.