Install xposed for Android phone
Tags: android, reserve
Published: 2021-03-26 13:20:51

Reverse app, hook, etc. all need to use xposed framework. Before doing these things, you need to do mobile root, install xposed, etc. After Android 8.0, the author of xposed framework is not updating, instead of edxpose

## content
1. flash rom
2、ROOT
3、Xposed & EdXpose

## flash rom
https://developers.google.cn/android/images#sailfish
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ublnbom2g3gpyy11vgnx.png)
find the version of your phone, you'd better choose a highter version , and there will be a flash back phenomenon. If you are a mobile phone of other models, you can look at the directory on the left and find the corresponding model and version 

download the tool -- platform-tools.zip
windows：
https://dl.google.com/android/repository/platform-tools_r29.0.5-windows.zip

Mac ：
https://dl.google.com/android/repository/platform-tools_r29.0.5-darwin.zip

Linux ：
https://dl.google.com/android/repository/platform-tools_r29.0.5-linux.zip

Take Windows 7 as an example，aster download ,rename platform-tools
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/90bdo7rsehbx2s3ixefo.png)
When the mobile phone is turned off, press and hold the power key and + volume down key for a long time (or execute ADB reboot bootloader on the boot interface), and the mobile phone will enter the robot interface
Remember to connect the computer with a data cable
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lnp2mudffro0q52pei0d.png)
 

double click flash-all.bat

 ![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ehxi2zo6avz0a54ouv44.png)
 
## root
turn on the Developer options
down load the Magisk on the website:
https://github.com/topjohnwu/Magisk/releases
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ryypqfl689xlvnfxwr7u.png)
Put the downloaded zip file(Magisk.zip) into the sdcard,and remember the path
download root tools：
https://github.com/eseGithub/AndroidTools/blob/master/Sailfish-twrp-recovery-Tools-3.2.3-0.rar
Unzip to platform-toolsJust put it in the directory
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1lo6ou8dvm9qpwu7b8id.png)
 
Then click start bootloader.bat  t
During this period, the mobile phone and computer are connected by data cable, and it is in USB debugging mode.
Then running Sailfish-twrp-recovery-Tools.bat
Then the installation interface will appear in the screen.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0k6j5kthkfgpvxw852qo.png)
select  Install ---> swipe to Allow Modifications --> find and slect the filel Magisk.zip --> swipe to confirm flash after done,click Reboot System

USB debugging should be turned off and on again..
Then you execute the Su command on your computer and authorize it on your phone

## Xposed & EdXpose
Xposed wont be updated after Android 7.0. So I use edxposed instead;Edxposed depends on Riru-core so install Riru-core first:
https://github.com/RikkaApps/Riru/releases
after downlad copy it into the phone
install it by Magisk
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jd0vxgmale1s9da55p26.png)
 ![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xc6epw84qx3y846ssizu.png)
then restart(重启)
download EdXposed
https://github.com/ElderDrivers/EdXposed/releases/
Install EdXposed in the same way as installing Riru-core

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/95udxu8lmhb4l8rfp11e.png)

refer :https://blog.csdn.net/tangyuan569/article/details/103751699