├── XposedChangeView
├── .gitignore
├── src
│ ├── main
│ │ ├── assets
│ │ │ └── xposed_init
│ │ ├── res
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ └── arrays.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── drawable
│ │ │ │ ├── ic_launcher_foreground.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedchangeview
│ │ │ ├── HookChangeView.java
│ │ │ └── ViewTools.java
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedchangeview
│ │ │ └── ExampleUnitTest.kt
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── magicianguo
│ │ └── xposedchangeview
│ │ └── ExampleInstrumentedTest.kt
├── proguard-rules.pro
└── build.gradle
├── XposedRequestSU
├── .gitignore
├── src
│ ├── main
│ │ ├── assets
│ │ │ └── xposed_init
│ │ ├── res
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── values
│ │ │ │ └── strings.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── drawable
│ │ │ │ ├── ic_launcher_foreground.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedrequestsu
│ │ │ └── XPHook.java
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedrequestsu
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── magicianguo
│ │ └── xposedrequestsu
│ │ └── ExampleInstrumentedTest.java
├── proguard-rules.pro
└── build.gradle
├── XposedTestApp
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── colors.xml
│ │ │ │ └── themes.xml
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ ├── layout
│ │ │ │ ├── activity_web_view.xml
│ │ │ │ └── activity_main.xml
│ │ │ └── drawable
│ │ │ │ ├── ic_launcher_foreground.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── magicianguo
│ │ │ │ └── xposedtestapp
│ │ │ │ ├── App.java
│ │ │ │ ├── WebViewActivity.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── MySurfaceView.java
│ │ ├── assets
│ │ │ └── test.html
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedtestapp
│ │ │ └── ExampleUnitTest.kt
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── magicianguo
│ │ └── xposedtarget
│ │ └── ExampleInstrumentedTest.kt
├── proguard-rules.pro
└── build.gradle
├── XposedAllowScreenshot
├── .gitignore
├── src
│ ├── main
│ │ ├── assets
│ │ │ └── xposed_init
│ │ ├── res
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── values
│ │ │ │ └── strings.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── drawable
│ │ │ │ ├── ic_launcher_foreground.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedallowscreenshot
│ │ │ └── HookAllowScreenshot.java
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedallowscreenshot
│ │ │ └── ExampleUnitTest.kt
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── magicianguo
│ │ └── xposedmodule
│ │ └── ExampleInstrumentedTest.kt
├── proguard-rules.pro
└── build.gradle
├── XposedLogWebViewUrl
├── .gitignore
├── src
│ ├── main
│ │ ├── assets
│ │ │ └── xposed_init
│ │ ├── res
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── values
│ │ │ │ └── strings.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── drawable
│ │ │ │ ├── ic_launcher_foreground.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedlogwebviewurl
│ │ │ └── HookLogWebViewUrl.java
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedlogwebviewurl
│ │ │ └── ExampleUnitTest.kt
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── magicianguo
│ │ └── xposedlogwebviewurl
│ │ └── ExampleInstrumentedTest.kt
├── proguard-rules.pro
└── build.gradle
├── XposedShizukuCleaner
├── .gitignore
├── src
│ ├── main
│ │ ├── assets
│ │ │ └── xposed_init
│ │ ├── res
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── values
│ │ │ │ ├── arrays.xml
│ │ │ │ └── strings.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── drawable
│ │ │ │ ├── ic_launcher_foreground.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── magicianguo
│ │ │ │ └── xposedshizukucleaner
│ │ │ │ ├── XPHook.java
│ │ │ │ └── ShizukuHook.java
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedshizukucleaner
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── magicianguo
│ │ └── xposedshizukucleaner
│ │ └── ExampleInstrumentedTest.java
├── proguard-rules.pro
└── build.gradle
├── XposedJumpAppInterceptor
├── .gitignore
├── src
│ ├── main
│ │ ├── assets
│ │ │ └── xposed_init
│ │ ├── res
│ │ │ ├── mipmap-hdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ ├── ic_launcher.webp
│ │ │ │ └── ic_launcher_round.webp
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ ├── themes.xml
│ │ │ │ └── colors.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ └── drawable
│ │ │ │ ├── ic_launcher_foreground.xml
│ │ │ │ └── ic_launcher_background.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── magicianguo
│ │ │ │ └── xposedjumpappinterceptor
│ │ │ │ ├── ReflectUtil.java
│ │ │ │ ├── LogUtil.java
│ │ │ │ ├── ResourceUtil.java
│ │ │ │ └── HookEntry.java
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── magicianguo
│ │ │ └── xposedjumpappinterceptor
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── magicianguo
│ │ └── xposedjumpappinterceptor
│ │ └── ExampleInstrumentedTest.java
├── proguard-rules.pro
└── build.gradle
├── testks.jks
├── gradle
├── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
└── libs.versions.toml
├── .gitignore
├── copy-apk.gradle
├── README.md
├── testks-sign.gradle
├── settings.gradle
├── gradle.properties
├── gradlew.bat
└── gradlew
/XposedChangeView/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/XposedRequestSU/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/XposedTestApp/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/XposedAllowScreenshot/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/XposedShizukuCleaner/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/assets/xposed_init:
--------------------------------------------------------------------------------
1 | com.magicianguo.xposedrequestsu.XPHook
--------------------------------------------------------------------------------
/testks.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/testks.jks
--------------------------------------------------------------------------------
/XposedChangeView/src/main/assets/xposed_init:
--------------------------------------------------------------------------------
1 | com.magicianguo.xposedchangeview.HookChangeView
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/assets/xposed_init:
--------------------------------------------------------------------------------
1 | com.magicianguo.xposedshizukucleaner.XPHook
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/assets/xposed_init:
--------------------------------------------------------------------------------
1 | com.magicianguo.xposedjumpappinterceptor.HookEntry
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/assets/xposed_init:
--------------------------------------------------------------------------------
1 | com.magicianguo.xposedlogwebviewurl.HookLogWebViewUrl
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/assets/xposed_init:
--------------------------------------------------------------------------------
1 | com.magicianguo.xposedallowscreenshot.HookAllowScreenshot
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | XposedTestApp
3 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 5dp
4 |
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedTestApp/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedTestApp/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedTestApp/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedChangeView/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedChangeView/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedRequestSU/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedRequestSU/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedRequestSU/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedTestApp/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedTestApp/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedChangeView/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedChangeView/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedChangeView/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedLogWebViewUrl/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedLogWebViewUrl/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedRequestSU/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedRequestSU/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedTestApp/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedTestApp/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedAllowScreenshot/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedAllowScreenshot/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedLogWebViewUrl/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedLogWebViewUrl/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedRequestSU/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedRequestSU/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedShizukuCleaner/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedShizukuCleaner/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedShizukuCleaner/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedTestApp/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedTestApp/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedAllowScreenshot/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedAllowScreenshot/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedAllowScreenshot/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedChangeView/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedChangeView/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedChangeView/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedChangeView/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedJumpAppInterceptor/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedJumpAppInterceptor/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedLogWebViewUrl/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedRequestSU/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedRequestSU/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedRequestSU/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedShizukuCleaner/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedShizukuCleaner/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedTestApp/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedChangeView/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedJumpAppInterceptor/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedJumpAppInterceptor/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedLogWebViewUrl/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedLogWebViewUrl/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedLogWebViewUrl/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedShizukuCleaner/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedShizukuCleaner/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedAllowScreenshot/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedAllowScreenshot/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedAllowScreenshot/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedAllowScreenshot/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | XposedAllowScreenshot
3 | 用于解除应用的截屏限制
4 |
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedJumpAppInterceptor/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedLogWebViewUrl/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedLogWebViewUrl/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedShizukuCleaner/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedShizukuCleaner/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedShizukuCleaner/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FF000000
4 | #FFFFFFFF
5 |
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedAllowScreenshot/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedJumpAppInterceptor/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedJumpAppInterceptor/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedJumpAppInterceptor/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | XposedRequestSU
3 | 作用在目标应用上,应用启动时就会请求Root权限。
4 |
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | XposedChangeView
3 | 修改应用XposedTestApp的布局(对其他应用无效)
4 |
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedJumpAppInterceptor/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MagicianGuo/Android-XposedTest/HEAD/XposedJumpAppInterceptor/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - com.magicianguo.xposedtestapp
5 |
6 |
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | XposedJumpAppInterceptor
3 | 在跳转其他应用前弹窗拦截,用户点击允许才能跳转。
4 |
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - moe.shizuku.privileged.api
5 |
6 |
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | XposedShizukuCleaner
3 | 作用在Shizuku上,激活成功后自动清理生成的文件/文件夹,防止被检测到。
4 |
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | XposedLogWebViewUrl
3 | 记录应用每次用WebView加载网页的链接,并保存到“/sdcard/Android/data/[应用包名]”路径下
4 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Apr 15 09:21:32 CST 2024
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/*
5 | /.idea/caches
6 | /.idea/libraries
7 | /.idea/modules.xml
8 | /.idea/workspace.xml
9 | /.idea/navEditor.xml
10 | /.idea/assetWizardSettings.xml
11 | .DS_Store
12 | /build
13 | /captures
14 | .externalNativeBuild
15 | .cxx
16 | local.properties
17 | /apks
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/XposedTestApp/src/main/java/com/magicianguo/xposedtestapp/App.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedtestapp;
2 |
3 | import android.app.Application;
4 | import android.util.Log;
5 |
6 | public class App extends Application {
7 | @Override
8 | public void onCreate() {
9 | super.onCreate();
10 | Log.d("XposedTestApp", "onCreate: ");
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/copy-apk.gradle:
--------------------------------------------------------------------------------
1 | android {
2 | applicationVariants.configureEach { variant ->
3 | variant.assembleProvider.get().doLast {
4 | variant.outputs.each { output ->
5 | copy {
6 | from output.outputFile
7 | into file(rootDir.path + "/apks")
8 | }
9 | }
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/XposedTestApp/src/main/assets/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 | 这是自定义的网页
18 |
19 |
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/layout/activity_web_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
11 |
--------------------------------------------------------------------------------
/XposedTestApp/src/test/java/com/magicianguo/xposedtestapp/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedtarget
2 | //
3 | //import org.junit.Test
4 | //
5 | //import org.junit.Assert.*
6 | //
7 | ///**
8 | // * Example local unit test, which will execute on the development machine (host).
9 | // *
10 | // * See [testing documentation](http://d.android.com/tools/testing).
11 | // */
12 | //class ExampleUnitTest {
13 | // @Test
14 | // fun addition_isCorrect() {
15 | // assertEquals(4, 2 + 2)
16 | // }
17 | //}
--------------------------------------------------------------------------------
/XposedChangeView/src/test/java/com/magicianguo/xposedchangeview/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedchangeview
2 | //
3 | //import org.junit.Test
4 | //
5 | //import org.junit.Assert.*
6 | //
7 | ///**
8 | // * Example local unit test, which will execute on the development machine (host).
9 | // *
10 | // * See [testing documentation](http://d.android.com/tools/testing).
11 | // */
12 | //class ExampleUnitTest {
13 | // @Test
14 | // fun addition_isCorrect() {
15 | // assertEquals(4, 2 + 2)
16 | // }
17 | //}
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/test/java/com/magicianguo/xposedallowscreenshot/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedmodule
2 | //
3 | //import org.junit.Test
4 | //
5 | //import org.junit.Assert.*
6 | //
7 | ///**
8 | // * Example local unit test, which will execute on the development machine (host).
9 | // *
10 | // * See [testing documentation](http://d.android.com/tools/testing).
11 | // */
12 | //class ExampleUnitTest {
13 | // @Test
14 | // fun addition_isCorrect() {
15 | // assertEquals(4, 2 + 2)
16 | // }
17 | //}
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/test/java/com/magicianguo/xposedlogwebviewurl/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedlogwebviewurl
2 | //
3 | //import org.junit.Test
4 | //
5 | //import org.junit.Assert.*
6 | //
7 | ///**
8 | // * Example local unit test, which will execute on the development machine (host).
9 | // *
10 | // * See [testing documentation](http://d.android.com/tools/testing).
11 | // */
12 | //class ExampleUnitTest {
13 | // @Test
14 | // fun addition_isCorrect() {
15 | // assertEquals(4, 2 + 2)
16 | // }
17 | //}
--------------------------------------------------------------------------------
/XposedRequestSU/src/test/java/com/magicianguo/xposedrequestsu/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedrequestsu;
2 | //
3 | //import org.junit.Test;
4 | //
5 | //import static org.junit.Assert.*;
6 | //
7 | ///**
8 | // * Example local unit test, which will execute on the development machine (host).
9 | // *
10 | // * @see Testing documentation
11 | // */
12 | //public class ExampleUnitTest {
13 | // @Test
14 | // public void addition_isCorrect() {
15 | // assertEquals(4, 2 + 2);
16 | // }
17 | //}
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/test/java/com/magicianguo/xposedshizukucleaner/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedshizukucleaner;
2 | //
3 | //import org.junit.Test;
4 | //
5 | //import static org.junit.Assert.*;
6 | //
7 | ///**
8 | // * Example local unit test, which will execute on the development machine (host).
9 | // *
10 | // * @see Testing documentation
11 | // */
12 | //public class ExampleUnitTest {
13 | // @Test
14 | // public void addition_isCorrect() {
15 | // assertEquals(4, 2 + 2);
16 | // }
17 | //}
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/test/java/com/magicianguo/xposedjumpappinterceptor/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedjumpappinterceptor;
2 | //
3 | //import org.junit.Test;
4 | //
5 | //import static org.junit.Assert.*;
6 | //
7 | ///**
8 | // * Example local unit test, which will execute on the development machine (host).
9 | // *
10 | // * @see Testing documentation
11 | // */
12 | //public class ExampleUnitTest {
13 | // @Test
14 | // public void addition_isCorrect() {
15 | // assertEquals(4, 2 + 2);
16 | // }
17 | //}
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/java/com/magicianguo/xposedshizukucleaner/XPHook.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedshizukucleaner;
2 |
3 | import android.text.TextUtils;
4 |
5 | import de.robv.android.xposed.IXposedHookLoadPackage;
6 | import de.robv.android.xposed.callbacks.XC_LoadPackage;
7 |
8 | public class XPHook implements IXposedHookLoadPackage {
9 | @Override
10 | public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) {
11 | if (TextUtils.equals(lpparam.packageName, "moe.shizuku.privileged.api")) {
12 | ShizukuHook.init(lpparam);
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/XposedTestApp/src/main/java/com/magicianguo/xposedtestapp/WebViewActivity.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedtestapp;
2 |
3 | import android.os.Bundle;
4 | import android.webkit.WebView;
5 |
6 | import androidx.appcompat.app.AppCompatActivity;
7 |
8 | public class WebViewActivity extends AppCompatActivity {
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_web_view);
13 | WebView webView = findViewById(R.id.webView);
14 | webView.loadUrl("file:///android_asset/test.html");
15 | }
16 | }
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/java/com/magicianguo/xposedjumpappinterceptor/ReflectUtil.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedjumpappinterceptor;
2 |
3 | import java.lang.reflect.InvocationTargetException;
4 | import java.lang.reflect.Method;
5 |
6 | public class ReflectUtil {
7 | public static void callMethod(Class> cls, Object obj, String name) {
8 | try {
9 | Method declaredMethod = cls.getDeclaredMethod(name);
10 | declaredMethod.setAccessible(true);
11 | declaredMethod.invoke(obj);
12 | } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
13 | throw new RuntimeException(e);
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
13 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
11 |
14 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
11 |
14 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 一、简介
2 | 这是一个用于演示如何开发Xposed模块的项目。通过它可以改变应用的运行效果。
3 | 当然,需要安装LSPatch和Shizuku,之后无需root即可完成应用的修补。
4 |
5 |
6 |
7 | # 二、使用方法
8 |
9 | 编译整个项目,生成的安装包会自动拷贝到项目根目录的“/apks”文件夹里。clean项目会同时将此文件夹删除。
10 |
11 | XposedTestApp模块是需要测试的应用,提供了简单的界面,但是窗口设置了禁止截屏。
12 |
13 | 安装XposedAllowScreenshot模块,并通过LSPatch将测试应用与该模块集成,可以将截屏限制解除。
14 |
15 | 安装XposedChangeView模块并集成后可以在Activity布局中插入一块View,能够实现简单的跳页和控制其它View功能。
16 |
17 | 安装XposedLogWebViewUrl模块并集成后可以记录此应用的WebView加载过的网页链接,并保存到“/sdcard/Android/data/[应用包名]”路径下的文件“url_list.txt”中。
18 |
19 | # 三、其他模块(需Root,配合LSPosed模块)
20 |
21 | XposedRequestSU:勾选的应用会在启动时主动请求Root权限。
22 |
23 | XposedShizukuCleaner:勾选Shizuku,能够自动清理激活时产生的残留文件,防止被检测。
24 |
25 | XposedJumpAppInterceptor:勾选的应用,在跳转到其他应用时会被拦截,提示弹窗,点击允许才能跳转。
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
11 |
14 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/testks-sign.gradle:
--------------------------------------------------------------------------------
1 | // 1、在壳工程build.gradle 里加上 apply from: "testks-sign.gradle"
2 | // 2、删除壳工程build.gradle 的 buildTypes 配置,由这里统一配置
3 | android {
4 | signingConfigs {
5 | sign {
6 | storeFile file(rootDir.path + "/testks.jks")
7 | storePassword "testks"
8 | keyAlias "testks"
9 | keyPassword "testks"
10 | }
11 | }
12 | buildTypes {
13 | debug {
14 | signingConfig signingConfigs.sign
15 | }
16 | release {
17 | minifyEnabled false
18 | shrinkResources false
19 | signingConfig signingConfigs.sign
20 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/XposedTestApp/src/main/java/com/magicianguo/xposedtestapp/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedtestapp;
2 |
3 | import android.os.Bundle;
4 | import android.view.WindowManager;
5 | import android.widget.TextView;
6 |
7 | import androidx.annotation.Nullable;
8 | import androidx.appcompat.app.AppCompatActivity;
9 |
10 | public class MainActivity extends AppCompatActivity {
11 | private TextView mTvTitle;
12 |
13 | @Override
14 | protected void onCreate(@Nullable Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.activity_main);
17 |
18 | mTvTitle = findViewById(R.id.tv_title);
19 | mTvTitle.setText("你好,世界");
20 | // 窗口禁止截屏
21 | getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
22 | }
23 |
24 | }
--------------------------------------------------------------------------------
/XposedChangeView/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
11 |
14 |
17 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
11 |
14 |
17 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/XposedChangeView/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/XposedRequestSU/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/XposedAllowScreenshot/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/XposedShizukuCleaner/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/XposedTestApp/src/androidTest/java/com/magicianguo/xposedtarget/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedtarget
2 | //
3 | //import androidx.test.platform.app.InstrumentationRegistry
4 | //import androidx.test.ext.junit.runners.AndroidJUnit4
5 | //
6 | //import org.junit.Test
7 | //import org.junit.runner.RunWith
8 | //
9 | //import org.junit.Assert.*
10 | //
11 | ///**
12 | // * Instrumented test, which will execute on an Android device.
13 | // *
14 | // * See [testing documentation](http://d.android.com/tools/testing).
15 | // */
16 | //@RunWith(AndroidJUnit4::class)
17 | //class ExampleInstrumentedTest {
18 | // @Test
19 | // fun useAppContext() {
20 | // // Context of the app under test.
21 | // val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | // assertEquals("com.magicianguo.xposedtarget", appContext.packageName)
23 | // }
24 | //}
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
17 |
18 |
22 |
23 |
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/androidTest/java/com/magicianguo/xposedmodule/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedmodule
2 | //
3 | //import androidx.test.platform.app.InstrumentationRegistry
4 | //import androidx.test.ext.junit.runners.AndroidJUnit4
5 | //
6 | //import org.junit.Test
7 | //import org.junit.runner.RunWith
8 | //
9 | //import org.junit.Assert.*
10 | //
11 | ///**
12 | // * Instrumented test, which will execute on an Android device.
13 | // *
14 | // * See [testing documentation](http://d.android.com/tools/testing).
15 | // */
16 | //@RunWith(AndroidJUnit4::class)
17 | //class ExampleInstrumentedTest {
18 | // @Test
19 | // fun useAppContext() {
20 | // // Context of the app under test.
21 | // val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | // assertEquals("com.magicianguo.xposedmodule", appContext.packageName)
23 | // }
24 | //}
--------------------------------------------------------------------------------
/XposedChangeView/src/androidTest/java/com/magicianguo/xposedchangeview/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedchangeview
2 | //
3 | //import androidx.test.platform.app.InstrumentationRegistry
4 | //import androidx.test.ext.junit.runners.AndroidJUnit4
5 | //
6 | //import org.junit.Test
7 | //import org.junit.runner.RunWith
8 | //
9 | //import org.junit.Assert.*
10 | //
11 | ///**
12 | // * Instrumented test, which will execute on an Android device.
13 | // *
14 | // * See [testing documentation](http://d.android.com/tools/testing).
15 | // */
16 | //@RunWith(AndroidJUnit4::class)
17 | //class ExampleInstrumentedTest {
18 | // @Test
19 | // fun useAppContext() {
20 | // // Context of the app under test.
21 | // val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | // assertEquals("com.magicianguo.xposedchangeview", appContext.packageName)
23 | // }
24 | //}
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/androidTest/java/com/magicianguo/xposedlogwebviewurl/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedlogwebviewurl
2 | //
3 | //import androidx.test.platform.app.InstrumentationRegistry
4 | //import androidx.test.ext.junit.runners.AndroidJUnit4
5 | //
6 | //import org.junit.Test
7 | //import org.junit.runner.RunWith
8 | //
9 | //import org.junit.Assert.*
10 | //
11 | ///**
12 | // * Instrumented test, which will execute on an Android device.
13 | // *
14 | // * See [testing documentation](http://d.android.com/tools/testing).
15 | // */
16 | //@RunWith(AndroidJUnit4::class)
17 | //class ExampleInstrumentedTest {
18 | // @Test
19 | // fun useAppContext() {
20 | // // Context of the app under test.
21 | // val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | // assertEquals("com.magicianguo.xposedlogwebviewurl", appContext.packageName)
23 | // }
24 | //}
--------------------------------------------------------------------------------
/XposedTestApp/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 | -dontoptimize
23 | -keep class com.magicianguo.xposedtestapp.MainActivity {
24 | ;
25 | }
--------------------------------------------------------------------------------
/XposedTestApp/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/XposedRequestSU/src/androidTest/java/com/magicianguo/xposedrequestsu/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedrequestsu;
2 | //
3 | //import android.content.Context;
4 | //
5 | //import androidx.test.platform.app.InstrumentationRegistry;
6 | //import androidx.test.ext.junit.runners.AndroidJUnit4;
7 | //
8 | //import org.junit.Test;
9 | //import org.junit.runner.RunWith;
10 | //
11 | //import static org.junit.Assert.*;
12 | //
13 | ///**
14 | // * Instrumented test, which will execute on an Android device.
15 | // *
16 | // * @see Testing documentation
17 | // */
18 | //@RunWith(AndroidJUnit4.class)
19 | //public class ExampleInstrumentedTest {
20 | // @Test
21 | // public void useAppContext() {
22 | // // Context of the app under test.
23 | // Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 | // assertEquals("com.magicianguo.xposedrequestsu", appContext.getPackageName());
25 | // }
26 | //}
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/androidTest/java/com/magicianguo/xposedshizukucleaner/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedshizukucleaner;
2 | //
3 | //import android.content.Context;
4 | //
5 | //import androidx.test.platform.app.InstrumentationRegistry;
6 | //import androidx.test.ext.junit.runners.AndroidJUnit4;
7 | //
8 | //import org.junit.Test;
9 | //import org.junit.runner.RunWith;
10 | //
11 | //import static org.junit.Assert.*;
12 | //
13 | ///**
14 | // * Instrumented test, which will execute on an Android device.
15 | // *
16 | // * @see Testing documentation
17 | // */
18 | //@RunWith(AndroidJUnit4.class)
19 | //public class ExampleInstrumentedTest {
20 | // @Test
21 | // public void useAppContext() {
22 | // // Context of the app under test.
23 | // Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 | // assertEquals("com.magicianguo.xposedshizukucleaner", appContext.getPackageName());
25 | // }
26 | //}
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/androidTest/java/com/magicianguo/xposedjumpappinterceptor/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | //package com.magicianguo.xposedjumpappinterceptor;
2 | //
3 | //import android.content.Context;
4 | //
5 | //import androidx.test.platform.app.InstrumentationRegistry;
6 | //import androidx.test.ext.junit.runners.AndroidJUnit4;
7 | //
8 | //import org.junit.Test;
9 | //import org.junit.runner.RunWith;
10 | //
11 | //import static org.junit.Assert.*;
12 | //
13 | ///**
14 | // * Instrumented test, which will execute on an Android device.
15 | // *
16 | // * @see Testing documentation
17 | // */
18 | //@RunWith(AndroidJUnit4.class)
19 | //public class ExampleInstrumentedTest {
20 | // @Test
21 | // public void useAppContext() {
22 | // // Context of the app under test.
23 | // Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 | // assertEquals("com.magicianguo.xposedjumpappinterceptor", appContext.getPackageName());
25 | // }
26 | //}
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | maven {
4 | url "https://maven.aliyun.com/repository/public"
5 | }
6 | google {
7 | content {
8 | includeGroupByRegex("com\\.android.*")
9 | includeGroupByRegex("com\\.google.*")
10 | includeGroupByRegex("androidx.*")
11 | }
12 | }
13 | mavenCentral()
14 | gradlePluginPortal()
15 | }
16 | }
17 | dependencyResolutionManagement {
18 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
19 | repositories {
20 | maven {
21 | url "https://maven.aliyun.com/repository/public"
22 | }
23 | google()
24 | mavenCentral()
25 | }
26 | }
27 |
28 | rootProject.name = "XposedTest"
29 | include ':XposedTestApp'
30 | include ':XposedAllowScreenshot'
31 | include ':XposedChangeView'
32 | include ':XposedLogWebViewUrl'
33 | include ':XposedRequestSU'
34 | include ':XposedShizukuCleaner'
35 | include ':XposedJumpAppInterceptor'
36 |
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/java/com/magicianguo/xposedrequestsu/XPHook.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedrequestsu;
2 |
3 | import android.app.Application;
4 | import android.widget.Toast;
5 |
6 | import de.robv.android.xposed.IXposedHookLoadPackage;
7 | import de.robv.android.xposed.XC_MethodHook;
8 | import de.robv.android.xposed.XposedHelpers;
9 | import de.robv.android.xposed.callbacks.XC_LoadPackage;
10 |
11 | public class XPHook implements IXposedHookLoadPackage {
12 | @Override
13 | public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) {
14 | XposedHelpers.findAndHookMethod(Application.class, "onCreate", new XC_MethodHook() {
15 | @Override
16 | protected void afterHookedMethod(MethodHookParam param) {
17 | Application application = (Application) param.thisObject;
18 | try {
19 | Runtime.getRuntime().exec("su");
20 | } catch (Exception e) {
21 | Toast.makeText(application, "Root权限请求失败!", Toast.LENGTH_SHORT).show();
22 | }
23 | }
24 | });
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/XposedShizukuCleaner/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | alias(libs.plugins.androidApplication)
3 | }
4 |
5 | apply from: "../testks-sign.gradle"
6 | apply from: "../copy-apk.gradle"
7 |
8 | android {
9 | namespace 'com.magicianguo.xposedshizukucleaner'
10 | compileSdk COMPILE_SDK.toInteger()
11 |
12 | defaultConfig {
13 | applicationId "com.magicianguo.xposedshizukucleaner"
14 | minSdk MIN_SDK.toInteger()
15 | targetSdk TARGET_SDK.toInteger()
16 | versionCode VERSION_CODE.toInteger()
17 | versionName VERSION_NAME
18 |
19 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20 | }
21 | compileOptions {
22 | sourceCompatibility JavaVersion.VERSION_11
23 | targetCompatibility JavaVersion.VERSION_11
24 | }
25 | }
26 |
27 | dependencies {
28 |
29 | // implementation libs.androidx.appcompat
30 | // implementation libs.material
31 | // testImplementation libs.junit
32 | // androidTestImplementation libs.androidx.junit
33 | // androidTestImplementation libs.androidx.espresso.core
34 |
35 | compileOnly 'de.robv.android.xposed:api:82'
36 | }
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/java/com/magicianguo/xposedjumpappinterceptor/LogUtil.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedjumpappinterceptor;
2 |
3 | import android.app.Application;
4 |
5 | import java.io.File;
6 | import java.io.FileWriter;
7 | import java.util.Date;
8 |
9 | public class LogUtil {
10 | private static Application mApp;
11 | private static final boolean mLogEnable = false;
12 |
13 | public static void init(Application application) {
14 | mApp = application;
15 | }
16 |
17 | public static void writeLog(String text) {
18 | if (!mLogEnable) {
19 | return;
20 | }
21 | try {
22 | String name = "log.txt";
23 | String path = mApp.getExternalFilesDir(null).getPath();
24 | File logFile = new File(path, name);
25 | if (logFile.exists()) {
26 | logFile.createNewFile();
27 | }
28 | FileWriter fw = new FileWriter(logFile, true);
29 | fw.write(new Date() + " " + text + "\n");
30 | fw.close();
31 | } catch (Exception e) {
32 | e.printStackTrace();
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/XposedRequestSU/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | alias(libs.plugins.androidApplication)
3 | }
4 |
5 | apply from: "../testks-sign.gradle"
6 | apply from: "../copy-apk.gradle"
7 |
8 | android {
9 | namespace 'com.magicianguo.xposedrequestsu'
10 | compileSdk COMPILE_SDK.toInteger()
11 |
12 | defaultConfig {
13 | applicationId "com.magicianguo.xposedrequestsu"
14 | minSdk MIN_SDK.toInteger()
15 | targetSdk TARGET_SDK.toInteger()
16 | versionCode VERSION_CODE.toInteger()
17 | versionName VERSION_NAME
18 |
19 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20 | }
21 | compileOptions {
22 | sourceCompatibility JavaVersion.VERSION_1_8
23 | targetCompatibility JavaVersion.VERSION_1_8
24 | }
25 | }
26 |
27 | dependencies {
28 |
29 | // implementation libs.androidx.appcompat
30 | // implementation libs.material
31 | // testImplementation libs.junit
32 | // androidTestImplementation libs.androidx.junit
33 | // androidTestImplementation libs.androidx.espresso.core
34 |
35 | compileOnly 'de.robv.android.xposed:api:82'
36 | // 这个注释掉,否则代码提示会消失!
37 | // compileOnly 'de.robv.android.xposed:api:82:sources'
38 | }
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | alias(libs.plugins.androidApplication)
3 | }
4 |
5 | apply from: "../testks-sign.gradle"
6 | apply from: "../copy-apk.gradle"
7 |
8 | android {
9 | namespace 'com.magicianguo.xposedjumpappinterceptor'
10 | compileSdk COMPILE_SDK.toInteger()
11 |
12 | defaultConfig {
13 | applicationId "com.magicianguo.xposedjumpappinterceptor"
14 | minSdk MIN_SDK.toInteger()
15 | targetSdk TARGET_SDK.toInteger()
16 | versionCode VERSION_CODE.toInteger()
17 | versionName VERSION_NAME
18 |
19 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20 | }
21 | compileOptions {
22 | sourceCompatibility JavaVersion.VERSION_1_8
23 | targetCompatibility JavaVersion.VERSION_1_8
24 | }
25 |
26 | aaptOptions.additionalParameters '--allow-reserved-package-id', '--package-id', '0xE1'
27 | }
28 |
29 | dependencies {
30 |
31 | // implementation libs.androidx.appcompat
32 | // implementation libs.material
33 | // testImplementation libs.junit
34 | // androidTestImplementation libs.androidx.junit
35 | // androidTestImplementation libs.androidx.espresso.core
36 |
37 | compileOnly 'de.robv.android.xposed:api:82'
38 | }
--------------------------------------------------------------------------------
/gradle/libs.versions.toml:
--------------------------------------------------------------------------------
1 | [versions]
2 | agp = "8.8.0"
3 | kotlin = "2.1.0"
4 | coreKtx = "1.10.1"
5 | junit = "4.13.2"
6 | junitVersion = "1.1.5"
7 | espressoCore = "3.5.1"
8 | appcompat = "1.6.1"
9 | material = "1.10.0"
10 | activity = "1.8.0"
11 | constraintlayout = "2.1.4"
12 |
13 | [libraries]
14 | androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
15 | junit = { group = "junit", name = "junit", version.ref = "junit" }
16 | androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
17 | androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
18 | androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
19 | material = { group = "com.google.android.material", name = "material", version.ref = "material" }
20 | androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
21 | androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
22 |
23 | [plugins]
24 | androidApplication = { id = "com.android.application", version.ref = "agp" }
25 | jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
26 | androidLibrary = { id = "com.android.library", version.ref = "agp" }
27 |
28 |
--------------------------------------------------------------------------------
/XposedChangeView/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | alias(libs.plugins.androidApplication)
3 | alias(libs.plugins.jetbrainsKotlinAndroid)
4 | }
5 |
6 | apply from: "../testks-sign.gradle"
7 | apply from: "../copy-apk.gradle"
8 |
9 | android {
10 | namespace 'com.magicianguo.xposedchangeview'
11 | compileSdk COMPILE_SDK.toInteger()
12 |
13 | defaultConfig {
14 | applicationId "com.magicianguo.xposedchangeview"
15 | minSdk MIN_SDK.toInteger()
16 | targetSdk TARGET_SDK.toInteger()
17 | versionCode VERSION_CODE.toInteger()
18 | versionName VERSION_NAME
19 |
20 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
21 | }
22 | compileOptions {
23 | sourceCompatibility JavaVersion.VERSION_1_8
24 | targetCompatibility JavaVersion.VERSION_1_8
25 | }
26 | kotlinOptions {
27 | jvmTarget = '1.8'
28 | }
29 | }
30 |
31 | dependencies {
32 |
33 | // implementation libs.androidx.core.ktx
34 | // implementation libs.androidx.appcompat
35 | // implementation libs.material
36 | // testImplementation libs.junit
37 | // androidTestImplementation libs.androidx.junit
38 | // androidTestImplementation libs.androidx.espresso.core
39 |
40 | compileOnly 'de.robv.android.xposed:api:82'
41 | // 这个注释掉,否则代码提示会消失!
42 | // compileOnly 'de.robv.android.xposed:api:82:sources'
43 | }
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | alias(libs.plugins.androidApplication)
3 | alias(libs.plugins.jetbrainsKotlinAndroid)
4 | }
5 |
6 | apply from: "../testks-sign.gradle"
7 | apply from: "../copy-apk.gradle"
8 |
9 | android {
10 | namespace 'com.magicianguo.xposedlogwebviewurl'
11 | compileSdk COMPILE_SDK.toInteger()
12 |
13 | defaultConfig {
14 | applicationId "com.magicianguo.xposedlogwebviewurl"
15 | minSdk MIN_SDK.toInteger()
16 | targetSdk TARGET_SDK.toInteger()
17 | versionCode VERSION_CODE.toInteger()
18 | versionName VERSION_NAME
19 |
20 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
21 | }
22 | compileOptions {
23 | sourceCompatibility JavaVersion.VERSION_1_8
24 | targetCompatibility JavaVersion.VERSION_1_8
25 | }
26 | kotlinOptions {
27 | jvmTarget = '1.8'
28 | }
29 | }
30 |
31 | dependencies {
32 |
33 | // implementation libs.androidx.core.ktx
34 | // implementation libs.androidx.appcompat
35 | // implementation libs.material
36 | // testImplementation libs.junit
37 | // androidTestImplementation libs.androidx.junit
38 | // androidTestImplementation libs.androidx.espresso.core
39 |
40 | compileOnly 'de.robv.android.xposed:api:82'
41 | // 这个注释掉,否则代码提示会消失!
42 | // compileOnly 'de.robv.android.xposed:api:82:sources'
43 | }
--------------------------------------------------------------------------------
/XposedAllowScreenshot/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | alias(libs.plugins.androidApplication)
3 | alias(libs.plugins.jetbrainsKotlinAndroid)
4 | }
5 |
6 | apply from: "../testks-sign.gradle"
7 | apply from: "../copy-apk.gradle"
8 |
9 | android {
10 | namespace 'com.magicianguo.xposedallowscreenshot'
11 | compileSdk COMPILE_SDK.toInteger()
12 |
13 | defaultConfig {
14 | applicationId "com.magicianguo.xposedallowscreenshot"
15 | minSdk MIN_SDK.toInteger()
16 | targetSdk TARGET_SDK.toInteger()
17 | versionCode VERSION_CODE.toInteger()
18 | versionName VERSION_NAME
19 |
20 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
21 | }
22 | compileOptions {
23 | sourceCompatibility JavaVersion.VERSION_1_8
24 | targetCompatibility JavaVersion.VERSION_1_8
25 | }
26 | kotlinOptions {
27 | jvmTarget = '1.8'
28 | }
29 | }
30 |
31 | dependencies {
32 |
33 | // implementation libs.androidx.core.ktx
34 | // implementation libs.androidx.appcompat
35 | // implementation libs.material
36 | // testImplementation libs.junit
37 | // androidTestImplementation libs.androidx.junit
38 | // androidTestImplementation libs.androidx.espresso.core
39 |
40 | compileOnly 'de.robv.android.xposed:api:82'
41 | // 这个注释掉,否则代码提示会消失!
42 | // compileOnly 'de.robv.android.xposed:api:82:sources'
43 | }
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/java/com/magicianguo/xposedjumpappinterceptor/ResourceUtil.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedjumpappinterceptor;
2 |
3 | import android.content.Context;
4 | import android.content.res.AssetManager;
5 | import android.content.res.Resources;
6 |
7 | import java.lang.reflect.InvocationTargetException;
8 | import java.lang.reflect.Method;
9 |
10 | import de.robv.android.xposed.IXposedHookZygoteInit;
11 |
12 | public class ResourceUtil {
13 | private static String modulePath;
14 |
15 | public static void initZygote(IXposedHookZygoteInit.StartupParam startupParam) {
16 | modulePath = startupParam.modulePath;
17 | }
18 |
19 | public static void addModuleAssetPath(Context context) {
20 | addModuleAssetPath(context.getResources());
21 | }
22 |
23 | private static void addModuleAssetPath(Resources resources) {
24 | try {
25 | AssetManager assets = resources.getAssets();
26 | Method addAssetPathMethod = AssetManager.class.getDeclaredMethod("addAssetPath", String.class);
27 | addAssetPathMethod.setAccessible(true);
28 | addAssetPathMethod.invoke(assets, modulePath);
29 | } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
30 | LogUtil.writeLog("addModuleAssetPath: error! e = "+e.getMessage());
31 | e.printStackTrace();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. For more details, visit
12 | # https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Kotlin code style for this project: "official" or "obsolete":
19 | kotlin.code.style=official
20 | # Enables namespacing of each library's R class so that its R class includes only the
21 | # resources declared in the library itself and none from the library's dependencies,
22 | # thereby reducing the size of the R class for that library
23 | android.nonTransitiveRClass=true
24 |
25 | COMPILE_SDK=35
26 | TARGET_SDK=35
27 | MIN_SDK=24
28 | VERSION_CODE=1
29 | VERSION_NAME=1.3.1
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/java/com/magicianguo/xposedallowscreenshot/HookAllowScreenshot.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedallowscreenshot;
2 |
3 | import android.view.SurfaceView;
4 | import android.view.Window;
5 | import android.view.WindowManager;
6 |
7 | import de.robv.android.xposed.IXposedHookLoadPackage;
8 | import de.robv.android.xposed.XC_MethodHook;
9 | import de.robv.android.xposed.XposedHelpers;
10 | import de.robv.android.xposed.callbacks.XC_LoadPackage;
11 |
12 | public class HookAllowScreenshot implements IXposedHookLoadPackage {
13 | private final XC_MethodHook mHookDeleteWindowFlagSecure = new XC_MethodHook() {
14 | @Override
15 | protected void beforeHookedMethod(MethodHookParam param) {
16 | Integer flags = (Integer) param.args[0];
17 | // 只把FLAG_SECURE移除,其他不受影响
18 | param.args[0] = flags & (~WindowManager.LayoutParams.FLAG_SECURE);
19 | }
20 | };
21 |
22 | private final XC_MethodHook mHookDeleteSurfaceSecure = new XC_MethodHook() {
23 | @Override
24 | protected void beforeHookedMethod(MethodHookParam param) {
25 | param.args[0] = false;
26 | }
27 | };
28 |
29 | @Override
30 | public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) {
31 | XposedHelpers.findAndHookMethod(Window.class, "setFlags", Integer.TYPE, Integer.TYPE, mHookDeleteWindowFlagSecure);
32 | XposedHelpers.findAndHookMethod(SurfaceView.class, "setSecure", Boolean.TYPE, mHookDeleteSurfaceSecure);
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/java/com/magicianguo/xposedlogwebviewurl/HookLogWebViewUrl.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedlogwebviewurl;
2 |
3 | import android.app.Application;
4 | import android.webkit.WebView;
5 |
6 | import java.io.File;
7 | import java.io.FileWriter;
8 | import java.util.Date;
9 |
10 | import de.robv.android.xposed.IXposedHookLoadPackage;
11 | import de.robv.android.xposed.XC_MethodHook;
12 | import de.robv.android.xposed.XposedHelpers;
13 | import de.robv.android.xposed.callbacks.XC_LoadPackage;
14 |
15 | public class HookLogWebViewUrl implements IXposedHookLoadPackage {
16 | public Application application;
17 | private final XC_MethodHook mHookWebViewLoadUrl = new XC_MethodHook() {
18 | @Override
19 | protected void afterHookedMethod(MethodHookParam param) throws Throwable {
20 | String url = (String) param.args[0];
21 | String logPath = application.getExternalFilesDir(null).getParent();
22 | File logFile = new File(logPath, "url_list.txt");
23 | if (!logFile.exists()) {
24 | logFile.createNewFile();
25 | }
26 | FileWriter fw = new FileWriter(logFile, true);
27 | fw.write(new Date() + " - url: " + url + "\n");
28 | fw.close();
29 | }
30 | };
31 |
32 | @Override
33 | public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) {
34 | XposedHelpers.findAndHookMethod(Application.class, "onCreate", new XC_MethodHook() {
35 | @Override
36 | protected void afterHookedMethod(MethodHookParam param) {
37 | // 此时应用已创建
38 | application = (Application) param.thisObject;
39 | XposedHelpers.findAndHookMethod(WebView.class, "loadUrl", String.class, mHookWebViewLoadUrl);
40 | }
41 | });
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/XposedTestApp/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | alias(libs.plugins.androidApplication)
3 | alias(libs.plugins.jetbrainsKotlinAndroid)
4 | }
5 |
6 | apply from: "../copy-apk.gradle"
7 |
8 | android {
9 | namespace 'com.magicianguo.xposedtestapp'
10 | compileSdk COMPILE_SDK.toInteger()
11 |
12 | defaultConfig {
13 | applicationId "com.magicianguo.xposedtestapp"
14 | minSdk MIN_SDK.toInteger()
15 | targetSdk TARGET_SDK.toInteger()
16 | versionCode VERSION_CODE.toInteger()
17 | versionName VERSION_NAME
18 |
19 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20 | }
21 | signingConfigs {
22 | sign {
23 | storeFile file(rootDir.path + "/testks.jks")
24 | storePassword "testks"
25 | keyAlias "testks"
26 | keyPassword "testks"
27 | }
28 | }
29 | buildTypes {
30 | debug {
31 | signingConfig signingConfigs.sign
32 | }
33 | release {
34 | minifyEnabled true
35 | shrinkResources true
36 | signingConfig signingConfigs.sign
37 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
38 | }
39 | }
40 | compileOptions {
41 | sourceCompatibility JavaVersion.VERSION_1_8
42 | targetCompatibility JavaVersion.VERSION_1_8
43 | }
44 | kotlinOptions {
45 | jvmTarget = '1.8'
46 | }
47 | }
48 |
49 | dependencies {
50 |
51 | // implementation libs.androidx.core.ktx
52 | // implementation libs.androidx.appcompat
53 | implementation libs.material
54 | // implementation libs.androidx.activity
55 | // implementation libs.androidx.constraintlayout
56 | // testImplementation libs.junit
57 | // androidTestImplementation libs.androidx.junit
58 | // androidTestImplementation libs.androidx.espresso.core
59 | }
--------------------------------------------------------------------------------
/XposedTestApp/src/main/java/com/magicianguo/xposedtestapp/MySurfaceView.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedtestapp;
2 |
3 | import android.content.Context;
4 | import android.graphics.Canvas;
5 | import android.graphics.Color;
6 | import android.graphics.Paint;
7 | import android.graphics.Path;
8 | import android.graphics.Rect;
9 | import android.util.AttributeSet;
10 | import android.view.SurfaceHolder;
11 | import android.view.SurfaceView;
12 |
13 | import androidx.annotation.NonNull;
14 |
15 | public class MySurfaceView extends SurfaceView implements SurfaceHolder.Callback {
16 | private final Paint mPaintBg = new Paint();
17 | private final Paint mPaintLine = new Paint();
18 | private final Path mPath = new Path();
19 |
20 | public MySurfaceView(Context context) {
21 | super(context);
22 | init();
23 | }
24 |
25 | public MySurfaceView(Context context, AttributeSet attrs) {
26 | super(context, attrs);
27 | init();
28 | }
29 |
30 | public MySurfaceView(Context context, AttributeSet attrs, int defStyleAttr) {
31 | super(context, attrs, defStyleAttr);
32 | init();
33 | }
34 |
35 | private void init() {
36 | mPaintBg.setColor(Color.rgb(0x33, 0x88, 0xFF));
37 | mPaintBg.setStyle(Paint.Style.FILL);
38 | mPaintLine.setColor(Color.WHITE);
39 | mPaintLine.setStyle(Paint.Style.STROKE);
40 | mPaintLine.setStrokeWidth(getResources().getDimension(R.dimen.sv_line_width));
41 | getHolder().addCallback(this);
42 | // 禁止截屏
43 | setSecure(true);
44 | }
45 |
46 | @Override
47 | public void surfaceCreated(@NonNull SurfaceHolder holder) {
48 |
49 | }
50 |
51 | @Override
52 | public void surfaceChanged(@NonNull SurfaceHolder holder, int format, int width, int height) {
53 | Canvas canvas = holder.lockCanvas();
54 | // 绘制整个背景
55 | canvas.drawRect(new Rect(0, 0, width, height), mPaintBg);
56 | // 绘制“Z”
57 | mPath.reset();
58 | mPath.moveTo(width * 0.25F, width * 0.25F);
59 | mPath.lineTo(width * 0.75F, width * 0.25F);
60 | mPath.lineTo(width * 0.25F, width * 0.75F);
61 | mPath.lineTo(width * 0.75F, width * 0.75F);
62 | canvas.drawPath(mPath, mPaintLine);
63 | holder.unlockCanvasAndPost(canvas);
64 | }
65 |
66 | @Override
67 | public void surfaceDestroyed(@NonNull SurfaceHolder holder) {
68 |
69 | }
70 | }
--------------------------------------------------------------------------------
/XposedChangeView/src/main/java/com/magicianguo/xposedchangeview/HookChangeView.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedchangeview;
2 |
3 | import android.app.Activity;
4 | import android.os.Bundle;
5 | import android.os.Handler;
6 | import android.os.Looper;
7 | import android.text.TextUtils;
8 | import android.view.SurfaceView;
9 | import android.view.View;
10 | import android.widget.LinearLayout;
11 | import android.widget.TextView;
12 | import android.widget.Toast;
13 |
14 | import de.robv.android.xposed.IXposedHookLoadPackage;
15 | import de.robv.android.xposed.XC_MethodHook;
16 | import de.robv.android.xposed.XposedHelpers;
17 | import de.robv.android.xposed.callbacks.XC_LoadPackage;
18 |
19 | public class HookChangeView implements IXposedHookLoadPackage {
20 | @Override
21 | public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) {
22 | if (TextUtils.equals(lpparam.packageName, "com.magicianguo.xposedtestapp")) {
23 | Class> clsMainActivity = XposedHelpers.findClass("com.magicianguo.xposedtestapp.MainActivity", lpparam.classLoader);
24 | XposedHelpers.findAndHookMethod(clsMainActivity, "onCreate", Bundle.class, new XC_MethodHook() {
25 | @Override
26 | protected void afterHookedMethod(MethodHookParam param) {
27 | Activity activity = (Activity) param.thisObject;
28 | Toast.makeText(activity, "APP已被Xposed修改!", Toast.LENGTH_SHORT).show();
29 | TextView mTvTitle = (TextView) XposedHelpers.getObjectField(activity, "mTvTitle");
30 | mTvTitle.setText("你好,Xposed框架");
31 | // 找到mTvTitle的父布局
32 | LinearLayout parent = (LinearLayout) mTvTitle.getParent();
33 | SurfaceView surfaceView = null;
34 | for (int i = 0; i < parent.getChildCount(); i++) {
35 | View v = parent.getChildAt(i);
36 | if (v instanceof SurfaceView) {
37 | surfaceView = (SurfaceView) v;
38 | break;
39 | }
40 | }
41 | Class> clsWebViewActivity = XposedHelpers.findClass("com.magicianguo.xposedtestapp.WebViewActivity", lpparam.classLoader);
42 | parent.addView(ViewTools.createView(activity, surfaceView, clsWebViewActivity), 0);
43 | }
44 | });
45 | } else if (lpparam.packageName.contains(".android.webview")) {
46 | // ignore
47 | } else {
48 | new Handler(Looper.getMainLooper()).postDelayed(() -> System.exit(-1), 100L);
49 | throw new RuntimeException("请不要将此插件集成在包名“com.magicianguo.xposedtestapp”以外的应用!packageName: "+lpparam.packageName);
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/java/com/magicianguo/xposedshizukucleaner/ShizukuHook.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedshizukucleaner;
2 |
3 | import android.app.Activity;
4 | import android.content.Context;
5 | import android.content.Intent;
6 | import android.os.Handler;
7 | import android.os.HandlerThread;
8 | import android.util.Log;
9 |
10 | import java.io.OutputStream;
11 |
12 | import de.robv.android.xposed.XC_MethodHook;
13 | import de.robv.android.xposed.XposedHelpers;
14 | import de.robv.android.xposed.callbacks.XC_LoadPackage;
15 |
16 | public class ShizukuHook {
17 | private static final String TAG = "ShizukuHook";
18 | private static final Long CLEAN_DELAY_TIME = 5 * 1000L;
19 | private static final HandlerThread mHandlerThread = new HandlerThread("XPosedShizuku");
20 | private static Handler mHandler;
21 | private static final Runnable mActivityCleanRunnable = ShizukuHook::doClean;
22 | private static final Runnable mAppCleanRunnable = ShizukuHook::doClean;
23 |
24 | public static void init(XC_LoadPackage.LoadPackageParam lpparam) {
25 | mHandlerThread.start();
26 | mHandler = new Handler(mHandlerThread.getLooper());
27 |
28 | Class> clsMainActivity = XposedHelpers.findClass("moe.shizuku.manager.MainActivity", lpparam.classLoader);
29 | XposedHelpers.findAndHookMethod(Activity.class, "onResume", new XC_MethodHook() {
30 | @Override
31 | protected void afterHookedMethod(MethodHookParam param) {
32 | Object object = param.thisObject;
33 | if (object.getClass() == clsMainActivity) {
34 | mHandler.removeCallbacks(mActivityCleanRunnable);
35 | mHandler.postDelayed(mActivityCleanRunnable, CLEAN_DELAY_TIME);
36 | }
37 | }
38 | });
39 |
40 | Class> clsReceiver = XposedHelpers.findClass("moe.shizuku.manager.receiver.BootCompleteReceiver", lpparam.classLoader);
41 | XposedHelpers.findAndHookMethod(clsReceiver, "onReceive", Context.class, Intent.class, new XC_MethodHook() {
42 | @Override
43 | protected void afterHookedMethod(MethodHookParam param) {
44 | mHandler.removeCallbacks(mAppCleanRunnable);
45 | mHandler.postDelayed(mAppCleanRunnable, CLEAN_DELAY_TIME);
46 | }
47 | });
48 | }
49 |
50 | private static void doClean() {
51 | try {
52 | Log.d(TAG, "tryClean: start");
53 | Process process = Runtime.getRuntime().exec("su");
54 | OutputStream os = process.getOutputStream();
55 | os.write(("rm -rf /data/local/tmp/shizuku/\nrm -rf /data/local/tmp/shizuku_starter\n").getBytes());
56 | os.flush();
57 | os.close();
58 | Log.d(TAG, "tryClean: end");
59 | } catch (Exception e) {
60 | Log.e(TAG, "tryClean: error!");
61 | e.printStackTrace();
62 | }
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/XposedChangeView/src/main/java/com/magicianguo/xposedchangeview/ViewTools.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedchangeview;
2 |
3 | import android.app.Activity;
4 | import android.content.Intent;
5 | import android.graphics.Canvas;
6 | import android.graphics.Color;
7 | import android.graphics.Paint;
8 | import android.graphics.Path;
9 | import android.graphics.Rect;
10 | import android.provider.Settings;
11 | import android.view.SurfaceHolder;
12 | import android.view.SurfaceView;
13 | import android.view.View;
14 | import android.view.ViewGroup;
15 | import android.widget.Button;
16 | import android.widget.LinearLayout;
17 |
18 | import org.jetbrains.annotations.Nullable;
19 |
20 | public class ViewTools {
21 | public static View createView(Activity activity, @Nullable SurfaceView surfaceView, Class> clsWebViewActivity) {
22 | // 获取dpi,便于使用dp为单位的尺寸
23 | int dpi = activity.getResources().getConfiguration().densityDpi;
24 |
25 | LinearLayout linearLayout = new LinearLayout(activity);
26 | LinearLayout.LayoutParams linearlayoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
27 | linearlayoutParams.bottomMargin = 20 * dpi / 160;
28 | linearLayout.setLayoutParams(linearlayoutParams);
29 | linearLayout.setOrientation(LinearLayout.VERTICAL);
30 | // 使用dp为单位
31 | int padding = 10 * dpi / 160;
32 | linearLayout.setPadding(padding, padding, padding, padding);
33 | linearLayout.setBackgroundColor(Color.rgb(0xEB, 0xA8, 0xFF));
34 |
35 | Button btn1 = new Button(activity);
36 | btn1.setText("打开设置页");
37 | btn1.setOnClickListener(v -> {
38 | Intent intent = new Intent(Settings.ACTION_SETTINGS);
39 | activity.startActivity(intent);
40 | });
41 | linearLayout.addView(btn1);
42 |
43 | Button btn2 = new Button(activity);
44 | btn2.setText("重新绘制SurfaceView");
45 | btn2.setAllCaps(false);
46 | btn2.setOnClickListener(v -> {
47 | if (surfaceView != null) {
48 | int width = surfaceView.getMeasuredWidth();
49 | int height = surfaceView.getMeasuredHeight();
50 | SurfaceHolder holder = surfaceView.getHolder();
51 | Canvas canvas = holder.lockCanvas();
52 | Paint paintBg = new Paint();
53 | paintBg.setColor(Color.rgb(0x1D, 0xED, 0x99));
54 | paintBg.setStyle(Paint.Style.FILL);
55 | canvas.drawRect(new Rect(0, 0, width, height), paintBg);
56 |
57 | // 绘制“A”
58 | Path path = new Path();
59 | path.moveTo(width * 0.5F, height * 0.2F);
60 | path.lineTo(width * 0.3F, height * 0.8F);
61 | path.moveTo(width * 0.5F, height * 0.2F);
62 | path.lineTo(width * 0.7F, height * 0.8F);
63 | path.moveTo(width * 0.4F, height * 0.5F);
64 | path.lineTo(width * 0.6F, height * 0.5F);
65 | Paint paintLine = new Paint();
66 | paintLine.setColor(Color.WHITE);
67 | paintLine.setStyle(Paint.Style.STROKE);
68 | paintLine.setStrokeWidth((5 * dpi) / 160F);
69 | canvas.drawPath(path, paintLine);
70 | holder.unlockCanvasAndPost(canvas);
71 | }
72 | });
73 | linearLayout.addView(btn2);
74 |
75 | Button btn3 = new Button(activity);
76 | btn3.setText("打开WebViewActivity");
77 | btn3.setAllCaps(false);
78 | btn3.setOnClickListener(v -> {
79 | Intent intent = new Intent(activity, clsWebViewActivity);
80 | activity.startActivity(intent);
81 | });
82 | linearLayout.addView(btn3);
83 |
84 | return linearLayout;
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/XposedChangeView/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/XposedRequestSU/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/XposedTestApp/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/XposedAllowScreenshot/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/XposedLogWebViewUrl/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/XposedShizukuCleaner/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Copyright 2015 the original author or authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | ##
21 | ## Gradle start up script for UN*X
22 | ##
23 | ##############################################################################
24 |
25 | # Attempt to set APP_HOME
26 | # Resolve links: $0 may be a link
27 | PRG="$0"
28 | # Need this for relative symlinks.
29 | while [ -h "$PRG" ] ; do
30 | ls=`ls -ld "$PRG"`
31 | link=`expr "$ls" : '.*-> \(.*\)$'`
32 | if expr "$link" : '/.*' > /dev/null; then
33 | PRG="$link"
34 | else
35 | PRG=`dirname "$PRG"`"/$link"
36 | fi
37 | done
38 | SAVED="`pwd`"
39 | cd "`dirname \"$PRG\"`/" >/dev/null
40 | APP_HOME="`pwd -P`"
41 | cd "$SAVED" >/dev/null
42 |
43 | APP_NAME="Gradle"
44 | APP_BASE_NAME=`basename "$0"`
45 |
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48 |
49 | # Use the maximum available, or set MAX_FD != -1 to use that value.
50 | MAX_FD="maximum"
51 |
52 | warn () {
53 | echo "$*"
54 | }
55 |
56 | die () {
57 | echo
58 | echo "$*"
59 | echo
60 | exit 1
61 | }
62 |
63 | # OS specific support (must be 'true' or 'false').
64 | cygwin=false
65 | msys=false
66 | darwin=false
67 | nonstop=false
68 | case "`uname`" in
69 | CYGWIN* )
70 | cygwin=true
71 | ;;
72 | Darwin* )
73 | darwin=true
74 | ;;
75 | MINGW* )
76 | msys=true
77 | ;;
78 | NONSTOP* )
79 | nonstop=true
80 | ;;
81 | esac
82 |
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84 |
85 |
86 | # Determine the Java command to use to start the JVM.
87 | if [ -n "$JAVA_HOME" ] ; then
88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89 | # IBM's JDK on AIX uses strange locations for the executables
90 | JAVACMD="$JAVA_HOME/jre/sh/java"
91 | else
92 | JAVACMD="$JAVA_HOME/bin/java"
93 | fi
94 | if [ ! -x "$JAVACMD" ] ; then
95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96 |
97 | Please set the JAVA_HOME variable in your environment to match the
98 | location of your Java installation."
99 | fi
100 | else
101 | JAVACMD="java"
102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103 |
104 | Please set the JAVA_HOME variable in your environment to match the
105 | location of your Java installation."
106 | fi
107 |
108 | # Increase the maximum file descriptors if we can.
109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110 | MAX_FD_LIMIT=`ulimit -H -n`
111 | if [ $? -eq 0 ] ; then
112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113 | MAX_FD="$MAX_FD_LIMIT"
114 | fi
115 | ulimit -n $MAX_FD
116 | if [ $? -ne 0 ] ; then
117 | warn "Could not set maximum file descriptor limit: $MAX_FD"
118 | fi
119 | else
120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121 | fi
122 | fi
123 |
124 | # For Darwin, add options to specify how the application appears in the dock
125 | if $darwin; then
126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127 | fi
128 |
129 | # For Cygwin or MSYS, switch paths to Windows format before running java
130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133 |
134 | JAVACMD=`cygpath --unix "$JAVACMD"`
135 |
136 | # We build the pattern for arguments to be converted via cygpath
137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138 | SEP=""
139 | for dir in $ROOTDIRSRAW ; do
140 | ROOTDIRS="$ROOTDIRS$SEP$dir"
141 | SEP="|"
142 | done
143 | OURCYGPATTERN="(^($ROOTDIRS))"
144 | # Add a user-defined pattern to the cygpath arguments
145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147 | fi
148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
149 | i=0
150 | for arg in "$@" ; do
151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153 |
154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156 | else
157 | eval `echo args$i`="\"$arg\""
158 | fi
159 | i=`expr $i + 1`
160 | done
161 | case $i in
162 | 0) set -- ;;
163 | 1) set -- "$args0" ;;
164 | 2) set -- "$args0" "$args1" ;;
165 | 3) set -- "$args0" "$args1" "$args2" ;;
166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172 | esac
173 | fi
174 |
175 | # Escape application args
176 | save () {
177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178 | echo " "
179 | }
180 | APP_ARGS=`save "$@"`
181 |
182 | # Collect all arguments for the java command, following the shell quoting and substitution rules
183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184 |
185 | exec "$JAVACMD" "$@"
186 |
--------------------------------------------------------------------------------
/XposedJumpAppInterceptor/src/main/java/com/magicianguo/xposedjumpappinterceptor/HookEntry.java:
--------------------------------------------------------------------------------
1 | package com.magicianguo.xposedjumpappinterceptor;
2 |
3 | import android.app.Activity;
4 | import android.app.AlertDialog;
5 | import android.app.Application;
6 | import android.content.ComponentName;
7 | import android.content.Context;
8 | import android.content.Intent;
9 | import android.content.pm.PackageManager;
10 | import android.os.Bundle;
11 | import android.text.TextUtils;
12 |
13 | import java.lang.reflect.InvocationTargetException;
14 |
15 | import de.robv.android.xposed.IXposedHookLoadPackage;
16 | import de.robv.android.xposed.IXposedHookZygoteInit;
17 | import de.robv.android.xposed.XC_MethodHook;
18 | import de.robv.android.xposed.XC_MethodReplacement;
19 | import de.robv.android.xposed.XposedBridge;
20 | import de.robv.android.xposed.XposedHelpers;
21 | import de.robv.android.xposed.callbacks.XC_LoadPackage;
22 |
23 | public class HookEntry implements IXposedHookLoadPackage, IXposedHookZygoteInit {
24 | private AlertDialog mDialog = null;
25 | private Activity mLastResumedActivity = null;
26 | private Intent mIntent = null;
27 | private String mPkgName = "";
28 | private String mTargetPkgName = "";
29 | private String mLabel = "";
30 | private String mTargetLabel = "";
31 | private Application.ActivityLifecycleCallbacks mActivityCallbacks = new Application.ActivityLifecycleCallbacks() {
32 | @Override
33 | public void onActivityCreated(Activity activity, Bundle savedInstanceState) {
34 | }
35 |
36 | @Override
37 | public void onActivityStarted(Activity activity) {
38 | }
39 |
40 | @Override
41 | public void onActivityResumed(Activity activity) {
42 | mLastResumedActivity = activity;
43 | }
44 |
45 | @Override
46 | public void onActivityPaused(Activity activity) {
47 | }
48 |
49 | @Override
50 | public void onActivityStopped(Activity activity) {
51 | }
52 |
53 | @Override
54 | public void onActivitySaveInstanceState(Activity activity, Bundle outState) {
55 | }
56 |
57 | @Override
58 | public void onActivityDestroyed(Activity activity) {
59 | }
60 | };
61 |
62 | @Override
63 | public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) {
64 |
65 | XposedHelpers.findAndHookMethod(Application.class, "onCreate", new XC_MethodHook() {
66 | @Override
67 | protected void afterHookedMethod(MethodHookParam param) {
68 | Application application = (Application) param.thisObject;
69 | LogUtil.init(application);
70 | application.registerActivityLifecycleCallbacks(mActivityCallbacks);
71 | }
72 | });
73 |
74 | Class> clsContextImpl = XposedHelpers.findClass("android.app.ContextImpl", lpparam.classLoader);
75 | XposedHelpers.findAndHookMethod(clsContextImpl, "startActivity", Intent.class, Bundle.class,
76 | new XC_MethodReplacement() {
77 | @Override
78 | protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {
79 | LogUtil.writeLog("load method: ContextImpl - startActivity");
80 | resolveIntent(param);
81 | return null;
82 | }
83 | });
84 |
85 | XposedHelpers.findAndHookMethod(Activity.class, "startActivityForResult", Intent.class, int.class, Bundle.class,
86 | new XC_MethodReplacement() {
87 | @Override
88 | protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {
89 | LogUtil.writeLog("load method: Activity - startActivityForResult");
90 | resolveIntent(param);
91 | return null;
92 | }
93 | });
94 | }
95 |
96 | @Override
97 | public void initZygote(StartupParam startupParam) {
98 | ResourceUtil.initZygote(startupParam);
99 | }
100 |
101 | private void resolveIntent(XC_MethodHook.MethodHookParam param) throws PackageManager.NameNotFoundException {
102 | Context context = (Context) param.thisObject;
103 | mIntent = (Intent) param.args[0];
104 | boolean isActivity = context instanceof Activity;
105 | LogUtil.writeLog("context = " + context + " , isActivity? " + isActivity + " , intent = " + mIntent);
106 |
107 | ComponentName component = mIntent.getComponent();
108 | mPkgName = context.getPackageName();
109 | if (component != null) {
110 | mTargetPkgName = component.getPackageName();
111 | } else {
112 | mTargetPkgName = mIntent.getPackage();
113 | }
114 | LogUtil.writeLog("pkgName = " + mPkgName + " , targetPkgName = " + mTargetPkgName);
115 | if (!TextUtils.equals(mPkgName, mTargetPkgName)) {
116 | PackageManager pm = context.getPackageManager();
117 | mLabel = pm.getApplicationLabel(pm.getApplicationInfo(mPkgName, 0)).toString();
118 | if (mTargetPkgName != null) {
119 | mTargetLabel = pm.getApplicationLabel(pm.getApplicationInfo(mTargetPkgName, 0)).toString();
120 | }
121 | if (isActivity) {
122 | showDialog(context, (Activity) context, param);
123 | } else {
124 | showDialog(context, mLastResumedActivity, param);
125 | }
126 | } else {
127 | invokeOriginalMethod(param, context);
128 | }
129 | }
130 |
131 | private synchronized void showDialog(Object object, Activity activity, XC_MethodHook.MethodHookParam param) {
132 | if (mDialog != null && mDialog.isShowing()) {
133 | mDialog.dismiss();
134 | }
135 | String msg;
136 | if (mTargetLabel != null && !mTargetLabel.isEmpty()) {
137 | msg = String.format("“%s”想要跳转到“%s”,是否允许?", mLabel, mTargetLabel);
138 | } else {
139 | msg = String.format("“%s”想要跳转到其他应用,是否允许?\n" + mIntent, mLabel);
140 | }
141 | mTargetLabel = "";
142 | LogUtil.writeLog("showDialog: msg = " + msg);
143 | ResourceUtil.addModuleAssetPath(activity);
144 | mDialog = new AlertDialog.Builder(activity, R.style.CommonDialog)
145 | .setMessage(msg)
146 | .setPositiveButton("允许", (dialog, which) -> invokeOriginalMethod(param, object))
147 | .setNegativeButton("禁止", (dialog, which) -> mockActivityLifecycle(activity))
148 | .setOnCancelListener(dialog -> mockActivityLifecycle(activity))
149 | .create();
150 | mDialog.show();
151 | }
152 |
153 | private void mockActivityLifecycle(Activity activity) {
154 | ReflectUtil.callMethod(Activity.class, activity, "onPause");
155 | ReflectUtil.callMethod(Activity.class, activity, "onStop");
156 | ReflectUtil.callMethod(Activity.class, activity, "onStart");
157 | ReflectUtil.callMethod(Activity.class, activity, "onResume");
158 | }
159 |
160 | private void invokeOriginalMethod(XC_MethodHook.MethodHookParam param, Object obj) {
161 | try {
162 | XposedBridge.invokeOriginalMethod(param.method, obj, param.args);
163 | } catch (IllegalAccessException | InvocationTargetException e) {
164 | e.printStackTrace();
165 | LogUtil.writeLog("invokeOriginalMethod: error! e = " + e.getMessage());
166 | }
167 | }
168 |
169 | }
170 |
--------------------------------------------------------------------------------