Upgrade gradle (#1866)
This commit is contained in:
@@ -34,6 +34,7 @@ android {
|
|||||||
aidl = true
|
aidl = true
|
||||||
buildConfig = true
|
buildConfig = true
|
||||||
compose = true
|
compose = true
|
||||||
|
prefab = true
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
@@ -113,4 +114,6 @@ dependencies {
|
|||||||
|
|
||||||
implementation(libs.markdown)
|
implementation(libs.markdown)
|
||||||
implementation(libs.androidx.webkit)
|
implementation(libs.androidx.webkit)
|
||||||
|
|
||||||
|
implementation(libs.lsposed.cxx)
|
||||||
}
|
}
|
||||||
@@ -7,6 +7,9 @@ cmake_minimum_required(VERSION 3.18.1)
|
|||||||
|
|
||||||
project("kernelsu")
|
project("kernelsu")
|
||||||
|
|
||||||
|
find_package(cxx REQUIRED CONFIG)
|
||||||
|
link_libraries(cxx::cxx)
|
||||||
|
|
||||||
add_library(kernelsu
|
add_library(kernelsu
|
||||||
SHARED
|
SHARED
|
||||||
jni.cc
|
jni.cc
|
||||||
|
|||||||
@@ -416,8 +416,8 @@ private fun InfoCard() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getManagerVersion(context: Context): Pair<String, Int> {
|
fun getManagerVersion(context: Context): Pair<String, Int> {
|
||||||
val packageInfo = context.packageManager.getPackageInfo(context.packageName, 0)
|
val packageInfo = context.packageManager.getPackageInfo(context.packageName, 0)!!
|
||||||
return Pair(packageInfo.versionName, packageInfo.versionCode)
|
return Pair(packageInfo.versionName!!, packageInfo.versionCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Preview
|
@Preview
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class SuperUserViewModel : ViewModel() {
|
|||||||
val packageName: String
|
val packageName: String
|
||||||
get() = packageInfo.packageName
|
get() = packageInfo.packageName
|
||||||
val uid: Int
|
val uid: Int
|
||||||
get() = packageInfo.applicationInfo.uid
|
get() = packageInfo.applicationInfo!!.uid
|
||||||
|
|
||||||
val allowSu: Boolean
|
val allowSu: Boolean
|
||||||
get() = profile != null && profile.allowSu
|
get() = profile != null && profile.allowSu
|
||||||
@@ -90,7 +90,7 @@ class SuperUserViewModel : ViewModel() {
|
|||||||
.toPinyinString(it.label).contains(search, true)
|
.toPinyinString(it.label).contains(search, true)
|
||||||
}.filter {
|
}.filter {
|
||||||
it.uid == 2000 // Always show shell
|
it.uid == 2000 // Always show shell
|
||||||
|| showSystemApps || it.packageInfo.applicationInfo.flags.and(ApplicationInfo.FLAG_SYSTEM) == 0
|
|| showSystemApps || it.packageInfo.applicationInfo!!.flags.and(ApplicationInfo.FLAG_SYSTEM) == 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -146,7 +146,7 @@ class SuperUserViewModel : ViewModel() {
|
|||||||
|
|
||||||
apps = packages.map {
|
apps = packages.map {
|
||||||
val appInfo = it.applicationInfo
|
val appInfo = it.applicationInfo
|
||||||
val uid = appInfo.uid
|
val uid = appInfo!!.uid
|
||||||
val profile = Natives.getAppProfile(it.packageName, uid)
|
val profile = Natives.getAppProfile(it.packageName, uid)
|
||||||
AppInfo(
|
AppInfo(
|
||||||
label = appInfo.loadLabel(pm).toString(),
|
label = appInfo.loadLabel(pm).toString(),
|
||||||
|
|||||||
@@ -15,29 +15,23 @@ cmaker {
|
|||||||
default {
|
default {
|
||||||
arguments.addAll(
|
arguments.addAll(
|
||||||
arrayOf(
|
arrayOf(
|
||||||
"-DANDROID_STL=c++_static",
|
"-DANDROID_STL=none",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
val flags = arrayOf(
|
abiFilters("arm64-v8a", "x86_64", "riscv64")
|
||||||
"-Wno-gnu-string-literal-operator-template",
|
|
||||||
"-Wno-c++2b-extensions",
|
|
||||||
)
|
|
||||||
cFlags.addAll(flags)
|
|
||||||
cppFlags.addAll(flags)
|
|
||||||
abiFilters("arm64-v8a", "x86_64")
|
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
if (it.name == "release") {
|
if (it.name == "release") {
|
||||||
arguments += "-DDEBUG_SYMBOLS_PATH=${buildDir.absolutePath}/symbols"
|
arguments += "-DDEBUG_SYMBOLS_PATH=${layout.buildDirectory.asFile.get().absolutePath}/symbols"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val androidMinSdkVersion = 26
|
val androidMinSdkVersion = 26
|
||||||
val androidTargetSdkVersion = 34
|
val androidTargetSdkVersion = 35
|
||||||
val androidCompileSdkVersion = 34
|
val androidCompileSdkVersion = 35
|
||||||
val androidBuildToolsVersion = "34.0.0"
|
val androidBuildToolsVersion = "35.0.0"
|
||||||
val androidCompileNdkVersion = "26.3.11579264"
|
val androidCompileNdkVersion = "27.0.11718014-beta1"
|
||||||
val androidSourceCompatibility = JavaVersion.VERSION_21
|
val androidSourceCompatibility = JavaVersion.VERSION_21
|
||||||
val androidTargetCompatibility = JavaVersion.VERSION_21
|
val androidTargetCompatibility = JavaVersion.VERSION_21
|
||||||
val managerVersionCode by extra(getVersionCode())
|
val managerVersionCode by extra(getVersionCode())
|
||||||
|
|||||||
@@ -76,3 +76,5 @@ sheet-compose-dialogs-list = { group = "com.maxkeppeler.sheets-compose-dialogs",
|
|||||||
sheet-compose-dialogs-input = { group = "com.maxkeppeler.sheets-compose-dialogs", name = "input", version.ref = "sheets-compose-dialogs" }
|
sheet-compose-dialogs-input = { group = "com.maxkeppeler.sheets-compose-dialogs", name = "input", version.ref = "sheets-compose-dialogs" }
|
||||||
|
|
||||||
markdown = { group = "io.noties.markwon", name = "core", version.ref = "markdown" }
|
markdown = { group = "io.noties.markwon", name = "core", version.ref = "markdown" }
|
||||||
|
|
||||||
|
lsposed-cxx = { module = "org.lsposed.libcxx:libcxx", version = "27.0.11718014-beta1" }
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
3
manager/gradlew
vendored
3
manager/gradlew
vendored
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright © 2015-2021 the original authors.
|
# Copyright © 2015-2021 the original authors.
|
||||||
#
|
#
|
||||||
@@ -54,7 +55,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
|||||||
Reference in New Issue
Block a user