Skip to content

Commit e8d5edb

Browse files
committed
Merge branch 'UAT'
2 parents e01c782 + 71cfd89 commit e8d5edb

File tree

6 files changed

+32
-5
lines changed

6 files changed

+32
-5
lines changed

Android/ADS/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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/

Android/ADS/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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" />

Android/ADS/libs/adsapi.jar

-4.15 KB
Binary file not shown.

Android/ADS/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
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
1515
android.library=false

Android/ADS/src/com/att/ads/sample/AdsEncryptDecrypt.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

Android/ADS/src/com/att/ads/sample/AdsViewActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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){

0 commit comments

Comments
 (0)