File tree Expand file tree Collapse file tree 8 files changed +12
-97
lines changed
java/com/android1500/yard Expand file tree Collapse file tree 8 files changed +12
-97
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ plugins {
77
88android {
99 compileSdk 32
10- ndkVersion ' 25.0.8775105'
1110 buildToolsVersion ' 33.0.0'
1211 defaultConfig {
1312 applicationId " com.android1500.yard"
@@ -16,28 +15,18 @@ android {
1615 versionCode 1
1716 versionName " 1.0"
1817 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
19- signingConfig signingConfigs. debug
20- externalNativeBuild {
21- ndkBuild {
22- arguments " -j${ Runtime.runtime.availableProcessors()} "
23- }
24- }
18+
2519
2620 }
2721 buildFeatures {
28- prefab true
2922 viewBinding true
3023 }
3124
32- externalNativeBuild {
33- ndkBuild. path ' src/main/jni/Android.mk'
34- }
35-
36-
3725
3826 buildTypes {
3927 release {
40- minifyEnabled false
28+ minifyEnabled true
29+ shrinkResources true
4130 proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
4231 }
4332 }
@@ -48,13 +37,6 @@ android {
4837 kotlinOptions {
4938 jvmTarget = ' 1.8'
5039 }
51- sourceSets {
52- main {
53- jni {
54- srcDirs' src\\ main\\ jni'
55- }
56- }
57- }
5840
5941}
6042
@@ -67,7 +49,6 @@ dependencies {
6749 testImplementation ' junit:junit:4.13.2'
6850 androidTestImplementation ' androidx.test.ext:junit:1.1.3'
6951 androidTestImplementation ' androidx.test.espresso:espresso-core:3.4.0'
70- implementation ' io.github.vvb2060.ndk:xposeddetector:2.2'
7152 implementation ' com.scottyab:rootbeer-lib:0.1.0'
7253
7354 implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
Original file line number Diff line number Diff line change 1818
1919# If you keep the line number information, uncomment this to
2020# hide the original source file name.
21- #-renamesourcefileattribute SourceFile
21+ #-renamesourcefileattribute SourceFile
22+ -repackageclasses
23+ -allowaccessmodification
24+ -keepclasseswithmembernames,includedescriptorclasses class * {
25+ native <methods>;
26+ }
Original file line number Diff line number Diff line change @@ -3,9 +3,6 @@ package com.android1500.yard
33import android.app.Application
44
55class App : Application () {
6- init {
7- System .loadLibrary(" app" )
8- }
96
107
118}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import com.scottyab.rootbeer.RootBeer
66class CheckForRoot (context : Context ) {
77 private val rootBeer = RootBeer (context)
88 operator fun invoke (): List <RootItemResult > = getRootResults()
9- private external fun getXposedStat () : Int
9+
1010
1111 private fun getRootResults () = listOf (
1212 RootItemResult (" Root Management Apps" , rootBeer.detectRootManagementApps()),
@@ -19,19 +19,8 @@ class CheckForRoot(context : Context) {
1919 RootItemResult (" For RW Paths" , rootBeer.checkForRWPaths()),
2020 RootItemResult (" Dangerous Props" , rootBeer.checkForDangerousProps()),
2121 RootItemResult (" Root via native check" , rootBeer.checkForRootNative()),
22- RootItemResult (" Xposed Detect" , isXposed()),
2322 RootItemResult (" Magisk specific checks" , rootBeer.checkForMagiskBinary())
2423 )
25- private fun isXposed (): Boolean {
26- return when (getXposedStat()) {
27- 0 -> return false
28- 1 -> return true
29- 2 -> return true
30- else -> {
31- return false
32- }
33- }
34- }
3524
3625
3726}
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,4 +20,5 @@ kotlin.code.style=official
2020# Enables namespacing of each library's R class so that its R class includes only the
2121# resources declared in the library itself and none from the library's dependencies,
2222# thereby reducing the size of the R class for that library
23- android.nonTransitiveRClass =true
23+ android.nonTransitiveRClass =true
24+ android.enableJetifier =true
You can’t perform that action at this time.
0 commit comments