How might one accomplish a transient root of the Redmi Note 4?
This is a root until next boot. Will not interfere with OTA after that boot, etc.
Useful for:
1. Edit of build.proc
2. Install Xposed for use with non-root modules
3. Manual run of Titanium
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,
hi, is a couple of days that i'm trying to figure out how to succesfully log into snapchat, because the app check for xposed and fail the login.
i've installed the rom from greatslon that have xposed pre-installed.
i keep to read about the same solution: "run the xposed uninstaller (BUT DONT REMOVE YOUR MODULES), log back into Snapchat, and then install xposed framework again" but without an unlocked bootloader and then without a recovery like twrp i can't temporary remove xposed, right?
there is an alternative mode to disable by terminal or to hide it from be detected?
i tryed with rootcloak but doesn't work because app don't check for root but only for xposed.
apologize for my bad english.
Yep need help with same question waiting for replies
I had the same problem but managed to fix it quite easily, however you need another android phone without xposed
On the phone without XPosed:
1. Install Snapchat and log in to it
2. Install Titanium Backup
3. Take a backup of Snapchat
On your Redmi 3
1. Install Titanium Backup
2. Move the backup of Snapchat from the other phone to your Redmi 3
3. Clear Snapchat App Data (by going to Settings->Installed Apps->Snapchat->Clear Data)
4. Open Titanium Backup and restore Snapchat from the backup you made earlier
Now when you open Snapchat on the Redmi 3 it should skip the login screen and jump straight to the camera. You can even update Snapchat and it will stll work, just don't clear the app data again or you'll have to restore the backup again. I i hope this helps
Roihu said:
I had the same problem but managed to fix it quite easily, however you need another android phone without xposed
On the phone without XPosed:
1. Install Snapchat and log in to it
2. Install Titanium Backup
3. Take a backup of Snapchat
On your Redmi 3
1. Install Titanium Backup
2. Move the backup of Snapchat from the other phone to your Redmi 3
3. Clear Snapchat App Data (by going to Settings->Installed Apps->Snapchat->Clear Data)
4. Open Titanium Backup and restore Snapchat from the backup you made earlier
Now when you open Snapchat on the Redmi 3 it should skip the login screen and jump straight to the camera. You can even update Snapchat and it will stll work, just don't clear the app data again or you'll have to restore the backup again. I i hope this helps
Click to expand...
Click to collapse
it worked, but not all have a 2° phone that can run snapchat.
Do u know if it would work like that? Disable xposed framework, log into snapchat, enable xposed framework again? And how do i disable xposed framework?
yas87 said:
it worked, but not all have a 2° phone that can run snapchat.
Click to expand...
Click to collapse
This does not work. It will log you out as soon as you launch the app on the new phone.
Hi Guys,
I tried to install WA+ in my S7(non-edge) phone but I am getting an error, The package conflicts with an existing package by the same name. Since there is no way to uninstall the preinstalled WA, I disabled it but still the same error is there. I have seen people having WA+ in their phones without rooting or deleting the preinstalled version. What should I do?
Thanks
To install WA+ in phones which got pre intalled WA you got to remove the pre installed WA, you can only do this by rooting your s7.
I want you to follow this step
1. Rooting your phone (rooting voids warranty)
root your phone from this link(rooting)
2. After rooting your phone install System App Remover(links given below), unzip the file, install the apk, give su root permission and uninstall stock WA.
3. Reboot your phone.
4. Install the latest whatsapp+ from the link below.
Enjoy!
Downloads
System App Remover.zip
whatsapp+
have created this thread to explain how to use snapchat on a custom rom or port rom so sorry for my English because I'm French and maybe to have post it on the bad section. Anyway
1*) go on super su and un install the root
2*) if you use xposed go on and disable it
3*) reboot (it can take some minute)
4*) go on snapchat and connect you
5*) if you want to be root again use the root file of the rom or flash again the rom on the recovery and choose root on the aroma.
6*) (enable xposed and reboot)
You will not loose your files it works on all phone and rom and snapchat will be able to worck
You can repeat this each time that you are disconnected of your snapchat account.
Why am I still getting the temporary login failure error? Are these the only steps you guys offer?
--->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.