manager: Optimize build configurations
bump Gradle version and dep
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
|
||||
import com.android.build.gradle.tasks.PackageAndroidArtifact
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.agp.app)
|
||||
@@ -41,6 +42,7 @@ android {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
vcsInfo.include = false
|
||||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
||||
}
|
||||
/**debug {
|
||||
|
||||
@@ -5,21 +5,25 @@ import com.topjohnwu.superuser.io.SuFile;
|
||||
import static com.sukisu.ultra.ui.util.KsuCliKt.getKpmmgrPath;
|
||||
import static com.sukisu.ultra.ui.util.KsuCliKt.getSuSFSDaemonPath;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
|
||||
public class UltraToolInstall {
|
||||
private static final String OUTSIDE_KPMMGR_PATH = "/data/adb/ksu/bin/kpmmgr";
|
||||
private static final String OUTSIDE_SUSFSD_PATH = "/data/adb/ksu/bin/susfsd";
|
||||
@SuppressLint("SetWorldReadable")
|
||||
@SuppressWarnings("ResultOfMethodCallIgnored")
|
||||
public static void tryToInstall() {
|
||||
SuFile KpmmgrFile = new SuFile(OUTSIDE_KPMMGR_PATH);
|
||||
if (KpmmgrFile.exists()) {
|
||||
UltraShellHelper.CopyFileTo(getKpmmgrPath(), OUTSIDE_KPMMGR_PATH);
|
||||
boolean _ = KpmmgrFile.setReadable(true, false);
|
||||
boolean _ = KpmmgrFile.setExecutable(true, false);
|
||||
KpmmgrFile.setReadable(true, false);
|
||||
KpmmgrFile.setExecutable(true, false);
|
||||
}
|
||||
SuFile SuSFSDaemonFile = new SuFile(OUTSIDE_SUSFSD_PATH);
|
||||
if (SuSFSDaemonFile.exists()) {
|
||||
UltraShellHelper.CopyFileTo(getSuSFSDaemonPath(), OUTSIDE_SUSFSD_PATH);
|
||||
boolean _ = SuSFSDaemonFile.setReadable(true, false);
|
||||
boolean _ = SuSFSDaemonFile.setExecutable(true, false);
|
||||
SuSFSDaemonFile.setReadable(true, false);
|
||||
SuSFSDaemonFile.setExecutable(true, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user