Skip to content

Commit

Permalink
Better Hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveSy committed Nov 17, 2020
1 parent e9c03a8 commit 94e4cf9
Show file tree
Hide file tree
Showing 57 changed files with 578 additions and 855 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'

classpath 'com.android.tools.build:gradle:4.1.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
1 change: 1 addition & 0 deletions dalvikdx/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
dex
34 changes: 22 additions & 12 deletions dalvikdx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,31 @@ task findDx {
}
}

task dexInJar(type: Jar) {
task makeDex(type: Exec) {
dependsOn jar
dependsOn findDx
doFirst {
exec {
workingDir jar.destinationDir
if (OperatingSystem.current().isWindows()){
executable "dx.bat"
args "--dex", "--output", "classes.dex", "${jar.archiveName}"
} else {
executable "bash"
args rootProject.ext.dxPath.trim(), "--dex", "--output", "classes.dex", "${jar.archiveName}"
}
}
def dexName = "classes.dex"
workingDir jar.destinationDir
if (OperatingSystem.current().isWindows()) {
executable "dx.bat"
args "--dex", "--output", dexName, "${jar.archiveName}"
} else {
executable "bash"
args rootProject.ext.dxPath.trim(), "--dex", "--output", dexName, "${jar.archiveName}"
}
}

task dex(type: Copy) {
dependsOn makeDex
from (jar.destinationDir) {
include "classes.dex"
rename "classes.dex", "eddalvikdx.dex"
}
destinationDir new File(projectDir, "dex")
}

task dexInJar(type: Jar) {
dependsOn makeDex
from "${jar.destinationDir}/classes.dex"
destinationDir jar.destinationDir
baseName "eddalvikdx"
Expand Down
3 changes: 2 additions & 1 deletion dexmaker/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
/build
dex
34 changes: 22 additions & 12 deletions dexmaker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,30 @@ dependencies {
compileOnly project(':dalvikdx')
}

task dexInJar(type: Jar) {
task makeDex(type: Exec) {
dependsOn jar
doFirst {
exec {
workingDir jar.destinationDir
if (OperatingSystem.current().isWindows()){
executable "dx.bat"
args "--dex", "--output", "classes.dex", "${jar.archiveName}"
} else {
executable "bash"
args rootProject.ext.dxPath.trim(), "--dex", "--output", "classes.dex", "${jar.archiveName}"
}
}
def dexName = "classes.dex"
workingDir jar.destinationDir
if (OperatingSystem.current().isWindows()) {
executable "dx.bat"
args "--dex", "--output", dexName, "${jar.archiveName}"
} else {
executable "bash"
args rootProject.ext.dxPath.trim(), "--dex", "--output", dexName, "${jar.archiveName}"
}
}

task dex(type: Copy) {
dependsOn makeDex
from (jar.destinationDir) {
include "classes.dex"
rename "classes.dex", "eddexmaker.dex"
}
destinationDir new File(projectDir, "dex")
}

task dexInJar(type: Jar) {
dependsOn makeDex
from "${jar.destinationDir}/classes.dex"
destinationDir jar.destinationDir
baseName "eddexmaker"
Expand Down
3 changes: 2 additions & 1 deletion edxp-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ android {
}
}

ndkVersion androidCompileNdkVersion
}

dependencies {
compileOnly project(':hiddenapi-stubs')
api project(':xposed-bridge')
compileOnly project(':dexmaker')
api "androidx.annotation:annotation:1.1.0-rc01"
compileOnly 'com.android.support:support-annotations:28.0.0'
}


Expand Down
Binary file added edxp-common/libs/framework-stub.jar
Binary file not shown.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ public boolean isNoModuleLogEnabled() {
public boolean isBlackWhiteListMode() {
return ConfigManager.isBlackWhiteListEnabled();
}

@Override
public String getModulesList() { return ConfigManager.getModulesList(); }
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ private static boolean isFileExists(String path) {
public static native String getDataPathPrefix();

public static native boolean isAppNeedHook(String appDataDir);

public static native String getModulesList();
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package com.elderdrivers.riru.edxp.core;

import androidx.annotation.NonNull;
import android.support.annotation.NonNull;

import com.elderdrivers.riru.edxp.proxy.BlackWhiteListProxy;
import com.elderdrivers.riru.edxp.proxy.NormalProxy;
import com.elderdrivers.riru.edxp.proxy.Router;

public abstract class BaseEdxpImpl implements EdxpImpl {

protected Proxy mBlackWhiteListProxy;
protected Proxy mNormalProxy;
protected Router mRouter;

Expand All @@ -23,15 +21,6 @@ public boolean isInitialized() {
return mInitialized;
}

@NonNull
@Override
public Proxy getBlackWhiteListProxy() {
if (mBlackWhiteListProxy == null) {
mBlackWhiteListProxy = createBlackWhiteListProxy();
}
return mBlackWhiteListProxy;
}

@NonNull
@Override
public Proxy getNormalProxy() {
Expand All @@ -50,10 +39,6 @@ public Router getRouter() {
return mRouter;
}

protected Proxy createBlackWhiteListProxy() {
return new BlackWhiteListProxy(getRouter());
}

protected Proxy createNormalProxy() {
return new NormalProxy(getRouter());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.elderdrivers.riru.edxp.core;

import androidx.annotation.IntDef;
import androidx.annotation.NonNull;
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;

import com.elderdrivers.riru.common.KeepAll;
import com.elderdrivers.riru.edxp.proxy.Router;
Expand All @@ -20,9 +20,6 @@ public interface EdxpImpl extends KeepAll {
@NonNull
Proxy getNormalProxy();

@NonNull
Proxy getBlackWhiteListProxy();

@NonNull
Router getRouter();

Expand Down
Loading

0 comments on commit 94e4cf9

Please sign in to comment.