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 55 android : versionName =" 1.0" >
66
77 <uses-sdk android : minSdkVersion =" 8"
8- android : targetSdkVersion =" 8 " />
8+ android : targetSdkVersion =" 18 " />
99 <uses-permission android : name =" android.permission.INTERNET" />
1010 <uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
1111 <uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
Original file line number Diff line number Diff line change 1111# proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt
1212
1313# Project target.
14- target =android-10
14+ target =android-18
1515android.library =false
Original file line number Diff line number Diff line change @@ -88,7 +88,11 @@ public static SecretKeySpec getSecretKeySpec(String strSeedKey) throws Exception
8888 if ((strSeedKey != null ) && (strSeedKey .length () > 0 )) {
8989 byte [] byteBSSIDValue = strSeedKey .getBytes ();
9090 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" );
9296 rng .setSeed (byteBSSIDValue );
9397 KeyGenerator kg = KeyGenerator .getInstance ("AES" );
9498 kg .init (128 , rng );
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ public void onCreate(Bundle savedInstanceState) {
9898 } catch (Exception e) {
9999 Log.e(TAG, "Eror :" + e.fillInStackTrace());
100100 }*/
101- appKey = UPDATE_APP_KEY_HERE ;
102- secret = UPDATE_SECRET_KEY_HERE ;
101+ appKey = " UPDATE_APP_KEY_HERE" ;
102+ secret = " UPDATE_SECRET_KEY_HERE" ;
103103
104104 // Category always in lower case
105105 if (null == appKey || null == secret ){
You can’t perform that action at this time.
0 commit comments