File tree Expand file tree Collapse file tree 6 files changed +32
-5
lines changed Expand file tree Collapse file tree 6 files changed +32
-5
lines changed Original file line number Diff line number Diff line change
1
+ # built application files
2
+ * .apk
3
+ * .ap_
4
+
5
+ # files for the dex VM
6
+ * .dex
7
+
8
+ # Java class files
9
+ * .class
10
+
11
+ # generated files
12
+ bin /
13
+ gen /
14
+
15
+ # Ignore gradle files
16
+ .gradle /
17
+ build /
18
+
19
+ # Local configuration file (sdk path, etc)
20
+ local.properties
21
+
22
+ # Proguard folder generated by Eclipse
23
+ proguard /
Original file line number Diff line number Diff line change 5
5
android : versionName =" 1.0" >
6
6
7
7
<uses-sdk android : minSdkVersion =" 8"
8
- android : targetSdkVersion =" 8 " />
8
+ android : targetSdkVersion =" 18 " />
9
9
<uses-permission android : name =" android.permission.INTERNET" />
10
10
<uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
11
11
<uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
Original file line number Diff line number Diff line change 11
11
# proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt
12
12
13
13
# Project target.
14
- target =android-10
14
+ target =android-18
15
15
android.library =false
Original file line number Diff line number Diff line change @@ -88,7 +88,11 @@ public static SecretKeySpec getSecretKeySpec(String strSeedKey) throws Exception
88
88
if ((strSeedKey != null ) && (strSeedKey .length () > 0 )) {
89
89
byte [] byteBSSIDValue = strSeedKey .getBytes ();
90
90
try {
91
- SecureRandom rng = SecureRandom .getInstance ("SHA1PRNG" );
91
+ SecureRandom rng ;
92
+ if (android .os .Build .VERSION .SDK_INT >= android .os .Build .VERSION_CODES .JELLY_BEAN_MR1 )
93
+ rng = SecureRandom .getInstance ("SHA1PRNG" , "Crypto" );
94
+ else
95
+ rng = SecureRandom .getInstance ("SHA1PRNG" );
92
96
rng .setSeed (byteBSSIDValue );
93
97
KeyGenerator kg = KeyGenerator .getInstance ("AES" );
94
98
kg .init (128 , rng );
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ public void onCreate(Bundle savedInstanceState) {
98
98
} catch (Exception e) {
99
99
Log.e(TAG, "Eror :" + e.fillInStackTrace());
100
100
}*/
101
- appKey = UPDATE_APP_KEY_HERE ;
102
- secret = UPDATE_SECRET_KEY_HERE ;
101
+ appKey = " UPDATE_APP_KEY_HERE" ;
102
+ secret = " UPDATE_SECRET_KEY_HERE" ;
103
103
104
104
// Category always in lower case
105
105
if (null == appKey || null == secret ){
You can’t perform that action at this time.
0 commit comments