Release 23: Introduce the rootless solution for Masquerade [3/3]
Huge thanks to @bigrushdog, @iskandar1023 and @Surge1223 for all
the hard work put into this.
Clean-up commit by @nicholaschum
- Introduce Java8 integration
- Remove all the receivers
- Remove all the unused imports, methods and permissions.
- Reformat and optimize all Java files, drawables and XML files.
- Make sure the project is Android Studio ready
- Ensure that all permissions are declared Protected if in AS.
To build this in Android Studio (without platform key), you must copy
the "android.jar" built from your AOSP+OMS build environment to
%AndroidSDK%/platforms/android-25/android.jar (back up your original
copy). Then all you have to do is import masquerade as a gradle
project to Android Studio and you are set!
Change-Id: I10d989ece8650926f874ffd75074b5d756822dae
diff --git a/app/build.gradle b/app/build.gradle
index 265096a..a2694a8 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'
android {
- compileSdkVersion 23
+ compileSdkVersion 25
buildToolsVersion "23.0.3"
lintOptions {
@@ -12,25 +12,41 @@
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = new File(
- output.outputFile.parent, "masquerade_beta_testers" + versionCode + ".apk")
+ output.outputFile.parent, "masquerade_" + versionCode + ".apk")
}
}
defaultConfig {
applicationId "masquerade.substratum"
- minSdkVersion 21
- targetSdkVersion 23
- versionCode 20
- versionName "twenty - procyon"
+ minSdkVersion 25
+ targetSdkVersion 25
+ versionCode 23
+ versionName "twenty three"
+ }
+
+ defaultConfig {
+ jackOptions {
+ enabled true
+ }
+ }
+
+ compileOptions {
+ incremental true
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ dexOptions {
+ javaMaxHeapSize '2048m'
}
buildTypes {
debug {
- minifyEnabled true
+ minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
- minifyEnabled true
+ minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}