Skip to content

Commit 3eac84e

Browse files
committed
Changed: 替换自己做的App Logo, 修改依赖注入SlideLayout的逻辑
1 parent 74c4471 commit 3eac84e

File tree

8 files changed

+11
-28
lines changed

8 files changed

+11
-28
lines changed

.travis.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,24 @@ language: android
22
jdk: openjdk7
33
android:
44
components:
5-
- build-tools-22.0.1
6-
- android-23
7-
- extra-android-m2repository
8-
- extra-android-support
5+
- build-tools-22.0.1
6+
- android-23
7+
- extra-android-m2repository
8+
- extra-android-support
99
git:
1010
submodules: false
1111
before_install:
12-
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
13-
- git submodule init && git submodule update
12+
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
13+
- git submodule init && git submodule update
1414
script:
15-
- ./gradlew assembleRelease
15+
- ./gradlew assembleRelease
16+
before_deploy:
17+
- mv app/build/outputs/apk/app-release.apk app/build/outputs/apk/slideback.apk
1618
deploy:
1719
provider: releases
1820
api_key:
1921
secure: Upv5wE4iGDYICtouho0fUrU/4L8dPohjH8AAfwhoK5puvrr3o7rJBS3eeQwt4+/IZJBzIaF5AW3LcLowKnqJUpiGXBvse02ZUk1yeG2gO3Ypjq3xUtbRn+NsvqlXYdBj0EgG4B7Pv8t3cYakca7Rhvfd0FdWvlfoSll/NnqVm3aqJ/EP5RuvSo3M3kxO8D6qx13MLAEQCHIMYPxCt6sO2iUVKUV2p9nfwRGRq9cUN8P4lFZsWgVhr366B7g9Vhi2sYQjovmKxuJamE1dzwEmmFoO4VQOHgExW3hCJ5Nu2iQ7QQn7fKwa9lpKBqmASz0oXoNHKUDXdXxy/VD8YqjG6aK+4U8ynvFGzVqCeVM34VCWdEyPDG2hGVtJRfP7wcWtOiolBkZ02fzybqH7xPCUdYjD0b73oPSy7MSycfjm4ql3T905uXu9i0SdlUan2TEm4m2oU7MaZ42pPZS9MMbSfuCqOGPYUSUEkMyN5e6LCIbvObSCDv9pAeItk4rCP9NjgVgKo+cp7zm8Y+IdLeZwLLlMYbYRQfMBvLkNg4XQc/ubK17DF63vEgRiOyeQ3ESu/INIAbYeMECbHCVXSWilDQb06pPIPcfwfIq4jO7uNxUugWEP/pWrW7BoV6DmiAKleF0E5T6aj3BLt+iRWxaFN0ZzdZjjIGra1rjE8kAgf0E=
20-
file: app/build/outputs/apk/app-release.apk
22+
file: app/build/outputs/apk/slideback.apk
2123
skip_cleanup: true
2224
on:
2325
tags: true

app/src/main/java/com/kesco/xposed/slideback/injection/SlideBackInjection.java

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ public class SlideBackInjection implements IXposedHookZygoteInit, IXposedHookLoa
3838
private static final String FILTER_PREFIX_ANDROID = "android";
3939
private static final String FILTER_PREFIX_COM_ANDROID = "com.android";
4040

41-
private static final String STR_ACTIVITY = "android.app.Activity";
42-
private static final String STR_APPCOMPAT = "android.support.v7.app.AppCompatActivity";
43-
4441
private static String modPath;
4542

4643
private XSharedPreferences pref = null;
@@ -59,14 +56,6 @@ public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Th
5956
return;
6057
}
6158

62-
Class actClazz;
63-
try {
64-
actClazz = XposedHelpers.findClass(STR_APPCOMPAT, lpparam.classLoader);
65-
} catch (XposedHelpers.ClassNotFoundError e) {
66-
actClazz = null;
67-
}
68-
String actName = actClazz == null ? STR_ACTIVITY : STR_APPCOMPAT;
69-
7059
AppInfo app = loadAppInfo(lpparam.packageName);
7160
Set<String> activities = app.getAvaliableSlideActivities();
7261
XC_MethodHook onCreateHookCallBack = new XC_MethodHook() {
@@ -80,15 +69,7 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
8069
XposedHelpers.findAndHookMethod(act, lpparam.classLoader, "onCreate", Bundle.class, onCreateHookCallBack);
8170
}
8271

83-
84-
85-
// XposedHelpers.findAndHookMethod(actName, lpparam.classLoader, "setContentView", "int", new XC_MethodHook() {
86-
// @Override
87-
// protected void afterHookedMethod(MethodHookParam param) throws Throwable {
88-
// attachSlideLayout((Activity) param.thisObject);
89-
// }
90-
// });
91-
XposedHelpers.findAndHookMethod(actName, lpparam.classLoader, "onPostCreate", Bundle.class, new XC_MethodHook() {
72+
XposedHelpers.findAndHookMethod("android.app.Activity", lpparam.classLoader, "onPostCreate", Bundle.class, new XC_MethodHook() {
9273
@Override
9374
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
9475
Activity act = (Activity) param.thisObject;

app/src/main/res/mipmap-hdpi/ic_launcher.png

100644100755
-2.36 KB
Loading

app/src/main/res/mipmap-mdpi/ic_launcher.png

100644100755
-1.64 KB
Loading

app/src/main/res/mipmap-xhdpi/ic_launcher.png

100644100755
-3.79 KB
Loading

app/src/main/res/mipmap-xxhdpi/ic_launcher.png

100644100755
-6.11 KB
Loading
1.81 KB
Loading

web_logo.png

14.5 KB
Loading

0 commit comments

Comments
 (0)