Skip to content

Commit

Permalink
修改签名文件
Browse files Browse the repository at this point in the history
  • Loading branch information
wrp committed Jan 25, 2024
1 parent f7ec22c commit bbff029
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 15 deletions.
17 changes: 9 additions & 8 deletions manager/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ val managerVersionName: String by rootProject.extra

android {
namespace = "me.weishu.kernelsu"

buildTypes {
release {
isMinifyEnabled = false
isShrinkResources = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
signingConfigs {
create("release") {
storeFile =
Expand All @@ -43,6 +35,15 @@ android {
// keyPassword = "android"
}
}
buildTypes {
release {
isMinifyEnabled = false
isShrinkResources = false
signingConfig = signingConfigs["release"]
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}

buildFeatures {
aidl = true
buildConfig = true
Expand Down
42 changes: 39 additions & 3 deletions manager/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
xmlns:tools="http://schemas.android.com/tools"
android:sharedUserId="android.uid.system">

<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.BACKUP" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.REAL_GET_TASKS" />
<application
android:name=".KernelSUApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:enableOnBackInvokedCallback="true"
android:fullBackupContent="@xml/backup_rules"
android:requestLegacyExternalStorage="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.KernelSU"
android:usesCleartextTraffic="true"
tools:targetApi="33">
<activity
android:name=".ui.MainActivity"
android:name=".activity.LoginActivity"
android:exported="true"
android:theme="@style/Theme.KernelSU">
<intent-filter>
Expand All @@ -29,6 +43,28 @@
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".ui.MainActivity"
android:exported="true"
android:theme="@style/Theme.KernelSU">

</activity>
<activity
android:name=".activity.MainActivity"
android:exported="true"
android:theme="@style/Theme.KernelSU">

</activity>
<activity
android:name=".activity.VpnSetActivity"
android:exported="true"
android:theme="@style/Theme.KernelSU"/>
<activity
android:name=".activity.RootMangerActivity"
android:exported="true"
android:theme="@style/Theme.KernelSU"/>



<provider
android:name="androidx.core.content.FileProvider"
Expand Down
8 changes: 4 additions & 4 deletions manager/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
android.experimental.enableNewResourceShrinker.preciseShrinking=true
android.enableAppCompileTimeRClass=true
android.useAndroidX=true
#org.gradle.parallel=true
#org.gradle.vfs.watch=true
#org.gradle.jvmargs=-Xmx2048m
#android.native.buildOutput=verbose
org.gradle.parallel=true
org.gradle.vfs.watch=true
org.gradle.jvmargs=-Xmx2048m
android.native.buildOutput=verbose

0 comments on commit bbff029

Please sign in to comment.