正在查看: Aplazo v2.4.68 应用的 DdRumContentProvider.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aplazo v2.4.68 应用的 DdRumContentProvider.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.datadog.android.rum;
import android.app.ActivityManager;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Process;
import android.util.Log;
import java.util.Iterator;
import java.util.List;
import kotlin.jvm.internal.l;
public final class DdRumContentProvider extends ContentProvider {
public static int f21397c;
@Override
public final int delete(Uri uri, String str, String[] strArr) {
l.e(uri, "uri");
return 0;
}
@Override
public final String getType(Uri uri) {
l.e(uri, "uri");
return null;
}
@Override
public final Uri insert(Uri uri, ContentValues contentValues) {
l.e(uri, "uri");
return null;
}
@Override
public final boolean onCreate() {
List<ActivityManager.RunningAppProcessInfo> runningAppProcesses;
if (f21397c != 0) {
return true;
}
Context context = getContext();
ActivityManager.RunningAppProcessInfo runningAppProcessInfo = null;
Object systemService = context != null ? context.getSystemService("activity") : null;
ActivityManager activityManager = systemService instanceof ActivityManager ? (ActivityManager) systemService : null;
int myPid = Process.myPid();
if (activityManager != null && (runningAppProcesses = activityManager.getRunningAppProcesses()) != null) {
Iterator<T> it = runningAppProcesses.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
Object next = it.next();
if (((ActivityManager.RunningAppProcessInfo) next).pid == myPid) {
runningAppProcessInfo = next;
break;
}
}
runningAppProcessInfo = runningAppProcessInfo;
}
int i10 = runningAppProcessInfo != null ? runningAppProcessInfo.importance : 100;
f21397c = i10;
Log.w("DdRumContentProvider", "processImportance:" + i10);
return true;
}
@Override
public final Cursor query(Uri uri, String[] strArr, String str, String[] strArr2, String str2) {
l.e(uri, "uri");
return null;
}
@Override
public final int update(Uri uri, ContentValues contentValues, String str, String[] strArr) {
l.e(uri, "uri");
return 0;
}
}