forked from substratum/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoadingProcess.c
executable file
·106 lines (96 loc) · 3.19 KB
/
LoadingProcess.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#include <jni.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
/*
* Piracy Check
*
* Change this value to JNI_TRUE if you would like to enable anti piracy
*/
JNIEXPORT jboolean JNICALL
Java_substratum_theme_template_SubstratumLauncher_getAPStatus(JNIEnv *env) {
return JNI_FALSE;
}
/*
* Base 64 License Key
*
* Insert your base 64 license key obtained from Play Store in the quotations below!
* ATTENTION: On line 23, do you see the "000"? You MUST count the amount of characters of your key
* and input the proper number! This is so that you get your own specialized set of variables!
*/
JNIEXPORT jstring JNICALL
Java_substratum_theme_template_SubstratumLauncher_getBase64Key(JNIEnv *env) {
// TODO: This must be done!
char BASE_64_LICENSE_KEY[1] = "";
return (*env)->NewStringUTF(env, BASE_64_LICENSE_KEY);
}
/*
* APK Signature Production
*
* Insert your release APK's signature in the quotations below!
* All release production signature prefixes have the length of 28!
*/
JNIEXPORT jstring JNICALL
Java_substratum_theme_template_SubstratumLauncher_getAPKSignatureProduction(JNIEnv *env) {
char APK_SIGNATURE_PRODUCTION[1] = "";
return (*env)->NewStringUTF(env, APK_SIGNATURE_PRODUCTION);
}
/*
* Enforce Internet Check
*
* Change this value to JNI_TRUE if you would like to enable internet check
*/
JNIEXPORT jboolean JNICALL
Java_substratum_theme_template_SubstratumLauncher_getInternetCheck(JNIEnv *env) {
return JNI_FALSE;
}
/*
* Enforce Google Play Install
*
* Change this value to JNI_TRUE if you would like to enable this check
*/
JNIEXPORT jboolean JNICALL
Java_substratum_theme_template_SubstratumLauncher_getGooglePlayRequirement(JNIEnv *env) {
return JNI_FALSE;
}
/*
* Enforce Amazon App Store Install
*
* Change this value to JNI_TRUE if you would like to enable this check
*/
JNIEXPORT jboolean JNICALL
Java_substratum_theme_template_SubstratumLauncher_getAmazonAppStoreRequirement(JNIEnv *env) {
return JNI_FALSE;
}
/*
* Enable check for Blacklisted APKs
*
* Change this value to JNI_TRUE if you would like to enable blacklist check
*/
JNIEXPORT jboolean JNICALL
Java_substratum_theme_template_SubstratumLauncher_getBlacklistedApplications(JNIEnv *env) {
return JNI_FALSE;
}
/*
* Allow Third Party Substratum Builds
*
* Change this value to JNI_FALSE if you would like to ban your theme to work on external, non-team
* built compilations of substratum
*
* WARNING: Having this enabled may or may not cause a bunch of issues due to the system not built
* and distributed by an official team member. You will take charge of handling bug reports
* if there are specific bugs unreproducible on the main stream of APKs.
*/
JNIEXPORT jboolean JNICALL
Java_substratum_theme_template_SubstratumLauncher_allowThirdPartySubstratumBuilds(JNIEnv *env) {
return JNI_TRUE;
}
/*
* Enable Samsung theming
*
* Change Line 94 to JNI_FALSE for official Samsung support!
*/
JNIEXPORT jboolean JNICALL
Java_substratum_theme_template_SubstratumLauncher_getSamsungSupport(JNIEnv *env) {
return Java_substratum_theme_template_SubstratumLauncher_allowThirdPartySubstratumBuilds(env);
}
#pragma clang diagnostic pop