Update core

This commit is contained in:
LoveSy 2021-12-08 21:00:17 +08:00
parent 36f058f554
commit 5e37951907
7 changed files with 26 additions and 13 deletions

View File

@ -1,6 +1,12 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
android { android {
flavorDimensions "api"
productFlavors {
Riru {
dimension 'api'
}
}
compileSdkVersion rootProject.ext.androidCompileSdkVersion compileSdkVersion rootProject.ext.androidCompileSdkVersion
defaultConfig { defaultConfig {
applicationId "org.lsposed.lspatch" applicationId "org.lsposed.lspatch"

View File

@ -17,6 +17,7 @@ import android.os.Bundle;
import android.os.Environment; import android.os.Environment;
import android.os.IBinder; import android.os.IBinder;
import android.os.Parcel; import android.os.Parcel;
import android.os.ParcelFileDescriptor;
import android.os.RemoteException; import android.os.RemoteException;
import android.system.Os; import android.system.Os;
import android.util.Log; import android.util.Log;
@ -373,16 +374,6 @@ public class LSPApplication extends ApplicationServiceClient {
return null; return null;
} }
@Override
public boolean requestManagerBinder(String packageName, String path, List<IBinder> binder) {
return false;
}
@Override
public boolean isResourcesHookEnabled() {
return false;
}
@Override @Override
public List getModulesList(String processName) { public List getModulesList(String processName) {
return getModulesList(); return getModulesList();
@ -403,6 +394,11 @@ public class LSPApplication extends ApplicationServiceClient {
return null; return null;
} }
@Override
public ParcelFileDescriptor requestInjectedManagerBinder(List<IBinder> binder) throws RemoteException {
return null;
}
@Override @Override
public IBinder asBinder() { public IBinder asBinder() {
return null; return null;

View File

@ -8,6 +8,7 @@ buildscript {
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.0.3' classpath 'com.android.tools.build:gradle:7.0.3'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31' classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31'
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.4.0-beta02")
} }
} }
@ -24,6 +25,8 @@ ext {
defaultManagerPackageName = "org.lsposed.lspatch" defaultManagerPackageName = "org.lsposed.lspatch"
androidSourceCompatibility = JavaVersion.VERSION_11 androidSourceCompatibility = JavaVersion.VERSION_11
androidTargetCompatibility = JavaVersion.VERSION_11 androidTargetCompatibility = JavaVersion.VERSION_11
agpVersion = "7.0.3"
navVersion = "2.4.0-beta02"
} }
allprojects { allprojects {

2
core

@ -1 +1 @@
Subproject commit d1098f04abbcc2a91ef211055c60c1a992b899d1 Subproject commit a06ba931a533198cd906825d436280db8247c869

View File

@ -3,6 +3,12 @@ plugins {
} }
android { android {
flavorDimensions "api"
productFlavors {
Riru {
dimension 'api'
}
}
compileSdk 31 compileSdk 31
defaultConfig { defaultConfig {

View File

@ -46,7 +46,7 @@ jar {
tasks.register("buildDebug") { tasks.register("buildDebug") {
jar.dependsOn(':appstub:copyDebug') jar.dependsOn(':appstub:copyDebug')
jar.dependsOn(':app:copyDebug') jar.dependsOn(':app:copyRiruDebug')
dependsOn(build) dependsOn(build)
} }

View File

@ -2,6 +2,8 @@ include ':app'
rootProject.name='LSPatch' rootProject.name='LSPatch'
include ':lspcore' include ':lspcore'
project(':lspcore').projectDir = new File('core/core') project(':lspcore').projectDir = new File('core/core')
include ':lspapp'
project(':lspapp').projectDir = new File('core/app')
include ':hiddenapi-stubs' include ':hiddenapi-stubs'
project(':hiddenapi-stubs').projectDir = new File('core/hiddenapi-stubs') project(':hiddenapi-stubs').projectDir = new File('core/hiddenapi-stubs')
include ':interface' include ':interface'