This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 23 | |
buildToolsVersion "23" | |
defaultConfig { | |
applicationId "xxxxxxxxxxx" | |
minSdkVersion 16 | |
targetSdkVersion 22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For Refactoring SDK #################################################################### | |
-keepattributes Signature | |
-keepattributes Exceptions | |
-keep class com.google.** { *; } | |
-dontwarn com.google.** | |
-keep class com.uservoice.** { *; } | |
-dontwarn com.uservoice.uservoicesdk.** | |
-keep class retrofit.** { *; } | |
-dontwarn retrofit.** | |
-dontwarn android.google.support.** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.asus.push.receiver; | |
import android.app.AlarmManager; | |
import android.app.Notification; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.ApplicationInfo; | |
import android.content.pm.PackageInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.asus.push.service; | |
import android.app.IntentService; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.text.TextUtils; | |
import android.util.Log; | |
import com.asus.push.analytics.zAnalytics; | |
import com.asus.push.receiver.zParsePushBroadcastReceiver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static boolean needToCheckCTA() { | |
boolean result = false; | |
Class<?> mClassType = null; | |
Method mGetIntMethod = null; | |
try { | |
mClassType = Class.forName("android.os.SystemProperties"); | |
mGetIntMethod = mClassType.getDeclaredMethod("getInt", String.class, int.class); | |
Integer v; | |
try { | |
v = (Integer) mGetIntMethod.invoke(mClassType, "persist.sys.cta.security", 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.wl = this.a("GoogleAnalytics", "4.0", VERSION.RELEASE, an.a(Locale.getDefault()), Build.MODEL, Build.ID); | |
String a(String var1, String var2, String var3, String var4, String var5, String var6) { | |
return String.format("%s/%s (Linux; U; Android %s; %s; %s Build/%s)", new Object[]{var1, var2, var3, var4, var5, var6}); | |
} | |
public static String a(Locale var0) { | |
if(var0 == null) { | |
return null; | |
} else if(TextUtils.isEmpty(var0.getLanguage())) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent showImageIntent = new Intent(Intent.ACTION_VIEW); | |
if (uri != null) { | |
showImageIntent.setDataAndType(uri, "image/*"); | |
} else { | |
showImageIntent.setDataAndType(Uri.parse("file://" + dataPath), "image/*"); | |
} | |
showImageIntent.setClassName("com.asus.gallery", "com.asus.gallery.app.EPhoto"); | |
showImageIntent.putExtra("launch-from-camera", true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private int getScreenInches(Context context) { | |
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); | |
Display display = wm.getDefaultDisplay(); | |
DisplayMetrics displayMetrics = new DisplayMetrics(); | |
display.getMetrics(displayMetrics); | |
int widthPixels = displayMetrics.widthPixels; | |
int heightPixels = displayMetrics.heightPixels; | |
float widthDpi = displayMetrics.xdpi; | |
float heightDpi = displayMetrics.ydpi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.asus.feedbacksdk.util; | |
import java.io.IOException; | |
import java.io.StringReader; | |
import java.text.DecimalFormat; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.Locale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:gravity="center" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<com.makeramen.RoundedImageView | |
android:id="@+id/avatar" | |
android:layout_width="100dp" | |
android:layout_height="100dp" |