Permalink
Browse files

AntiPiracy: Hide behind your mask, milady!

Let’s get open sourced!
1 parent 272a161 commit a75265460c66ce3010da49b54372380ecc983482 @nicholaschum committed Aug 20, 2016
View
@@ -38,8 +38,8 @@ dependencies {
compile 'com.android.support:palette-v7:24.1.1'
compile 'com.android.support:preference-v14:24.1.1'
compile 'com.google.firebase:firebase-messaging:9.2.1'
-
compile 'com.jakewharton:butterknife:7.0.1'
+ compile project(':substrate')
// Image Downloading and Caching
compile 'com.github.bumptech.glide:glide:3.7.0'
@@ -20,6 +20,8 @@
import java.util.Enumeration;
import dalvik.system.DexFile;
+import projekt.substrate.HideYourTrueIdentity;
+import projekt.substrate.PutOnYourMask;
import projekt.substratum.R;
/**
@@ -84,13 +86,18 @@ public static void loadDefaultConfig(Context context) {
prefs = context.getSharedPreferences("substratum_state", Context.MODE_PRIVATE);
prefs.edit().putBoolean("is_updating", false).apply();
}
-
+
// This method configures the new devices and their configuration of their vendor folders
public static Boolean inNexusFilter() {
String[] nexus_filter = {"angler", "bullhead", "flounder", "marlin", "sailfish"};
return Arrays.asList(nexus_filter).contains(Build.DEVICE);
}
+ public static boolean hiddenBehindTheMask(String current, String packageName) {
+ return HideYourTrueIdentity.believingIsJustTheBeginning(current, packageName) ||
+ PutOnYourMask.areYouReadyForTheDanceOfYourLife(current, packageName);
+ }
+
public static String[] getClassesOfPackage(Context context) {
ArrayList<String> classes = new ArrayList<>();
try {
@@ -316,7 +316,7 @@ private void launchTheme(int position) {
String[] classes = References.getClassesOfPackage(
otherAppContext);
for (int i = 0; i < classes.length; i++) {
- if (!References.letUsDance(classes[i],
+ if (!References.hiddenBehindTheMask(classes[i],
map.get(map.keySet().toArray()[position].toString())
[1])) {
is_valid = false;
@@ -316,7 +316,7 @@ private void launchTheme(int position) {
String[] classes = References.getClassesOfPackage(
otherAppContext);
for (int i = 0; i < classes.length; i++) {
- if (!References.letUsDance(classes[i],
+ if (!References.hiddenBehindTheMask(classes[i],
map.get(map.keySet().toArray()[position].toString())
[1])) {
is_valid = false;
@@ -331,7 +331,7 @@ private void launchTheme(int position) {
String[] classes = References.getClassesOfPackage(
otherAppContext);
for (int i = 0; i < classes.length; i++) {
- if (!References.letUsDance(classes[i],
+ if (!References.hiddenBehindTheMask(classes[i],
map.get(map.keySet().toArray()[position].toString())
[1])) {
is_valid = false;
@@ -337,7 +337,7 @@ private void launchTheme(int position) {
String[] classes = References.getClassesOfPackage(
otherAppContext);
for (int i = 0; i < classes.length; i++) {
- if (!References.letUsDance(classes[i],
+ if (!References.hiddenBehindTheMask(classes[i],
map.get(map.keySet().toArray()[position].toString())
[1])) {
is_valid = false;
@@ -316,7 +316,7 @@ private void launchTheme(int position) {
String[] classes = References.getClassesOfPackage(
otherAppContext);
for (int i = 0; i < classes.length; i++) {
- if (!References.letUsDance(classes[i],
+ if (!References.hiddenBehindTheMask(classes[i],
map.get(map.keySet().toArray()[position].toString())
[1])) {
is_valid = false;
@@ -94,7 +94,7 @@ protected void onPostExecute(String result) {
String[] classes = References.getClassesOfPackage(otherAppContext);
for (int i = 0; i < classes.length; i++) {
if (classes[i].contains("SubstratumLauncher")) intenter = classes[i];
- if (!References.letUsDance(classes[i],
+ if (!References.hiddenBehindTheMask(classes[i],
packageName)) {
is_valid = false;
break;
@@ -163,7 +163,7 @@ protected void onPostExecute(String result) {
String[] classes = References.getClassesOfPackage(otherAppContext);
for (int i = 0; i < classes.length; i++) {
if (classes[i].contains("SubstratumLauncher")) intenter = classes[i];
- if (!References.letUsDance(classes[i],
+ if (!References.hiddenBehindTheMask(classes[i],
packageName)) {
is_valid = false;
break;
@@ -1,6 +1,6 @@
-#Mon Dec 28 10:00:20 PST 2015
+#Sat Aug 20 16:43:45 EDT 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
View
@@ -1 +1 @@
-include ':app'
+include ':app', ':substrate'
@@ -0,0 +1,2 @@
+configurations.maybeCreate("default")
+artifacts.add("default", file('substrate.aar'))
Binary file not shown.

0 comments on commit a752654

Please sign in to comment.