How to use EdXposed ART hook framework

1. Preliminary preparation

Test mobile device preparation environment:

手机型号:oneplus3
系统版本:Android 10
手机提前刷入twrp recovery镜像。

For how to brush twrp, please refer to the following article:

Fun Android10 source code development and customization (2) Recovery flashing demo of flashing operation

 

Magisk flash package preparation:

The Magisk download address is as follows:

https://github.com/topjohnwu/Magisk/releases

Here I choose Magisk v21.1 version, download address:

https://github.com/topjohnwu/Magisk/releases/tag/v21.1

riru-core flashing package preparation:

Download the v21 version of riru-core here, download address:

https://github.com/yangzhaofeng/riru-core

Note: Versions before riru-core v22 use the method of replacing the system library libmemtrack.so to achieve zygote injection; v22 and later adopt the method of setting ro.dalvik.vm.native.bridge=libriruloader.so to achieve zygote injection.

Edxposed flash package preparation:

Edxposed download address is as follows:

https://github.com/ElderDrivers/EdXposed/releases

Here I choose Edxposed v0.4.6.4 sandhook version, download link:

https://github.com/ElderDrivers/EdXposed/releases/tag/v0.4.6.4

Note: Due to the requirements of the latest version of Edxposed Magisk v21+, Riru v23+. All I downloaded the lower version to match my Magisk version and riru-core.

EdxposedManager installation package preparation:

The download address is as follows:

https://github.com/ElderDrivers/EdXposedManager/releases

Second, install Magisk

  1. Put Magisk, riru-core, Edxposed-sandhook packages externally

The reference command is as follows

C:\Users\Qiang>adb push E:\studyspace\Android10\magisk\Magisk-v21.1.zip /sdcard/Magisk-v21.1.zip
E:\studyspace\Android10\magisk\Magisk... 138.1 MB/s (6135789 bytes in 0.042s)

C:\Users\Qiang>adb push E:\studyspace\Android10\magisk\riru-core-v21.zip /sdcard/riru-core-v21.zip
E:\studyspace\Android10\magisk\riru-c.... 696.5 MB/s (521036 bytes in 0.001s)

C:\Users\Qiang>adb push E:\studyspace\Android10\magisk\EdXposed-SandHook-v0.4.6.4.4563.-release.zip  /sdcard/EdXposed-SandHook.zip
E:\studyspace\Android10\magisk\EdXpos...1160.9 MB/s (3092528 bytes in 0.003s)

  1. Mobile phone enters twrp Recovery

You can use the following adb command to enter twrp recovery:

adb reboot recovery

 

(1) The main interface after entering recovery is as follows:

 

image

 

(2) Operate "Wipe->Advanced Wipe" in the recovery main interface in turn, and then select options other than "Internal Storage" and click "Wipe" to complete the cleaning operation before flashing. As shown below:

image

 

 

image

 

(3). After returning to the main recovery interface, click "Install" to enter and select the Magisk-v21.1.zip package to flash the machine, and restart the phone after flashing. As follows:

 

image

image

image

3. Install riru and Edxposed in Magsik

After Magisk is installed and restarted, a "Magisk Manager" App will be installed by default. Open the app, enter the main interface, prepare Android riru-core and edxpsed-sandhook. The detailed installation process is shown in the figure below:

 

image

image

image

image

image

image

image

image

 

 

After installing riru-core and Edxposed and restarting the phone, install EdXposedManager app and open to verify whether it is successful.

The success looks like this:

image

 

 

 

Edxposed learning research (1) Hand-in-hand compiling the source code of Riru and Edxposed projects

 

The big guys who have passed by pay attention and then leave, follow up with wonderful articles, so that it is convenient to receive the latest articles in the first timeimageimageimageimage

image

å¾ç

Guess you like

Origin blog.csdn.net/u011426115/article/details/112418101