- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
70 lines
2.2 KiB
Java
70 lines
2.2 KiB
Java
package com.amazonaws.util;
|
|
|
|
import com.amazonaws.logging.Log;
|
|
import com.amazonaws.logging.LogFactory;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class VersionInfoUtils {
|
|
public static final Log log = LogFactory.getLog(VersionInfoUtils.class);
|
|
public static volatile String platform = "android";
|
|
public static volatile String userAgent = null;
|
|
public static volatile String version = "2.22.6";
|
|
|
|
public static String getPlatform() {
|
|
return platform;
|
|
}
|
|
|
|
public static String getVersion() {
|
|
return version;
|
|
}
|
|
|
|
public static String getUserAgent() {
|
|
if (userAgent == null) {
|
|
synchronized (VersionInfoUtils.class) {
|
|
try {
|
|
if (userAgent == null) {
|
|
initializeUserAgent();
|
|
}
|
|
} finally {
|
|
}
|
|
}
|
|
}
|
|
return userAgent;
|
|
}
|
|
|
|
public static void initializeUserAgent() {
|
|
userAgent = userAgent();
|
|
}
|
|
|
|
public static String userAgent() {
|
|
StringBuilder sb = new StringBuilder(128);
|
|
sb.append("aws-sdk-");
|
|
sb.append(StringUtils.lowerCase(getPlatform()));
|
|
sb.append("/");
|
|
sb.append(getVersion());
|
|
sb.append(" ");
|
|
sb.append(replaceSpaces(System.getProperty("os.name")));
|
|
sb.append("/");
|
|
sb.append(replaceSpaces(System.getProperty("os.version")));
|
|
sb.append(" ");
|
|
sb.append(replaceSpaces(System.getProperty("java.vm.name")));
|
|
sb.append("/");
|
|
sb.append(replaceSpaces(System.getProperty("java.vm.version")));
|
|
sb.append("/");
|
|
sb.append(replaceSpaces(System.getProperty("java.version")));
|
|
String property = System.getProperty("user.language");
|
|
String property2 = System.getProperty("user.region");
|
|
if (property != null && property2 != null) {
|
|
sb.append(" ");
|
|
sb.append(replaceSpaces(property));
|
|
sb.append("_");
|
|
sb.append(replaceSpaces(property2));
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
public static String replaceSpaces(String str) {
|
|
return str != null ? str.replace(' ', '_') : str;
|
|
}
|
|
}
|