Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.germainz.activityforcenewtask"
android:versionCode="24"
android:versionName="2.1.3">
android:versionCode="25"
android:versionName="2.1.4">

<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="19"/>
android:targetSdkVersion="28"/>

<application
android:icon="@drawable/ic_launcher"
Expand Down
4 changes: 2 additions & 2 deletions src/com/germainz/activityforcenewtask/XposedMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
if (getIntField(param.thisObject, "launchedFromUid") == uid)
return;

ComponentName componentName = (ComponentName) getObjectField(param.thisObject, "realActivity");
ComponentName componentName = (ComponentName) getObjectField(param.thisObject, "mActivityComponent");
String componentNameString = componentName.flattenToString();
// Log if necessary.
if (settingsHelper.isLogEnabled()) {
Expand All @@ -81,7 +81,7 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
}
};

Class ActivityRecord = findClass("com.android.server.am.ActivityRecord", lpparam.classLoader);
Class ActivityRecord = findClass("com.android.server.wm.ActivityRecord", lpparam.classLoader);
XposedBridge.hookAllConstructors(ActivityRecord, hook);
}

Expand Down